@qin-ui/element-plus-pro 1.0.8 → 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (131) hide show
  1. package/AI-CONTEXT.md +49 -37
  2. package/LICENSE +9 -0
  3. package/api.json +44 -27
  4. package/bin/init-ai.mjs +0 -0
  5. package/es/component-provider/{index-Bmx9Q9Q-.js → index-BGGIWSkO.js} +2 -1
  6. package/es/component-provider/index-BGGIWSkO.js.map +1 -0
  7. package/es/component-provider/index.js +2 -1
  8. package/es/component-provider/index.js.map +1 -0
  9. package/es/components/component-provider/components/index.vue.d.ts +27 -0
  10. package/es/components/component-provider/components/index.vue.d.ts.map +1 -0
  11. package/es/components/component-provider/constants/index.d.ts +16 -0
  12. package/es/components/component-provider/constants/index.d.ts.map +1 -0
  13. package/es/components/component-provider/index.d.ts +4 -0
  14. package/es/components/component-provider/index.d.ts.map +1 -0
  15. package/es/components/component-provider/types/index.d.ts +35 -0
  16. package/es/components/component-provider/types/index.d.ts.map +1 -0
  17. package/es/components/form/components/BaseField/index.vue.d.ts +13 -0
  18. package/es/components/form/components/BaseField/index.vue.d.ts.map +1 -0
  19. package/es/components/form/components/BaseField/utils/index.d.ts +3 -0
  20. package/es/components/form/components/BaseField/utils/index.d.ts.map +1 -0
  21. package/es/components/form/components/BaseFormItem/index.vue.d.ts +9 -0
  22. package/es/components/form/components/BaseFormItem/index.vue.d.ts.map +1 -0
  23. package/es/components/form/components/ContainerFragment/index.vue.d.ts +23 -0
  24. package/es/components/form/components/ContainerFragment/index.vue.d.ts.map +1 -0
  25. package/es/components/form/components/GroupedFieldAttrs/index.vue.d.ts +31 -0
  26. package/es/components/form/components/GroupedFieldAttrs/index.vue.d.ts.map +1 -0
  27. package/es/components/form/components/PathProvider/index.vue.d.ts +24 -0
  28. package/es/components/form/components/PathProvider/index.vue.d.ts.map +1 -0
  29. package/es/components/form/components/ProForm/index.vue.d.ts +36 -0
  30. package/es/components/form/components/ProForm/index.vue.d.ts.map +1 -0
  31. package/es/components/form/components/SlotComponent/index.vue.d.ts +7 -0
  32. package/es/components/form/components/SlotComponent/index.vue.d.ts.map +1 -0
  33. package/es/components/form/components/index.d.ts +12 -0
  34. package/es/components/form/components/index.d.ts.map +1 -0
  35. package/es/components/form/constants/index.d.ts +67 -0
  36. package/es/components/form/constants/index.d.ts.map +1 -0
  37. package/es/components/form/hooks/index.d.ts +5 -0
  38. package/es/components/form/hooks/index.d.ts.map +1 -0
  39. package/es/components/form/hooks/useFields.d.ts +57 -0
  40. package/es/components/form/hooks/useFields.d.ts.map +1 -0
  41. package/es/components/form/hooks/useForm.d.ts +93 -0
  42. package/es/components/form/hooks/useForm.d.ts.map +1 -0
  43. package/es/components/form/hooks/useFormRef.d.ts +30 -0
  44. package/es/components/form/hooks/useFormRef.d.ts.map +1 -0
  45. package/es/components/form/index.d.ts +7 -0
  46. package/es/components/form/index.d.ts.map +1 -0
  47. package/es/components/form/types/index.d.ts +234 -0
  48. package/es/components/form/types/index.d.ts.map +1 -0
  49. package/es/components/table/components/ColumnControl.vue.d.ts +9 -0
  50. package/es/components/table/components/ColumnControl.vue.d.ts.map +1 -0
  51. package/es/components/table/components/DefaultSearchFormContainer.vue.d.ts +18 -0
  52. package/es/components/table/components/DefaultSearchFormContainer.vue.d.ts.map +1 -0
  53. package/es/components/table/components/DefaultTableContainer.vue.d.ts +18 -0
  54. package/es/components/table/components/DefaultTableContainer.vue.d.ts.map +1 -0
  55. package/es/components/table/components/ProTable.vue.d.ts +47 -0
  56. package/es/components/table/components/ProTable.vue.d.ts.map +1 -0
  57. package/es/components/table/components/SearchForm.vue.d.ts +48 -0
  58. package/es/components/table/components/SearchForm.vue.d.ts.map +1 -0
  59. package/es/components/table/components/SizeControl.vue.d.ts +12 -0
  60. package/es/components/table/components/SizeControl.vue.d.ts.map +1 -0
  61. package/es/components/table/components/TableColumnRenderer.vue.d.ts +17 -0
  62. package/es/components/table/components/TableColumnRenderer.vue.d.ts.map +1 -0
  63. package/es/components/table/components/icons/ColumnHeightOutlined.vue.d.ts +3 -0
  64. package/es/components/table/components/icons/ColumnHeightOutlined.vue.d.ts.map +1 -0
  65. package/es/components/table/components/icons/DownOutlined.vue.d.ts +3 -0
  66. package/es/components/table/components/icons/DownOutlined.vue.d.ts.map +1 -0
  67. package/es/components/table/components/icons/FilterOutlined.vue.d.ts +3 -0
  68. package/es/components/table/components/icons/FilterOutlined.vue.d.ts.map +1 -0
  69. package/es/components/table/components/index.d.ts +5 -0
  70. package/es/components/table/components/index.d.ts.map +1 -0
  71. package/es/components/table/index.d.ts +33 -0
  72. package/es/components/table/index.d.ts.map +1 -0
  73. package/es/components/table/types/index.d.ts +67 -0
  74. package/es/components/table/types/index.d.ts.map +1 -0
  75. package/es/components/table/useTable.d.ts +111 -0
  76. package/es/components/table/useTable.d.ts.map +1 -0
  77. package/es/element-plus-pro.css +10 -10
  78. package/es/form/{index-D8btGgqa.js → index-oI6LGSpA.js} +13 -7
  79. package/es/form/index-oI6LGSpA.js.map +1 -0
  80. package/es/form/index.js +4 -3
  81. package/es/form/index.js.map +1 -0
  82. package/es/index.d.ts +76 -1472
  83. package/es/index.d.ts.map +1 -0
  84. package/es/index.js +14 -23
  85. package/es/index.js.map +1 -0
  86. package/es/shared/core/index.d.ts +6 -0
  87. package/es/shared/core/index.d.ts.map +1 -0
  88. package/es/shared/ui/index.d.ts +12 -0
  89. package/es/shared/ui/index.d.ts.map +1 -0
  90. package/es/table/index.js +10 -10
  91. package/es/table/index.js.map +1 -0
  92. package/package.json +10 -11
  93. package/src/components/component-provider/components/index.vue +67 -0
  94. package/src/components/component-provider/constants/index.ts +209 -0
  95. package/src/components/component-provider/index.ts +6 -0
  96. package/src/components/component-provider/types/index.ts +64 -0
  97. package/src/components/form/components/BaseField/index.vue +181 -0
  98. package/src/components/form/components/BaseField/utils/index.ts +15 -0
  99. package/src/components/form/components/BaseFormItem/index.vue +170 -0
  100. package/src/components/form/components/ContainerFragment/index.vue +24 -0
  101. package/src/components/form/components/GroupedFieldAttrs/index.vue +115 -0
  102. package/src/components/form/components/PathProvider/index.vue +19 -0
  103. package/src/components/form/components/ProForm/index.vue +106 -0
  104. package/src/components/form/components/SlotComponent/index.vue +26 -0
  105. package/src/components/form/components/index.ts +15 -0
  106. package/src/components/form/constants/index.ts +116 -0
  107. package/src/components/form/hooks/index.ts +5 -0
  108. package/src/components/form/hooks/useFields.ts +67 -0
  109. package/src/components/form/hooks/useForm.ts +110 -0
  110. package/src/components/form/hooks/useFormRef.ts +35 -0
  111. package/src/components/form/index.ts +29 -0
  112. package/src/components/form/types/index.ts +300 -0
  113. package/src/components/table/components/ColumnControl.vue +136 -0
  114. package/src/components/table/components/DefaultSearchFormContainer.vue +14 -0
  115. package/src/components/table/components/DefaultTableContainer.vue +14 -0
  116. package/src/components/table/components/ProTable.vue +420 -0
  117. package/src/components/table/components/SearchForm.vue +302 -0
  118. package/src/components/table/components/SizeControl.vue +55 -0
  119. package/src/components/table/components/TableColumnRenderer.vue +71 -0
  120. package/src/components/table/components/icons/ColumnHeightOutlined.vue +4 -0
  121. package/src/components/table/components/icons/DownOutlined.vue +4 -0
  122. package/src/components/table/components/icons/FilterOutlined.vue +4 -0
  123. package/src/components/table/components/index.ts +4 -0
  124. package/src/components/table/index.ts +38 -0
  125. package/src/components/table/types/index.ts +77 -0
  126. package/src/components/table/useTable.ts +144 -0
  127. package/src/index.ts +81 -0
  128. package/src/shared/core/index.ts +38 -0
  129. package/src/shared/ui/index.ts +106 -0
  130. package/es/core/index-C0Pbv44C.js +0 -360
  131. package/es/vendor/utils/lodash-es-p6jau26B.js +0 -1120
