Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
monorepo
/
venus
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
1
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 2f7de243
authored
Jul 04, 2025
by
陈蔚然
Committed by
GitHub
Jul 04, 2025
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'vbenjs:main' into slider-translate-captcha
2 parents
1aafb431
e6bfbce6
Show whitespace changes
Inline
Side-by-side
Showing
16 changed files
with
237 additions
and
163 deletions
.github/contributing.md
apps/web-antd/src/adapter/component/index.ts
apps/web-ele/src/adapter/component/index.ts
apps/web-naive/src/adapter/component/index.ts
apps/web-naive/src/views/demos/form/basic.vue
apps/web-naive/src/views/demos/form/modal.vue
docs/src/en/guide/project/standard.md
docs/src/friend-links/index.md
docs/src/guide/project/standard.md
package.json
packages/@core/ui-kit/shadcn-ui/src/ui/tree/tree.vue
packages/effects/common-ui/src/components/icon-picker/icon-picker.vue
packages/effects/plugins/src/vxe-table/use-vxe-grid.ts
playground/src/adapter/component/index.ts
pnpm-lock.yaml
pnpm-workspace.yaml
.github/contributing.md
View file @
2f7de24
...
@@ -19,11 +19,9 @@ Project maintainers have the right and responsibility to remove, edit, or reject
...
@@ -19,11 +19,9 @@ Project maintainers have the right and responsibility to remove, edit, or reject
-
Checkout a topic branch from the relevant branch, e.g. main, and merge back against that branch.
-
Checkout a topic branch from the relevant branch, e.g. main, and merge back against that branch.
-
If adding a new feature:
-
If adding a new feature:
-
Provide a convincing reason to add this feature. Ideally, you should open a suggestion issue first and have it approved before working on it.
-
Provide a convincing reason to add this feature. Ideally, you should open a suggestion issue first and have it approved before working on it.
-
If fixing bug:
-
If fixing bug:
-
Provide a detailed description of the bug in the PR. Live demo preferred.
-
Provide a detailed description of the bug in the PR. Live demo preferred.
-
It's OK to have multiple small commits as you work on the PR - GitHub can automatically squash them before merging.
-
It's OK to have multiple small commits as you work on the PR - GitHub can automatically squash them before merging.
...
...
apps/web-antd/src/adapter/component/index.ts
View file @
2f7de24
...
@@ -8,13 +8,7 @@ import type { Component } from 'vue';
...
@@ -8,13 +8,7 @@ import type { Component } from 'vue';
import
type
{
BaseFormComponentType
}
from
'@vben/common-ui'
;
import
type
{
BaseFormComponentType
}
from
'@vben/common-ui'
;
import
type
{
Recordable
}
from
'@vben/types'
;
import
type
{
Recordable
}
from
'@vben/types'
;
import
{
import
{
defineAsyncComponent
,
defineComponent
,
h
,
ref
}
from
'vue'
;
defineAsyncComponent
,
defineComponent
,
getCurrentInstance
,
h
,
ref
,
}
from
'vue'
;
import
{
ApiComponent
,
globalShareState
,
IconPicker
}
from
'@vben/common-ui'
;
import
{
ApiComponent
,
globalShareState
,
IconPicker
}
from
'@vben/common-ui'
;
import
{
$t
}
from
'@vben/locales'
;
import
{
$t
}
from
'@vben/locales'
;
...
@@ -82,16 +76,15 @@ const withDefaultPlaceholder = <T extends Component>(
...
@@ -82,16 +76,15 @@ const withDefaultPlaceholder = <T extends Component>(
$t
(
`ui.placeholder.
${
type
}
`
);
$t
(
`ui.placeholder.
${
type
}
`
);
// 透传组件暴露的方法
// 透传组件暴露的方法
const
innerRef
=
ref
();
const
innerRef
=
ref
();
const
publicApi
:
Recordable
<
any
>
=
{};
expose
(
expose
(
publicApi
);
new
Proxy
(
const
instance
=
getCurrentInstance
();
{},
instance
?.
proxy
?.
$nextTick
(()
=>
{
{
for
(
const
key
in
innerRef
.
value
)
{
get
:
(
_target
,
key
)
=>
innerRef
.
value
?.[
key
],
if
(
typeof
innerRef
.
value
[
key
]
===
'function'
)
{
has
:
(
_target
,
key
)
=>
key
in
(
innerRef
.
value
||
{}),
publicApi
[
key
]
=
innerRef
.
value
[
key
];
},
}
),
}
);
});
return
()
=>
return
()
=>
h
(
h
(
component
,
component
,
...
...
apps/web-ele/src/adapter/component/index.ts
View file @
2f7de24
...
@@ -8,13 +8,7 @@ import type { Component } from 'vue';
...
@@ -8,13 +8,7 @@ import type { Component } from 'vue';
import
type
{
BaseFormComponentType
}
from
'@vben/common-ui'
;
import
type
{
BaseFormComponentType
}
from
'@vben/common-ui'
;
import
type
{
Recordable
}
from
'@vben/types'
;
import
type
{
Recordable
}
from
'@vben/types'
;
import
{
import
{
defineAsyncComponent
,
defineComponent
,
h
,
ref
}
from
'vue'
;
defineAsyncComponent
,
defineComponent
,
getCurrentInstance
,
h
,
ref
,
}
from
'vue'
;
import
{
ApiComponent
,
globalShareState
,
IconPicker
}
from
'@vben/common-ui'
;
import
{
ApiComponent
,
globalShareState
,
IconPicker
}
from
'@vben/common-ui'
;
import
{
$t
}
from
'@vben/locales'
;
import
{
$t
}
from
'@vben/locales'
;
...
@@ -139,16 +133,15 @@ const withDefaultPlaceholder = <T extends Component>(
...
@@ -139,16 +133,15 @@ const withDefaultPlaceholder = <T extends Component>(
$t
(
`ui.placeholder.
${
type
}
`
);
$t
(
`ui.placeholder.
${
type
}
`
);
// 透传组件暴露的方法
// 透传组件暴露的方法
const
innerRef
=
ref
();
const
innerRef
=
ref
();
const
publicApi
:
Recordable
<
any
>
=
{};
expose
(
expose
(
publicApi
);
new
Proxy
(
const
instance
=
getCurrentInstance
();
{},
instance
?.
proxy
?.
$nextTick
(()
=>
{
{
for
(
const
key
in
innerRef
.
value
)
{
get
:
(
_target
,
key
)
=>
innerRef
.
value
?.[
key
],
if
(
typeof
innerRef
.
value
[
key
]
===
'function'
)
{
has
:
(
_target
,
key
)
=>
key
in
(
innerRef
.
value
||
{}),
publicApi
[
key
]
=
innerRef
.
value
[
key
];
},
}
),
}
);
});
return
()
=>
return
()
=>
h
(
h
(
component
,
component
,
...
...
apps/web-naive/src/adapter/component/index.ts
View file @
2f7de24
...
@@ -8,13 +8,7 @@ import type { Component } from 'vue';
...
@@ -8,13 +8,7 @@ import type { Component } from 'vue';
import
type
{
BaseFormComponentType
}
from
'@vben/common-ui'
;
import
type
{
BaseFormComponentType
}
from
'@vben/common-ui'
;
import
type
{
Recordable
}
from
'@vben/types'
;
import
type
{
Recordable
}
from
'@vben/types'
;
import
{
import
{
defineAsyncComponent
,
defineComponent
,
h
,
ref
}
from
'vue'
;
defineAsyncComponent
,
defineComponent
,
getCurrentInstance
,
h
,
ref
,
}
from
'vue'
;
import
{
ApiComponent
,
globalShareState
,
IconPicker
}
from
'@vben/common-ui'
;
import
{
ApiComponent
,
globalShareState
,
IconPicker
}
from
'@vben/common-ui'
;
import
{
$t
}
from
'@vben/locales'
;
import
{
$t
}
from
'@vben/locales'
;
...
@@ -85,16 +79,15 @@ const withDefaultPlaceholder = <T extends Component>(
...
@@ -85,16 +79,15 @@ const withDefaultPlaceholder = <T extends Component>(
$t
(
`ui.placeholder.
${
type
}
`
);
$t
(
`ui.placeholder.
${
type
}
`
);
// 透传组件暴露的方法
// 透传组件暴露的方法
const
innerRef
=
ref
();
const
innerRef
=
ref
();
const
publicApi
:
Recordable
<
any
>
=
{};
expose
(
expose
(
publicApi
);
new
Proxy
(
const
instance
=
getCurrentInstance
();
{},
instance
?.
proxy
?.
$nextTick
(()
=>
{
{
for
(
const
key
in
innerRef
.
value
)
{
get
:
(
_target
,
key
)
=>
innerRef
.
value
?.[
key
],
if
(
typeof
innerRef
.
value
[
key
]
===
'function'
)
{
has
:
(
_target
,
key
)
=>
key
in
(
innerRef
.
value
||
{}),
publicApi
[
key
]
=
innerRef
.
value
[
key
];
},
}
),
}
);
});
return
()
=>
return
()
=>
h
(
h
(
component
,
component
,
...
...
apps/web-naive/src/views/demos/form/basic.vue
View file @
2f7de24
<
script
lang=
"ts"
setup
>
<
script
lang=
"ts"
setup
>
import
{
Page
}
from
'@vben/common-ui'
;
import
{
Page
,
useVbenModal
}
from
'@vben/common-ui'
;
import
{
NButton
,
NCard
,
useMessage
}
from
'naive-ui'
;
import
{
NButton
,
NCard
,
useMessage
}
from
'naive-ui'
;
import
{
useVbenForm
}
from
'#/adapter/form'
;
import
{
useVbenForm
}
from
'#/adapter/form'
;
import
{
getAllMenusApi
}
from
'#/api'
;
import
{
getAllMenusApi
}
from
'#/api'
;
import
modalDemo
from
'./modal.vue'
;
const
message
=
useMessage
();
const
message
=
useMessage
();
const
[
Form
,
formApi
]
=
useVbenForm
({
const
[
Form
,
formApi
]
=
useVbenForm
({
commonConfig
:
{
commonConfig
:
{
...
@@ -143,6 +145,10 @@ function setFormValues() {
...
@@ -143,6 +145,10 @@ function setFormValues() {
date
:
Date
.
now
(),
date
:
Date
.
now
(),
});
});
}
}
const
[
Modal
,
modalApi
]
=
useVbenModal
({
connectedComponent
:
modalDemo
,
});
</
script
>
</
script
>
<
template
>
<
template
>
<Page
<Page
...
@@ -152,8 +158,12 @@ function setFormValues() {
...
@@ -152,8 +158,12 @@ function setFormValues() {
<NCard
title=
"基础表单"
>
<NCard
title=
"基础表单"
>
<template
#
header-extra
>
<template
#
header-extra
>
<NButton
type=
"primary"
@
click=
"setFormValues"
>
设置表单值
</NButton>
<NButton
type=
"primary"
@
click=
"setFormValues"
>
设置表单值
</NButton>
<NButton
type=
"primary"
@
click=
"modalApi.open()"
class=
"ml-2"
>
打开弹窗
</NButton>
</
template
>
</
template
>
<Form
/>
<Form
/>
</NCard>
</NCard>
<Modal
/>
</Page>
</Page>
</template>
</template>
apps/web-naive/src/views/demos/form/modal.vue
0 → 100644
View file @
2f7de24
<
script
lang=
"ts"
setup
>
import
{
useVbenModal
}
from
'@vben/common-ui'
;
import
{
useVbenForm
}
from
'#/adapter/form'
;
defineOptions
({
name
:
'FormModelDemo'
,
});
const
[
Form
,
formApi
]
=
useVbenForm
({
schema
:
[
{
component
:
'Input'
,
componentProps
:
{
placeholder
:
'请输入'
,
},
fieldName
:
'field1'
,
label
:
'字段1'
,
rules
:
'required'
,
},
{
component
:
'Input'
,
componentProps
:
{
placeholder
:
'请输入'
,
},
fieldName
:
'field2'
,
label
:
'字段2'
,
rules
:
'required'
,
},
{
component
:
'Select'
,
componentProps
:
{
options
:
[
{
label
:
'选项1'
,
value
:
'1'
},
{
label
:
'选项2'
,
value
:
'2'
},
],
placeholder
:
'请输入'
,
},
fieldName
:
'field3'
,
label
:
'字段3'
,
rules
:
'required'
,
},
],
showDefaultActions
:
false
,
});
const
[
Modal
,
modalApi
]
=
useVbenModal
({
fullscreenButton
:
false
,
onCancel
()
{
modalApi
.
close
();
},
onConfirm
:
async
()
=>
{
await
formApi
.
validateAndSubmitForm
();
// modalApi.close();
},
onOpenChange
(
isOpen
:
boolean
)
{
if
(
isOpen
)
{
const
{
values
}
=
modalApi
.
getData
<
Record
<
string
,
any
>>
();
if
(
values
)
{
formApi
.
setValues
(
values
);
}
}
},
title
:
'内嵌表单示例'
,
});
</
script
>
<
template
>
<Modal>
<Form
/>
</Modal>
</
template
>
docs/src/en/guide/project/standard.md
View file @
2f7de24
...
@@ -4,7 +4,6 @@
...
@@ -4,7 +4,6 @@
-
If you want to contribute code to the project, please ensure your code complies with the project's coding standards.
-
If you want to contribute code to the project, please ensure your code complies with the project's coding standards.
-
If you are using
`vscode`
, you need to install the following plugins:
-
If you are using
`vscode`
, you need to install the following plugins:
-
[
ESLint
](
https://marketplace.visualstudio.com/items?itemName=dbaeumer.vscode-eslint
)
- Script code checking
-
[
ESLint
](
https://marketplace.visualstudio.com/items?itemName=dbaeumer.vscode-eslint
)
- Script code checking
-
[
Prettier
](
https://marketplace.visualstudio.com/items?itemName=esbenp.prettier-vscode
)
- Code formatting
-
[
Prettier
](
https://marketplace.visualstudio.com/items?itemName=esbenp.prettier-vscode
)
- Code formatting
-
[
Code Spell Checker
](
https://marketplace.visualstudio.com/items?itemName=streetsidesoftware.code-spell-checker
)
- Word syntax checking
-
[
Code Spell Checker
](
https://marketplace.visualstudio.com/items?itemName=streetsidesoftware.code-spell-checker
)
- Word syntax checking
...
@@ -157,7 +156,6 @@ The most effective solution is to perform Lint checks locally before committing.
...
@@ -157,7 +156,6 @@ The most effective solution is to perform Lint checks locally before committing.
The project defines corresponding hooks inside
`lefthook.yml`
:
The project defines corresponding hooks inside
`lefthook.yml`
:
-
`pre-commit`
: Runs before commit, used for code formatting and checking
-
`pre-commit`
: Runs before commit, used for code formatting and checking
-
`code-workspace`
: Updates VSCode workspace configuration
-
`code-workspace`
: Updates VSCode workspace configuration
-
`lint-md`
: Formats Markdown files
-
`lint-md`
: Formats Markdown files
-
`lint-vue`
: Formats and checks Vue files
-
`lint-vue`
: Formats and checks Vue files
...
@@ -167,7 +165,6 @@ The project defines corresponding hooks inside `lefthook.yml`:
...
@@ -167,7 +165,6 @@ The project defines corresponding hooks inside `lefthook.yml`:
-
`lint-json`
: Formats other JSON files
-
`lint-json`
: Formats other JSON files
-
`post-merge`
: Runs after merge, used for automatic dependency installation
-
`post-merge`
: Runs after merge, used for automatic dependency installation
-
`install`
: Runs
`pnpm install`
to install new dependencies
-
`install`
: Runs
`pnpm install`
to install new dependencies
-
`commit-msg`
: Runs during commit, used for checking commit message format
-
`commit-msg`
: Runs during commit, used for checking commit message format
...
...
docs/src/friend-links/index.md
View file @
2f7de24
...
@@ -18,7 +18,6 @@
...
@@ -18,7 +18,6 @@
### 友情链接
### 友情链接
-
在您的网站上添加我们的友情链接,链接如下:
-
在您的网站上添加我们的友情链接,链接如下:
-
名称:Vben Admin
-
名称:Vben Admin
-
链接:https://www.vben.pro
-
链接:https://www.vben.pro
-
描述:Vben Admin 企业级开箱即用的中后台前端解决方案
-
描述:Vben Admin 企业级开箱即用的中后台前端解决方案
...
...
docs/src/guide/project/standard.md
View file @
2f7de24
...
@@ -4,7 +4,6 @@
...
@@ -4,7 +4,6 @@
-
如果你想向项目贡献代码,请确保你的代码符合项目的代码规范。
-
如果你想向项目贡献代码,请确保你的代码符合项目的代码规范。
-
如果你使用的是
`vscode`
,需要安装以下插件:
-
如果你使用的是
`vscode`
,需要安装以下插件:
-
[
ESLint
](
https://marketplace.visualstudio.com/items?itemName=dbaeumer.vscode-eslint
)
- 脚本代码检查
-
[
ESLint
](
https://marketplace.visualstudio.com/items?itemName=dbaeumer.vscode-eslint
)
- 脚本代码检查
-
[
Prettier
](
https://marketplace.visualstudio.com/items?itemName=esbenp.prettier-vscode
)
- 代码格式化
-
[
Prettier
](
https://marketplace.visualstudio.com/items?itemName=esbenp.prettier-vscode
)
- 代码格式化
-
[
Code Spell Checker
](
https://marketplace.visualstudio.com/items?itemName=streetsidesoftware.code-spell-checker
)
- 单词语法检查
-
[
Code Spell Checker
](
https://marketplace.visualstudio.com/items?itemName=streetsidesoftware.code-spell-checker
)
- 单词语法检查
...
@@ -157,7 +156,6 @@ git hook 一般结合各种 lint,在 git 提交代码的时候进行代码风
...
@@ -157,7 +156,6 @@ git hook 一般结合各种 lint,在 git 提交代码的时候进行代码风
项目在
`lefthook.yml`
内部定义了相应的 hooks:
项目在
`lefthook.yml`
内部定义了相应的 hooks:
-
`pre-commit`
: 在提交前运行,用于代码格式化和检查
-
`pre-commit`
: 在提交前运行,用于代码格式化和检查
-
`code-workspace`
: 更新 VSCode 工作区配置
-
`code-workspace`
: 更新 VSCode 工作区配置
-
`lint-md`
: 格式化 Markdown 文件
-
`lint-md`
: 格式化 Markdown 文件
-
`lint-vue`
: 格式化并检查 Vue 文件
-
`lint-vue`
: 格式化并检查 Vue 文件
...
@@ -167,7 +165,6 @@ git hook 一般结合各种 lint,在 git 提交代码的时候进行代码风
...
@@ -167,7 +165,6 @@ git hook 一般结合各种 lint,在 git 提交代码的时候进行代码风
-
`lint-json`
: 格式化其他 JSON 文件
-
`lint-json`
: 格式化其他 JSON 文件
-
`post-merge`
: 在合并后运行,用于自动安装依赖
-
`post-merge`
: 在合并后运行,用于自动安装依赖
-
`install`
: 运行
`pnpm install`
安装新依赖
-
`install`
: 运行
`pnpm install`
安装新依赖
-
`commit-msg`
: 在提交时运行,用于检查提交信息格式
-
`commit-msg`
: 在提交时运行,用于检查提交信息格式
...
...
package.json
View file @
2f7de24
...
@@ -98,7 +98,7 @@
...
@@ -98,7 +98,7 @@
"node"
:
">=20.10.0"
,
"node"
:
">=20.10.0"
,
"pnpm"
:
">=9.12.0"
"pnpm"
:
">=9.12.0"
},
},
"packageManager"
:
"pnpm@10.1
0.0
"
,
"packageManager"
:
"pnpm@10.1
2.4
"
,
"pnpm"
:
{
"pnpm"
:
{
"peerDependencyRules"
:
{
"peerDependencyRules"
:
{
"allowedVersions"
:
{
"allowedVersions"
:
{
...
...
packages/@core/ui-kit/shadcn-ui/src/ui/tree/tree.vue
View file @
2f7de24
...
@@ -287,7 +287,7 @@ defineExpose({
...
@@ -287,7 +287,7 @@ defineExpose({
class="tree-node focus:ring-grass8 my-0.5 flex items-center rounded px-2 py-1 outline-none focus:ring-2"
class="tree-node focus:ring-grass8 my-0.5 flex items-center rounded px-2 py-1 outline-none focus:ring-2"
>
>
<ChevronRight
<ChevronRight
v-if=
"item.hasChildren"
v-if=
"item.hasChildren
&& Array.isArray(item.value[childrenField]) && item.value[childrenField].length > 0
"
class=
"size-4 cursor-pointer transition"
class=
"size-4 cursor-pointer transition"
:class=
"
{ 'rotate-90': isExpanded }"
:class=
"
{ 'rotate-90': isExpanded }"
@click.stop="
@click.stop="
...
...
packages/effects/common-ui/src/components/icon-picker/icon-picker.vue
View file @
2f7de24
packages/effects/plugins/src/vxe-table/use-vxe-grid.ts
View file @
2f7de24
import
type
{
VxeGridSlots
,
VxeGridSlotTypes
}
from
'vxe-table'
;
import
type
{
SlotsType
}
from
'vue'
;
import
type
{
BaseFormComponentType
}
from
'@vben-core/form-ui'
;
import
type
{
BaseFormComponentType
}
from
'@vben-core/form-ui'
;
import
type
{
ExtendedVxeGridApi
,
VxeGridProps
}
from
'./types'
;
import
type
{
ExtendedVxeGridApi
,
VxeGridProps
}
from
'./types'
;
...
@@ -9,6 +13,12 @@ import { useStore } from '@vben-core/shared/store';
...
@@ -9,6 +13,12 @@ import { useStore } from '@vben-core/shared/store';
import
{
VxeGridApi
}
from
'./api'
;
import
{
VxeGridApi
}
from
'./api'
;
import
VxeGrid
from
'./use-vxe-grid.vue'
;
import
VxeGrid
from
'./use-vxe-grid.vue'
;
type
FilteredSlots
<
T
>
=
{
[
K
in
keyof
VxeGridSlots
<
T
>
as
K
extends
'form'
?
never
:
K
]:
VxeGridSlots
<
T
>
[
K
];
};
export
function
useVbenVxeGrid
<
export
function
useVbenVxeGrid
<
T
extends
Record
<
string
,
any
>
=
any
,
T
extends
Record
<
string
,
any
>
=
any
,
D
extends
BaseFormComponentType
=
BaseFormComponentType
,
D
extends
BaseFormComponentType
=
BaseFormComponentType
,
...
@@ -31,6 +41,16 @@ export function useVbenVxeGrid<
...
@@ -31,6 +41,16 @@ export function useVbenVxeGrid<
{
{
name
:
'VbenVxeGrid'
,
name
:
'VbenVxeGrid'
,
inheritAttrs
:
false
,
inheritAttrs
:
false
,
slots
:
Object
as
SlotsType
<
{
// 表格标题
'table-title'
:
undefined
;
// 工具栏左侧部分
'toolbar-actions'
:
VxeGridSlotTypes
.
DefaultSlotParams
<
T
>
;
// 工具栏右侧部分
'toolbar-tools'
:
VxeGridSlotTypes
.
DefaultSlotParams
<
T
>
;
}
&
FilteredSlots
<
T
>
>
,
},
},
);
);
// Add reactivity support
// Add reactivity support
...
...
playground/src/adapter/component/index.ts
View file @
2f7de24
...
@@ -8,13 +8,7 @@ import type { Component } from 'vue';
...
@@ -8,13 +8,7 @@ import type { Component } from 'vue';
import
type
{
BaseFormComponentType
}
from
'@vben/common-ui'
;
import
type
{
BaseFormComponentType
}
from
'@vben/common-ui'
;
import
type
{
Recordable
}
from
'@vben/types'
;
import
type
{
Recordable
}
from
'@vben/types'
;
import
{
import
{
defineAsyncComponent
,
defineComponent
,
h
,
ref
}
from
'vue'
;
defineAsyncComponent
,
defineComponent
,
getCurrentInstance
,
h
,
ref
,
}
from
'vue'
;
import
{
ApiComponent
,
globalShareState
,
IconPicker
}
from
'@vben/common-ui'
;
import
{
ApiComponent
,
globalShareState
,
IconPicker
}
from
'@vben/common-ui'
;
import
{
$t
}
from
'@vben/locales'
;
import
{
$t
}
from
'@vben/locales'
;
...
@@ -82,16 +76,24 @@ const withDefaultPlaceholder = <T extends Component>(
...
@@ -82,16 +76,24 @@ const withDefaultPlaceholder = <T extends Component>(
$t
(
`ui.placeholder.
${
type
}
`
);
$t
(
`ui.placeholder.
${
type
}
`
);
// 透传组件暴露的方法
// 透传组件暴露的方法
const
innerRef
=
ref
();
const
innerRef
=
ref
();
const
publicApi
:
Recordable
<
any
>
=
{};
// const publicApi: Recordable<any> = {};
expose
(
publicApi
);
expose
(
const
instance
=
getCurrentInstance
();
new
Proxy
(
instance
?.
proxy
?.
$nextTick
(()
=>
{
{},
for
(
const
key
in
innerRef
.
value
)
{
{
if
(
typeof
innerRef
.
value
[
key
]
===
'function'
)
{
get
:
(
_target
,
key
)
=>
innerRef
.
value
?.[
key
],
publicApi
[
key
]
=
innerRef
.
value
[
key
];
has
:
(
_target
,
key
)
=>
key
in
(
innerRef
.
value
||
{}),
}
},
}
),
});
);
// const instance = getCurrentInstance();
// instance?.proxy?.$nextTick(() => {
// for (const key in innerRef.value) {
// if (typeof innerRef.value[key] === 'function') {
// publicApi[key] = innerRef.value[key];
// }
// }
// });
return
()
=>
return
()
=>
h
(
h
(
component
,
component
,
...
...
pnpm-lock.yaml
View file @
2f7de24
This diff could not be displayed because it is too large.
pnpm-workspace.yaml
View file @
2f7de24
...
@@ -12,182 +12,183 @@ packages:
...
@@ -12,182 +12,183 @@ packages:
-
scripts/*
-
scripts/*
-
docs
-
docs
-
playground
-
playground
catalog
:
catalog
:
'
@ast-grep/napi'
:
^0.37.0
'
@ast-grep/napi'
:
^0.37.0
'
@changesets/changelog-github'
:
^0.5.1
'
@changesets/changelog-github'
:
^0.5.1
'
@changesets/cli'
:
^2.29.
2
'
@changesets/cli'
:
^2.29.
5
'
@changesets/git'
:
^3.0.4
'
@changesets/git'
:
^3.0.4
'
@clack/prompts'
:
^0.10.1
'
@clack/prompts'
:
^0.10.1
'
@commitlint/cli'
:
^19.8.
0
'
@commitlint/cli'
:
^19.8.
1
'
@commitlint/config-conventional'
:
^19.8.
0
'
@commitlint/config-conventional'
:
^19.8.
1
'
@ctrl/tinycolor'
:
^4.1.0
'
@ctrl/tinycolor'
:
^4.1.0
'
@eslint/js'
:
^9.
26.0
'
@eslint/js'
:
^9.
30.1
'
@faker-js/faker'
:
^9.
7
.0
'
@faker-js/faker'
:
^9.
9
.0
'
@iconify/json'
:
^2.2.3
3
4
'
@iconify/json'
:
^2.2.3
5
4
'
@iconify/tailwind'
:
^1.2.0
'
@iconify/tailwind'
:
^1.2.0
'
@iconify/vue'
:
^5.0.0
'
@iconify/vue'
:
^5.0.0
'
@intlify/core-base'
:
^11.1.
3
'
@intlify/core-base'
:
^11.1.
7
'
@intlify/unplugin-vue-i18n'
:
^6.0.8
'
@intlify/unplugin-vue-i18n'
:
^6.0.8
'
@jspm/generator'
:
^2.
5.1
'
@jspm/generator'
:
^2.
6.2
'
@manypkg/get-packages'
:
^3.0.0
'
@manypkg/get-packages'
:
^3.0.0
'
@nolebase/vitepress-plugin-git-changelog'
:
^2.1
7
.0
'
@nolebase/vitepress-plugin-git-changelog'
:
^2.1
8
.0
'
@playwright/test'
:
^1.5
2.0
'
@playwright/test'
:
^1.5
3.2
'
@pnpm/workspace.read-manifest'
:
^1000.
1.4
'
@pnpm/workspace.read-manifest'
:
^1000.
2.0
'
@stylistic/stylelint-plugin'
:
^3.1.
2
'
@stylistic/stylelint-plugin'
:
^3.1.
3
'
@tailwindcss/nesting'
:
0.0.0-insiders.565cd3e
'
@tailwindcss/nesting'
:
0.0.0-insiders.565cd3e
'
@tailwindcss/typography'
:
^0.5.16
'
@tailwindcss/typography'
:
^0.5.16
'
@tanstack/vue-query'
:
^5.
75.1
'
@tanstack/vue-query'
:
^5.
81.5
'
@tanstack/vue-store'
:
^0.7.
0
'
@tanstack/vue-store'
:
^0.7.
1
'
@types/archiver'
:
^6.0.3
'
@types/archiver'
:
^6.0.3
'
@types/eslint'
:
^9.6.1
'
@types/eslint'
:
^9.6.1
'
@types/html-minifier-terser'
:
^7.0.2
'
@types/html-minifier-terser'
:
^7.0.2
'
@types/json-bigint'
:
^1.0.4
'
@types/json-bigint'
:
^1.0.4
'
@types/jsonwebtoken'
:
^9.0.
9
'
@types/jsonwebtoken'
:
^9.0.
10
'
@types/lodash.clonedeep'
:
^4.5.9
'
@types/lodash.clonedeep'
:
^4.5.9
'
@types/lodash.get'
:
^4.4.9
'
@types/lodash.get'
:
^4.4.9
'
@types/lodash.isequal'
:
^4.5.8
'
@types/lodash.isequal'
:
^4.5.8
'
@types/lodash.set'
:
^4.3.9
'
@types/lodash.set'
:
^4.3.9
'
@types/node'
:
^22.1
5.3
'
@types/node'
:
^22.1
6.0
'
@types/nprogress'
:
^0.2.3
'
@types/nprogress'
:
^0.2.3
'
@types/postcss-import'
:
^14.0.3
'
@types/postcss-import'
:
^14.0.3
'
@types/qrcode'
:
^1.5.5
'
@types/qrcode'
:
^1.5.5
'
@types/qs'
:
^6.
9.18
'
@types/qs'
:
^6.
14.0
'
@types/sortablejs'
:
^1.15.8
'
@types/sortablejs'
:
^1.15.8
'
@typescript-eslint/eslint-plugin'
:
^8.3
1
.1
'
@typescript-eslint/eslint-plugin'
:
^8.3
5
.1
'
@typescript-eslint/parser'
:
^8.3
1
.1
'
@typescript-eslint/parser'
:
^8.3
5
.1
'
@vee-validate/zod'
:
^4.15.
0
'
@vee-validate/zod'
:
^4.15.
1
'
@vite-pwa/vitepress'
:
^1.0.0
'
@vite-pwa/vitepress'
:
^1.0.0
'
@vitejs/plugin-vue'
:
^5.2.
3
'
@vitejs/plugin-vue'
:
^5.2.
4
'
@vitejs/plugin-vue-jsx'
:
^4.
1.2
'
@vitejs/plugin-vue-jsx'
:
^4.
2.0
'
@vue/reactivity'
:
^3.5.1
3
'
@vue/reactivity'
:
^3.5.1
7
'
@vue/shared'
:
^3.5.1
3
'
@vue/shared'
:
^3.5.1
7
'
@vue/test-utils'
:
^2.4.6
'
@vue/test-utils'
:
^2.4.6
'
@vueuse/core'
:
^13.
1
.0
'
@vueuse/core'
:
^13.
4
.0
'
@vueuse/integrations'
:
^13.
1
.0
'
@vueuse/integrations'
:
^13.
4
.0
'
@vueuse/motion'
:
^3.0.3
'
@vueuse/motion'
:
^3.0.3
ant-design-vue
:
^4.2.6
ant-design-vue
:
^4.2.6
archiver
:
^7.0.1
archiver
:
^7.0.1
autoprefixer
:
^10.4.21
autoprefixer
:
^10.4.21
axios
:
^1.
9
.0
axios
:
^1.
10
.0
axios-mock-adapter
:
^2.1.0
axios-mock-adapter
:
^2.1.0
cac
:
^6.7.14
cac
:
^6.7.14
chalk
:
^5.4.1
chalk
:
^5.4.1
cheerio
:
^1.
0
.0
cheerio
:
^1.
1
.0
circular-dependency-scanner
:
^2.3.0
circular-dependency-scanner
:
^2.3.0
class-variance-authority
:
^0.7.1
class-variance-authority
:
^0.7.1
clsx
:
^2.1.1
clsx
:
^2.1.1
commitlint-plugin-function-rules
:
^4.0.
1
commitlint-plugin-function-rules
:
^4.0.
2
consola
:
^3.4.2
consola
:
^3.4.2
cross-env
:
^7.0.3
cross-env
:
^7.0.3
cspell
:
^8.19.
3
cspell
:
^8.19.
4
cssnano
:
^7.0.
6
cssnano
:
^7.0.
7
cz-git
:
^1.11.
1
cz-git
:
^1.11.
2
czg
:
^1.11.1
czg
:
^1.11.1
dayjs
:
^1.11.13
dayjs
:
^1.11.13
defu
:
^6.1.4
defu
:
^6.1.4
depcheck
:
^1.4.7
depcheck
:
^1.4.7
dotenv
:
^16.
5.0
dotenv
:
^16.
6.1
echarts
:
^5.6.0
echarts
:
^5.6.0
element-plus
:
^2.
9.9
element-plus
:
^2.
10.2
eslint
:
^9.
26.0
eslint
:
^9.
30.1
eslint-config-turbo
:
^2.5.
2
eslint-config-turbo
:
^2.5.
4
eslint-plugin-command
:
^3.
2.0
eslint-plugin-command
:
^3.
3.1
eslint-plugin-eslint-comments
:
^3.2.0
eslint-plugin-eslint-comments
:
^3.2.0
eslint-plugin-import-x
:
^4.1
1.0
eslint-plugin-import-x
:
^4.1
6.1
eslint-plugin-jsdoc
:
^50.
6.11
eslint-plugin-jsdoc
:
^50.
8.0
eslint-plugin-jsonc
:
^2.20.
0
eslint-plugin-jsonc
:
^2.20.
1
eslint-plugin-n
:
^17.
17
.0
eslint-plugin-n
:
^17.
20
.0
eslint-plugin-no-only-tests
:
^3.3.0
eslint-plugin-no-only-tests
:
^3.3.0
eslint-plugin-perfectionist
:
^4.1
2.3
eslint-plugin-perfectionist
:
^4.1
5.0
eslint-plugin-prettier
:
^5.
2.6
eslint-plugin-prettier
:
^5.
5.1
eslint-plugin-regexp
:
^2.
7
.0
eslint-plugin-regexp
:
^2.
9
.0
eslint-plugin-unicorn
:
^59.0.
0
eslint-plugin-unicorn
:
^59.0.
1
eslint-plugin-unused-imports
:
^4.1.4
eslint-plugin-unused-imports
:
^4.1.4
eslint-plugin-vitest
:
^0.5.4
eslint-plugin-vitest
:
^0.5.4
eslint-plugin-vue
:
^10.
1
.0
eslint-plugin-vue
:
^10.
2
.0
execa
:
^9.
5.2
execa
:
^9.
6.0
find-up
:
^7.0.0
find-up
:
^7.0.0
get-port
:
^7.1.0
get-port
:
^7.1.0
globals
:
^16.
0
.0
globals
:
^16.
3
.0
h3
:
^1.15.3
h3
:
^1.15.3
happy-dom
:
^17.
4.6
happy-dom
:
^17.
6.3
html-minifier-terser
:
^7.2.0
html-minifier-terser
:
^7.2.0
is-ci
:
^4.1.0
is-ci
:
^4.1.0
json-bigint
:
^1.0.0
json-bigint
:
^1.0.0
jsonc-eslint-parser
:
^2.4.0
jsonc-eslint-parser
:
^2.4.0
jsonwebtoken
:
^9.0.2
jsonwebtoken
:
^9.0.2
lefthook
:
^1.11.1
2
lefthook
:
^1.11.1
4
lodash.clonedeep
:
^4.5.0
lodash.clonedeep
:
^4.5.0
lodash.get
:
^4.4.2
lodash.get
:
^4.4.2
lodash.isequal
:
^4.5.0
lodash.isequal
:
^4.5.0
lodash.set
:
^4.3.2
lodash.set
:
^4.3.2
lucide-vue-next
:
^0.507.0
lucide-vue-next
:
^0.507.0
medium-zoom
:
^1.1.0
medium-zoom
:
^1.1.0
naive-ui
:
^2.4
1
.0
naive-ui
:
^2.4
2
.0
nitropack
:
^2.11.1
1
nitropack
:
^2.11.1
3
nprogress
:
^0.2.0
nprogress
:
^0.2.0
ora
:
^8.2.0
ora
:
^8.2.0
pinia
:
^3.0.
2
pinia
:
^3.0.
3
pinia-plugin-persistedstate
:
^4.
2.0
pinia-plugin-persistedstate
:
^4.
4.1
pkg-types
:
^2.
1
.0
pkg-types
:
^2.
2
.0
playwright
:
^1.5
2.0
playwright
:
^1.5
3.2
postcss
:
^8.5.
3
postcss
:
^8.5.
6
postcss-antd-fixes
:
^0.2.0
postcss-antd-fixes
:
^0.2.0
postcss-html
:
^1.8.0
postcss-html
:
^1.8.0
postcss-import
:
^16.1.
0
postcss-import
:
^16.1.
1
postcss-preset-env
:
^10.
1.6
postcss-preset-env
:
^10.
2.4
postcss-scss
:
^4.0.9
postcss-scss
:
^4.0.9
prettier
:
^3.
5.3
prettier
:
^3.
6.2
prettier-plugin-tailwindcss
:
^0.6.1
1
prettier-plugin-tailwindcss
:
^0.6.1
3
publint
:
^0.3.12
publint
:
^0.3.12
qrcode
:
^1.5.4
qrcode
:
^1.5.4
qs
:
^6.14.0
qs
:
^6.14.0
radix-vue
:
^1.9.17
radix-vue
:
^1.9.17
resolve.exports
:
^2.0.3
resolve.exports
:
^2.0.3
rimraf
:
^6.0.1
rimraf
:
^6.0.1
rollup
:
^4.4
0
.1
rollup
:
^4.4
4
.1
rollup-plugin-visualizer
:
^5.14.0
rollup-plugin-visualizer
:
^5.14.0
sass
:
^1.8
7.0
sass
:
^1.8
9.2
secure-ls
:
^2.0.0
secure-ls
:
^2.0.0
sortablejs
:
^1.15.6
sortablejs
:
^1.15.6
stylelint
:
^16.
19.1
stylelint
:
^16.
21.0
stylelint-config-recess-order
:
^6.
0
.0
stylelint-config-recess-order
:
^6.
1
.0
stylelint-config-recommended
:
^16.0.0
stylelint-config-recommended
:
^16.0.0
stylelint-config-recommended-scss
:
^14.1.0
stylelint-config-recommended-scss
:
^14.1.0
stylelint-config-recommended-vue
:
^1.6.
0
stylelint-config-recommended-vue
:
^1.6.
1
stylelint-config-standard
:
^38.0.0
stylelint-config-standard
:
^38.0.0
stylelint-order
:
^7.0.0
stylelint-order
:
^7.0.0
stylelint-prettier
:
^5.0.3
stylelint-prettier
:
^5.0.3
stylelint-scss
:
^6.1
1
.1
stylelint-scss
:
^6.1
2
.1
tailwind-merge
:
^2.6.0
tailwind-merge
:
^2.6.0
tailwindcss
:
^3.4.17
tailwindcss
:
^3.4.17
tailwindcss-animate
:
^1.0.7
tailwindcss-animate
:
^1.0.7
theme-colors
:
^0.1.0
theme-colors
:
^0.1.0
tippy.js
:
^6.3.7
tippy.js
:
^6.3.7
turbo
:
^2.5.
2
turbo
:
^2.5.
4
typescript
:
^5.8.3
typescript
:
^5.8.3
unbuild
:
^3.5.0
unbuild
:
^3.5.0
unplugin-element-plus
:
^0.10.0
unplugin-element-plus
:
^0.10.0
vee-validate
:
^4.15.
0
vee-validate
:
^4.15.
1
vite
:
^6.3.
4
vite
:
^6.3.
5
vite-plugin-compression
:
^0.5.1
vite-plugin-compression
:
^0.5.1
vite-plugin-dts
:
^4.5.
3
vite-plugin-dts
:
^4.5.
4
vite-plugin-html
:
^3.2.2
vite-plugin-html
:
^3.2.2
vite-plugin-lazy-import
:
^1.0.7
vite-plugin-lazy-import
:
^1.0.7
vite-plugin-pwa
:
^1.0.
0
vite-plugin-pwa
:
^1.0.
1
vite-plugin-vue-devtools
:
^7.7.
6
vite-plugin-vue-devtools
:
^7.7.
7
vitepress
:
^1.6.3
vitepress
:
^1.6.3
vitepress-plugin-group-icons
:
^1.
5.2
vitepress-plugin-group-icons
:
^1.
6.1
vitest
:
^3.
1.2
vitest
:
^3.
2.4
vue
:
^3.5.1
3
vue
:
^3.5.1
7
vue-eslint-parser
:
^10.
1.3
vue-eslint-parser
:
^10.
2.0
vue-i18n
:
^11.1.
3
vue-i18n
:
^11.1.
7
vue-json-viewer
:
^3.0.4
vue-json-viewer
:
^3.0.4
vue-router
:
^4.5.1
vue-router
:
^4.5.1
vue-tippy
:
^6.7.
0
vue-tippy
:
^6.7.
1
vue-tsc
:
2.2.10
vue-tsc
:
2.2.10
vxe-pc-ui
:
^4.
5.35
vxe-pc-ui
:
^4.
6.42
vxe-table
:
^4.13.
16
vxe-table
:
^4.13.
51
watermark-js-plus
:
^1.6.
0
watermark-js-plus
:
^1.6.
2
zod
:
^3.2
4.3
zod
:
^3.2
5.67
zod-defaults
:
^0.1.3
zod-defaults
:
^0.1.3
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment