yc-pro-components 0.0.11 → 0.0.13

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 (194) hide show
  1. package/es/components/check-card/index.d.ts +61 -61
  2. package/es/components/check-card/src/index.vue.d.ts +4 -4
  3. package/es/components/check-card-group/index.d.ts +43 -43
  4. package/es/components/check-card-group/src/index.vue.d.ts +3 -3
  5. package/es/components/date-picker/index.d.ts +10 -10
  6. package/es/components/date-picker/src/index.vue.d.ts +2 -2
  7. package/es/components/dialog/index.d.ts +26 -26
  8. package/es/components/dialog/src/index.vue.d.ts +2 -2
  9. package/es/components/dialog-form/index.d.ts +44 -32
  10. package/es/components/dialog-form/src/index.vue.d.ts +22 -10
  11. package/es/components/display-item/index.d.ts +80 -44
  12. package/es/components/display-item/src/index.vue.d.ts +61 -25
  13. package/es/components/drawer-form/index.d.ts +63 -51
  14. package/es/components/drawer-form/src/index.vue.d.ts +23 -11
  15. package/es/components/form/index.d.ts +71 -47
  16. package/es/components/form/src/form-content.vue.d.ts +60 -24
  17. package/es/components/form/src/index.vue.d.ts +43 -19
  18. package/es/components/form-item/index.d.ts +129 -57
  19. package/es/components/form-item/src/index.vue.d.ts +46 -15
  20. package/es/components/form-item/src/index.vue2.mjs +1 -0
  21. package/es/components/header/index.d.ts +19 -19
  22. package/es/components/header/src/index.vue.d.ts +1 -1
  23. package/es/components/input-tag/index.d.ts +20 -20
  24. package/es/components/input-tag/src/index.vue.d.ts +8 -8
  25. package/es/components/layout/index.d.ts +30 -30
  26. package/es/components/layout/src/index.vue.d.ts +10 -10
  27. package/es/components/page/index.d.ts +751 -469
  28. package/es/components/page/src/index.vue.d.ts +263 -161
  29. package/es/components/page/src/index.vue2.mjs +1 -1
  30. package/es/components/pagination/index.d.ts +42 -42
  31. package/es/components/pagination/src/index.vue.d.ts +3 -3
  32. package/es/components/radio/index.d.ts +35 -35
  33. package/es/components/radio/src/index.vue.d.ts +27 -27
  34. package/es/components/render/index.d.ts +6 -6
  35. package/es/components/render/src/index.vue.d.ts +2 -2
  36. package/es/components/search/index.d.ts +284 -162
  37. package/es/components/search/src/index.vue.d.ts +95 -53
  38. package/es/components/search/src/index.vue2.mjs +14 -4
  39. package/es/components/search/src/type.d.ts +9 -0
  40. package/es/components/sidebar/index.d.ts +15 -15
  41. package/es/components/sidebar/src/index.vue.d.ts +5 -5
  42. package/es/components/steps-form/index.d.ts +23 -23
  43. package/es/components/steps-form/src/index.vue.d.ts +2 -2
  44. package/es/components/table/index.d.ts +54 -54
  45. package/es/components/table/src/index.vue.d.ts +18 -18
  46. package/es/components/table/src/table-action-bar.vue2.mjs +1 -1
  47. package/es/components/table/src/table-column-drag-sort.vue.d.ts +18 -18
  48. package/es/components/table/src/table-column.vue.d.ts +76 -40
  49. package/es/components/utils/index.d.ts +2 -2
  50. package/es/components/yc-dialog/index.d.ts +24 -24
  51. package/es/components/yc-download-dialog/index.d.ts +19 -19
  52. package/es/components/yc-download-dialog/src/index.vue.d.ts +1 -1
  53. package/es/components/yc-form-container-header/index.d.ts +12 -12
  54. package/es/components/yc-more-actions/index.d.ts +46 -46
  55. package/es/components/yc-more-actions/src/index.vue.d.ts +3 -3
  56. package/es/components/yc-plus-page/src/index.vue.d.ts +588 -529
  57. package/es/components/yc-plus-page/src/index.vue.mjs +1 -1
  58. package/es/components/yc-plus-page/src/index.vue2.mjs +8 -2
  59. package/es/components/yc-segmented/index.d.ts +2 -2
  60. package/es/components/yc-segmented/src/index.d.ts +2 -2
  61. package/es/components/yc-select-v2/src/index.vue.d.ts +3 -3
  62. package/es/components/yc-status-dialog/src/index.vue.d.ts +1 -1
  63. package/es/components/yc-tabs-with-filter/index.d.ts +16 -16
  64. package/es/components/yc-text/src/index.vue.d.ts +2 -2
  65. package/es/constants/dict.d.ts +78 -0
  66. package/es/constants/dict.mjs +3 -0
  67. package/es/constants/index.d.ts +1 -0
  68. package/es/constants/index.mjs +1 -0
  69. package/es/hooks/index.d.ts +1 -0
  70. package/es/hooks/index.mjs +1 -0
  71. package/es/hooks/useDictInjection.d.ts +38 -0
  72. package/es/hooks/useDictInjection.mjs +18 -0
  73. package/es/hooks/useGetOptions.mjs +118 -30
  74. package/es/hooks/usePlusFormReset.d.ts +286 -214
  75. package/es/index.css +1 -1
  76. package/es/index.d.ts +1 -1
  77. package/es/index.mjs +2 -0
  78. package/es/types/plus.d.ts +74 -0
  79. package/es/version.d.ts +1 -1
  80. package/es/version.mjs +1 -1
  81. package/es/yc-components/index.d.ts +1 -1
  82. package/es/yc-components/version.d.ts +1 -1
  83. package/index.css +9 -5
  84. package/index.js +187 -65
  85. package/index.min.css +1 -1
  86. package/index.min.js +7 -7
  87. package/index.min.mjs +7 -7
  88. package/index.mjs +187 -67
  89. package/lib/components/check-card/index.d.ts +61 -61
  90. package/lib/components/check-card/src/index.vue.d.ts +4 -4
  91. package/lib/components/check-card-group/index.d.ts +43 -43
  92. package/lib/components/check-card-group/src/index.vue.d.ts +3 -3
  93. package/lib/components/date-picker/index.d.ts +10 -10
  94. package/lib/components/date-picker/src/index.vue.d.ts +2 -2
  95. package/lib/components/dialog/index.d.ts +26 -26
  96. package/lib/components/dialog/src/index.vue.d.ts +2 -2
  97. package/lib/components/dialog-form/index.d.ts +44 -32
  98. package/lib/components/dialog-form/src/index.vue.d.ts +22 -10
  99. package/lib/components/display-item/index.d.ts +80 -44
  100. package/lib/components/display-item/src/index.vue.d.ts +61 -25
  101. package/lib/components/drawer-form/index.d.ts +63 -51
  102. package/lib/components/drawer-form/src/index.vue.d.ts +23 -11
  103. package/lib/components/form/index.d.ts +71 -47
  104. package/lib/components/form/src/form-content.vue.d.ts +60 -24
  105. package/lib/components/form/src/index.vue.d.ts +43 -19
  106. package/lib/components/form-item/index.d.ts +129 -57
  107. package/lib/components/form-item/src/index.vue.d.ts +46 -15
  108. package/lib/components/form-item/src/index.vue2.js +1 -0
  109. package/lib/components/header/index.d.ts +19 -19
  110. package/lib/components/header/src/index.vue.d.ts +1 -1
  111. package/lib/components/input-tag/index.d.ts +20 -20
  112. package/lib/components/input-tag/src/index.vue.d.ts +8 -8
  113. package/lib/components/layout/index.d.ts +30 -30
  114. package/lib/components/layout/src/index.vue.d.ts +10 -10
  115. package/lib/components/page/index.d.ts +751 -469
  116. package/lib/components/page/src/index.vue.d.ts +263 -161
  117. package/lib/components/page/src/index.vue2.js +1 -1
  118. package/lib/components/pagination/index.d.ts +42 -42
  119. package/lib/components/pagination/src/index.vue.d.ts +3 -3
  120. package/lib/components/radio/index.d.ts +35 -35
  121. package/lib/components/radio/src/index.vue.d.ts +27 -27
  122. package/lib/components/render/index.d.ts +6 -6
  123. package/lib/components/render/src/index.vue.d.ts +2 -2
  124. package/lib/components/search/index.d.ts +284 -162
  125. package/lib/components/search/src/index.vue.d.ts +95 -53
  126. package/lib/components/search/src/index.vue2.js +13 -3
  127. package/lib/components/search/src/type.d.ts +9 -0
  128. package/lib/components/sidebar/index.d.ts +15 -15
  129. package/lib/components/sidebar/src/index.vue.d.ts +5 -5
  130. package/lib/components/steps-form/index.d.ts +23 -23
  131. package/lib/components/steps-form/src/index.vue.d.ts +2 -2
  132. package/lib/components/table/index.d.ts +54 -54
  133. package/lib/components/table/src/index.vue.d.ts +18 -18
  134. package/lib/components/table/src/table-action-bar.vue2.js +1 -1
  135. package/lib/components/table/src/table-column-drag-sort.vue.d.ts +18 -18
  136. package/lib/components/table/src/table-column.vue.d.ts +76 -40
  137. package/lib/components/utils/index.d.ts +2 -2
  138. package/lib/components/yc-dialog/index.d.ts +24 -24
  139. package/lib/components/yc-download-dialog/index.d.ts +19 -19
  140. package/lib/components/yc-download-dialog/src/index.vue.d.ts +1 -1
  141. package/lib/components/yc-form-container-header/index.d.ts +12 -12
  142. package/lib/components/yc-more-actions/index.d.ts +46 -46
  143. package/lib/components/yc-more-actions/src/index.vue.d.ts +3 -3
  144. package/lib/components/yc-plus-page/src/index.vue.d.ts +588 -529
  145. package/lib/components/yc-plus-page/src/index.vue.js +1 -1
  146. package/lib/components/yc-plus-page/src/index.vue2.js +8 -2
  147. package/lib/components/yc-segmented/index.d.ts +2 -2
  148. package/lib/components/yc-segmented/src/index.d.ts +2 -2
  149. package/lib/components/yc-select-v2/src/index.vue.d.ts +3 -3
  150. package/lib/components/yc-status-dialog/src/index.vue.d.ts +1 -1
  151. package/lib/components/yc-tabs-with-filter/index.d.ts +16 -16
  152. package/lib/components/yc-text/src/index.vue.d.ts +2 -2
  153. package/lib/constants/dict.d.ts +78 -0
  154. package/lib/constants/dict.js +5 -0
  155. package/lib/constants/index.d.ts +1 -0
  156. package/lib/constants/index.js +2 -0
  157. package/lib/hooks/index.d.ts +1 -0
  158. package/lib/hooks/index.js +2 -0
  159. package/lib/hooks/useDictInjection.d.ts +38 -0
  160. package/lib/hooks/useDictInjection.js +20 -0
  161. package/lib/hooks/useGetOptions.js +117 -29
  162. package/lib/hooks/usePlusFormReset.d.ts +286 -214
  163. package/lib/index.css +1 -1
  164. package/lib/index.d.ts +1 -1
  165. package/lib/index.js +4 -0
  166. package/lib/types/plus.d.ts +74 -0
  167. package/lib/version.d.ts +1 -1
  168. package/lib/version.js +1 -1
  169. package/lib/yc-components/index.d.ts +1 -1
  170. package/lib/yc-components/version.d.ts +1 -1
  171. package/locale/en.js +1 -1
  172. package/locale/en.min.js +1 -1
  173. package/locale/en.min.mjs +1 -1
  174. package/locale/en.mjs +1 -1
  175. package/locale/ja.js +1 -1
  176. package/locale/ja.min.js +1 -1
  177. package/locale/ja.min.mjs +1 -1
  178. package/locale/ja.mjs +1 -1
  179. package/locale/ko.js +1 -1
  180. package/locale/ko.min.js +1 -1
  181. package/locale/ko.min.mjs +1 -1
  182. package/locale/ko.mjs +1 -1
  183. package/locale/zh-cn.js +1 -1
  184. package/locale/zh-cn.min.js +1 -1
  185. package/locale/zh-cn.min.mjs +1 -1
  186. package/locale/zh-cn.mjs +1 -1
  187. package/locale/zh-tw.js +1 -1
  188. package/locale/zh-tw.min.js +1 -1
  189. package/locale/zh-tw.min.mjs +1 -1
  190. package/locale/zh-tw.mjs +1 -1
  191. package/package.json +1 -1
  192. package/theme-chalk/index.css +1 -1
  193. package/theme-chalk/plus-page.css +1 -1
  194. package/theme-chalk/src/page.scss +1 -1