package/AI-CONTEXT.md CHANGED
@@ -21,27 +21,27 @@
21
21
  └─────────────────────────────────────────────────┘
22
22
  ```
23
23
 
24
- ProForm/ProTable 是**渲染引擎**,不是组件库。Field 属性被逐层剥离,分发到不同层级的 el-* 组件。
24
+ ProForm/ProTable 是**渲染引擎**,不是组件库。Field 属性被逐层剥离,分发到不同层级的 el-\* 组件。
25
25
 
26
26
  ### 1.2 内置组件映射表
27
27
 
28
- | Field `component` | 渲染的 el 组件 | 子类型(`type`) | 常用透传 Props(示例) |
29
- | :--- | :--- | :--- | :--- |
30
- | `'input'` | el-input | textarea, password | placeholder, maxlength, clearable, showWordLimit, showPassword, autosize |
31
- | `'input-number'` | el-input-number | — | min, max, step, precision, controls, placeholder |
32
- | `'autocomplete'` | el-autocomplete | — | placeholder, clearable, fetchSuggestions, triggerOnFocus |
33
- | `'select'` | el-select | — | **options**, multiple, filterable, clearable, allowCreate, loading, remote, remoteMethod |
34
- | `'cascader'` | el-cascader | — | **options**, props, filterable, clearable, showAllLevels |
35
- | `'date-picker'` | el-date-picker | date, daterange, datetime, datetimerange, week, month, monthrange, year, yearrange | format, valueFormat, disabledDate, clearable, startPlaceholder, endPlaceholder, shortcuts |
36
- | `'time-picker'` | el-time-picker | — | format, clearable, isRange, startPlaceholder, endPlaceholder |
37
- | `'time-select'` | el-time-select | — | start, end, step, clearable, minTime, maxTime |
38
- | `'checkbox-group'` | el-checkbox-group | — | **options**, min, max, disabled |
39
- | `'radio-group'` | el-radio-group | — | **options**, disabled, size |
40
- | `'switch'` | el-switch | — | activeText, inactiveText, activeValue, inactiveValue, loading, size |
41
- | `'slider'` | el-slider | — | min, max, step, showStops, range, marks |
42
- | `'tree-select'` | el-tree-select | — | **data**, filterable, clearable, checkStrictly, props, multiple, showCheckbox |
43
- | `'transfer'` | el-transfer | — | **data**, **titles**, filterable, filterMethod, props |
44
- | `'custom'` | 自定义 | — | component 直接传入 Vue 组件或 h() 渲染函数 |
28
+ | Field `component` | 渲染的 el 组件 | 子类型(`type`) | 常用透传 Props(示例) |
29
+ | :----------------- | :---------------- | :--------------------------------------------------------------------------------- | :---------------------------------------------------------------------------------------- |
30
+ | `'input'` | el-input | textarea, password | placeholder, maxlength, clearable, showWordLimit, showPassword, autosize |
31
+ | `'input-number'` | el-input-number | — | min, max, step, precision, controls, placeholder |
32
+ | `'autocomplete'` | el-autocomplete | — | placeholder, clearable, fetchSuggestions, triggerOnFocus |
33
+ | `'select'` | el-select | — | **options**, multiple, filterable, clearable, allowCreate, loading, remote, remoteMethod |
34
+ | `'cascader'` | el-cascader | — | **options**, props, filterable, clearable, showAllLevels |
35
+ | `'date-picker'` | el-date-picker | date, daterange, datetime, datetimerange, week, month, monthrange, year, yearrange | format, valueFormat, disabledDate, clearable, startPlaceholder, endPlaceholder, shortcuts |
36
+ | `'time-picker'` | el-time-picker | — | format, clearable, isRange, startPlaceholder, endPlaceholder |
37
+ | `'time-select'` | el-time-select | — | start, end, step, clearable, minTime, maxTime |
38
+ | `'checkbox-group'` | el-checkbox-group | — | **options**, min, max, disabled |
39
+ | `'radio-group'` | el-radio-group | — | **options**, disabled, size |
40
+ | `'switch'` | el-switch | — | activeText, inactiveText, activeValue, inactiveValue, loading, size |
41
+ | `'slider'` | el-slider | — | min, max, step, showStops, range, marks |
42
+ | `'tree-select'` | el-tree-select | — | **data**, filterable, clearable, checkStrictly, props, multiple, showCheckbox |
43
+ | `'transfer'` | el-transfer | — | **data**, **titles**, filterable, filterMethod, props |
44
+ | `'custom'` | 自定义 | — | component 直接传入 Vue 组件或 h() 渲染函数 |
45
45
 
46
46
  > **编写任何控件属性前,必须查阅 [element-plus 官方文档](https://element-plus.org/) 确认属性名和类型。**
47
47
 
@@ -90,10 +90,20 @@ Field 属性按渲染目标逐层剥离:
90
90
 
91
91
  ```ts
92
92
  const form = useForm({ username: '', password: '' }, [
93
- { path: 'username', component: 'input', label: '用户名', placeholder: '请输入',
94
- rules: [{ required: true, message: '请输入用户名', trigger: 'blur' }] },
95
- { path: 'password', component: 'input', type: 'password', label: '密码',
96
- rules: [{ required: true, message: '请输入密码', trigger: 'blur' }] },
93
+ {
94
+ path: 'username',
95
+ component: 'input',
96
+ label: '用户名',
97
+ placeholder: '请输入',
98
+ rules: [{ required: true, message: '请输入用户名', trigger: 'blur' }],
99
+ },
100
+ {
101
+ path: 'password',
102
+ component: 'input',
103
+ type: 'password',
104
+ label: '密码',
105
+ rules: [{ required: true, message: '请输入密码', trigger: 'blur' }],
106
+ },
97
107
  ]);
98
108
  // 模板:<ProForm :form="form" />
99
109
  ```
@@ -138,7 +148,9 @@ form.setField('limitCount', { disabled: true });
138
148
  ```html
