@qin-ui/element-plus-pro 1.2.3 → 1.3.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 (177) hide show
  1. package/README.md +5 -5
  2. package/api.json +1 -25
  3. package/es/__tests__/BaseField.spec.d.ts +2 -0
  4. package/es/__tests__/BaseField.spec.d.ts.map +1 -0
  5. package/es/__tests__/BaseFormItem.spec.d.ts +2 -0
  6. package/es/__tests__/BaseFormItem.spec.d.ts.map +1 -0
  7. package/es/__tests__/ProForm.spec.d.ts +2 -0
  8. package/es/__tests__/ProForm.spec.d.ts.map +1 -0
  9. package/es/__tests__/ProTable.spec.d.ts +2 -0
  10. package/es/__tests__/ProTable.spec.d.ts.map +1 -0
  11. package/es/__tests__/SearchForm.spec.d.ts +2 -0
  12. package/es/__tests__/SearchForm.spec.d.ts.map +1 -0
  13. package/es/__tests__/controls.spec.d.ts +2 -0
  14. package/es/__tests__/controls.spec.d.ts.map +1 -0
  15. package/es/__tests__/helpers/fixtures.d.ts +15 -0
  16. package/es/__tests__/helpers/fixtures.d.ts.map +1 -0
  17. package/es/__tests__/helpers/mount.d.ts +38 -0
  18. package/es/__tests__/helpers/mount.d.ts.map +1 -0
  19. package/es/__tests__/hooks-locale.spec.d.ts +2 -0
  20. package/es/__tests__/hooks-locale.spec.d.ts.map +1 -0
  21. package/es/__tests__/index.spec.d.ts +2 -0
  22. package/es/__tests__/index.spec.d.ts.map +1 -0
  23. package/es/__tests__/integration.spec.d.ts +2 -0
  24. package/es/__tests__/integration.spec.d.ts.map +1 -0
  25. package/es/__tests__/setup.d.ts +14 -0
  26. package/es/__tests__/setup.d.ts.map +1 -0
  27. package/es/element-plus-pro.css +14 -14
  28. package/es/index.js +478 -358
  29. package/es/index.js.map +1 -1
  30. package/es/{components → src/components}/component-provider/components/index.vue.d.ts +5 -1
  31. package/es/src/components/component-provider/components/index.vue.d.ts.map +1 -0
  32. package/es/src/components/component-provider/constants/index.d.ts.map +1 -0
  33. package/es/src/components/component-provider/index.d.ts.map +1 -0
  34. package/es/{components → src/components}/component-provider/types/index.d.ts +9 -5
  35. package/es/src/components/component-provider/types/index.d.ts.map +1 -0
  36. package/es/{components → src/components}/form/components/BaseField/index.vue.d.ts +4 -1
  37. package/es/src/components/form/components/BaseField/index.vue.d.ts.map +1 -0
  38. package/es/src/components/form/components/BaseField/utils/index.d.ts +5 -0
  39. package/es/src/components/form/components/BaseField/utils/index.d.ts.map +1 -0
  40. package/es/{components → src/components}/form/components/BaseFormItem/index.vue.d.ts +4 -2
  41. package/es/src/components/form/components/BaseFormItem/index.vue.d.ts.map +1 -0
  42. package/es/src/components/form/components/ContainerFragment/index.vue.d.ts.map +1 -0
  43. package/es/src/components/form/components/ProForm/index.vue.d.ts.map +1 -0
  44. package/es/src/components/form/components/SlotComponent/index.vue.d.ts.map +1 -0
  45. package/es/src/components/form/components/index.d.ts.map +1 -0
  46. package/es/{components → src/components}/form/constants/index.d.ts +1 -1
  47. package/es/src/components/form/constants/index.d.ts.map +1 -0
  48. package/es/src/components/form/hooks/index.d.ts.map +1 -0
  49. package/es/src/components/form/hooks/useFields.d.ts.map +1 -0
  50. package/es/src/components/form/hooks/useForm.d.ts.map +1 -0
  51. package/es/src/components/form/hooks/useFormRef.d.ts.map +1 -0
  52. package/es/src/components/form/hooks/useGroupFieldAttrs.d.ts +18 -0
  53. package/es/src/components/form/hooks/useGroupFieldAttrs.d.ts.map +1 -0
  54. package/es/src/components/form/index.d.ts.map +1 -0
  55. package/es/{components → src/components}/form/types/index.d.ts +26 -2
  56. package/es/src/components/form/types/index.d.ts.map +1 -0
  57. package/es/{components → src/components}/table/components/ColumnControl.vue.d.ts +4 -1
  58. package/es/src/components/table/components/ColumnControl.vue.d.ts.map +1 -0
  59. package/es/src/components/table/components/DefaultSearchFormContainer.vue.d.ts.map +1 -0
  60. package/es/src/components/table/components/DefaultTableContainer.vue.d.ts.map +1 -0
  61. package/es/src/components/table/components/ProTable.vue.d.ts.map +1 -0
  62. package/es/{components → src/components}/table/components/SearchForm.vue.d.ts +14 -4
  63. package/es/src/components/table/components/SearchForm.vue.d.ts.map +1 -0
  64. package/es/src/components/table/components/SizeControl.vue.d.ts.map +1 -0
  65. package/es/src/components/table/components/TableColumnRenderer.vue.d.ts.map +1 -0
  66. package/es/src/components/table/components/icons/ColumnHeightOutlined.vue.d.ts.map +1 -0
  67. package/es/src/components/table/components/icons/DownOutlined.vue.d.ts.map +1 -0
  68. package/es/src/components/table/components/icons/FilterOutlined.vue.d.ts.map +1 -0
  69. package/es/src/components/table/components/index.d.ts.map +1 -0
  70. package/es/src/components/table/index.d.ts.map +1 -0
  71. package/es/src/components/table/types/index.d.ts.map +1 -0
  72. package/es/src/components/table/useTable.d.ts.map +1 -0
  73. package/es/{index.d.ts → src/index.d.ts} +1 -1
  74. package/es/src/index.d.ts.map +1 -0
  75. package/es/src/locale/en-US.d.ts.map +1 -0
  76. package/es/src/locale/index.d.ts.map +1 -0
  77. package/es/src/locale/zh-CN.d.ts.map +1 -0
  78. package/es/src/locale/zh-TW.d.ts.map +1 -0
  79. package/es/src/shared/core/index.d.ts +6 -0
  80. package/es/src/shared/core/index.d.ts.map +1 -0
  81. package/es/{shared → src/shared}/ui/index.d.ts +2 -0
  82. package/es/src/shared/ui/index.d.ts.map +1 -0
  83. package/package.json +8 -3
  84. package/src/components/component-provider/components/index.vue +37 -8
  85. package/src/components/component-provider/constants/index.ts +2 -2
  86. package/src/components/component-provider/types/index.ts +9 -5
  87. package/src/components/form/components/BaseField/index.vue +67 -35
  88. package/src/components/form/components/BaseField/utils/index.ts +6 -11
  89. package/src/components/form/components/BaseFormItem/index.vue +87 -100
  90. package/src/components/form/components/ProForm/index.vue +72 -18
  91. package/src/components/form/constants/index.ts +1 -5
  92. package/src/components/form/hooks/useGroupFieldAttrs.ts +123 -0
  93. package/src/components/form/types/index.ts +26 -2
  94. package/src/components/table/components/ColumnControl.vue +18 -24
  95. package/src/components/table/components/ProTable.vue +112 -57
  96. package/src/components/table/components/SearchForm.vue +85 -60
  97. package/src/components/table/components/SizeControl.vue +2 -2
  98. package/src/components/table/components/TableColumnRenderer.vue +12 -9
  99. package/src/components/table/useTable.ts +12 -7
  100. package/src/index.ts +1 -1
  101. package/src/locale/index.ts +6 -2
  102. package/src/shared/core/index.ts +4 -3
  103. package/src/shared/ui/index.ts +11 -5
  104. package/es/components/component-provider/components/index.vue.d.ts.map +0 -1
  105. package/es/components/component-provider/constants/index.d.ts.map +0 -1
  106. package/es/components/component-provider/index.d.ts.map +0 -1
  107. package/es/components/component-provider/types/index.d.ts.map +0 -1
  108. package/es/components/form/components/BaseField/index.vue.d.ts.map +0 -1
  109. package/es/components/form/components/BaseField/utils/index.d.ts +0 -5
  110. package/es/components/form/components/BaseField/utils/index.d.ts.map +0 -1
  111. package/es/components/form/components/BaseFormItem/index.vue.d.ts.map +0 -1
  112. package/es/components/form/components/ContainerFragment/index.vue.d.ts.map +0 -1
  113. package/es/components/form/components/GroupedFieldAttrs/index.vue.d.ts +0 -31
  114. package/es/components/form/components/GroupedFieldAttrs/index.vue.d.ts.map +0 -1
  115. package/es/components/form/components/PathProvider/index.vue.d.ts +0 -24
  116. package/es/components/form/components/PathProvider/index.vue.d.ts.map +0 -1
  117. package/es/components/form/components/ProForm/index.vue.d.ts.map +0 -1
  118. package/es/components/form/components/SlotComponent/index.vue.d.ts.map +0 -1
  119. package/es/components/form/components/index.d.ts.map +0 -1
  120. package/es/components/form/constants/index.d.ts.map +0 -1
  121. package/es/components/form/hooks/index.d.ts.map +0 -1
  122. package/es/components/form/hooks/useFields.d.ts.map +0 -1
  123. package/es/components/form/hooks/useForm.d.ts.map +0 -1
  124. package/es/components/form/hooks/useFormRef.d.ts.map +0 -1
  125. package/es/components/form/index.d.ts.map +0 -1
  126. package/es/components/form/types/index.d.ts.map +0 -1
  127. package/es/components/table/components/ColumnControl.vue.d.ts.map +0 -1
  128. package/es/components/table/components/DefaultSearchFormContainer.vue.d.ts.map +0 -1
  129. package/es/components/table/components/DefaultTableContainer.vue.d.ts.map +0 -1
  130. package/es/components/table/components/ProTable.vue.d.ts.map +0 -1
  131. package/es/components/table/components/SearchForm.vue.d.ts.map +0 -1
  132. package/es/components/table/components/SizeControl.vue.d.ts.map +0 -1
  133. package/es/components/table/components/TableColumnRenderer.vue.d.ts.map +0 -1
  134. package/es/components/table/components/icons/ColumnHeightOutlined.vue.d.ts.map +0 -1
  135. package/es/components/table/components/icons/DownOutlined.vue.d.ts.map +0 -1
  136. package/es/components/table/components/icons/FilterOutlined.vue.d.ts.map +0 -1
  137. package/es/components/table/components/index.d.ts.map +0 -1
  138. package/es/components/table/index.d.ts.map +0 -1
  139. package/es/components/table/types/index.d.ts.map +0 -1
  140. package/es/components/table/useTable.d.ts.map +0 -1
  141. package/es/index.d.ts.map +0 -1
  142. package/es/locale/en-US.d.ts.map +0 -1
  143. package/es/locale/index.d.ts.map +0 -1
  144. package/es/locale/zh-CN.d.ts.map +0 -1
  145. package/es/locale/zh-TW.d.ts.map +0 -1
  146. package/es/shared/core/index.d.ts +0 -6
  147. package/es/shared/core/index.d.ts.map +0 -1
  148. package/es/shared/ui/index.d.ts.map +0 -1
  149. package/src/components/form/components/GroupedFieldAttrs/index.vue +0 -115
  150. package/src/components/form/components/PathProvider/index.vue +0 -19
  151. /package/es/{components → src/components}/component-provider/constants/index.d.ts +0 -0
  152. /package/es/{components → src/components}/component-provider/index.d.ts +0 -0
  153. /package/es/{components → src/components}/form/components/ContainerFragment/index.vue.d.ts +0 -0
  154. /package/es/{components → src/components}/form/components/ProForm/index.vue.d.ts +0 -0
  155. /package/es/{components → src/components}/form/components/SlotComponent/index.vue.d.ts +0 -0
  156. /package/es/{components → src/components}/form/components/index.d.ts +0 -0
  157. /package/es/{components → src/components}/form/hooks/index.d.ts +0 -0
  158. /package/es/{components → src/components}/form/hooks/useFields.d.ts +0 -0
  159. /package/es/{components → src/components}/form/hooks/useForm.d.ts +0 -0
  160. /package/es/{components → src/components}/form/hooks/useFormRef.d.ts +0 -0
  161. /package/es/{components → src/components}/form/index.d.ts +0 -0
  162. /package/es/{components → src/components}/table/components/DefaultSearchFormContainer.vue.d.ts +0 -0
  163. /package/es/{components → src/components}/table/components/DefaultTableContainer.vue.d.ts +0 -0
  164. /package/es/{components → src/components}/table/components/ProTable.vue.d.ts +0 -0
  165. /package/es/{components → src/components}/table/components/SizeControl.vue.d.ts +0 -0
  166. /package/es/{components → src/components}/table/components/TableColumnRenderer.vue.d.ts +0 -0
  167. /package/es/{components → src/components}/table/components/icons/ColumnHeightOutlined.vue.d.ts +0 -0
  168. /package/es/{components → src/components}/table/components/icons/DownOutlined.vue.d.ts +0 -0
  169. /package/es/{components → src/components}/table/components/icons/FilterOutlined.vue.d.ts +0 -0
  170. /package/es/{components → src/components}/table/components/index.d.ts +0 -0
  171. /package/es/{components → src/components}/table/index.d.ts +0 -0
  172. /package/es/{components → src/components}/table/types/index.d.ts +0 -0
  173. /package/es/{components → src/components}/table/useTable.d.ts +0 -0
  174. /package/es/{locale → src/locale}/en-US.d.ts +0 -0
  175. /package/es/{locale → src/locale}/index.d.ts +0 -0
  176. /package/es/{locale → src/locale}/zh-CN.d.ts +0 -0
  177. /package/es/{locale → src/locale}/zh-TW.d.ts +0 -0