package/es/index.css CHANGED
@@ -1,5 +1,5 @@
1
1
  .yc-svg-icon[data-v-34e1f2f7]{display:inline-block;-webkit-mask-size:contain;mask-size:contain;vertical-align:middle}.yc-svg-icon--original[data-v-34e1f2f7]{-o-object-fit:contain;object-fit:contain}
2
- .yc-plus-page[data-v-4486eb75]{height:100%}[data-v-4486eb75] .yc-search-card-body{padding-right:0}[data-v-4486eb75] .plus-table-title-bar__toolbar__icon{font-size:16px!important;position:relative;top:-2px}.column-settings-wrapper[data-v-4486eb75]{align-items:center;cursor:pointer;display:flex;gap:4px;margin-left:8px}.column-settings-text[data-v-4486eb75]{font-size:14px}
2
+ .yc-plus-page[data-v-7c1490fd]{height:100%}.yc-plus-page[data-v-7c1490fd] [data-v-7c1490fd] .plus-page>.el-card{border-radius:8px}[data-v-7c1490fd] .yc-search-card-body{padding-right:0}[data-v-7c1490fd] .plus-table-title-bar__toolbar__icon{font-size:16px!important;position:relative;top:-2px}.column-settings-wrapper[data-v-7c1490fd]{align-items:center;cursor:pointer;display:flex;gap:4px;margin-left:8px}.column-settings-text[data-v-7c1490fd]{font-size:14px}
3
3
  .el-tree .el-tree-node__content{position:relative}.yc-tree-node-label-wrapper{align-items:center;display:flex;flex:1}.yc-tree-node-label{font-size:12px}.yc-tree-node-line-ver{border-left:1px dashed var(--el-border-color-light,#dcdfe6);display:block;height:100%;left:0;position:absolute;top:0}.yc-tree-node-line-ver.last-node-line{border-left:1px dashed transparent}.yc-tree-node-line-ver.last-node-isLeaf-line{height:50%}.yc-tree-node-line-hor{border-bottom:1px dashed var(--el-border-color-light,#dcdfe6);display:block;height:0;left:0;position:absolute;top:50%}
4
4
  .yc-plus-tree[data-v-fa0eccd0]{display:flex;flex-direction:column;height:100%;overflow:auto}.yc-plus-tree[data-v-fa0eccd0] .search-input[data-v-fa0eccd0]{flex-shrink:0;margin-bottom:16px}.yc-plus-tree[data-v-fa0eccd0] .tree-container[data-v-fa0eccd0]{flex:1;min-height:0;overflow:hidden}.yc-plus-tree[data-v-fa0eccd0] .tree-container[data-v-fa0eccd0] [data-v-fa0eccd0] .el-tree-v2{overflow-x:visible!important}.yc-plus-tree[data-v-fa0eccd0] .tree-container[data-v-fa0eccd0] .inline-input-node[data-v-fa0eccd0]{align-items:center;display:flex;flex:1;padding-left:0;padding-right:8px;position:relative;z-index:1}.yc-plus-tree[data-v-fa0eccd0] .tree-container[data-v-fa0eccd0] .inline-input-node[data-v-fa0eccd0] .inline-input[data-v-fa0eccd0]{flex-shrink:0;width:100%}.yc-plus-tree[data-v-fa0eccd0] .tree-container[data-v-fa0eccd0] .inline-input-node[data-v-fa0eccd0] .inline-input[data-v-fa0eccd0] [data-v-fa0eccd0] .el-input__wrapper{border-radius:4px;box-shadow:0 0 0 1px var(--el-border-color) inset;font-size:14px;height:26px;line-height:18px;padding:0 8px;transition:box-shadow .2s ease}.yc-plus-tree[data-v-fa0eccd0] .tree-container[data-v-fa0eccd0] .inline-input-node[data-v-fa0eccd0] .inline-input[data-v-fa0eccd0] [data-v-fa0eccd0] .el-input__wrapper[data-v-fa0eccd0]:hover{box-shadow:0 0 0 1px var(--el-border-color-hover) inset}.yc-plus-tree[data-v-fa0eccd0] .tree-container[data-v-fa0eccd0] .inline-input-node[data-v-fa0eccd0] .inline-input[data-v-fa0eccd0] [data-v-fa0eccd0] .el-input__wrapper.is-focus[data-v-fa0eccd0]{box-shadow:0 0 0 1px var(--el-color-primary) inset}.yc-plus-tree[data-v-fa0eccd0] .tree-container[data-v-fa0eccd0] .inline-input-node[data-v-fa0eccd0] .inline-input[data-v-fa0eccd0] [data-v-fa0eccd0] .el-input__inner{color:rgba(0,0,0,.7);font-size:14px;height:24px;line-height:18px}.yc-plus-tree[data-v-fa0eccd0] .tree-container[data-v-fa0eccd0] .inline-input-node[data-v-fa0eccd0] .inline-input[data-v-fa0eccd0] [data-v-fa0eccd0] .el-input__inner[data-v-fa0eccd0]::-moz-placeholder{color:rgba(0,0,0,.4)}.yc-plus-tree[data-v-fa0eccd0] .tree-container[data-v-fa0eccd0] .inline-input-node[data-v-fa0eccd0] .inline-input[data-v-fa0eccd0] [data-v-fa0eccd0] .el-input__inner[data-v-fa0eccd0]::placeholder{color:rgba(0,0,0,.4)}.yc-plus-tree[data-v-fa0eccd0] .tree-container[data-v-fa0eccd0] [data-v-fa0eccd0] .el-tree-node__content:hover{background-color:var(--el-color-primary-light-9)}.yc-plus-tree[data-v-fa0eccd0] .tree-container[data-v-fa0eccd0] [data-v-fa0eccd0] .el-tree-node__content:hover .label-text[data-v-fa0eccd0]{color:var(--el-color-primary)}.yc-plus-tree[data-v-fa0eccd0] .tree-container[data-v-fa0eccd0] [data-v-fa0eccd0] .el-tree-node__content:hover .label-text{color:var(--el-color-primary)}.yc-plus-tree[data-v-fa0eccd0] .tree-container[data-v-fa0eccd0] [data-v-fa0eccd0] .el-tree-node.is-current>.el-tree-node__content{background-color:var(--el-color-primary-light-9)}.yc-plus-tree[data-v-fa0eccd0] .tree-container[data-v-fa0eccd0] [data-v-fa0eccd0] .el-tree-node.is-current>.el-tree-node__content .label-text{color:var(--el-color-primary)}.yc-plus-tree[data-v-fa0eccd0] .tree-container[data-v-fa0eccd0] .node-label-wrapper[data-v-fa0eccd0]{align-items:center;display:flex;gap:4px;width:100%}.yc-plus-tree[data-v-fa0eccd0] .tree-container[data-v-fa0eccd0] .node-label-wrapper[data-v-fa0eccd0][data-v-fa0eccd0]:hover .node-actions[data-v-fa0eccd0]{opacity:1;pointer-events:auto}.yc-plus-tree[data-v-fa0eccd0] .tree-container[data-v-fa0eccd0] .node-label-wrapper[data-v-fa0eccd0] .node-label[data-v-fa0eccd0],.yc-plus-tree[data-v-fa0eccd0] .tree-container[data-v-fa0eccd0] .node-label-wrapper[data-v-fa0eccd0] [data-v-fa0eccd0] .custom-node-label{align-items:center;display:flex;flex:1;gap:4px;min-width:0}.yc-plus-tree[data-v-fa0eccd0] .tree-container[data-v-fa0eccd0] .node-label-wrapper[data-v-fa0eccd0] .node-label[data-v-fa0eccd0] .label-text[data-v-fa0eccd0],.yc-plus-tree[data-v-fa0eccd0] .tree-container[data-v-fa0eccd0] .node-label-wrapper[data-v-fa0eccd0] .node-label[data-v-fa0eccd0] .node-text[data-v-fa0eccd0],.yc-plus-tree[data-v-fa0eccd0] .tree-container[data-v-fa0eccd0] .node-label-wrapper[data-v-fa0eccd0] [data-v-fa0eccd0] .custom-node-label .label-text[data-v-fa0eccd0],.yc-plus-tree[data-v-fa0eccd0] .tree-container[data-v-fa0eccd0] .node-label-wrapper[data-v-fa0eccd0] [data-v-fa0eccd0] .custom-node-label .node-text[data-v-fa0eccd0]{color:var(--el-text-color-primary)}.yc-plus-tree[data-v-fa0eccd0] .tree-container[data-v-fa0eccd0] .node-label-wrapper[data-v-fa0eccd0] .node-label[data-v-fa0eccd0] .label-text[data-v-fa0eccd0] [data-v-fa0eccd0] .highlight-keyword,.yc-plus-tree[data-v-fa0eccd0] .tree-container[data-v-fa0eccd0] .node-label-wrapper[data-v-fa0eccd0] .node-label[data-v-fa0eccd0] .node-text[data-v-fa0eccd0] [data-v-fa0eccd0] .highlight-keyword,.yc-plus-tree[data-v-fa0eccd0] .tree-container[data-v-fa0eccd0] .node-label-wrapper[data-v-fa0eccd0] [data-v-fa0eccd0] .custom-node-label .label-text[data-v-fa0eccd0] [data-v-fa0eccd0] .highlight-keyword,.yc-plus-tree[data-v-fa0eccd0] .tree-container[data-v-fa0eccd0] .node-label-wrapper[data-v-fa0eccd0] [data-v-fa0eccd0] .custom-node-label .node-text[data-v-fa0eccd0] [data-v-fa0eccd0] .highlight-keyword{background-color:var(--el-color-primary-light-9);border-radius:2px;color:var(--el-color-primary);font-weight:600;padding:0 2px}.yc-plus-tree[data-v-fa0eccd0] .tree-container[data-v-fa0eccd0] .node-label-wrapper[data-v-fa0eccd0] .node-label[data-v-fa0eccd0] .node-count[data-v-fa0eccd0],.yc-plus-tree[data-v-fa0eccd0] .tree-container[data-v-fa0eccd0] .node-label-wrapper[data-v-fa0eccd0] [data-v-fa0eccd0] .custom-node-label .node-count[data-v-fa0eccd0]{color:var(--el-text-color-secondary);font-size:12px}.yc-plus-tree[data-v-fa0eccd0] .tree-container[data-v-fa0eccd0] .node-label-wrapper[data-v-fa0eccd0] .node-actions[data-v-fa0eccd0]{align-items:center;display:flex;flex-shrink:0;margin-left:auto;margin-right:8px;opacity:0;pointer-events:none;transition:opacity .2s ease}.yc-plus-tree[data-v-fa0eccd0] .tree-container[data-v-fa0eccd0] .node-label-wrapper[data-v-fa0eccd0] .node-actions[data-v-fa0eccd0] .action-icon-wrapper[data-v-fa0eccd0]{align-items:center;cursor:pointer;display:flex;justify-content:center}.yc-plus-tree[data-v-fa0eccd0] .tree-container[data-v-fa0eccd0] .node-label-wrapper[data-v-fa0eccd0] .node-actions[data-v-fa0eccd0] .action-icon[data-v-fa0eccd0]{align-items:center;border-radius:4px;color:var(--el-color-primary);cursor:pointer;display:flex;height:20px;justify-content:center;transition:background-color .2s ease;width:20px}.yc-plus-tree[data-v-fa0eccd0] .tree-container[data-v-fa0eccd0] .node-label-wrapper[data-v-fa0eccd0] .node-actions[data-v-fa0eccd0] .action-icon[data-v-fa0eccd0][data-v-fa0eccd0]:hover{background-color:var(--el-color-primary-light-8)}.tree-dropdown-menu[data-v-fa0eccd0]{border-radius:8px!important;min-width:156px!important;padding:8px!important}.tree-dropdown-menu[data-v-fa0eccd0] [data-v-fa0eccd0] .el-dropdown-menu__item{border-radius:8px;font-size:12px;height:32px;line-height:32px;margin:0;padding:0 12px;transition:background-color .2s ease}.tree-dropdown-menu[data-v-fa0eccd0] [data-v-fa0eccd0] .el-dropdown-menu__item[data-v-fa0eccd0]:hover{background-color:var(--el-color-primary-light-9)!important;color:var(--el-color-primary)!important}.tree-dropdown-menu[data-v-fa0eccd0] [data-v-fa0eccd0] .el-dropdown-menu__item[data-v-fa0eccd0]:not(:last-child){margin-bottom:4px}.tree-dropdown-menu[data-v-fa0eccd0] [data-v-fa0eccd0] .el-divider{border-top:1px solid #e5e7eb;margin:12px 0}.tree-dropdown-menu[data-v-fa0eccd0] [data-v-fa0eccd0] .sortable-ghost{background-color:var(--el-color-primary-light-9);border:1px dashed var(--el-color-primary);border-radius:4px;opacity:.4}.tree-dropdown-menu[data-v-fa0eccd0] [data-v-fa0eccd0] .sortable-chosen{background-color:var(--el-color-primary-light-8);box-shadow:0 2px 8px rgba(0,0,0,.1)}.tree-dropdown-menu[data-v-fa0eccd0] [data-v-fa0eccd0] .sortable-drag{background-color:#fff;box-shadow:0 4px 12px rgba(0,0,0,.15);cursor:move;opacity:1;transform:rotate(2deg)}.tree-dropdown-menu[data-v-fa0eccd0] [data-v-fa0eccd0] .sortable-fallback{-webkit-user-select:none;-moz-user-select:none;user-select:none}
5
5
  .tree-dropdown-popper{border:none!important;border-radius:8px!important;overflow:hidden!important}.yc-plus-tree .highlight-keyword{background-color:var(--el-color-primary-light-9);border-radius:2px;color:var(--el-color-primary);font-weight:600;padding:0 2px}.el-tree-node__content:has([data-input-node=true]) .el-tree-node__expand-icon{display:none!important}.sortable-ghost{opacity:.3!important;position:relative!important}.drop-target{background-color:var(--el-color-primary-light-9)!important;border-radius:4px}.drop-target:before{background:var(--el-color-primary);border-radius:1.5px;bottom:0;content:"";left:calc(var(--drop-indent, 0px) - 3px);opacity:.6;position:absolute;top:0;width:3px;z-index:1}
package/es/index.d.ts CHANGED
@@ -2,7 +2,7 @@ import { App } from 'vue';
2
2
  import { default as installer } from './defaults';
3
3
 
4
4
  export * from 'yc-pro-components/es/components';
5
- export { useGetOptions, useLocale, useTable, useSelectWithMapping, usePlusProConfig, providePlusProConfig, useDialogFormConfig, useDrawerFormConfig, useSortableDrag, usePlusFormReset, useSelectWithPagination, type UseSelectWithMappingConfig, type UseSelectWithMappingReturn, type MappedOption, type TransformConfig, type ApiResponseLike, type UseSelectWithPaginationConfig, type UseSelectWithPaginationReturn, type PlusProFormConfig, type PlusProGlobalConfig } from 'yc-pro-components/es/hooks';
5
+ export { useGetOptions, useLocale, useTable, useSelectWithMapping, usePlusProConfig, providePlusProConfig, useDialogFormConfig, useDrawerFormConfig, useSortableDrag, usePlusFormReset, useSelectWithPagination, useDictInjection, type UseSelectWithMappingConfig, type UseSelectWithMappingReturn, type MappedOption, type TransformConfig, type ApiResponseLike, type UseSelectWithPaginationConfig, type UseSelectWithPaginationReturn, type PlusProFormConfig, type PlusProGlobalConfig } from 'yc-pro-components/es/hooks';
6
6
  export * from 'yc-pro-components/es/types';
7
7
  export * from 'yc-pro-components/es/constants';
8
8
  export { version } from './version';
package/es/index.mjs CHANGED
@@ -7,9 +7,11 @@ export { providePlusProConfig, useDialogFormConfig, useDrawerFormConfig, usePlus
7
7
  export { useSortableDrag } from './hooks/useSortableDrag.mjs';
8
8
  export { usePlusFormReset } from './hooks/usePlusFormReset.mjs';
9
9
  export { useSelectWithPagination } from './hooks/useSelectWithPagination.mjs';
10
+ export { useDictInjection } from './hooks/useDictInjection.mjs';
10
11
  export { DefaultPageInfo, DefaultPageSizeList } from './constants/page.mjs';
11
12
  export { DatePickerValueIsArrayList, TableFormFieldRefInjectionKey, TableFormRefInjectionKey, TableFormRowInfoInjectionKey, ValueIsArrayList, ValueIsBooleanList, ValueIsNumberList } from './constants/form.mjs';
12
13
  export { selectValueTypeList } from './constants/display-item.mjs';
14
+ export { DictStoreInjectionKey } from './constants/dict.mjs';
13
15
  export { version } from './version.mjs';
14
16
  export { PlusDialog } from './components/dialog/index.mjs';
15
17
  export { PlusPagination } from './components/pagination/index.mjs';
@@ -272,6 +272,80 @@ export interface CommonType {
272
272
  * 多级表头
273
273
  */
274
274
  children?: PlusColumn[];
275
+ /**
276
+ * 自动字典注入
277
+ * @version v0.2.0
278
+ * @desc 当 valueType 为 `select`|`radio`|`checkbox` 时,可以自动从字典 Store 获取 options
279
+ * @desc 优先级:options > autoDict > 默认空数组
280
+ * @example
281
+ * ```ts
282
+ * import type { PlusColumn } from 'yc-components'
283
+ *
284
+ * // 方式1:布尔值 - 自动从 inject 的 DictStore 获取
285
+ * const columns: PlusColumn[] = [
286
+ * {
287
+ * label: '状态',
288
+ * prop: 'status',
289
+ * valueType: 'select',
290
+ * autoDict: true // 自动调用 dictStore.getDictData('status')
291
+ * }
292
+ * ]
293
+ *
294
+ * // 方式2:函数 - 自定义获取逻辑
295
+ * const columns: PlusColumn[] = [
296
+ * {
297
+ * label: '状态',
298
+ * prop: 'status',
299
+ * valueType: 'select',
300
+ * autoDict: (column) => {
301
+ * // 自定义逻辑
302
+ * return customDictStore.getData(column.prop)
303
+ * }
304
+ * }
305
+ * ]
306
+ *
307
+ * // 方式3:对象配置 - 指定 Store 和方法
308
+ * const columns: PlusColumn[] = [
309
+ * {
310
+ * label: '类型',
311
+ * prop: 'type',
312
+ * valueType: 'select',
313
+ * autoDict: {
314
+ * store: specificDictStore,
315
+ * method: 'getTypeDict',
316
+ * transform: (data) => data.map(item => ({
317
+ * label: item.name,
318
+ * value: item.id
319
+ * }))
320
+ * }
321
+ * }
322
+ * ]
323
+ * ```
324
+ */
325
+ autoDict?: boolean | ((column: PlusColumn) => OptionsRow[] | Promise<OptionsRow[]>) | {
326
+ /**
327
+ * 字典 Store 实例
328
+ * @desc 如果不提供,会尝试从 inject 获取
329
+ */
330
+ store?: any;
331
+ /**
332
+ * 获取字典的方法名
333
+ * @default 'getDictData'
334
+ */
335
+ method?: string;
336
+ /**
337
+ * 转换函数
338
+ * @desc 将字典数据转换为 OptionsRow[] 格式
339
+ */
340
+ transform?: (data: any) => OptionsRow[];
341
+ /**
342
+ * 字典 code 或字段名
343
+ * @desc 指定要获取的字典 code,如果不提供则使用 props.prop
344
+ * @example dictCode: "OFFSET_AUDIT_STATUS"
345
+ * @version v0.2.0
346
+ */
347
+ dictCode?: string;
348
+ };
275
349
  }
276
350
  /**
277
351
  * 表格,表单,详情,搜索公共的类型
package/es/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const version = "0.1.30";
1
+ export declare const version = "0.0.13";
package/es/version.mjs CHANGED
@@ -1,3 +1,3 @@
1
- const version = "0.1.30";
1
+ const version = "0.0.13";
2
2
 
3
3
  export { version };
@@ -2,7 +2,7 @@ import { App } from 'vue';
2
2
  import { default as installer } from './defaults';
3
3
 
4
4
  export * from 'yc-pro-components/es/components';
5
- export { useGetOptions, useLocale, useTable, useSelectWithMapping, usePlusProConfig, providePlusProConfig, useDialogFormConfig, useDrawerFormConfig, useSortableDrag, usePlusFormReset, useSelectWithPagination, type UseSelectWithMappingConfig, type UseSelectWithMappingReturn, type MappedOption, type TransformConfig, type ApiResponseLike, type UseSelectWithPaginationConfig, type UseSelectWithPaginationReturn, type PlusProFormConfig, type PlusProGlobalConfig } from 'yc-pro-components/es/hooks';
5
+ export { useGetOptions, useLocale, useTable, useSelectWithMapping, usePlusProConfig, providePlusProConfig, useDialogFormConfig, useDrawerFormConfig, useSortableDrag, usePlusFormReset, useSelectWithPagination, useDictInjection, type UseSelectWithMappingConfig, type UseSelectWithMappingReturn, type MappedOption, type TransformConfig, type ApiResponseLike, type UseSelectWithPaginationConfig, type UseSelectWithPaginationReturn, type PlusProFormConfig, type PlusProGlobalConfig } from 'yc-pro-components/es/hooks';
6
6
  export * from 'yc-pro-components/es/types';
7
7
  export * from 'yc-pro-components/es/constants';
8
8
  export { version } from './version';
@@ -1 +1 @@
1
- export declare const version = "0.1.30";
1
+ export declare const version = "0.0.13";
package/index.css CHANGED
@@ -10,23 +10,27 @@
10
10
  object-fit: contain;
11
11
  }
12
12
  @charset "UTF-8";
13
- .yc-plus-page[data-v-4486eb75] {
13
+ .yc-plus-page[data-v-7c1490fd] {
14
14
  height: 100%;
15
+ /* 卡片模式下设置圆角 8px */
16
+ }
17
+ .yc-plus-page[data-v-7c1490fd] [data-v-7c1490fd] .plus-page > .el-card {
18
+ border-radius: 8px;
15
19
  }
16
20
 
17
- [data-v-4486eb75] .yc-search-card-body {
21
+ [data-v-7c1490fd] .yc-search-card-body {
18
22
  padding-right: 0;
19
23
  }
20
24
 
21
25
  /* 密度图标样式调整 */
22
- [data-v-4486eb75] .plus-table-title-bar__toolbar__icon {
26
+ [data-v-7c1490fd] .plus-table-title-bar__toolbar__icon {
23
27
  position: relative;
24
28
  top: -2px;
25
29
  font-size: 16px !important;
26
30
  }
27
31
 
28
32
  /* 字段管理样式 */
29
- .column-settings-wrapper[data-v-4486eb75] {
33
+ .column-settings-wrapper[data-v-7c1490fd] {
30
34
  display: flex;
31
35
  gap: 4px;
32
36
  align-items: center;
@@ -34,7 +38,7 @@
34
38
  cursor: pointer;
35
39
  }
36
40
 
37
- .column-settings-text[data-v-4486eb75] {
41
+ .column-settings-text[data-v-7c1490fd] {
38
42
  font-size: 14px;
39
43
  }
40
44
  @charset "UTF-8";
package/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /*! yc-pro-components v0.0.11 */
1
+ /*! yc-pro-components v0.0.13 */
2
2
  (function (global, factory) {
3
3
  typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('vue'), require('element-plus')) :
4
4
  typeof define === 'function' && define.amd ? define(['exports', 'vue', 'element-plus'], factory) :
@@ -4770,6 +4770,36 @@
4770
4770
  return data;
4771
4771
  };
4772
4772
 
4773
+ const DefaultPageSizeList = [10, 20, 30, 40, 50, 100, 200, 300, 400, 500];
4774
+ const DefaultPageInfo = {
4775
+ page: 1,
4776
+ pageSize: 10
4777
+ };
4778
+
4779
+ const TableFormRefInjectionKey = Symbol("tableFormRefInjectionKey");
4780
+ const TableFormFieldRefInjectionKey = Symbol("tableFormFieldRefInjectionKey");
4781
+ const TableFormRowInfoInjectionKey = Symbol("tableFormRowInfoInjectionKey");
4782
+ const DatePickerValueIsArrayList = ["datetimerange", "daterange", "monthrange"];
4783
+ const ValueIsNumberList = ["rate", "input-number", "slider"];
4784
+ const ValueIsBooleanList = ["switch"];
4785
+ const ValueIsArrayList = [
4786
+ "checkbox",
4787
+ "cascader",
4788
+ "plus-date-picker",
4789
+ "plus-input-tag",
4790
+ "transfer"
4791
+ ];
4792
+
4793
+ const selectValueTypeList = [
4794
+ "select",
4795
+ "radio",
4796
+ "checkbox",
4797
+ "select-v2",
4798
+ "plus-radio"
4799
+ ];
4800
+
4801
+ const DictStoreInjectionKey = Symbol("DictStore");
4802
+
4773
4803
  const throwError = (data) => {
4774
4804
  if (!isArray(data)) {
4775
4805
  console.error("Uncaught TypeError: ", `options expected Array but got ${toRawType(data)}`);
@@ -4796,27 +4826,53 @@
4796
4826
  const useGetOptions = (props) => {
4797
4827
  const options = vue.ref([]);
4798
4828
  const optionsIsReady = vue.ref(false);
4799
- if (!props.options) {
4829
+ const injectedDictStore = vue.inject(DictStoreInjectionKey, null);
4830
+ const hasValidOptions = props.options && (!isArray(props.options) || props.options.length > 0);
4831
+ if (hasValidOptions) {
4832
+ handleOptions();
4833
+ } else if (props.autoDict) {
4834
+ handleAutoDict();
4835
+ } else {
4800
4836
  options.value = [];
4801
4837
  optionsIsReady.value = true;
4802
- } else if (vue.isRef(props.options) || vue.isReactive(props.options) || isArray(props.options)) {
4803
- vue.watch(
4804
- () => props.options,
4805
- (val) => {
4806
- const value = vue.isRef(val) ? val.value : val;
4807
- options.value = getOptionsByOptionsMap(value, props);
4838
+ }
4839
+ function handleOptions() {
4840
+ if (!props.options) {
4841
+ options.value = [];
4842
+ optionsIsReady.value = true;
4843
+ return;
4844
+ }
4845
+ if (vue.isRef(props.options) || vue.isReactive(props.options) || isArray(props.options)) {
4846
+ vue.watch(
4847
+ () => props.options,
4848
+ (val) => {
4849
+ const value = vue.isRef(val) ? val.value : val;
4850
+ options.value = getOptionsByOptionsMap(value, props);
4851
+ optionsIsReady.value = true;
4852
+ },
4853
+ {
4854
+ immediate: true,
4855
+ deep: true
4856
+ }
4857
+ );
4858
+ } else if (isFunction(props.options)) {
4859
+ const getValue = props.options;
4860
+ const result = getValue(props);
4861
+ if (isPromise(result)) {
4862
+ result.then((value) => {
4863
+ options.value = getOptionsByOptionsMap(value, props);
4864
+ optionsIsReady.value = true;
4865
+ throwError(options.value);
4866
+ }).catch((err) => {
4867
+ throw err;
4868
+ });
4869
+ } else {
4870
+ options.value = getOptionsByOptionsMap(result, props);
4808
4871
  optionsIsReady.value = true;
4809
- },
4810
- {
4811
- immediate: true,
4812
- deep: true
4813
4872
  }
4814
- );
4815
- } else if (isFunction(props.options)) {
4816
- const getValue = props.options;
4817
- const result = getValue(props);
4818
- if (isPromise(result)) {
4819
- result.then((value) => {
4873
+ } else if (isPromise(props.options)) {
4874
+ const getValue = props.options;
4875
+ getValue.then((value) => {
4820
4876
  options.value = getOptionsByOptionsMap(value, props);
4821
4877
  optionsIsReady.value = true;
4822
4878
  throwError(options.value);
@@ -4824,21 +4880,82 @@
4824
4880
  throw err;
4825
4881
  });
4826
4882
  } else {
4827
- options.value = getOptionsByOptionsMap(result, props);
4828
4883
  optionsIsReady.value = true;
4884
+ throwError(props.options);
4829
4885
  }
4830
- } else if (isPromise(props.options)) {
4831
- const getValue = props.options;
4832
- getValue.then((value) => {
4833
- options.value = getOptionsByOptionsMap(value, props);
4886
+ }
4887
+ function handleAutoDict() {
4888
+ if (isFunction(props.autoDict)) {
4889
+ const autoDictFn = props.autoDict;
4890
+ vue.watch(
4891
+ () => {
4892
+ return autoDictFn(props);
4893
+ },
4894
+ (result) => {
4895
+ if (isPromise(result)) {
4896
+ result.then((value) => {
4897
+ options.value = getOptionsByOptionsMap(value, props);
4898
+ optionsIsReady.value = true;
4899
+ }).catch((err) => {
4900
+ console.error("[yc-components] autoDict function error:", err);
4901
+ options.value = [];
4902
+ optionsIsReady.value = true;
4903
+ });
4904
+ } else {
4905
+ options.value = getOptionsByOptionsMap(result, props);
4906
+ optionsIsReady.value = true;
4907
+ }
4908
+ },
4909
+ { immediate: true }
4910
+ );
4911
+ } else if (typeof props.autoDict === "object" && props.autoDict !== null) {
4912
+ const { store, method = "getDictData", transform, dictCode } = props.autoDict;
4913
+ const dictStore = store || injectedDictStore;
4914
+ const fieldOrCode = dictCode || props.prop;
4915
+ if (dictStore && isFunction(dictStore[method])) {
4916
+ vue.watch(
4917
+ () => dictStore[method](fieldOrCode),
4918
+ (val) => {
4919
+ try {
4920
+ const data = transform && isFunction(transform) ? transform(val) : val;
4921
+ options.value = getOptionsByOptionsMap(data, props);
4922
+ optionsIsReady.value = true;
4923
+ } catch (err) {
4924
+ console.error("[yc-components] autoDict transform error:", err);
4925
+ options.value = [];
4926
+ optionsIsReady.value = true;
4927
+ }
4928
+ },
4929
+ { immediate: true }
4930
+ );
4931
+ } else {
4932
+ console.warn(
4933
+ `[yc-components] autoDict: DictStore or method "${method}" not found for field "${fieldOrCode}"`
4934
+ );
4935
+ options.value = [];
4936
+ optionsIsReady.value = true;
4937
+ }
4938
+ } else if (props.autoDict === true) {
4939
+ if (injectedDictStore && isFunction(injectedDictStore.getDictData)) {
4940
+ vue.watch(
4941
+ () => injectedDictStore.getDictData(props.prop),
4942
+ (val) => {
4943
+ options.value = getOptionsByOptionsMap(val, props);
4944
+ optionsIsReady.value = true;
4945
+ },
4946
+ { immediate: true }
4947
+ );
4948
+ } else {
4949
+ console.warn(
4950
+ `[yc-components] autoDict: DictStore not provided via inject for field "${props.prop}". Please use useDictInjection() in parent component.`
4951
+ );
4952
+ options.value = [];
4953
+ optionsIsReady.value = true;
4954
+ }
4955
+ } else {
4956
+ options.value = [];
4834
4957
  optionsIsReady.value = true;
4835
- throwError(options.value);
4836
- }).catch((err) => {
4837
- throw err;
4838
- });
4839
- } else {
4840
- optionsIsReady.value = true;
4841
- throwError(props.options);
4958
+ }
4842
4959
  }
4843
4960
  return { customOptions: options, customOptionsIsReady: optionsIsReady };
4844
4961
  };
@@ -4937,34 +5054,6 @@
4937
5054
  }));
4938
5055
  };
4939
5056
 
4940
- const DefaultPageSizeList = [10, 20, 30, 40, 50, 100, 200, 300, 400, 500];
4941
- const DefaultPageInfo = {
4942
- page: 1,
4943
- pageSize: 10
4944
- };
4945
-
4946
- const TableFormRefInjectionKey = Symbol("tableFormRefInjectionKey");
4947
- const TableFormFieldRefInjectionKey = Symbol("tableFormFieldRefInjectionKey");
4948
- const TableFormRowInfoInjectionKey = Symbol("tableFormRowInfoInjectionKey");
4949
- const DatePickerValueIsArrayList = ["datetimerange", "daterange", "monthrange"];
4950
- const ValueIsNumberList = ["rate", "input-number", "slider"];
4951
- const ValueIsBooleanList = ["switch"];
4952
- const ValueIsArrayList = [
4953
- "checkbox",
4954
- "cascader",
4955
- "plus-date-picker",
4956
- "plus-input-tag",
4957
- "transfer"
4958
- ];
4959
-
4960
- const selectValueTypeList = [
4961
- "select",
4962
- "radio",
4963
- "checkbox",
4964
- "select-v2",
4965
- "plus-radio"
4966
- ];
4967
-
4968
5057
  function useTable(_pageInfo) {
4969
5058
  const defaultPageInfo = vue.unref(_pageInfo) || DefaultPageInfo;
4970
5059
  const tableData = vue.ref([]);
@@ -8485,6 +8574,20 @@
8485
8574
  };
8486
8575
  }
8487
8576
 
8577
+ function useDictInjection(dictStore) {
8578
+ if (!dictStore) {
8579
+ console.warn("[yc-components] useDictInjection: dictStore is required");
8580
+ return;
8581
+ }
8582
+ if (typeof dictStore.getDictData !== "function") {
8583
+ console.error(
8584
+ "[yc-components] useDictInjection: dictStore must implement getDictData method. Please ensure your dictStore implements DictStoreInterface."
8585
+ );
8586
+ return;
8587
+ }
8588
+ vue.provide(DictStoreInjectionKey, dictStore);
8589
+ }
8590
+
8488
8591
  const _hoisted_1$q = { class: "plus-dialog-body" };
8489
8592
  var _sfc_main$K = /* @__PURE__ */ vue.defineComponent({
8490
8593
  ...{
@@ -15782,6 +15885,7 @@
15782
15885
  fieldChildrenSlot: { type: Function, default: void 0 },
15783
15886
  renderErrorMessage: { type: Function, default: void 0 },
15784
15887
  optionsMap: { default: void 0 },
15888
+ autoDict: { type: [Boolean, Function, Object], default: void 0 },
15785
15889
  index: { default: 0 },
15786
15890
  clearable: { type: Boolean, default: true }
15787
15891
  },
@@ -19227,7 +19331,9 @@
19227
19331
  lg: 8,
19228
19332
  xl: 6
19229
19333
  }) },
19230
- needValidate: { type: Boolean, default: false }
19334
+ needValidate: { type: Boolean, default: false },
19335
+ searchIcon: { default: void 0 },
19336
+ resetIcon: { default: void 0 }
19231
19337
  },
19232
19338
  emits: ["update:modelValue", "search", "change", "reset", "collapse"],
19233
19339
  setup(__props, { expose: __expose, emit: __emit }) {
@@ -19245,6 +19351,14 @@
19245
19351
  const unfoldText = vue.computed(
19246
19352
  () => isShowUnfold.value ? props.retractText || t("plus.search.retract") : props.expandText || t("plus.search.expand")
19247
19353
  );
19354
+ const computedSearchIcon = vue.computed(() => {
19355
+ if (props.searchIcon === null) return void 0;
19356
+ return props.searchIcon !== void 0 ? props.searchIcon : search_default;
19357
+ });
19358
+ const computedResetIcon = vue.computed(() => {
19359
+ if (props.resetIcon === null) return void 0;
19360
+ return props.resetIcon !== void 0 ? props.resetIcon : refresh_right_default;
19361
+ });
19248
19362
  const originData = vue.computed(() => {
19249
19363
  const filterData = props.columns.filter((item) => vue.unref(item.hideInSearch) !== true).map((item) => ({ ...item, hideInForm: false })).map((item) => ({ ...item, order: (item == null ? void 0 : item.order) ? vue.unref(item.order) : 0 }));
19250
19364
  return orderBy(filterData, ["order"], ["desc"]);
@@ -19331,7 +19445,7 @@
19331
19445
  }, () => [
19332
19446
  _ctx.hasReset ? (vue.openBlock(), vue.createBlock(vue.unref(elementPlus.ElButton), {
19333
19447
  key: 0,
19334
- icon: vue.unref(refresh_right_default),
19448
+ icon: computedResetIcon.value,
19335
19449
  onClick: handleReset
19336
19450
  }, {
19337
19451
  default: vue.withCtx(() => [
@@ -19347,7 +19461,7 @@
19347
19461
  vue.createVNode(vue.unref(elementPlus.ElButton), {
19348
19462
  type: "primary",
19349
19463
  loading: _ctx.searchLoading,
19350
- icon: vue.unref(search_default),
19464
+ icon: computedSearchIcon.value,
19351
19465
  onClick: handleSearch.value
19352
19466
  }, {
19353
19467
  default: vue.withCtx(() => [
@@ -30993,7 +31107,10 @@
30993
31107
  hasUnfold: false,
30994
31108
  rowProps: { gutter: 0 },
30995
31109
  colProps: { span: getSpanByCount(searchableFieldsCount.value) },
30996
- labelSuffix: ""
31110
+ labelSuffix: "",
31111
+ labelPosition: "right",
31112
+ searchIcon: null,
31113
+ resetIcon: null
30997
31114
  };
30998
31115
  return merge({}, defaultSearchConfig, props.search);
30999
31116
  }
@@ -31001,7 +31118,10 @@
31001
31118
  hasUnfold: false,
31002
31119
  rowProps: { gutter: 0 },
31003
31120
  colProps: { span: getSpanByCount(searchableFieldsCount.value) },
31004
- labelSuffix: ""
31121
+ labelSuffix: "",
31122
+ labelPosition: "right",
31123
+ searchIcon: null,
31124
+ resetIcon: null
31005
31125
  };
31006
31126
  });
31007
31127
  const mergedSearchCardProps = vue.computed(() => {
@@ -31145,7 +31265,7 @@
31145
31265
  }
31146
31266
  });
31147
31267
 
31148
- var YcPlusPageComponent = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["__scopeId", "data-v-4486eb75"], ["__file", "index.vue"]]);
31268
+ var YcPlusPageComponent = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["__scopeId", "data-v-7c1490fd"], ["__file", "index.vue"]]);
31149
31269
 
31150
31270
  const YcPlusPage = YcPlusPageComponent;
31151
31271
  const RePlusPage = YcPlusPageComponent;
@@ -59623,7 +59743,7 @@
59623
59743
 
59624
59744
  var installer = makeInstaller([...plugins]);
59625
59745
 
59626
- const version = "0.1.30";
59746
+ const version = "0.0.13";
59627
59747
 
59628
59748
  const install = installer.install;
59629
59749
 
@@ -59632,6 +59752,7 @@
59632
59752
  exports.DatePickerValueIsArrayList = DatePickerValueIsArrayList;
59633
59753
  exports.DefaultPageInfo = DefaultPageInfo;
59634
59754
  exports.DefaultPageSizeList = DefaultPageSizeList;
59755
+ exports.DictStoreInjectionKey = DictStoreInjectionKey;
59635
59756
  exports.PlusBreadcrumb = PlusBreadcrumb;
59636
59757
  exports.PlusCheckCard = PlusCheckCard;
59637
59758
  exports.PlusCheckCardGroup = PlusCheckCardGroup;
@@ -59739,6 +59860,7 @@
59739
59860
  exports.selectValueTypeList = selectValueTypeList;
59740
59861
  exports.updateDrawer = updateDrawer;
59741
59862
  exports.useDialogFormConfig = useDialogFormConfig;
59863
+ exports.useDictInjection = useDictInjection;
59742
59864
  exports.useDrawerFormConfig = useDrawerFormConfig;
59743
59865
  exports.useGetOptions = useGetOptions;
59744
59866
  exports.useLocale = useLocale;
package/index.min.css CHANGED
@@ -1,5 +1,5 @@
1
1
  .yc-svg-icon[data-v-34e1f2f7]{display:inline-block;-webkit-mask-size:contain;mask-size:contain;vertical-align:middle}.yc-svg-icon--original[data-v-34e1f2f7]{-o-object-fit:contain;object-fit:contain}
2
- .yc-plus-page[data-v-4486eb75]{height:100%}[data-v-4486eb75] .yc-search-card-body{padding-right:0}[data-v-4486eb75] .plus-table-title-bar__toolbar__icon{font-size:16px!important;position:relative;top:-2px}.column-settings-wrapper[data-v-4486eb75]{align-items:center;cursor:pointer;display:flex;gap:4px;margin-left:8px}.column-settings-text[data-v-4486eb75]{font-size:14px}
2
+ .yc-plus-page[data-v-7c1490fd]{height:100%}.yc-plus-page[data-v-7c1490fd] [data-v-7c1490fd] .plus-page>.el-card{border-radius:8px}[data-v-7c1490fd] .yc-search-card-body{padding-right:0}[data-v-7c1490fd] .plus-table-title-bar__toolbar__icon{font-size:16px!important;position:relative;top:-2px}.column-settings-wrapper[data-v-7c1490fd]{align-items:center;cursor:pointer;display:flex;gap:4px;margin-left:8px}.column-settings-text[data-v-7c1490fd]{font-size:14px}
3
3
  .el-tree .el-tree-node__content{position:relative}.yc-tree-node-label-wrapper{align-items:center;display:flex;flex:1}.yc-tree-node-label{font-size:12px}.yc-tree-node-line-ver{border-left:1px dashed var(--el-border-color-light,#dcdfe6);display:block;height:100%;left:0;position:absolute;top:0}.yc-tree-node-line-ver.last-node-line{border-left:1px dashed transparent}.yc-tree-node-line-ver.last-node-isLeaf-line{height:50%}.yc-tree-node-line-hor{border-bottom:1px dashed var(--el-border-color-light,#dcdfe6);display:block;height:0;left:0;position:absolute;top:50%}
4
4
  .yc-plus-tree[data-v-fa0eccd0]{display:flex;flex-direction:column;height:100%;overflow:auto}.yc-plus-tree[data-v-fa0eccd0] .search-input[data-v-fa0eccd0]{flex-shrink:0;margin-bottom:16px}.yc-plus-tree[data-v-fa0eccd0] .tree-container[data-v-fa0eccd0]{flex:1;min-height:0;overflow:hidden}.yc-plus-tree[data-v-fa0eccd0] .tree-container[data-v-fa0eccd0] [data-v-fa0eccd0] .el-tree-v2{overflow-x:visible!important}.yc-plus-tree[data-v-fa0eccd0] .tree-container[data-v-fa0eccd0] .inline-input-node[data-v-fa0eccd0]{align-items:center;display:flex;flex:1;padding-left:0;padding-right:8px;position:relative;z-index:1}.yc-plus-tree[data-v-fa0eccd0] .tree-container[data-v-fa0eccd0] .inline-input-node[data-v-fa0eccd0] .inline-input[data-v-fa0eccd0]{flex-shrink:0;width:100%}.yc-plus-tree[data-v-fa0eccd0] .tree-container[data-v-fa0eccd0] .inline-input-node[data-v-fa0eccd0] .inline-input[data-v-fa0eccd0] [data-v-fa0eccd0] .el-input__wrapper{border-radius:4px;box-shadow:0 0 0 1px var(--el-border-color) inset;font-size:14px;height:26px;line-height:18px;padding:0 8px;transition:box-shadow .2s ease}.yc-plus-tree[data-v-fa0eccd0] .tree-container[data-v-fa0eccd0] .inline-input-node[data-v-fa0eccd0] .inline-input[data-v-fa0eccd0] [data-v-fa0eccd0] .el-input__wrapper[data-v-fa0eccd0]:hover{box-shadow:0 0 0 1px var(--el-border-color-hover) inset}.yc-plus-tree[data-v-fa0eccd0] .tree-container[data-v-fa0eccd0] .inline-input-node[data-v-fa0eccd0] .inline-input[data-v-fa0eccd0] [data-v-fa0eccd0] .el-input__wrapper.is-focus[data-v-fa0eccd0]{box-shadow:0 0 0 1px var(--el-color-primary) inset}.yc-plus-tree[data-v-fa0eccd0] .tree-container[data-v-fa0eccd0] .inline-input-node[data-v-fa0eccd0] .inline-input[data-v-fa0eccd0] [data-v-fa0eccd0] .el-input__inner{color:rgba(0,0,0,.7);font-size:14px;height:24px;line-height:18px}.yc-plus-tree[data-v-fa0eccd0] .tree-container[data-v-fa0eccd0] .inline-input-node[data-v-fa0eccd0] .inline-input[data-v-fa0eccd0] [data-v-fa0eccd0] .el-input__inner[data-v-fa0eccd0]::-moz-placeholder{color:rgba(0,0,0,.4)}.yc-plus-tree[data-v-fa0eccd0] .tree-container[data-v-fa0eccd0] .inline-input-node[data-v-fa0eccd0] .inline-input[data-v-fa0eccd0] [data-v-fa0eccd0] .el-input__inner[data-v-fa0eccd0]::placeholder{color:rgba(0,0,0,.4)}.yc-plus-tree[data-v-fa0eccd0] .tree-container[data-v-fa0eccd0] [data-v-fa0eccd0] .el-tree-node__content:hover{background-color:var(--el-color-primary-light-9)}.yc-plus-tree[data-v-fa0eccd0] .tree-container[data-v-fa0eccd0] [data-v-fa0eccd0] .el-tree-node__content:hover .label-text[data-v-fa0eccd0]{color:var(--el-color-primary)}.yc-plus-tree[data-v-fa0eccd0] .tree-container[data-v-fa0eccd0] [data-v-fa0eccd0] .el-tree-node__content:hover .label-text{color:var(--el-color-primary)}.yc-plus-tree[data-v-fa0eccd0] .tree-container[data-v-fa0eccd0] [data-v-fa0eccd0] .el-tree-node.is-current>.el-tree-node__content{background-color:var(--el-color-primary-light-9)}.yc-plus-tree[data-v-fa0eccd0] .tree-container[data-v-fa0eccd0] [data-v-fa0eccd0] .el-tree-node.is-current>.el-tree-node__content .label-text{color:var(--el-color-primary)}.yc-plus-tree[data-v-fa0eccd0] .tree-container[data-v-fa0eccd0] .node-label-wrapper[data-v-fa0eccd0]{align-items:center;display:flex;gap:4px;width:100%}.yc-plus-tree[data-v-fa0eccd0] .tree-container[data-v-fa0eccd0] .node-label-wrapper[data-v-fa0eccd0][data-v-fa0eccd0]:hover .node-actions[data-v-fa0eccd0]{opacity:1;pointer-events:auto}.yc-plus-tree[data-v-fa0eccd0] .tree-container[data-v-fa0eccd0] .node-label-wrapper[data-v-fa0eccd0] .node-label[data-v-fa0eccd0],.yc-plus-tree[data-v-fa0eccd0] .tree-container[data-v-fa0eccd0] .node-label-wrapper[data-v-fa0eccd0] [data-v-fa0eccd0] .custom-node-label{align-items:center;display:flex;flex:1;gap:4px;min-width:0}.yc-plus-tree[data-v-fa0eccd0] .tree-container[data-v-fa0eccd0] .node-label-wrapper[data-v-fa0eccd0] .node-label[data-v-fa0eccd0] .label-text[data-v-fa0eccd0],.yc-plus-tree[data-v-fa0eccd0] .tree-container[data-v-fa0eccd0] .node-label-wrapper[data-v-fa0eccd0] .node-label[data-v-fa0eccd0] .node-text[data-v-fa0eccd0],.yc-plus-tree[data-v-fa0eccd0] .tree-container[data-v-fa0eccd0] .node-label-wrapper[data-v-fa0eccd0] [data-v-fa0eccd0] .custom-node-label .label-text[data-v-fa0eccd0],.yc-plus-tree[data-v-fa0eccd0] .tree-container[data-v-fa0eccd0] .node-label-wrapper[data-v-fa0eccd0] [data-v-fa0eccd0] .custom-node-label .node-text[data-v-fa0eccd0]{color:var(--el-text-color-primary)}.yc-plus-tree[data-v-fa0eccd0] .tree-container[data-v-fa0eccd0] .node-label-wrapper[data-v-fa0eccd0] .node-label[data-v-fa0eccd0] .label-text[data-v-fa0eccd0] [data-v-fa0eccd0] .highlight-keyword,.yc-plus-tree[data-v-fa0eccd0] .tree-container[data-v-fa0eccd0] .node-label-wrapper[data-v-fa0eccd0] .node-label[data-v-fa0eccd0] .node-text[data-v-fa0eccd0] [data-v-fa0eccd0] .highlight-keyword,.yc-plus-tree[data-v-fa0eccd0] .tree-container[data-v-fa0eccd0] .node-label-wrapper[data-v-fa0eccd0] [data-v-fa0eccd0] .custom-node-label .label-text[data-v-fa0eccd0] [data-v-fa0eccd0] .highlight-keyword,.yc-plus-tree[data-v-fa0eccd0] .tree-container[data-v-fa0eccd0] .node-label-wrapper[data-v-fa0eccd0] [data-v-fa0eccd0] .custom-node-label .node-text[data-v-fa0eccd0] [data-v-fa0eccd0] .highlight-keyword{background-color:var(--el-color-primary-light-9);border-radius:2px;color:var(--el-color-primary);font-weight:600;padding:0 2px}.yc-plus-tree[data-v-fa0eccd0] .tree-container[data-v-fa0eccd0] .node-label-wrapper[data-v-fa0eccd0] .node-label[data-v-fa0eccd0] .node-count[data-v-fa0eccd0],.yc-plus-tree[data-v-fa0eccd0] .tree-container[data-v-fa0eccd0] .node-label-wrapper[data-v-fa0eccd0] [data-v-fa0eccd0] .custom-node-label .node-count[data-v-fa0eccd0]{color:var(--el-text-color-secondary);font-size:12px}.yc-plus-tree[data-v-fa0eccd0] .tree-container[data-v-fa0eccd0] .node-label-wrapper[data-v-fa0eccd0] .node-actions[data-v-fa0eccd0]{align-items:center;display:flex;flex-shrink:0;margin-left:auto;margin-right:8px;opacity:0;pointer-events:none;transition:opacity .2s ease}.yc-plus-tree[data-v-fa0eccd0] .tree-container[data-v-fa0eccd0] .node-label-wrapper[data-v-fa0eccd0] .node-actions[data-v-fa0eccd0] .action-icon-wrapper[data-v-fa0eccd0]{align-items:center;cursor:pointer;display:flex;justify-content:center}.yc-plus-tree[data-v-fa0eccd0] .tree-container[data-v-fa0eccd0] .node-label-wrapper[data-v-fa0eccd0] .node-actions[data-v-fa0eccd0] .action-icon[data-v-fa0eccd0]{align-items:center;border-radius:4px;color:var(--el-color-primary);cursor:pointer;display:flex;height:20px;justify-content:center;transition:background-color .2s ease;width:20px}.yc-plus-tree[data-v-fa0eccd0] .tree-container[data-v-fa0eccd0] .node-label-wrapper[data-v-fa0eccd0] .node-actions[data-v-fa0eccd0] .action-icon[data-v-fa0eccd0][data-v-fa0eccd0]:hover{background-color:var(--el-color-primary-light-8)}.tree-dropdown-menu[data-v-fa0eccd0]{border-radius:8px!important;min-width:156px!important;padding:8px!important}.tree-dropdown-menu[data-v-fa0eccd0] [data-v-fa0eccd0] .el-dropdown-menu__item{border-radius:8px;font-size:12px;height:32px;line-height:32px;margin:0;padding:0 12px;transition:background-color .2s ease}.tree-dropdown-menu[data-v-fa0eccd0] [data-v-fa0eccd0] .el-dropdown-menu__item[data-v-fa0eccd0]:hover{background-color:var(--el-color-primary-light-9)!important;color:var(--el-color-primary)!important}.tree-dropdown-menu[data-v-fa0eccd0] [data-v-fa0eccd0] .el-dropdown-menu__item[data-v-fa0eccd0]:not(:last-child){margin-bottom:4px}.tree-dropdown-menu[data-v-fa0eccd0] [data-v-fa0eccd0] .el-divider{border-top:1px solid #e5e7eb;margin:12px 0}.tree-dropdown-menu[data-v-fa0eccd0] [data-v-fa0eccd0] .sortable-ghost{background-color:var(--el-color-primary-light-9);border:1px dashed var(--el-color-primary);border-radius:4px;opacity:.4}.tree-dropdown-menu[data-v-fa0eccd0] [data-v-fa0eccd0] .sortable-chosen{background-color:var(--el-color-primary-light-8);box-shadow:0 2px 8px rgba(0,0,0,.1)}.tree-dropdown-menu[data-v-fa0eccd0] [data-v-fa0eccd0] .sortable-drag{background-color:#fff;box-shadow:0 4px 12px rgba(0,0,0,.15);cursor:move;opacity:1;transform:rotate(2deg)}.tree-dropdown-menu[data-v-fa0eccd0] [data-v-fa0eccd0] .sortable-fallback{-webkit-user-select:none;-moz-user-select:none;user-select:none}
5
5
  .tree-dropdown-popper{border:none!important;border-radius:8px!important;overflow:hidden!important}.yc-plus-tree .highlight-keyword{background-color:var(--el-color-primary-light-9);border-radius:2px;color:var(--el-color-primary);font-weight:600;padding:0 2px}.el-tree-node__content:has([data-input-node=true]) .el-tree-node__expand-icon{display:none!important}.sortable-ghost{opacity:.3!important;position:relative!important}.drop-target{background-color:var(--el-color-primary-light-9)!important;border-radius:4px}.drop-target:before{background:var(--el-color-primary);border-radius:1.5px;bottom:0;content:"";left:calc(var(--drop-indent, 0px) - 3px);opacity:.6;position:absolute;top:0;width:3px;z-index:1}