139
149
  <!-- ❌ 禁止在 ProForm 内手写 el-form-item -->
140
150
  <ProForm :form="form">
141
- <el-form-item label="姓名"><el-input v-model="form.formData.name" /></el-form-item>
151
+ <el-form-item label="姓名"
152
+ ><el-input v-model="form.formData.name"
153
+ /></el-form-item>
142
154
  </ProForm>
143
155
  ```
144
156
 
@@ -160,20 +172,20 @@ form.setField('limitCount', { disabled: true });
160
172
 
161
173
  ### INJECT_CONFIG 预设默认值
162
174
 
163
- | 组件 | 预设默认值 |
164
- | :--- | :--- |
165
- | `switch` | `{ modelProp: 'modelValue' }` |
166
- | `input` | `{ maxlength: 100, clearable: true, placeholder: '请输入' }` |
167
- | `input.textarea` | `{ maxlength: 200, autosize: {minRows:3,maxRows:6}, showWordLimit: true, clearable: true, placeholder: '请输入' }` |
168
- | `input.password` | `{ maxlength: 100, clearable: true, showPassword: true, placeholder: '请输入' }` |
169
- | `select` / `cascader` | `{ clearable: true, placeholder: '请选择' }` |
170
- | `input-number` | `{ max: 10^15-1, min: -(10^15+1), controls: false, placeholder: '请输入', style: {width:'100%'} }` |
171
- | `date-picker` 系列 | `{ style: {width:'100%'} }` + 各子类型专用占位符 |
172
- | `time-picker` / `time-select` | `{ style: {width:'100%'}, placeholder: '请选择' }` |
173
- | `tree-select` | `{ clearable: true, placeholder: '请选择' }` |
174
- | `pro-table` | `{ pagination: {layout:'total,sizes,prev,pager,next,jumper',pageSizes:[10,20,30,40,50,100],background:true}, searchFormConfig: {layout:'grid',expand:{minExpandRows:2,expandStatus:false}}, control: true, addIndexColumn: true }` |
175
- | `pro-form` | `{ grid: { gutter: 24 } }` |
176
- | `pro-form-item` | `{ span: 8 }` |
175
+ | 组件 | 预设默认值 |
176
+ | :---------------------------- | :--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
177
+ | `switch` | `{ modelProp: 'modelValue' }` |
178
+ | `input` | `{ maxlength: 100, clearable: true, placeholder: '请输入' }` |
179
+ | `input.textarea` | `{ maxlength: 200, autosize: {minRows:3,maxRows:6}, showWordLimit: true, clearable: true, placeholder: '请输入' }` |
180
+ | `input.password` | `{ maxlength: 100, clearable: true, showPassword: true, placeholder: '请输入' }` |
181
+ | `select` / `cascader` | `{ clearable: true, placeholder: '请选择' }` |
182
+ | `input-number` | `{ max: 10^15-1, min: -(10^15+1), controls: false, placeholder: '请输入', style: {width:'100%'} }` |
183
+ | `date-picker` 系列 | `{ style: {width:'100%'} }` + 各子类型专用占位符 |
184
+ | `time-picker` / `time-select` | `{ style: {width:'100%'}, placeholder: '请选择' }` |
185
+ | `tree-select` | `{ clearable: true, placeholder: '请选择' }` |
186
+ | `pro-table` | `{ pagination: {layout:'total,sizes,prev,pager,next,jumper',pageSizes:[10,20,30,40,50,100],background:true}, searchFormConfig: {layout:'grid',expand:{minExpandRows:2,expandStatus:false}}, control: true, addIndexColumn: true }` |
187
+ | `pro-form` | `{ grid: { gutter: 24 } }` |
188
+ | `pro-form-item` | `{ span: 8 }` |
177
189
 
178
190
  ### 优先级(高→低)
179
191
 
package/LICENSE ADDED
@@ -0,0 +1,9 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2023-present pro-components
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
6
+
7
+ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
8
+
9
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
package/api.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "generatedAt": "2026-07-06T09:28:50.564Z",
2
+ "generatedAt": "2026-07-09T04:30:17.104Z",
3
3
  "name": "@qin-ui/element-plus-pro",
4
4
  "api": [
5
5
  {
@@ -12,25 +12,25 @@
12
12
  "```vue\n<ProComponentProvider\n:componentVars=\"{ 'input': { placeholder: '请输入' } }\"\n>\n<ProForm :form=\"form\" :fields=\"fields\" />\n</ProComponentProvider>\n```"
13
13
  ]
14
14
  },
15
+ {
16
+ "name": "ContainerFragment",
17
+ "type": "component",
18
+ "package": "@qin-ui/element-plus-pro",
19
+ "signature": "<ContainerFragment>",
20
+ "description": "容器分片渲染组件。用于动态渲染表单行或表单项的外部包裹容器(例如 Grid 行、Col 列等布局容器)。"
21
+ },
15
22
  {
16
23
  "name": "ProForm",
17
24
  "type": "component",
18
25
  "package": "@qin-ui/element-plus-pro",
19
26
  "signature": "<ProForm>",
20
- "description": "@qin-ui/element-plus-pro 配置驱动表单组件\n通过配置驱动的方式快速构建表单,支持:\n- 字段联动、嵌套字段、自定义组件、网格布局",
27
+ "description": "@qin-ui/element-plus-pro 配置驱动表单组件\n架构设计说明 (Architecture Overview)\n[ 数据层 (Core) ] => [ 绑定层 (ProForm) ] => [ 渲染层 (BaseFormItem / BaseField) ]\n1. 数据隔离:ProForm 本身不负责存储和管理表单状态,所有核心状态(formData, fields, 校验规则)\n均交由底层的 `useForm`(@qin-ui/pro-components-core)驱动。\n2. 上下文透传:通过 `provide` 将核心状态下发给子组件,避免了深层嵌套的 Props 传递。\n3. 递归渲染:网格布局和具体字段的解析交由 `<BaseFormItem>` 递归完成,实现了 UI 布局与表单逻辑的解耦。\n通过配置驱动的方式快速构建表单,支持:\n- 字段联动、嵌套字段、自定义组件、网格布局",
21
28
  "typeParams": [
22
29
  {
23
30
  "name": "F"
24
31
  }
25
32
  ]
26
33
  },