@@ -1 +0,0 @@
1
- {"version":3,"file":"DefaultSearchFormContainer.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/table/components/DefaultSearchFormContainer.vue"],"names":[],"mappings":"AAkBA,iBAAS,cAAc;WA2BT,OAAO,IAA6B;;yBAVrB,GAAG;;;;EAe/B;AAOD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe,0RAMnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAEpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"DefaultTableContainer.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/table/components/DefaultTableContainer.vue"],"names":[],"mappings":"AAkBA,iBAAS,cAAc;WA2BT,OAAO,IAA6B;;yBAVrB,GAAG;;;;EAe/B;AAOD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe,0RAMnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAEpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"ProTable.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/table/components/ProTable.vue"],"names":[],"mappings":"AAyaA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AACH,OAAO,EAEL,KAAK,eAAe,EAEpB,KAAK,UAAU,EAGhB,MAAM,oBAAoB,CAAC;AAY5B,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAE3D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACxD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AAEzC,OAAO,EAIL,IAAI,EACL,MAAM,sBAAsB,CAAC;AAO9B,OAAO,KAAK,EAAE,OAAO,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAC;yBAG5C,CAAC,SAAS,KAAK,CAAC,GAAG,CAAC,GAAG,KAAK,EAC5C,aAAa,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,OAAO,CAAC,EAC9D,YAAY,mB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L,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"SizeControl.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/table/components/SizeControl.vue"],"names":[],"mappings":"AA6DA,OAAO,EAKL,KAAK,UAAU,EAChB,MAAM,oBAAoB,CAAC;AAK5B,KAAK,IAAI,GAAG,UAAU,CAAC,MAAM,CAAC,CAAC;AAiB/B,KAAK,iBAAiB,GAAG;IACzB,MAAM,CAAC,EAAE,IAAI,CAAC;CACb,CAAC;;;;;;AAsHF,wBAQG"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"TableColumnRenderer.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/table/components/TableColumnRenderer.vue"],"names":[],"mappings":"AAqFA,OAAO,KAAK,EAAU,OAAO,EAAE,MAAM,UAAU,CAAC;yBAG/B,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EACnE,aAAa,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,OAAO,CAAC,EAC9D,YAAY,mBAAmB,CAAC,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,OAAO,CAAC,CAAC,EAC3G,eAAe,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,QAAQ,CAAC,EACjE;WAmJO,mBAAmB,CAAC;iBA/IjB,OAAO,CAAC,CAAC,CAAC;mBA+IyE,CAAC,4BAA2B;oBACzG,OAAO,KAAK,EAAE,gBAAgB,CAAC,EAAE,CAAC,GAAG,IAAI;WAClD,GAAG;;UAEJ,EAAE;EAEL,KACQ,OAAO,KAAK,EAAE,KAAK,GAAG;IAAE,KAAK,CAAC,EAAE,OAAO,CAAC,OAAO,WAAW,CAAC,CAAA;CAAE;AA9JzE,wBA8J4E;AAC5E,KAAK,mBAAmB,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"ColumnHeightOutlined.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/table/components/icons/ColumnHeightOutlined.vue"],"names":[],"mappings":";AAkDA,wBAKG"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"DownOutlined.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/table/components/icons/DownOutlined.vue"],"names":[],"mappings":";AAkDA,wBAKG"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"FilterOutlined.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/table/components/icons/FilterOutlined.vue"],"names":[],"mappings":";AAkDA,wBAKG"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/table/components/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,0BAA0B,EAAE,MAAM,kCAAkC,CAAC;AACzF,OAAO,EAAE,OAAO,IAAI,qBAAqB,EAAE,MAAM,6BAA6B,CAAC;AAC/E,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAC3D,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,qBAAqB,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/table/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,KAAK,CAAC;AACnD,OAAO,KAAK,EAAE,eAAe,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AACnE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAC;AACxD,OAA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AAEnE,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC;AACnC,cAAc,iCAAiC,CAAC;AAChD,cAAc,UAAU,CAAC;AAEzB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgDG;AACH,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,oBAAoB,EAAE,CAAC;;IAGjD;;;;;;;;;;;;;OAaG;iBACU,GAAG;;AAflB,wBAoBE"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"en-US.d.ts","sourceRoot":"","sources":["../../src/locale/en-US.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAQA,wBAYW"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/locale/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,EAIL,KAAK,YAAY,EACjB,KAAK,QAAQ,EACd,MAAM,KAAK,CAAC;AAEb,OAAO,EAGL,KAAK,aAAa,EACnB,MAAM,6BAA6B,CAAC;AACrC,OAAO,IAAI,MAAM,SAAS,CAAC;AAC3B,OAAO,IAAI,MAAM,SAAS,CAAC;AAC3B,OAAO,IAAI,MAAM,SAAS,CAAC;AAE3B,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;AAE5B,MAAM,MAAM,SAAS,GAAG,OAAO,IAAI,CAAC;AAEpC,4CAA4C;AAC5C,eAAO,MAAM,iBAAiB,EAAE,YAAY,CAC1C,QAAQ,CAAC,OAAO,CAAC,SAAS,CAAC,GAAG,SAAS,CAAC,CAClB,CAAC;AAEzB;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,SAAS;aASJ,MAAM,WAAW,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC,KAAG,MAAM;;CAQ1E,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"zh-CN.d.ts","sourceRoot":"","sources":["../../src/locale/zh-CN.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAQA,wBAYW"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"zh-TW.d.ts","sourceRoot":"","sources":["../../src/locale/zh-TW.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAQA,wBAYW"}
@@ -1,6 +0,0 @@
1
- /**
2
- * 统一 re-export @qin-ui/pro-components-core,包内所有文件通过此文件引入 core 内容,
3
- * 避免直接散列依赖 @qin-ui/pro-components-core,便于将来统一维护。
4
- */
5
- export { useForm, useTable, useFields, useFormData, useFormRef, InjectionFormKey, InjectionPathKey, InjectionFormSlotsKey, get, getObject, toPath, camelizeProperties, cloneDeep, omit, pick, isPlainObject, type Data, type Path, type Paths, type KeyExpandString, type ExtendWithAny, type DeepPartial, type PageParam, type Fields, type Form, type Table, type UseFieldsReturn, type UseFormDataReturn, type UseFormRefReturn, } from '@qin-ui/pro-components-core';
6
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/shared/core/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,EAEL,OAAO,EACP,QAAQ,EACR,SAAS,EACT,WAAW,EACX,UAAU,EAEV,gBAAgB,EAChB,gBAAgB,EAChB,qBAAqB,EAErB,GAAG,EACH,SAAS,EACT,MAAM,EACN,kBAAkB,EAClB,SAAS,EACT,IAAI,EACJ,IAAI,EACJ,aAAa,EAEb,KAAK,IAAI,EACT,KAAK,IAAI,EACT,KAAK,KAAK,EACV,KAAK,eAAe,EACpB,KAAK,aAAa,EAClB,KAAK,WAAW,EAChB,KAAK,SAAS,EACd,KAAK,MAAM,EACX,KAAK,IAAI,EACT,KAAK,KAAK,EACV,KAAK,eAAe,EACpB,KAAK,iBAAiB,EACtB,KAAK,gBAAgB,GACtB,MAAM,6BAA6B,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","source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KAAK,EACL,WAAW,EACX,MAAM,EACN,MAAM,EACN,MAAM,EACN,QAAQ,EACR,UAAU,EACV,UAAU,EACV,UAAU,EACV,UAAU,EACV,UAAU,EACV,KAAK,gBAAgB,EACrB,KAAK,YAAY,EACjB,KAAK,SAAS,EACd,KAAK,aAAa,EAClB,KAAK,eAAe,EACpB,KAAK,SAAS,EACd,KAAK,aAAa,EAClB,KAAK,UAAU,GAChB,CAAC;AAEF,MAAM,MAAM,UAAU,GAAG,WAAW,CAAC,GAAG,CAAC,CAAC;AAE1C,eAAO,MAAM,UAAU,WAAmC,CAAC;AAC3D,eAAO,MAAM,eAAe,WAAwC,CAAC;AACrE,eAAO,MAAM,aAAa,WAAsC,CAAC;AACjE,eAAO,MAAM,aAAa,WAAsC,CAAC;AAIjE,eAAO,MAAM,kBAAkB,0CAM9B,CAAC;AAEF,eAAO,MAAM,0BAA0B,GACrC,UAAU,gBAAgB,CAAC,OAAO,GAAG,SAAS,CAAC,SAMhD,CAAC;AAEF,MAAM,MAAM,QAAQ,GAAG,MAAM,GAAG,MAAM,GAAG,CAAC,MAAM,GAAG,MAAM,CAAC,EAAE,CAAC"}
@@ -1,115 +0,0 @@
1
- <script lang="ts" setup>
2
- /**
3
- * @component GroupedFieldAttrs
4
- * @description 字段属性分组器,将 field 配置对象拆分为三类属性
5
- *
6
- * ## 属性分发逻辑
7
- *
8
- * 单个 field 对象包含多种属性,需要分发到不同的渲染目标:
9
- *
10
- * 1. **gridItemProps** — 网格布局属性(span、xs、sm、md、lg、xl、xxl 等),传递给 GridItem
11
- * 2. **formItemProps** — 表单项属性(label、rules、required 等),传递给 FormItem
12
- * 3. **componentProps** — 组件属性(placeholder、clearable 等),传递给输入组件
13
- * 4. **formItemSlots** — FormItem 的具名插槽(label、error 等)
14
- *
15
- * 分组依据:
16
- * - 匹配 element-plus GridItem 的 props key → gridItemProps
17
- * - 匹配 element-plus FormItem 的 props key → formItemProps
18
- * - 其余所有属性 → componentProps
19
- * - 属于 FORM_ITEM_SLOT_KEYS 的插槽 → formItemSlots
20
- * - 其余插槽 → componentProps.slots
21
- */
22
- import { computed, inject, mergeProps, toValue } from 'vue';
23
- import {
24
- GridItemProps,
25
- FormItemProps,
26
- gridItemProps,
27
- formItemProps,
28
- } from '../../../../shared/ui';
29
- import { INJECT_CONFIG } from '../../../component-provider/constants';
30
- import type { Base, Field } from '../../types';
31
- import { FORM_ITEM_SLOT_KEYS } from '../../constants';
32
- import { isPlainObject } from '../../../../shared/core';
33
-
34
- const formItemPropKeys = Object.keys(formItemProps());
35
- const gridItemPropKeys = Object.keys(gridItemProps());
36
-
37
- type Props = {
38
- field: Field;
39
- };
40
- const props = defineProps<Props>();
41
-
42
- const config = INJECT_CONFIG['pro-form-item'];
43
- const injectFormItemProps = inject(config.injectionKey, config.default);
44
-
45
- type GroupedFieldAttrs = {
46
- gridItemProps: GridItemProps;
47
- formItemProps: FormItemProps & { container?: Base['formItemContainer'] };
48
- formItemSlots: Record<(typeof FORM_ITEM_SLOT_KEYS)[number], any>;
49
- componentProps: Record<string, any>;
50
- };
51
-
52
- // 将 field 配置按 key 分发到三类属性分组中
53
- const groupedAttributes = computed<GroupedFieldAttrs>(() => {
54
- let gridItemProps: Record<string, any> = {};
55
- let formItemProps: Record<string, any> = {};
56
- const componentProps: Record<string, any> = { slots: {} };
57
- const formItemSlots: Record<string, any> = {};
58
-
59
- if (isPlainObject(props.field)) {
60
- // prettier-ignore
61
- // eslint-disable-next-line @typescript-eslint/no-unused-vars
62
- const { path, name, fields, formItemClass, formItemStyle, formItemContainer, hidden, span, getFormItemRef, getComponentRef, getFormItemComputedProps, getComponentComputedProps, slots = {}, formItemDataAttrs = {}, componentDataAttrs = {}, extraProps, ...rest } =
63
- props.field as any;
64
- const {
65
- class: injectClassName,
66
- style: injectStyle,
67
- span: injectSpan,
68
- formItemContainer: injectFormItemContainer,
69
- xs,
70
- sm,
71
- md,
72
- lg,
73
- xl,
74
- ...injectRest
75
- } = injectFormItemProps;
76
-
77
- const initGridItemProps =
78
- span || span === 0 ? { span } : { xs, sm, md, lg, xl, span: injectSpan };
79
-
80
- gridItemProps = fields ? { span: span ?? 24 } : initGridItemProps;
81
- formItemProps = mergeProps(
82
- injectRest as any,
83
- { class: injectClassName, style: injectStyle },
84
- { class: toValue(formItemClass), style: toValue(formItemStyle) },
85
- formItemDataAttrs
86
- );
87
- formItemProps.container = formItemContainer ?? injectFormItemContainer;
88
-
89
- Object.keys(rest).forEach(k => {
90
- if (gridItemPropKeys.includes(k)) {
91
- gridItemProps[k] = rest[k];
92
- } else if (formItemPropKeys.includes(k)) {
93
- (formItemProps as any)[k] = rest[k];
94
- } else {
95
- componentProps[k] = rest[k];
96
- }
97
- });
98
- // 将 componentDataAttrs 展开到组件 props 中
99
- Object.assign(componentProps, componentDataAttrs);
100
- Object.keys(slots).forEach(k => {
101
- if (FORM_ITEM_SLOT_KEYS.includes(k as any)) {
102
- formItemSlots[k] = slots[k];
103
- } else {
104
- componentProps['slots'][k] = slots[k];
105
- }
106
- });
107
- }
108
-
109
- return { gridItemProps, formItemProps, componentProps, formItemSlots };
110
- });
111
- </script>
112
-
113
- <template>
114
- <slot v-bind="groupedAttributes"></slot>
115
- </template>
@@ -1,19 +0,0 @@
1
- <script lang="ts" setup>
2
- import { computed, provide } from 'vue';
3
- import { InjectionPathKey } from '../../constants';
4
- import { NamePath } from '../../../../shared/ui';
5
-
6
- const props = defineProps<{ path?: NamePath }>();
7
-
8
- const namePath = computed(() => {
9
- return Array.isArray(props.path)
10
- ? props.path.join('.')
11
- : (props.path as string | undefined);
12
- });
13
-
14
- provide(InjectionPathKey, namePath);
15
- </script>
16
-
17
- <template>
18
- <slot :path="namePath" />
19
- </template>
File without changes
File without changes
File without changes
File without changes