27
- {
28
- "name": "ContainerFragment",
29
- "type": "component",
30
- "package": "@qin-ui/element-plus-pro",
31
- "signature": "<ContainerFragment>",
32
- "description": "容器分片渲染组件。用于动态渲染表单行或表单项的外部包裹容器(例如 Grid 行、Col 列等布局容器)。"
33
- },
34
34
  {
35
35
  "name": "SlotComponent",
36
36
  "type": "component",
@@ -59,9 +59,9 @@
59
59
  "name": "useFormData",
60
60
  "type": "function",
61
61
  "package": "@qin-ui/element-plus-pro",
62
- "signature": "export const useFormData = <D extends Data = Data>(\n initFormData?: ExtendWithAny<DeepPartial<D>>\n) =>",
62
+ "signature": "export const useFormData = <D extends Data = Data>(\n initFormData?: ExtendWithAny<DeepPartial<D>>\n): UseFormDataReturn<D> =>",
63
63
  "description": "表单数据处理 Hook\n提供响应式表单数据的管理能力,支持:\n- 响应式数据存储(基于 Vue reactive)\n- 深层路径读写(支持点号分隔,如 'address.city')\n- 类型安全的路径提示(传入泛型 D 后,path 参数可获得类型推导)\n- 父子表单自动注入(非根表单会从注入中获取数据)",
64
- "returns": "{Function} .setFormData(path, value) - 设置指定路径的数据",
64
+ "returns": "{UseFormDataReturn<D>} 表单数据操作对象",
65
65
  "typeParams": [
66
66
  {
67
67
  "name": "D"
@@ -75,15 +75,16 @@
75
75
  "name": "useFields",
76
76
  "type": "function",
77
77
  "package": "@qin-ui/element-plus-pro",
78
- "signature": "export const useFields = _useFields as",
79
- "description": "类型安全的 re-export。将 core useFields 的泛型参数绑定为本地类型:\n- 字段类型 F Field<ComponentName, D>(支持 Element Plus 组件类型推导)\n- FormItem 实例 Element Plus 的 FormItemInstance",
78
+ "signature": "export function useFields<D extends Data = Data>(\n initFields?: Fields<D>\n): UseFieldsReturn<D, Field<ComponentName, D>, FormItemInstance>;",
79
+ "description": "字段配置管理 Hook\n基于 `@qin-ui/pro-components-core` 的 `useFields`,将泛型参数绑定为 Element Plus 的本地类型:\n- 字段类型 F -> `Field<ComponentName, D>`(支持 Element Plus 组件类型推导)\n- FormItem 实例 -> Element Plus 的 `FormItemInstance`\n提供对字段配置数组的增删改查操作,支持:\n- 通过路径字符串或查找函数定位字段\n- 深层嵌套字段的遍历和匹配\n- 字段配置的合并/覆盖更新\n- 字段的添加、插入、删除\n- 父级字段查找\n- `fields` - 字段配置数组(响应式 Ref\\<F[]\\>)\n- `getField(path)` - 获取字段配置,支持路径字符串或查找函数\n- `setField(path, field, options?)` - 更新字段配置,默认合并模式\n- `deleteField(path, options?)` - 删除字段配置\n- `appendField(path, field, options?)` - 在指定字段后追加\n- `prependField(path, field, options?)` - 在指定字段前插入\n- `getParentField(path, options?)` - 获取父级字段配置",
80
+ "returns": "字段操作对象,包含以下属性:",
80
81
  "typeParams": [
81
82
  {
82
83
  "name": "D"
83
84
  }
84
85
  ],
85
86
  "examples": [
86
- "```ts\ninterface User { name: string; age: number }\n\nconst { fields, getField, setField } = useFields<User>([\n{ path: 'name', label: '姓名', component: 'input' },\n{ path: 'age', label: '年龄', component: 'input-number' },\n])\n```"
87
+ "```ts\ninterface User { name: string; age: number }\n\nconst { fields, getField, setField } = useFields<User>([\n{ path: 'name', label: '姓名', component: 'input' },\n{ path: 'age', label: '年龄', component: 'input-number' },\n])\n\n// 通过路径获取\ngetField('name')\n// 通过查找函数获取\ngetField(f => f.label === '姓名')\n// 更新字段(合并模式)\nsetField('name', { label: '用户名', disabled: true })\n```"
87
88
  ]
88
89
  },
89
90
  {
@@ -91,14 +92,14 @@
91
92
  "type": "type",
92
93
  "package": "@qin-ui/element-plus-pro",
93
94
  "signature": "export type UseFields<D extends Data = Data> = ReturnType<typeof useFields<D>>;",
94
- "description": "useFields 返回值类型,固定为本地 Fields<D>"
95
+ "description": "useFields 返回值类型"
95
96
  },
96
97
  {
97
98
  "name": "Form",
98
99
  "type": "type",
99
100
  "package": "@qin-ui/element-plus-pro",
100
101
  "signature": "export type Form<\n D extends Data = Data,\n F extends Field<ComponentName, D> = Field<ComponentName, D>,\n> = _Form<D, F, FormInstance>;",
101
- "description": "在 core Form 类型的基础上:\n1. 将字段类型 F 默认绑定为本地 Field<ComponentName, D>,支持 Element Plus 所有内置组件类型\n2. 将底层表单实例 I 绑定为 Element Plus 的 FormInstance,使 formRef 获得完整的类型提示",
102
+ "description": "表单实例类型\n在 core Form 类型的基础上,将字段类型 F 绑定为本地 Field<ComponentName, D>,\n将底层表单实例 I 绑定为 Element Plus 的 FormInstance,使 formRef 获得完整的类型提示。\n1. `setFormData(path, value)` - 设置指定路径的值<br>\n2. `setFormData(path, prev => newVal)` - 函数式更新<br>\n3. `setFormData({ ... })` - 批量覆盖整个表单",
102
103
  "typeParams": [
103
104
  {
104
105
  "name": "D"
@@ -106,32 +107,36 @@
106
107
  {
107
108
  "name": "F"
108
109
  }
110
+ ],
111
+ "examples": [
112
+ "```ts\ninterface User { name: string; age: number }\nconst form: Form<User> = useForm({ name: '张三', age: 25 })\n\nform.formData.name // 直接读写响应式数据\nform.getFormData('name') // 通过路径读取\nform.setFormData('name', '李四') // 更新数据\nform.formRef.value?.validate() // 访问底层 Form 实例\n```"
109
113
  ]
110
114
  },
111
115
  {
112
116
  "name": "useForm",
113
117
  "type": "function",
114
118
  "package": "@qin-ui/element-plus-pro",
115
- "signature": "export const useForm = _useForm as",
116
- "description": "创建 @qin-ui/element-plus-pro 表单实例的 Hook\n类型安全的 re-export。将 core useForm 的泛型参数绑定为本地类型:\n- 字段类型 F Field<ComponentName, D>(支持 Element Plus 组件类型推导)\n- 表单实例 Element Plus 的 FormInstance",
119
+ "signature": "export function useForm<D extends Data = Data>(\n initFormData?: ExtendWithAny<DeepPartial<D>>,\n initFields?: Field<ComponentName, D>[],\n root?: boolean\n): Form<D, Field<ComponentName, D>>;",
120
+ "description": "创建表单实例的 Hook\n基于 `@qin-ui/pro-components-core` `useForm`,将泛型参数绑定为 Element Plus 的本地类型:\n- 字段类型 F -> `Field<ComponentName, D>`(支持 Element Plus 所有内置组件类型推导)\n- 表单实例 -> Element Plus 的 `FormInstance`(使 formRef 获得完整的类型提示)\n表单实例组合了三个子模块的能力:\n- **useFormData**:表单数据管理(响应式数据、读写、批量更新)\n- **useFields**:字段配置管理(增删改查字段配置,支持嵌套)\n- **useFormRef**:底层 Form 组件实例引用",
121
+ "returns": "{Form<D>} 表单实例,包含数据操作、字段操作和 ref 操作",
117
122
  "typeParams": [
118
123
  {
119
124
  "name": "D"
120
125
  }
121
126
  ],
122
127
  "examples": [
123
- "```ts\ninterface User { name: string; age: number }\n\nconst form = useForm<User>(\n{ name: '张三', age: 25 },\n[\n{ path: 'name', label: '姓名', component: 'input' },\n{ path: 'age', label: '年龄', component: 'input-number' },\n]\n)\n```"
128
+ "```ts\ninterface User { name: string; age: number }\n\n// 方式一:同时传入初始数据和字段\nconst form = useForm<User>(\n{ name: '张三', age: 25 },\n[\n{ path: 'name', label: '姓名', component: 'input' },\n{ path: 'age', label: '年龄', component: 'input-number' },\n],\ntrue\n)\n\n// 方式二:仅设置 root 标识\nconst form = useForm<User>(true)\n\n// 使用\nconst { formData, formRef, fields, setFormData, getField } = form\nsetFormData('name', '李四')\nawait formRef.value?.validate()\n```"
124
129
  ]
125
130
  },
126
131
  {
127
132
  "name": "useFormRef",
128
133
  "type": "function",
129
134
  "package": "@qin-ui/element-plus-pro",
130
- "signature": "export const useFormRef = _useFormRef as",
131
- "description": "类型安全的 re-export。将 core useFormRef 的泛型参数绑定为 Element Plus 的 FormInstance,\n使 formRef 获取到完整的 Element Plus Form 组件 API 类型提示。",
132
- "returns": "{Function} .setFormRef(inst) - 设置表单组件实例",
135
+ "signature": "export function useFormRef(): UseFormRefReturn<FormInstance>",
136
+ "description": "表单组件实例引用 Hook\n基于 `@qin-ui/pro-components-core` 的 `useFormRef`,将泛型参数绑定为 Element Plus 的 `FormInstance`,\n使 formRef 获取到完整的 Element Plus Form 组件 API 类型提示(如 `validate()`、`resetFields()` 等)。\n`formRef` 由 ProForm 组件内部自动通过 `setFormRef` 绑定,无需手动调用。\n- `formRef` — Element Plus Form 组件实例的响应式引用(`Ref<FormInstance | undefined>`)\n- `setFormRef(inst)` — 设置 Form 组件实例,由 ProForm 内部自动调用",
137
+ "returns": "表单组件实例引用管理对象:",
133
138
  "examples": [
134
- "```ts\nconst { formRef, setFormRef } = useFormRef()\nawait formRef.value?.validate()\nformRef.value?.resetFields()\n```"
139
+ "```ts\nconst { formRef, setFormRef } = useFormRef()\n\n// formRef 由 ProForm 自动绑定,可直接使用\nawait formRef.value?.validate()\nformRef.value?.resetFields()\nformRef.value?.scrollToField('username')\n```"
135
140
  ]
136
141
  },
137
142
  {
@@ -190,7 +195,7 @@
190
195
  "type": "type",
191
196
  "package": "@qin-ui/element-plus-pro",
192
197
  "signature": "export type Table<\n D extends Data = Data,\n T extends Data = ExtendWithAny<D>,\n> = Omit<_Table<D, T, Column<T>>, 'dataSource'> &",
193
- "description": "在 core Table 类型的基础上:\n1. 将列类型 C 绑定为本地 Column<T>\n2. dataSource 重命名为 data(Element Plus 使用 data 而非 dataSource",
198
+ "description": "表格实例类型\n在 core Table 类型的基础上,将列类型 C 绑定为本地 Column<T>,\n并将 dataSource 重命名为 data(Element Plus 使用 data 而非 dataSource),\n使 columns 操作获得 Element Plus 表格列的完整属性类型提示。",
194
199
  "typeParams": [
195
200
  {
196
201
  "name": "D"
@@ -198,14 +203,26 @@
198
203
  {
199
204
  "name": "T"
200
205
  }
206
+ ],
207
+ "examples": [
208
+ "```ts\ninterface SearchParams { keyword: string }\ninterface User { name: string; age: number }\n\nconst table: Table<SearchParams, User> = useTable({\ncolumns: [{ prop: 'name', title: '姓名' }],\n})\n\ntable.columns.value // 访问列配置\ntable.setColumn('name', { width: 150 }) // 更新列\ntable.setPageParam({ current: 2 }) // 切换页码\ntable.searchForm.setFormData('keyword', '搜索词') // 操作搜索表单\n```"
201
209
  ]
202
210
  },
203
211
  {
204
212
  "name": "useTable",
205
213
  "type": "function",
206
214
  "package": "@qin-ui/element-plus-pro",
207
- "signature": "export const useTable = <\n D extends Data = Data,\n T extends Data = ExtendWithAny<D>,\n>(\n params: UseTableParams<D, T> = {}",
208
- "description": "创建 @qin-ui/element-plus-pro 表格实例的 Hook\n基于 core useTable 封装,适配 Element Plus 的 API 风格:\n- 数据源使用 `data` 而非 `dataSource`",
215
+ "signature": "export function useTable<\n D extends Data = Data,\n T extends Data = ExtendWithAny<D>,\n>(params: UseTableParams<D, T> = {}): Table<D, T>",
216
+ "description": "创建表格实例的 Hook\n基于 `@qin-ui/pro-components-core` `useTable` 封装,适配 Element Plus 的 API 风格:\n- 数据源使用 `data` 而非 `dataSource`\n是 ProTable 组件的核心 Hook,提供了:\n- 列配置管理(增删改查)\n- 数据源管理\n- 分页管理\n- 搜索表单集成(内部使用 useForm)\n- 查询参数重置",
217
+ "params": [
218
+ {
219
+ "name": "params",
220
+ "type": "object",
221
+ "optional": false,
222
+ "description": "表格配置参数"
223
+ }
224
+ ],
225
+ "returns": "{Table<D, T>} 表格实例",
209
226
  "typeParams": [
210
227
  {
211
228
  "name": "D"
@@ -215,7 +232,7 @@
215
232
  }
216
233
  ],
217
234
  "examples": [
218
- "```ts\ninterface User { name: string; age: number }\n\nconst table = useTable<User>({\ncolumns: [\n{ prop: 'name', title: '姓名', width: 120 },\n{ prop: 'age', title: '年龄', width: 80 },\n],\ndata: [],\npageParam: { current: 1, pageSize: 20, total: 0 },\n})\n```"
235
+ "```ts\ninterface SearchParams { keyword: string }\ninterface User { name: string; age: number; email: string }\n\nconst table = useTable<SearchParams, User>({\ncolumns: [\n{ prop: 'name', title: '姓名', width: 120 },\n{ prop: 'age', title: '年龄', width: 80 },\n],\ndata: [],\npageParam: { current: 1, pageSize: 20, total: 0 },\nsearchParam: { keyword: '' },\nsearchFields: [\n{ path: 'keyword', label: '关键词', component: 'input' },\n],\n})\n```"
219
236
  ]
220
237
  }
221
238
  ]
package/bin/init-ai.mjs CHANGED
File without changes
@@ -1,5 +1,5 @@
1
+ import { getObject } from "@qin-ui/pro-components-core";
1
2
  import { defineComponent, provide, renderSlot } from "vue";
2
- import { g as getObject } from "../core/index-C0Pbv44C.js";
3
3
  const INJECT_CONFIG = {
4
4
  "pro-table": {
5
5
  injectionKey: Symbol(""),
@@ -218,3 +218,4 @@ export {
218
218
  INJECT_COMPONENTS as a,
219
219
  getInjectConfig as g
220
220
  };
221
+ //# sourceMappingURL=index-BGGIWSkO.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index-BGGIWSkO.js","sources":["../../src/components/component-provider/constants/index.ts","../../src/components/component-provider/components/index.vue"],"sourcesContent":["import { RequiredComponentVars } from '../types';\nimport { InjectionKey, Component } from 'vue';\n\nexport type InjectConfigEntry<T = any> = {\n injectionKey: InjectionKey<T>;\n default: T;\n};\n\nexport const INJECT_CONFIG: {\n [key in keyof RequiredComponentVars]: {\n injectionKey: InjectionKey<RequiredComponentVars[key]>;\n default: RequiredComponentVars[key];\n };\n} = {\n 'pro-table': {\n injectionKey: Symbol(''),\n default: {\n pagination: {\n layout: 'total, sizes, prev, pager, next, jumper',\n pageSizes: [10, 20, 30, 40, 50, 100],\n background: true,\n },\n searchFormConfig: {\n layout: 'grid',\n expand: { minExpandRows: 2, expandStatus: false },\n },\n control: true,\n addIndexColumn: true,\n },\n },\n 'pro-form': {\n injectionKey: Symbol(''),\n default: { grid: { gutter: 24 } } as any,\n },\n 'pro-form-item': {\n injectionKey: Symbol(''),\n default: { span: 8 } as any,\n },\n input: {\n injectionKey: Symbol(''),\n default: { maxlength: 100, clearable: true, placeholder: '请输入' },\n },\n 'input.textarea': {\n injectionKey: Symbol(''),\n default: {\n maxlength: 200,\n autosize: { minRows: 3, maxRows: 6 },\n showWordLimit: true,\n clearable: true,\n placeholder: '请输入',\n },\n },\n 'input.password': {\n injectionKey: Symbol(''),\n default: {\n showPassword: true,\n maxlength: 100,\n clearable: true,\n placeholder: '请输入',\n },\n },\n 'input-number': {\n injectionKey: Symbol(''),\n default: {\n max: 10 ** 15 - 1,\n min: -(10 ** 15 + 1),\n controls: false,\n placeholder: '请输入',\n style: { width: '100%' },\n },\n },\n autocomplete: {\n injectionKey: Symbol(''),\n default: { clearable: true, placeholder: '请输入' },\n },\n select: {\n injectionKey: Symbol(''),\n default: { clearable: true, placeholder: '请选择' },\n },\n cascader: {\n injectionKey: Symbol(''),\n default: { clearable: true, placeholder: '请选择' },\n },\n 'date-picker': {\n injectionKey: Symbol(''),\n default: { style: { width: '100%' }, placeholder: '请选择' },\n },\n 'date-picker.date': {\n injectionKey: Symbol(''),\n default: { style: { width: '100%' }, placeholder: '请选择' },\n },\n 'date-picker.dates': {\n injectionKey: Symbol(''),\n default: { style: { width: '100%' }, placeholder: '请选择' },\n },\n 'date-picker.daterange': {\n injectionKey: Symbol(''),\n default: {\n style: { width: '100%' },\n startPlaceholder: '开始日期',\n endPlaceholder: '结束日期',\n },\n },\n 'date-picker.week': {\n injectionKey: Symbol(''),\n default: { style: { width: '100%' }, placeholder: '请选择' },\n },\n 'date-picker.month': {\n injectionKey: Symbol(''),\n default: { style: { width: '100%' }, placeholder: '请选择' },\n },\n 'date-picker.monthrange': {\n injectionKey: Symbol(''),\n default: {\n style: { width: '100%' },\n startPlaceholder: '开始月份',\n endPlaceholder: '结束月份',\n },\n },\n 'date-picker.months': {\n injectionKey: Symbol(''),\n default: { style: { width: '100%' }, placeholder: '请选择' },\n },\n 'date-picker.yearrange': {\n injectionKey: Symbol(''),\n default: {\n style: { width: '100%' },\n startPlaceholder: '开始年份',\n endPlaceholder: '结束年份',\n },\n },\n 'date-picker.year': {\n injectionKey: Symbol(''),\n default: { style: { width: '100%' }, placeholder: '请选择' },\n },\n 'date-picker.years': {\n injectionKey: Symbol(''),\n default: { style: { width: '100%' }, placeholder: '请选择' },\n },\n 'date-picker.datetime': {\n injectionKey: Symbol(''),\n default: { style: { width: '100%' }, placeholder: '请选择' },\n },\n 'date-picker.datetimerange': {\n injectionKey: Symbol(''),\n default: {\n style: { width: '100%' },\n startPlaceholder: '开始时间',\n endPlaceholder: '结束时间',\n },\n },\n 'time-picker': {\n injectionKey: Symbol(''),\n default: { style: { width: '100%' }, placeholder: '请选择' },\n },\n 'time-select': {\n injectionKey: Symbol(''),\n default: { style: { width: '100%' }, placeholder: '请选择' },\n },\n 'checkbox-group': {\n injectionKey: Symbol(''),\n default: {},\n },\n 'radio-group': {\n injectionKey: Symbol(''),\n default: {},\n },\n switch: {\n injectionKey: Symbol(''),\n default: { modelProp: 'modelValue' },\n },\n slider: {\n injectionKey: Symbol(''),\n default: {},\n },\n 'tree-select': {\n injectionKey: Symbol(''),\n default: { clearable: true, placeholder: '请选择' },\n },\n transfer: {\n injectionKey: Symbol(''),\n default: {},\n },\n};\n\nexport const INJECT_COMPONENTS: InjectionKey<\n Partial<Record<string, Component>>\n> = Symbol('INJECT_COMPONENTS');\n\nconst DYNAMIC_INJECT_CONFIG: Record<string, InjectConfigEntry> =\n Object.create(null);\n\nexport const getInjectConfig = (key: string): InjectConfigEntry | undefined => {\n return (\n (INJECT_CONFIG as Record<string, InjectConfigEntry>)[key] ||\n DYNAMIC_INJECT_CONFIG[key]\n );\n};\n\nexport const ensureInjectConfig = (key: string): InjectConfigEntry => {\n const existing = getInjectConfig(key);\n if (existing) return existing;\n const created: InjectConfigEntry = {\n injectionKey: Symbol(`dynamic:${key}`),\n default: {},\n };\n DYNAMIC_INJECT_CONFIG[key] = created;\n return created;\n};\n","<script lang=\"ts\" setup>\n/**\n * @component ProComponentProvider\n * @description @qin-ui/element-plus-pro 全局配置提供者组件\n *\n * 用于在组件树的顶层配置所有子组件的全局默认属性。\n *\n * @param {ComponentVars} [componentVars] - 组件全局配置变量\n * @param {Record<ComponentName, any>} [componentMap] - 自定义组件映射\n *\n * @slot default - 子组件内容\n *\n * @example\n * ```vue\n * <ProComponentProvider\n * :componentVars=\"{ 'input': { placeholder: '请输入' } }\"\n * >\n * <ProForm :form=\"form\" :fields=\"fields\" />\n * </ProComponentProvider>\n * ```\n \n * @public\n */\nimport { ComponentVars } from '../types';\nimport { INJECT_COMPONENTS, ensureInjectConfig } from '../constants';\nimport { provide } from 'vue';\nimport { getObject } from '../../../shared/core';\nimport { ComponentName } from '../../form/constants';\n\ntype ComponentMap = Partial<Record<ComponentName, any>>;\n\ndefineOptions({\n name: 'ProComponentProvider',\n inheritAttrs: false,\n});\n\ntype Props = {\n /** 组件全局配置,可配置所有内置组件的默认属性 */\n componentVars?: ComponentVars;\n /** 自定义组件映射,用于替换或扩展内置组件 */\n componentMap?: ComponentMap;\n};\n\nconst props = defineProps<Props>();\n\n/*\n * 遍历 componentVars 的每个 key,获取或创建对应的 inject 配置\n * 将用户提供的值合并到默认值上,通过 provide 注入到子组件树\n * 子组件通过 inject(config.injectionKey) 获取合并后的配置\n */\nif (props.componentVars) {\n Object.entries(props.componentVars).forEach(([key, val]) => {\n const config = ensureInjectConfig(key);\n // 用户配置覆盖默认值\n provide(config.injectionKey, { ...config.default, ...getObject(val) });\n });\n}\n\n// 注入自定义组件映射,BaseField 在解析组件时会优先使用此映射\nif (props.componentMap) {\n provide(INJECT_COMPONENTS, props.componentMap);\n}\n</script>\n\n<template>\n <slot />\n</template>\n"],"names":["_renderSlot"],"mappings":";;AAQO,MAAM,gBAKT;AAAA,EACF,aAAa;AAAA,IACX,cAAc,OAAO,EAAE;AAAA,IACvB,SAAS;AAAA,MACP,YAAY;AAAA,QACV,QAAQ;AAAA,QACR,WAAW,CAAC,IAAI,IAAI,IAAI,IAAI,IAAI,GAAG;AAAA,QACnC,YAAY;AAAA,MAAA;AAAA,MAEd,kBAAkB;AAAA,QAChB,QAAQ;AAAA,QACR,QAAQ,EAAE,eAAe,GAAG,cAAc,MAAA;AAAA,MAAM;AAAA,MAElD,SAAS;AAAA,MACT,gBAAgB;AAAA,IAAA;AAAA,EAClB;AAAA,EAEF,YAAY;AAAA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;AAAA,IACvB,SAAS,EAAE,WAAW,MAAM,aAAa,MAAA;AAAA,EAAM;AAAA,EAEjD,UAAU;AAAA,IACR,cAAc,OAAO,EAAE;AAAA,IACvB,SAAS,CAAA;AAAA,EAAC;AAEd;AAEO,MAAM,oBAET,OAAO,mBAAmB;AAE9B,MAAM,wBACJ,uBAAO,OAAO,IAAI;AAEb,MAAM,kBAAkB,CAAC,QAA+C;AAC7E,SACG,cAAoD,GAAG,KACxD,sBAAsB,GAAG;AAE7B;AAEO,MAAM,qBAAqB,CAAC,QAAmC;AACpE,QAAM,WAAW,gBAAgB,GAAG;AACpC,MAAI,SAAU,QAAO;AACrB,QAAM,UAA6B;AAAA,IACjC,cAAc,OAAO,WAAW,GAAG,EAAE;AAAA,IACrC,SAAS,CAAA;AAAA,EAAC;AAEZ,wBAAsB,GAAG,IAAI;AAC7B,SAAO;AACT;;;;;;;;;;;;ACrKA,UAAM,QAAQ;AAOd,QAAI,MAAM,eAAe;AACvB,aAAO,QAAQ,MAAM,aAAa,EAAE,QAAQ,CAAC,CAAC,KAAK,GAAG,MAAM;AAC1D,cAAM,SAAS,mBAAmB,GAAG;AAErC,gBAAQ,OAAO,cAAc,EAAE,GAAG,OAAO,SAAS,GAAG,UAAU,GAAG,GAAG;AAAA,MACvE,CAAC;AAAA,IACH;AAGA,QAAI,MAAM,cAAc;AACtB,cAAQ,mBAAmB,MAAM,YAAY;AAAA,IAC/C;;aAIEA,WAAQ,KAAA,QAAA,SAAA;AAAA;;;"}
@@ -1,4 +1,5 @@
1
- import { _ } from "./index-Bmx9Q9Q-.js";
1
+ import { _ } from "./index-BGGIWSkO.js";
2
2
  export {
3
3
  _ as default
4
4
  };
5
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
@@ -0,0 +1,27 @@
1
+ import { ComponentVars } from '../types';
2
+ import { ComponentName } from '../../form/constants';
3
+ type ComponentMap = Partial<Record<ComponentName, any>>;
4
+ type Props = {
5
+ /** 组件全局配置,可配置所有内置组件的默认属性 */
6
+ componentVars?: ComponentVars;
7
+ /** 自定义组件映射,用于替换或扩展内置组件 */
8
+ componentMap?: ComponentMap;
9
+ };
10
+ declare function __VLS_template(): {
11
+ attrs: Partial<{}>;
12
+ slots: {
13
+ default?(_: {}): any;
14
+ };
15
+ refs: {};
16
+ rootEl: any;
17
+ };
18
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
19
+ declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
20
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
21
+ export default _default;
22
+ type __VLS_WithTemplateSlots<T, S> = T & {
23
+ new (): {
24
+ $slots: S;
25
+ };
26
+ };
27
+ //# sourceMappingURL=index.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/component-provider/components/index.vue"],"names":[],"mappings":"AAqEA;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAIzC,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAErD,KAAK,YAAY,GAAG,OAAO,CAAC,MAAM,CAAC,aAAa,EAAE,GAAG,CAAC,CAAC,CAAC;AAOxD,KAAK,KAAK,GAAG;IACX,4BAA4B;IAC5B,aAAa,CAAC,EAAE,aAAa,CAAC;IAC9B,0BAA0B;IAC1B,YAAY,CAAC,EAAE,YAAY,CAAC;CAC7B,CAAC;AAyBF,iBAAS,cAAc;WAoBT,OAAO,IAA6B;;yBAVrB,GAAG;;;;EAe/B;AAQD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe,sRAMnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAQpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -0,0 +1,16 @@
1
+ import { RequiredComponentVars } from '../types';
2
+ import { InjectionKey, Component } from 'vue';
3
+ export type InjectConfigEntry<T = any> = {
4
+ injectionKey: InjectionKey<T>;
5
+ default: T;
6
+ };
7
+ export declare const INJECT_CONFIG: {
8
+ [key in keyof RequiredComponentVars]: {
9
+ injectionKey: InjectionKey<RequiredComponentVars[key]>;
10
+ default: RequiredComponentVars[key];
11
+ };
12
+ };
13
+ export declare const INJECT_COMPONENTS: InjectionKey<Partial<Record<string, Component>>>;
14
+ export declare const getInjectConfig: (key: string) => InjectConfigEntry | undefined;
15
+ export declare const ensureInjectConfig: (key: string) => InjectConfigEntry;
16
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/component-provider/constants/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,UAAU,CAAC;AACjD,OAAO,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,KAAK,CAAC;AAE9C,MAAM,MAAM,iBAAiB,CAAC,CAAC,GAAG,GAAG,IAAI;IACvC,YAAY,EAAE,YAAY,CAAC,CAAC,CAAC,CAAC;IAC9B,OAAO,EAAE,CAAC,CAAC;CACZ,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE;KACzB,GAAG,IAAI,MAAM,qBAAqB,GAAG;QACpC,YAAY,EAAE,YAAY,CAAC,qBAAqB,CAAC,GAAG,CAAC,CAAC,CAAC;QACvD,OAAO,EAAE,qBAAqB,CAAC,GAAG,CAAC,CAAC;KACrC;CA2KF,CAAC;AAEF,eAAO,MAAM,iBAAiB,EAAE,YAAY,CAC1C,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,CAAC,CACL,CAAC;AAKhC,eAAO,MAAM,eAAe,GAAI,KAAK,MAAM,KAAG,iBAAiB,GAAG,SAKjE,CAAC;AAEF,eAAO,MAAM,kBAAkB,GAAI,KAAK,MAAM,KAAG,iBAShD,CAAC"}
@@ -0,0 +1,4 @@
1
+ import { default as ComponentProvider } from './components/index.vue';
2
+ export { type ComponentVars } from './types';
3
+ export default ComponentProvider;
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/component-provider/index.ts"],"names":[],"mappings":"AAAA,OAAO,iBAAiB,MAAM,wBAAwB,CAAC;AAGvD,OAAO,EAAE,KAAK,aAAa,EAAE,MAAM,SAAS,CAAC;AAE7C,eAAe,iBAAiB,CAAC"}
@@ -0,0 +1,35 @@
1
+ import { GridItemProps, FormItemProps, TableProps, PaginationProps, DatePicker } from '../../../shared/ui';
2
+ import { ComponentName, GetComponentType } from '../../form/constants';
3
+ import { Base, Grid } from '../../form/types';
4
+ import { ProFormProps } from '../../form';
5
+ import { AllowedComponentProps } from 'vue';
6
+ import { ComponentProps } from 'vue-component-type-helpers';
7
+ type PP<T extends Record<string, any>> = Partial<T & AllowedComponentProps>;
8
+ type FP<T extends Record<string, any>> = Partial<T & Pick<Base, 'valueFormatter' | 'componentContainer' | 'modelProp' | 'componentClass' | 'componentStyle'> & AllowedComponentProps>;
9
+ type DatePickerType = NonNullable<ComponentProps<typeof DatePicker>['type']>;
10
+ export type RequiredComponentVars = {
11
+ 'pro-table': PP<TableProps & {
12
+ pagination?: Partial<PaginationProps>;
13
+ control?: boolean | {
14
+ sizeControl?: boolean;
15
+ columnControl?: boolean;
16
+ };
17
+ searchFormConfig?: any;
18
+ immediateSearch?: boolean;
19
+ addIndexColumn?: boolean;
20
+ tableContainer?: any;
21
+ }>;
22
+ 'pro-form': PP<Omit<ProFormProps, 'form' | 'grid'> & {
23
+ grid: Exclude<Grid, undefined | boolean>;
24
+ }>;
25
+ 'pro-form-item': PP<FormItemProps & Pick<GridItemProps, 'span' | 'xs' | 'sm' | 'md' | 'lg' | 'xl'> & Pick<Base, 'formItemContainer'>>;
26
+ 'input.password': FP<ComponentProps<GetComponentType<'input'>>>;
27
+ 'input.textarea': FP<ComponentProps<GetComponentType<'input'>>>;
28
+ } & {
29
+ [K in DatePickerType as `date-picker.${K}`]: FP<ComponentProps<GetComponentType<'date-picker'>>>;
30
+ } & {
31
+ [K in Exclude<ComponentName, 'custom'>]: FP<ComponentProps<GetComponentType<K>>>;
32
+ };
33
+ export type ComponentVars = Partial<RequiredComponentVars>;
34
+ export {};
35
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/component-provider/types/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,aAAa,EACb,aAAa,EACb,UAAU,EACV,eAAe,EACf,UAAU,EACX,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,aAAa,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AACvE,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAC9C,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAC1C,OAAO,EAAE,qBAAqB,EAAE,MAAM,KAAK,CAAC;AAC5C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAEjE,KAAK,EAAE,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,IAAI,OAAO,CAAC,CAAC,GAAG,qBAAqB,CAAC,CAAC;AAE5E,KAAK,EAAE,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAA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AC,IAAI,cAAc,IAAI,eAAe,CAAC,EAAE,GAAG,EAAE,CAC7C,cAAc,CAAC,gBAAgB,CAAC,aAAa,CAAC,CAAC,CAChD;CACF,GAAG;KACD,CAAC,IAAI,OAAO,CAAC,aAAa,EAAE,QAAQ,CAAC,GAAG,EAAE,CACzC,cAAc,CAAC,gBAAgB,CAAC,CAAC,CAAC,CAAC,CACpC;CACF,CAAC;AAEF,MAAM,MAAM,aAAa,GAAG,OAAO,CAAC,qBAAqB,CAAC,CAAC"}
@@ -0,0 +1,13 @@
1
+ import { Component } from 'vue';
2
+ type Props = {
3
+ component?: string | Component;
4
+ path?: string;
5
+ };
6
+ declare const _default: import('vue').DefineComponent<Props, {
7
+ getComponentRef: () => any;
8
+ getComponentComputedProps: () => any;
9
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
10
+ componentRef: unknown;
11
+ }, any>;
12
+ export default _default;
13
+ //# sourceMappingURL=index.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/form/components/BaseField/index.vue"],"names":[],"mappings":"AAuLA;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,OAAO,EACL,KAAK,SAAS,EAMf,MAAM,KAAK,CAAC;AAYb,KAAK,KAAK,GAAG;IACX,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC/B,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,CAAC;;;qCA4G6D,GAAG;;;;AAsGlE,wBAQG"}
@@ -0,0 +1,3 @@
1
+ import { Field } from '../../../types';
2
+ export declare const getInitProps: (field: Field) => Record<string, any>;
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/form/components/BaseField/utils/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAIvC,eAAO,MAAM,YAAY,GAAI,OAAO,KAAK,KAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAU7D,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { Fields, Grid } from '../../types';
2
+ type Props = {
3
+ grid?: Grid;
4
+ fields?: Fields;
5
+ disabled?: boolean;
6
+ };
7
+ declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
8
+ export default _default;
9
+ //# sourceMappingURL=index.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/form/components/BaseFormItem/index.vue"],"names":[],"mappings":"AAgNA,OAAO,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,aAAa,CAAC;AAQhD,KAAK,KAAK,GAAG;IACX,IAAI,CAAC,EAAE,IAAI,CAAC;IACZ,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,CAAC;;AA8QF,wBAMG"}
@@ -0,0 +1,23 @@
1
+ import { ContainerComponent } from '../../types';
2
+ type Props = {
3
+ component?: ContainerComponent;
4
+ };
5
+ declare function __VLS_template(): {
6
+ attrs: Partial<{}>;
7
+ slots: {
8
+ default?(_: {}): any;
9
+ default?(_: {}): any;
10
+ };
11
+ refs: {};
12
+ rootEl: any;
13
+ };
14
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
15
+ declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
16
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
17
+ export default _default;
18
+ type __VLS_WithTemplateSlots<T, S> = T & {
19
+ new (): {
20
+ $slots: S;
21
+ };
22
+ };
23
+ //# sourceMappingURL=index.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/form/components/ContainerFragment/index.vue"],"names":[],"mappings":"AA0BA;;;;;GAKG;AACH,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AAEtD,KAAK,KAAK,GAAG;IACX,SAAS,CAAC,EAAE,kBAAkB,CAAC;CAChC,CAAC;AASF,iBAAS,cAAc;WAoCT,OAAO,IAA6B;;yBAZrB,GAAG;yBACH,GAAG;;;;EAgB/B;AAQD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe,sRAMnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAQpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -0,0 +1,31 @@
1
+ import { GridItemProps, FormItemProps } from '../../../../shared/ui';
2
+ import { Base, Field } from '../../types';
3
+ import { FORM_ITEM_SLOT_KEYS } from '../../constants';
4
+ type Props = {
5
+ field: Field;
6
+ };
7
+ declare function __VLS_template(): {
8
+ attrs: Partial<{}>;
9
+ slots: {
10
+ default?(_: {
11
+ gridItemProps: GridItemProps;
12
+ formItemProps: FormItemProps & {
13
+ container?: Base["formItemContainer"];
14
+ };
15
+ formItemSlots: Record<(typeof FORM_ITEM_SLOT_KEYS)[number], any>;
16
+ componentProps: Record<string, any>;
17
+ }): any;
18
+ };
19
+ refs: {};
20
+ rootEl: any;
21
+ };
22
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
23
+ declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
24
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
25
+ export default _default;
26
+ type __VLS_WithTemplateSlots<T, S> = T & {
27
+ new (): {
28
+ $slots: S;
29
+ };
30
+ };
31
+ //# sourceMappingURL=index.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/form/components/GroupedFieldAttrs/index.vue"],"names":[],"mappings":"AA0IA,OAAO,EACL,aAAa,EACb,aAAa,EAGd,MAAM,uBAAuB,CAAC;AAE/B,OAAO,KAAK,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AAC/C,OAAO,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AAMtD,KAAK,KAAK,GAAG;IACX,KAAK,EAAE,KAAK,CAAC;CACd,CAAC;AA4EF,iBAAS,cAAc;WAqBT,OAAO,IAA6B;;;2BAzFjC,aAAa;2BACb,aAAa,GAAG;gBAAE,SAAS,CAAC,EAAE,IAAI,CAAC,mBAAmB,CAAC,CAAA;aAAE;2BACzD,MAAM,CAAC,CAAC,OAAO,mBAAmB,EAAE,MAAM,CAAC,EAAE,GAAG,CAAC;4BAChD,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;YA4ER,GAAG;;;;EAe/B;AASD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe,sRAMnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAQpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}