@dazhicheng/ui 1.5.199 → 1.5.202

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 (257) hide show
  1. package/dist/_virtual/_plugin-vue_export-helper.js +9 -0
  2. package/dist/api/dataTypeContext.js +17 -0
  3. package/dist/assets/img/empty_images/no_data.png.js +4 -0
  4. package/dist/assets/img/empty_images/search.png.js +4 -0
  5. package/dist/assets/img/image_status/develop.png.js +4 -0
  6. package/dist/assets/img/image_status/loading.gif.js +4 -0
  7. package/dist/assets/img/image_status/loading_fail.png.js +4 -0
  8. package/dist/assets/img/image_status/no_network.png.js +4 -0
  9. package/dist/assets/img/image_status/no_permission.png.js +4 -0
  10. package/dist/assets/svg/RiRefreshLine.svg.js +4 -0
  11. package/dist/assets/svg/action_more.svg.js +4 -0
  12. package/dist/assets/svg/add.svg.js +4 -0
  13. package/dist/assets/svg/addCircleLine.svg.js +4 -0
  14. package/dist/assets/svg/arrowDown.svg.js +4 -0
  15. package/dist/assets/svg/arrowLineDown.svg.js +5 -0
  16. package/dist/assets/svg/arrowSUp.svg.js +4 -0
  17. package/dist/assets/svg/arrowUp.svg.js +4 -0
  18. package/dist/assets/svg/close.svg.js +4 -0
  19. package/dist/assets/svg/columnSet.svg.js +4 -0
  20. package/dist/assets/svg/determinateCircleLine.svg.js +5 -0
  21. package/dist/assets/svg/drag.svg.js +5 -0
  22. package/dist/assets/svg/exportSvg.svg.js +4 -0
  23. package/dist/assets/svg/fileSvg.svg.js +4 -0
  24. package/dist/assets/svg/help.svg.js +4 -0
  25. package/dist/assets/svg/item_error.svg.js +4 -0
  26. package/dist/assets/svg/paixu-jiangxu.svg.js +4 -0
  27. package/dist/assets/svg/paixu-moren.svg.js +4 -0
  28. package/dist/assets/svg/paixu-shengxu.svg.js +4 -0
  29. package/dist/assets/svg/quanping.svg.js +4 -0
  30. package/dist/assets/svg/suoxiao.svg.js +4 -0
  31. package/dist/components/tt-api-component/index.js +7 -0
  32. package/dist/components/tt-api-component/index.vue.js +7 -0
  33. package/dist/components/tt-api-component/index.vue2.js +199 -0
  34. package/dist/components/tt-area/TtArea.vue.js +7 -0
  35. package/dist/components/tt-area/TtArea.vue3.js +36 -0
  36. package/dist/components/tt-button/components/AddButton.vue.js +24 -0
  37. package/dist/components/tt-button/components/AddButton.vue2.js +4 -0
  38. package/dist/components/tt-button/index.js +9 -0
  39. package/dist/components/tt-button/index.vue.js +7 -0
  40. package/dist/components/tt-button/index.vue2.js +68 -0
  41. package/dist/components/tt-checkbox/index.js +7 -0
  42. package/dist/components/tt-checkbox/index.vue.js +77 -0
  43. package/dist/components/tt-checkbox/index.vue2.js +4 -0
  44. package/dist/components/tt-drawer/index.js +14 -0
  45. package/dist/components/tt-drawer/src/RenderDrawer.vue.js +157 -0
  46. package/dist/components/tt-drawer/src/RenderDrawer.vue3.js +5 -0
  47. package/dist/components/tt-drawer/src/components/DrawerFooter.vue.js +56 -0
  48. package/dist/components/tt-drawer/src/components/DrawerFooter.vue3.js +5 -0
  49. package/dist/components/tt-drawer/src/components/DrawerHeader.vue.js +7 -0
  50. package/dist/components/tt-drawer/src/components/DrawerHeader.vue2.js +21 -0
  51. package/dist/components/tt-drawer/src/hooks/useDrawerRender.js +124 -0
  52. package/dist/components/tt-drawer/src/hooks/useResizable.js +98 -0
  53. package/dist/components/tt-drawer/src/index.js +17 -0
  54. package/dist/components/tt-drawer/src/props.js +72 -0
  55. package/dist/components/tt-drawer/src/utils/drawer-api.js +191 -0
  56. package/dist/components/tt-empty/index.js +34 -0
  57. package/dist/components/tt-form/index.js +59 -0
  58. package/dist/components/tt-form/src/components/ExpandableArrow.vue2.js +38 -0
  59. package/dist/components/tt-form/src/components/ExpandableArrow.vue3.js +5 -0
  60. package/dist/components/tt-form/src/components/FormActions.vue2.js +177 -0
  61. package/dist/components/tt-form/src/components/FormActions.vue3.js +5 -0
  62. package/dist/components/tt-form/src/components/FormElInput.vue.js +80 -0
  63. package/dist/components/tt-form/src/components/FormElInput.vue2.js +4 -0
  64. package/dist/components/tt-form/src/components/Slot.js +28 -0
  65. package/dist/components/tt-form/src/config.js +57 -0
  66. package/dist/components/tt-form/src/form/FormControl.vue.js +16 -0
  67. package/dist/components/tt-form/src/form/FormControl.vue2.js +4 -0
  68. package/dist/components/tt-form/src/form/FormDescription.vue.js +21 -0
  69. package/dist/components/tt-form/src/form/FormDescription.vue2.js +4 -0
  70. package/dist/components/tt-form/src/form/FormItem.vue.js +20 -0
  71. package/dist/components/tt-form/src/form/FormItem.vue2.js +4 -0
  72. package/dist/components/tt-form/src/form/FormLabel.vue.js +19 -0
  73. package/dist/components/tt-form/src/form/FormLabel.vue2.js +4 -0
  74. package/dist/components/tt-form/src/form/FormMessage.vue.js +18 -0
  75. package/dist/components/tt-form/src/form/FormMessage.vue2.js +4 -0
  76. package/dist/components/tt-form/src/form/FormMessageToolTip.vue.js +30 -0
  77. package/dist/components/tt-form/src/form/FormMessageToolTip.vue2.js +4 -0
  78. package/dist/components/tt-form/src/form/RenderContent.vue.js +31 -0
  79. package/dist/components/tt-form/src/form/RenderContent.vue2.js +4 -0
  80. package/dist/components/tt-form/src/form/injectionKeys.js +4 -0
  81. package/dist/components/tt-form/src/form/useFormField.js +24 -0
  82. package/dist/components/tt-form/src/form-render/FormField.vue.js +4 -0
  83. package/dist/components/tt-form/src/form-render/FormField.vue2.js +345 -0
  84. package/dist/components/tt-form/src/form-render/FormFieldContact.js +54 -0
  85. package/dist/components/tt-form/src/form-render/FormLabel.vue.js +4 -0
  86. package/dist/components/tt-form/src/form-render/FormLabel.vue2.js +101 -0
  87. package/dist/components/tt-form/src/form-render/array-register/FormArrayRegister.js +195 -0
  88. package/dist/components/tt-form/src/form-render/array-register/props.js +47 -0
  89. package/dist/components/tt-form/src/form-render/array-register/utils.js +12 -0
  90. package/dist/components/tt-form/src/form-render/context.js +15 -0
  91. package/dist/components/tt-form/src/form-render/dependencies.js +51 -0
  92. package/dist/components/tt-form/src/form-render/expandable.js +46 -0
  93. package/dist/components/tt-form/src/form-render/form.vue2.js +196 -0
  94. package/dist/components/tt-form/src/form-render/form.vue3.js +5 -0
  95. package/dist/components/tt-form/src/form-render/helper.js +22 -0
  96. package/dist/components/tt-form/src/form-render/rootWrapperClass.js +10 -0
  97. package/dist/components/tt-form/src/formApi.js +790 -0
  98. package/dist/components/tt-form/src/group-form/GroupForm.vue2.js +223 -0
  99. package/dist/components/tt-form/src/group-form/GroupForm.vue3.js +5 -0
  100. package/dist/components/tt-form/src/group-form/GroupSection.vue2.js +277 -0
  101. package/dist/components/tt-form/src/group-form/GroupSection.vue3.js +5 -0
  102. package/dist/components/tt-form/src/group-form/LazyFormField.vue.js +153 -0
  103. package/dist/components/tt-form/src/group-form/LazyFormField.vue3.js +5 -0
  104. package/dist/components/tt-form/src/group-form/groupFormApi.js +700 -0
  105. package/dist/components/tt-form/src/group-form/lazyContext.js +38 -0
  106. package/dist/components/tt-form/src/group-form/useGroupForm.js +83 -0
  107. package/dist/components/tt-form/src/group-form/utils.js +106 -0
  108. package/dist/components/tt-form/src/hooks/useArrayRegistry.js +22 -0
  109. package/dist/components/tt-form/src/hooks/useFieldArray.js +137 -0
  110. package/dist/components/tt-form/src/hooks/useForwardPriorityValues.js +33 -0
  111. package/dist/components/tt-form/src/hooks/useSelectCollapse.js +81 -0
  112. package/dist/components/tt-form/src/index.vue2.js +147 -0
  113. package/dist/components/tt-form/src/index.vue3.js +5 -0
  114. package/dist/components/tt-form/src/shared/createContext.js +14 -0
  115. package/dist/components/tt-form/src/shared/global-state.js +22 -0
  116. package/dist/components/tt-form/src/shared/zod-defaults.js +47 -0
  117. package/dist/components/tt-form/src/types/forms.js +6 -0
  118. package/dist/components/tt-form/src/useForm.js +28 -0
  119. package/dist/components/tt-form/src/useFormContext.js +320 -0
  120. package/dist/components/tt-form/src/utils/array-path.js +18 -0
  121. package/dist/components/tt-form-item-error-tooltip/index.js +9 -0
  122. package/dist/components/tt-form-item-error-tooltip/index.vue.js +183 -0
  123. package/dist/components/tt-form-item-error-tooltip/index.vue3.js +5 -0
  124. package/dist/components/tt-icon/components/AddIcon.vue.js +28 -0
  125. package/dist/components/tt-icon/components/AddIcon.vue2.js +4 -0
  126. package/dist/components/tt-icon/components/SubIcon.vue.js +28 -0
  127. package/dist/components/tt-icon/components/SubIcon.vue2.js +4 -0
  128. package/dist/components/tt-icon/index.js +11 -0
  129. package/dist/components/tt-icon/index.vue.js +8 -0
  130. package/dist/components/tt-icon/index.vue2.js +115 -0
  131. package/dist/components/tt-image/index.js +9 -0
  132. package/dist/components/tt-image/src/components/ImageViewer.js +41 -0
  133. package/dist/components/tt-image/tt-image.js +55 -0
  134. package/dist/components/tt-loading/index.js +8 -0
  135. package/dist/components/tt-loading/src/directive.js +51 -0
  136. package/dist/components/tt-loading/src/loading.vue.js +7 -0
  137. package/dist/components/tt-loading/src/loading.vue2.js +75 -0
  138. package/dist/components/tt-loading/src/service.js +79 -0
  139. package/dist/components/tt-log/index.js +7 -0
  140. package/dist/components/tt-log/index.vue.js +31 -0
  141. package/dist/components/tt-log/index.vue2.js +4 -0
  142. package/dist/components/tt-modal/index.js +14 -0
  143. package/dist/components/tt-modal/src/RenderModal.vue.js +310 -0
  144. package/dist/components/tt-modal/src/RenderModal.vue3.js +5 -0
  145. package/dist/components/tt-modal/src/components/ModalFooter.vue.js +7 -0
  146. package/dist/components/tt-modal/src/components/ModalFooter.vue2.js +74 -0
  147. package/dist/components/tt-modal/src/components/ModalHeader.vue.js +7 -0
  148. package/dist/components/tt-modal/src/components/ModalHeader.vue2.js +22 -0
  149. package/dist/components/tt-modal/src/components/ModalWrapper.vue.js +48 -0
  150. package/dist/components/tt-modal/src/components/ModalWrapper.vue2.js +4 -0
  151. package/dist/components/tt-modal/src/hooks/useModalRender.js +131 -0
  152. package/dist/components/tt-modal/src/index.js +17 -0
  153. package/dist/components/tt-modal/src/props.js +75 -0
  154. package/dist/components/tt-modal/src/utils/modal-api.js +200 -0
  155. package/dist/components/tt-modal/src/utils/modal-stack.js +28 -0
  156. package/dist/components/tt-modal-form/hooks/useModalFormSlot.js +22 -0
  157. package/dist/components/tt-modal-form/index.vue.js +201 -0
  158. package/dist/components/tt-modal-form/index.vue2.js +4 -0
  159. package/dist/components/tt-modal-form/useModalForm.js +30 -0
  160. package/dist/components/tt-nav-anchor/index.js +8 -0
  161. package/dist/components/tt-nav-anchor/src/TtNavAnchor.vue.js +234 -0
  162. package/dist/components/tt-nav-anchor/src/TtNavAnchor.vue3.js +5 -0
  163. package/dist/components/tt-nav-anchor/src/constants.js +4 -0
  164. package/dist/components/tt-panel-select/index.js +7 -0
  165. package/dist/components/tt-panel-select/src/common.js +4 -0
  166. package/dist/components/tt-panel-select/src/components/PanelLeft.vue.js +56 -0
  167. package/dist/components/tt-panel-select/src/components/PanelLeft.vue2.js +4 -0
  168. package/dist/components/tt-panel-select/src/components/PanelMiddle.vue.js +277 -0
  169. package/dist/components/tt-panel-select/src/components/PanelMiddle.vue2.js +4 -0
  170. package/dist/components/tt-panel-select/src/components/PanelRight.vue.js +108 -0
  171. package/dist/components/tt-panel-select/src/components/PanelRight.vue2.js +4 -0
  172. package/dist/components/tt-panel-select/src/hooks/usePanelData.js +184 -0
  173. package/dist/components/tt-panel-select/src/hooks/usePanelSelection.js +91 -0
  174. package/dist/components/tt-panel-select/src/index.vue.js +386 -0
  175. package/dist/components/tt-panel-select/src/index.vue2.js +4 -0
  176. package/dist/components/tt-select/index.js +8 -0
  177. package/dist/components/tt-select/src/Select.vue.js +315 -0
  178. package/dist/components/tt-select/src/Select.vue3.js +5 -0
  179. package/dist/components/tt-select/src/components/SelectTable.vue.js +86 -0
  180. package/dist/components/tt-select/src/components/SelectTable.vue3.js +5 -0
  181. package/dist/components/tt-select/src/components/Table.vue.js +307 -0
  182. package/dist/components/tt-select/src/components/Table.vue3.js +5 -0
  183. package/dist/components/tt-select/src/const.js +19 -0
  184. package/dist/components/tt-select/src/hooks/useDataSource.js +196 -0
  185. package/dist/components/tt-select/src/hooks/useGrid.js +97 -0
  186. package/dist/components/tt-select/src/hooks/useKeyboard.js +63 -0
  187. package/dist/components/tt-select/src/hooks/usePagination.js +45 -0
  188. package/dist/components/tt-select/src/hooks/useSelect.js +100 -0
  189. package/dist/components/tt-select/src/hooks/useSelectTableEvent.d.ts +1 -1
  190. package/dist/components/tt-select/src/hooks/useSelectTableEvent.js +345 -0
  191. package/dist/components/tt-select/src/props.js +201 -0
  192. package/dist/components/tt-select/src/utils/index.js +16 -0
  193. package/dist/components/tt-table/index.js +63 -0
  194. package/dist/components/tt-table/src/Table.vue.js +623 -0
  195. package/dist/components/tt-table/src/Table.vue3.js +5 -0
  196. package/dist/components/tt-table/src/TableForm.vue.js +356 -0
  197. package/dist/components/tt-table/src/TableForm.vue2.js +4 -0
  198. package/dist/components/tt-table/src/componentMap.js +4 -0
  199. package/dist/components/tt-table/src/components/RowContext.js +24 -0
  200. package/dist/components/tt-table/src/components/TableAction.vue.js +222 -0
  201. package/dist/components/tt-table/src/components/TableAction.vue2.js +4 -0
  202. package/dist/components/tt-table/src/components/TableButtons.js +117 -0
  203. package/dist/components/tt-table/src/components/TableColumnModal.vue2.js +234 -0
  204. package/dist/components/tt-table/src/components/TableColumnModal.vue3.js +5 -0
  205. package/dist/components/tt-table/src/components/TableToobalTools.vue.js +87 -0
  206. package/dist/components/tt-table/src/components/TableToobalTools.vue2.js +4 -0
  207. package/dist/components/tt-table/src/emits.js +15 -0
  208. package/dist/components/tt-table/src/hooks/useCellArea.js +15 -0
  209. package/dist/components/tt-table/src/hooks/useColumns.js +275 -0
  210. package/dist/components/tt-table/src/hooks/useCustomColumns.js +53 -0
  211. package/dist/components/tt-table/src/hooks/useDataSource.js +224 -0
  212. package/dist/components/tt-table/src/hooks/useLeftRightSlot.js +64 -0
  213. package/dist/components/tt-table/src/hooks/usePagination.js +44 -0
  214. package/dist/components/tt-table/src/hooks/useRowSelection.js +84 -0
  215. package/dist/components/tt-table/src/hooks/useTableContext.js +20 -0
  216. package/dist/components/tt-table/src/hooks/useTableEvent.js +197 -0
  217. package/dist/components/tt-table/src/hooks/useTableForm.js +60 -0
  218. package/dist/components/tt-table/src/hooks/useTableRender.js +33 -0
  219. package/dist/components/tt-table/src/hooks/useTableSlot.js +17 -0
  220. package/dist/components/tt-table/src/props.js +482 -0
  221. package/dist/components/tt-table/src/toolProps.js +30 -0
  222. package/dist/components/tt-table/src/utils/context.js +17 -0
  223. package/dist/components/tt-table/src/utils/table-api.js +386 -0
  224. package/dist/components/tt-table/src/utils/table-form-api.js +122 -0
  225. package/dist/components/tt-text/index.js +7 -0
  226. package/dist/components/tt-text/index.vue.js +7 -0
  227. package/dist/components/tt-text/index.vue2.js +73 -0
  228. package/dist/components/tt-upload/index.js +9 -0
  229. package/dist/components/tt-upload/src/TtUpload.vue.js +306 -0
  230. package/dist/components/tt-upload/src/TtUpload.vue2.js +4 -0
  231. package/dist/components/tt-upload/src/typing.js +107 -0
  232. package/dist/directives/auto-tip/index.js +62 -0
  233. package/dist/directives/dialog-resize/index.js +49 -0
  234. package/dist/directives/dialog-resize/use-css-variable.js +44 -0
  235. package/dist/directives/dialog-resize/use-draggable.js +35 -0
  236. package/dist/directives/dialog-resize/use-fullscreen.js +38 -0
  237. package/dist/directives/dialog-resize/use-parse-translate.js +9 -0
  238. package/dist/directives/dialog-resize/use-resizer.js +37 -0
  239. package/dist/directives/disabled-tip/index.js +78 -0
  240. package/dist/directives/index.js +8 -0
  241. package/dist/hooks/useDataPermissionOptions.js +142 -0
  242. package/dist/hooks/useFormSchemasLink.js +261 -0
  243. package/dist/hooks/useFormat.js +44 -0
  244. package/dist/hooks/useLoading.js +22 -0
  245. package/dist/hooks/useScreenshotOss.js +69 -0
  246. package/dist/hooks/useSetup.js +59 -0
  247. package/dist/hooks/useTable.js +13 -0
  248. package/dist/hooks/useTemplateSlot.js +13 -0
  249. package/dist/index.js +142 -60274
  250. package/dist/plugins/default/renderCellContent.js +58 -0
  251. package/dist/plugins/vxeTable/switchStatus.js +91 -0
  252. package/dist/plugins.js +4 -146
  253. package/dist/style.css +1 -1
  254. package/dist/utils/xhr.js +8 -0
  255. package/package.json +5 -3
  256. package/dist/index-NG5FNCLD.js +0 -3430
  257. package/dist/index.modern-4Cf3dcJP.js +0 -3069
@@ -0,0 +1,5 @@
1
+ const e = `<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 24 24"><!-- Icon from Remix Icon by Remix Design - https://github.com/Remix-Design/RemixIcon/blob/master/License --><path fill="currentColor" d="M12 22C6.477 22 2 17.523 2 12S6.477 2 12 2s10 4.477 10 10s-4.477 10-10 10m0-2a8 8 0 1 0 0-16a8 8 0 0 0 0 16m-5-9h10v2H7z"/></svg>\r
2
+ `;
3
+ export {
4
+ e as default
5
+ };
@@ -0,0 +1,5 @@
1
+ const e = `<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 24 24" fill="currentColor"><!-- Icon from Remix Icon by Remix Design - https://github.com/Remix-Design/RemixIcon/blob/master/License --><path d="M18 11V8l4 4l-4 4v-3h-5v5h3l-4 4l-4-4h3v-5H6v3l-4-4l4-4v3h5V6H8l4-4l4 4h-3v5z"/></svg>\r
2
+ `;
3
+ export {
4
+ e as default
5
+ };
@@ -0,0 +1,4 @@
1
+ const t = '<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" fill="none" version="1.1" width="45" height="40" viewBox="0 0 45 40"><defs><clipPath id="master_svg0_253_199718"><rect x="0" y="2" width="45" height="36" rx="0"/></clipPath></defs><g><rect x="0" y="0" width="45" height="40" rx="0" fill="#000000" fill-opacity="0" style="mix-blend-mode:passthrough"/><g clip-path="url(#master_svg0_253_199718)"><g transform="matrix(1,0,0,-1,0,73.046875)"><path d="M10.125,36.5234375Q5.8359375,36.6640625,2.953125,39.4765625Q0.140625,42.359375,0,46.6484375Q0.0703125,50.0234375,1.8984375,52.5546875Q3.7265625,55.0859375,6.75,56.2109375Q6.75,56.4921875,6.75,56.7734375Q6.890625,61.5546875,10.054688,64.7187495Q13.21875,67.8828125,18,68.0234375Q21.164062,67.9531255,23.695312,66.4765625Q26.226562,64.9296875,27.773438,62.3984375Q29.390625,63.5234375,31.5,63.5234375Q34.382812,63.4531255,36.28125,61.5546875Q38.179688,59.6562495,38.25,56.7734375Q38.25,55.5078125,37.828125,54.3124995Q40.921875,53.6796875,42.960938,51.2187495Q44.929688,48.8281255,45,45.5234375Q44.929688,41.7265625,42.398438,39.125Q39.796875,36.59375,36,36.5234375L10.125,36.5234375ZM15.679688,51.7812495Q14.695312,50.5859375,15.679688,49.3906255Q16.875,48.4062495,18.070312,49.3906255L20.8125,52.1328125L20.8125,42.7109375Q20.953125,41.1640625,22.5,41.0234375Q24.046875,41.1640625,24.1875,42.7109375L24.1875,52.1328125L26.929688,49.3906255Q28.125,48.4062495,29.320312,49.3906255Q30.304688,50.5859375,29.320312,51.7812495L23.695312,57.4062495Q22.5,58.3906255,21.304688,57.4062495L15.679688,51.7812495Z" fill="#9CA3AF" fill-opacity="1" style="mix-blend-mode:passthrough"/></g></g></g></svg>';
2
+ export {
3
+ t as default
4
+ };
@@ -0,0 +1,4 @@
1
+ const t = '<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" fill="none" version="1.1" width="28" height="24" viewBox="0 0 28 24"><defs><linearGradient x1="0.5" y1="0" x2="0.5" y2="0.4449613392353058" id="master_svg0_418_379350"><stop offset="0%" stop-color="#5895FF" stop-opacity="1"/><stop offset="100%" stop-color="#5879FF" stop-opacity="1"/></linearGradient></defs><path d="M0,22C0,23.10457,0.89543056,24,2.0000002,24L26,24C27.10457,24,28,23.10457,28,22L28,5C28,3.8954303,27.10457,3,26,3L12.526983,3C12.002791,3,11.499552,2.7942023,11.125567,2.4268966L9.2380686,0.57310355C8.8640842,0.20579791,8.3608446,0,7.8366528,0L2,0C0.89543056,0,0,0.89543056,0,2.0000002L0,22Z" fill="url(#master_svg0_418_379350)" fill-opacity="1"/><path d="M2.0363636016845703,8C2.0363636016845703,8.5522847,2.4840788816845705,9,3.0363641016845704,9L24.96363660168457,9C25.51592060168457,9,25.96363660168457,8.5522847,25.96363660168457,8L25.96363660168457,6.0000001C25.96363660168457,5.44771528,25.51592060168457,5,24.96363660168457,5L3.0363637016845706,5C2.4840788816845705,5,2.0363636016845703,5.44771528,2.0363636016845703,6L2.0363636016845703,8Z" fill="#F7FBFF" fill-opacity="1"/><path d="M0,22C0,23.10457,0.89543056,24,2.0000005,24L26,24C27.10457,24,28,23.10457,28,22L28,9.0000002C28,7.89543056,27.10457,7,26,7L2.0000002,7C0.89543056,7,0,7.89543056,0,9L0,22Z" fill="#6498FF" fill-opacity="1"/></svg>';
2
+ export {
3
+ t as default
4
+ };
@@ -0,0 +1,4 @@
1
+ const a = '<svg t="1741768777716" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="10878" width="200" height="200"><path d="M41.301333 510.634667c0-259.2 210.133333-469.333333 469.333334-469.333334s469.333333 210.133333 469.333333 469.333334-210.133333 469.333333-469.333333 469.333333-469.333333-210.133333-469.333334-469.333333z m85.333334 0a384 384 0 1 0 768 0 384 384 0 0 0-768 0z" p-id="10879"></path><path d="M679.082667 427.989333c-4.266667 35.114667-15.957333 63.658667-34.901334 85.632-10.922667 12.629333-27.904 25.685333-50.944 39.168l-0.085333 0.042667-0.213333 0.128c-13.44 7.850667-21.76 13.909333-24.96 18.218667-5.674667 7.466667-8.533333 20.138667-8.533334 37.888 0 12.373333-4.693333 22.869333-14.165333 31.530666a47.530667 47.530667 0 0 1-33.237333 12.629334c-12.928 0-24.021333-4.224-33.237334-12.629334a41.088 41.088 0 0 1-14.165333-31.530666c0-37.290667 9.045333-67.413333 27.050667-90.453334 10.410667-13.226667 27.392-26.752 50.944-40.533333l0.213333-0.128c13.952-8.192 23.210667-14.976 27.733333-20.352 6.912-8.234667 11.52-20.565333 13.824-36.906667-0.682667-16-7.808-29.738667-21.376-41.173333a76.586667 76.586667 0 0 0-51.072-17.92c-20.266667 0-37.504 6.144-51.712 18.432-13.866667 11.946667-20.778667 26.282667-20.778666 42.965333 0 12.373333-4.693333 22.869333-14.165334 31.488a47.530667 47.530667 0 0 1-33.237333 12.672c-12.928 0-24.021333-4.266667-33.237333-12.672a41.088 41.088 0 0 1-14.165334-31.488c0-41.472 16.469333-76.8 49.408-106.154666 32.682667-29.013333 71.978667-43.52 117.888-43.52 45.909333 0 85.205333 14.506667 117.845334 43.52 32.981333 29.312 49.493333 64.682667 49.536 106.154666v2.474667l-0.256 2.56zM553.301333 750.549333q0 4.224-0.810666 8.362667-0.853333 4.096-2.432 7.978667-1.621333 3.882667-3.925334 7.381333-2.346667 3.498667-5.333333 6.485333-2.986667 2.986667-6.442667 5.290667-3.498667 2.346667-7.381333 3.925333-3.882667 1.621333-8.021333 2.432-4.096 0.853333-8.32 0.853334-4.181333 0-8.32-0.853334-4.096-0.810667-7.978667-2.432-3.882667-1.578667-7.381333-3.925333-3.498667-2.346667-6.485334-5.290667-2.986667-2.986667-5.290666-6.485333-2.346667-3.498667-3.968-7.381333-1.578667-3.84-2.432-7.978667-0.810667-4.138667-0.810667-8.362667 0-4.181333 0.853333-8.32 0.810667-4.096 2.389334-7.978666 1.621333-3.882667 3.968-7.381334 2.346667-3.498667 5.290666-6.485333 2.986667-2.986667 6.485334-5.290667 3.498667-2.346667 7.381333-3.925333 3.84-1.621333 7.978667-2.432 4.138667-0.853333 8.32-0.853333 4.224 0 8.32 0.853333 4.138667 0.810667 8.021333 2.432 3.84 1.578667 7.381333 3.925333 3.498667 2.346667 6.442667 5.290667 2.986667 2.986667 5.333333 6.485333 2.304 3.498667 3.925334 7.381334 1.621333 3.84 2.432 7.978666 0.853333 4.138667 0.853333 8.32z" p-id="10880"></path></svg>';
2
+ export {
3
+ a as default
4
+ };
@@ -0,0 +1,4 @@
1
+ const a = '<svg t="1704360429753" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="4229" width="200" height="200"><path d="M0 512a512 512 0 1 1 512 512 512 512 0 0 1-512-512z" fill="#EC4646" p-id="4230"></path><path d="M657.042286 302.592l-141.897143 141.897143-136.338286-136.265143a46.957714 46.957714 0 1 0-66.413714 66.486857l136.265143 136.265143-141.897143 141.897143a48.347429 48.347429 0 0 0 68.388571 68.388571l141.897143-141.897143 137.069714 136.996572a46.957714 46.957714 0 1 0 66.413715-66.413714L583.533714 512.877714l141.897143-141.897143a48.493714 48.493714 0 0 0-68.388571-68.388571z" fill="#FFFFFF" p-id="4231"></path></svg>';
2
+ export {
3
+ a as default
4
+ };
@@ -0,0 +1,4 @@
1
+ const s = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20class='icon'%20width='16px'%20height='16px'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M109.568%20411.648L512%209.216l402.432%20402.432z'%20fill='%23B8BABC'%20/%3e%3cpath%20d='M109.568%20612.352l402.432%20402.432%20402.432-402.432z'%20fill='%231684FC'%20/%3e%3c/svg%3e";
2
+ export {
3
+ s as default
4
+ };
@@ -0,0 +1,4 @@
1
+ const s = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20class='icon'%20width='16px'%20height='16px'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M109.568%20411.648L512%209.216l402.432%20402.432zM109.568%20612.352l402.432%20402.432%20402.432-402.432z'%20fill='%23B8BABC'%20/%3e%3c/svg%3e";
2
+ export {
3
+ s as default
4
+ };
@@ -0,0 +1,4 @@
1
+ const e = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20class='icon'%20width='16px'%20height='16px'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M109.568%20411.648L512%209.216l402.432%20402.432z'%20fill='%231684FC'%20/%3e%3cpath%20d='M109.568%20612.352l402.432%20402.432%20402.432-402.432z'%20fill='%23B8BABC'%20/%3e%3c/svg%3e";
2
+ export {
3
+ e as default
4
+ };
@@ -0,0 +1,4 @@
1
+ const c = '<svg t="1753149398702" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="23927" width="200" height="200"><path d="M645.632 175.616l141.312 0.512-158.72 157.696c-17.408 17.408-17.408 46.08 0 63.488 17.408 17.408 45.568 17.408 62.976 0l160.256-159.232-1.024 144.384c-0.512 17.92 13.824 33.792 31.744 33.28h23.04c17.92-0.512 32.768-11.264 33.28-29.184l1.024-250.368c0-0.512-1.024-0.512-1.024-1.024l1.536-16.384c0-9.216-2.048-17.408-7.68-23.04s-13.824-9.216-23.04-9.216l-16.384 0.512h-1.024l-250.88-1.536c-17.92 0.512-32.768 15.36-33.28 33.28v23.04c3.584 22.016 19.968 34.304 37.888 33.792zM608.256 881.664v23.04c0.512 17.92 15.36 33.28 33.28 33.792l249.344-1.536h1.024l16.384 0.512c8.704 0.512 16.896-3.072 22.528-9.216 5.632-5.632 7.68-13.824 7.68-23.04l-1.536-16.384c0-0.512 1.024-0.512 1.024-1.024l-1.024-248.32c-0.512-17.92-15.36-28.672-33.28-29.184h-24.064c-17.92-0.512-32.256 15.36-31.744 33.28l1.024 141.312-159.744-158.72c-17.408-17.408-45.568-17.408-62.464 0-17.408 17.408-17.408 46.08 0 63.488l159.232 159.232-140.288 0.512c-17.92 0-34.304 10.752-37.376 32.256zM93.184 926.208c5.632 5.632 13.824 9.216 23.04 9.216l16.384-0.512h1.024l247.296 1.536c17.92-0.512 32.768-15.36 33.28-33.792v-23.04c-2.56-21.504-19.456-32.256-37.376-32.256l-139.264-0.512 160.256-159.232c17.408-17.408 17.408-46.08 0-63.488-17.408-17.408-45.568-17.408-62.976 0L174.592 783.36l1.024-140.288c0.512-17.92-13.824-33.792-31.744-33.28h-23.04c-17.92 0.512-32.768 11.264-33.28 29.184l-1.024 246.784c0 0.512 1.024 0.512 1.024 1.024l-1.536 16.384c-0.512 9.216 1.536 17.408 7.168 23.04zM84.48 136.192l1.024 250.368c0.512 17.92 15.36 28.672 33.28 29.184h24.064c17.92 0.512 32.256-15.36 31.744-33.28l-1.024-143.36L332.8 397.312c17.408 17.408 45.568 17.408 62.976 0 17.408-17.408 17.408-46.08 0-63.488L237.568 176.128l139.264-0.512c17.92 0.512 34.304-12.288 37.376-33.28v-23.04c-0.512-17.92-15.36-33.28-33.28-33.28l-249.856 1.024h-1.024l-16.384-0.512c-8.704 0-16.896 3.072-22.528 9.216-5.632 5.632-7.68 13.824-7.68 23.04l1.536 16.384c0.512 0.512-0.512 0.512-0.512 1.024z" p-id="23928"></path></svg>';
2
+ export {
3
+ c as default
4
+ };
@@ -0,0 +1,4 @@
1
+ const c = '<svg t="1753149534573" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="24208" width="200" height="200"><path d="M923.379 305.415l-141.484-0.515 158.758-157.807c17.345-17.546 17.345-45.963 0-63.456-17.45-17.494-45.684-17.494-63.046 0L717.314 243.093l1.081-144.31c0.419-18.113-13.873-33.87-31.898-33.443H663.69c-18.008 0.47-32.928 11.237-33.294 29.35l-0.942 250.38c0 0.321 1.17 0.558 1.17 0.888l-1.746 16.421c-0.14 9.03 1.99 17.162 7.819 22.947 5.74 5.88 13.837 9.405 22.806 9.179l16.28-0.332c0.367 0 0.612-0.14 0.943-0.192l250.701 1.413c18.026-0.418 32.876-15.381 33.346-33.53v-23.006c-2.723-21.35-19.422-33.862-37.394-33.443z m35.7 381.697l-0.051-22.999c-0.419-18.148-15.234-33.102-33.154-33.538l-249.393 1.36c-0.366 0-0.611-0.14-0.943-0.14l-16.21-0.365c-8.952-0.28-16.996 3.298-22.72 9.126-5.793 5.828-7.906 13.96-7.73 23.035l1.744 16.42c0 0.331-1.17 0.576-1.17 0.89l0.943 248.45c0.366 18.112 15.182 28.88 33.154 29.315l24.186 0.035c17.921 0.436 32.126-15.373 31.689-33.487l-1.03-141.396 159.65 158.48c17.256 17.483 45.386 17.483 62.696 0 17.31-17.503 17.31-45.911 0-63.449L781.285 719.622l140.54-0.524c17.887 0.47 34.533-10.627 37.255-31.986z m-573.468-46.521c-5.74-5.828-13.837-9.406-22.808-9.109l-16.332 0.367c-0.279 0-0.558 0.14-0.873 0.14L98.23 630.575c-17.974 0.437-32.893 15.39-33.312 33.538l-0.052 23c2.722 21.358 19.439 32.422 37.412 32.09l139.494 0.505-160.05 159.177c-17.415 17.555-17.415 45.963 0 63.448 17.38 17.503 45.561 17.503 62.96 0l160.31-159.403-1.082 140.54c-0.436 18.113 13.873 33.87 31.846 33.451h22.86c18.008-0.471 32.91-11.203 33.294-29.351l0.943-246.67c0-0.315-1.17-0.559-1.17-0.89l1.78-16.42c0.087-9.022-2.007-17.153-7.852-23z m7.206-295.52l-0.941-250.38c-0.35-18.113-15.2-28.923-33.12-29.394H334.57c-17.903-0.384-32.107 15.373-31.688 33.443l1.081 143.315L144.368 83.637c-17.363-17.494-45.44-17.494-62.75 0-17.31 17.493-17.31 45.91 0 63.456L239.661 304.9l-139.232 0.515c-17.868-0.419-34.48 12.092-37.202 33.444l0.034 23.007c0.436 18.147 15.252 33.11 33.173 33.53l249.374-1.414c0.35 0.052 0.577 0.192 0.908 0.192l16.229 0.375c8.933 0.235 17.03-3.289 22.72-9.17 5.792-5.837 7.887-13.968 7.712-23.05l-1.78-16.412c0-0.332 1.22-0.525 1.22-0.847z m0 0" p-id="24209"></path></svg>';
2
+ export {
3
+ c as default
4
+ };
@@ -0,0 +1,7 @@
1
+ import { withInstall as o } from "@dazhicheng/utils";
2
+ import t from "./index.vue.js";
3
+ const r = o(t);
4
+ export {
5
+ r as TtApiComponent,
6
+ r as default
7
+ };
@@ -0,0 +1,7 @@
1
+ import o from "./index.vue2.js";
2
+ /* empty css */
3
+ import t from "../../_virtual/_plugin-vue_export-helper.js";
4
+ const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-40e4a7e5"]]);
5
+ export {
6
+ m as default
7
+ };
@@ -0,0 +1,199 @@
1
+ import { defineComponent as H, mergeModels as D, useModel as J, useAttrs as Q, useSlots as W, ref as u, computed as g, unref as t, watch as X, createBlock as Y, openBlock as E, resolveDynamicComponent as Z, mergeProps as ee, createSlots as te, renderList as ae, withCtx as P, renderSlot as oe, normalizeProps as le, guardReactiveProps as ne, createElementBlock as ie, createCommentVNode as re, normalizeClass as se, createVNode as $, nextTick as de } from "vue";
2
+ import { ElIcon as ue } from "element-plus";
3
+ import { Loading as fe } from "@element-plus/icons-vue";
4
+ import { useDesign as ce } from "@dazhicheng/hooks";
5
+ import { isEqual as pe, get as h, cloneDeep as L } from "lodash-es";
6
+ import { isFunction as y } from "@dazhicheng/utils";
7
+ import { objectOmit as _ } from "@vueuse/core";
8
+ const Se = /* @__PURE__ */ H({
9
+ name: "ApiComponent",
10
+ inheritAttrs: !1,
11
+ __name: "index",
12
+ props: /* @__PURE__ */ D({
13
+ component: {},
14
+ numberToString: { type: Boolean, default: !1 },
15
+ api: { type: Function, default: void 0 },
16
+ params: { default: () => ({}) },
17
+ resultField: { default: "" },
18
+ labelField: { default: "label" },
19
+ childrenField: { default: "" },
20
+ valueField: { default: "value" },
21
+ disabledField: { default: "disabled" },
22
+ optionsPropName: { default: "options" },
23
+ immediate: { type: Boolean, default: !0 },
24
+ alwaysLoad: { type: Boolean, default: !1 },
25
+ beforeFetch: { type: Function, default: void 0 },
26
+ afterFetch: { type: Function, default: void 0 },
27
+ options: { default: () => [] },
28
+ loadingSlot: { default: "" },
29
+ visibleEvent: { default: "" },
30
+ modelPropName: { default: "modelValue" },
31
+ autoSelect: { type: [String, Function, Boolean], default: !1 }
32
+ }, {
33
+ modelValue: { default: void 0 },
34
+ modelModifiers: {}
35
+ }),
36
+ emits: /* @__PURE__ */ D(["optionsChange", "change"], ["update:modelValue"]),
37
+ setup(w, { expose: z, emit: M }) {
38
+ const { prefixCls: T } = ce("api-component"), a = w, C = M, f = J(w, "modelValue"), j = Q(), q = W(), k = u({}), m = u([]), c = u(!1), b = u(!1), F = u(!1), o = g(() => {
39
+ var O;
40
+ const { labelField: e, valueField: n, disabledField: i, childrenField: l, numberToString: r } = a, s = t(m);
41
+ function S(v) {
42
+ return v.map((d) => {
43
+ const R = h(d, n);
44
+ return {
45
+ ..._(d, [e, n, i, l].filter(Boolean)),
46
+ label: h(d, e),
47
+ value: r ? `${R}` : R,
48
+ disabled: h(d, i),
49
+ ...l && d[l] ? { children: S(d[l]) } : {}
50
+ };
51
+ });
52
+ }
53
+ const N = S(s), G = (O = a.options) != null && O.every((v) => Reflect.has(v, "value") && Reflect.has(v, "label")) ? a.options : S(a.options);
54
+ return N.length > 0 ? N : G;
55
+ }), x = g(() => ({
56
+ [a.modelPropName]: t(f),
57
+ [a.optionsPropName]: t(o),
58
+ [`onUpdate:${a.modelPropName}`]: (e) => {
59
+ f.value = e;
60
+ },
61
+ ..._(j, [`onUpdate:${a.modelPropName}`]),
62
+ ...a.visibleEvent ? {
63
+ [a.visibleEvent]: U
64
+ } : {},
65
+ /**
66
+ * Element Plus 的 ElSelect / ElSelectV2 等:`loading` 插槽仅在 `props.loading === true` 时才会渲染,
67
+ * 需与内部请求态同步,否则插槽内容永远不会显示。
68
+ */
69
+ ...a.loadingSlot ? { loading: t(c) } : {}
70
+ }));
71
+ async function p() {
72
+ const { api: e, beforeFetch: n, afterFetch: i, resultField: l } = a;
73
+ if (!(!e || !y(e))) {
74
+ if (c.value) {
75
+ F.value = !0;
76
+ return;
77
+ }
78
+ m.value = [];
79
+ try {
80
+ c.value = !0;
81
+ let r = t(V);
82
+ n && y(n) && (r = await n(L(r)) || r);
83
+ let s = await e(r);
84
+ if (i && y(i) && (s = await i(s) || s), b.value = !0, Array.isArray(s)) {
85
+ m.value = s, A();
86
+ return;
87
+ }
88
+ l && (m.value = h(s, l) || []), A();
89
+ } catch {
90
+ b.value = !1;
91
+ } finally {
92
+ c.value = !1, F.value && (F.value = !1, await de(), p());
93
+ }
94
+ }
95
+ }
96
+ async function U(e) {
97
+ e && (a.alwaysLoad ? await p() : !a.immediate && !t(b) && await p());
98
+ }
99
+ const V = g(() => ({
100
+ ...a.params,
101
+ ...t(k)
102
+ }));
103
+ X(
104
+ V,
105
+ (e, n) => {
106
+ pe(e, n) || p();
107
+ },
108
+ { deep: !0, immediate: a.immediate }
109
+ );
110
+ function A() {
111
+ if (f.value === void 0 && a.autoSelect && t(o).length > 0) {
112
+ let e;
113
+ if (y(a.autoSelect))
114
+ e = a.autoSelect(t(o));
115
+ else
116
+ switch (a.autoSelect) {
117
+ case "first": {
118
+ e = t(o)[0];
119
+ break;
120
+ }
121
+ case "last": {
122
+ e = t(o)[t(o).length - 1];
123
+ break;
124
+ }
125
+ case "one": {
126
+ t(o).length === 1 && (e = t(o)[0]);
127
+ break;
128
+ }
129
+ }
130
+ e && (f.value = e.value);
131
+ }
132
+ C("optionsChange", t(o));
133
+ }
134
+ function I(e) {
135
+ var n, i;
136
+ C(
137
+ "change",
138
+ e,
139
+ L(t(o)),
140
+ Array.isArray(e) ? (n = t(o)) == null ? void 0 : n.filter((l) => e.some((r) => r === l.value)) : (i = t(o)) == null ? void 0 : i.find((l) => l.value === e)
141
+ );
142
+ }
143
+ const B = u(null), K = g(
144
+ () => Object.keys(q).filter((e) => e !== a.loadingSlot)
145
+ );
146
+ return z({
147
+ /** 获取options数据 */
148
+ getOptions: () => t(o),
149
+ /** 获取当前值 */
150
+ getValue: () => t(f),
151
+ /**
152
+ * 获取被包装组件的实例
153
+ */
154
+ getComponentRef: () => B.value,
155
+ /** 更新Api参数 */
156
+ updateParam(e) {
157
+ k.value = e;
158
+ },
159
+ /** 手动请求数据 */
160
+ reload: p
161
+ }), (e, n) => (E(), Y(Z(e.component), ee({
162
+ ref_key: "componentRef",
163
+ ref: B
164
+ }, x.value, {
165
+ placeholder: e.$attrs.placeholder,
166
+ onChange: I
167
+ }), te({ _: 2 }, [
168
+ ae(K.value, (i) => ({
169
+ name: i,
170
+ fn: P((l) => [
171
+ oe(e.$slots, i, le(ne(l || {})), void 0, !0)
172
+ ])
173
+ })),
174
+ e.loadingSlot ? {
175
+ name: e.loadingSlot,
176
+ fn: P(() => [
177
+ c.value ? (E(), ie("div", {
178
+ key: 0,
179
+ class: se(`${t(T)}__dropdown-loading`)
180
+ }, [
181
+ $(t(ue), {
182
+ class: "is-loading",
183
+ size: 20
184
+ }, {
185
+ default: P(() => [
186
+ $(t(fe))
187
+ ]),
188
+ _: 1
189
+ })
190
+ ], 2)) : re("", !0)
191
+ ]),
192
+ key: "0"
193
+ } : void 0
194
+ ]), 1040, ["placeholder"]));
195
+ }
196
+ });
197
+ export {
198
+ Se as default
199
+ };
@@ -0,0 +1,7 @@
1
+ import o from "./TtArea.vue3.js";
2
+ /* empty css */
3
+ import t from "../../_virtual/_plugin-vue_export-helper.js";
4
+ const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-116cb5cb"]]);
5
+ export {
6
+ m as default
7
+ };
@@ -0,0 +1,36 @@
1
+ import { defineComponent as i, ref as l, computed as r, createElementBlock as p, openBlock as m, createElementVNode as e, withDirectives as a, vModelText as u, toDisplayString as v } from "vue";
2
+ import { add as _ } from "@dazhicheng/utils";
3
+ const c = { class: "tt-area" }, f = { class: "num" }, x = { class: "num" }, y = { class: "sum" }, N = { "data-testid": "result" }, D = /* @__PURE__ */ i({
4
+ __name: "TtArea",
5
+ setup(V) {
6
+ const s = l(1), n = l(2), d = r(() => _(+s.value, +n.value));
7
+ return (b, t) => (m(), p("div", c, [
8
+ e("div", f, [
9
+ t[2] || (t[2] = e("span", null, "Number 1", -1)),
10
+ a(e("input", {
11
+ "onUpdate:modelValue": t[0] || (t[0] = (o) => s.value = o),
12
+ "data-testid": "n1",
13
+ type: "text"
14
+ }, null, 512), [
15
+ [u, s.value]
16
+ ])
17
+ ]),
18
+ e("div", x, [
19
+ t[3] || (t[3] = e("span", null, "Number 2", -1)),
20
+ a(e("input", {
21
+ "onUpdate:modelValue": t[1] || (t[1] = (o) => n.value = o),
22
+ "data-testid": "n2",
23
+ type: "text"
24
+ }, null, 512), [
25
+ [u, n.value]
26
+ ])
27
+ ]),
28
+ e("div", y, [
29
+ e("span", N, "sum:" + v(d.value), 1)
30
+ ])
31
+ ]));
32
+ }
33
+ });
34
+ export {
35
+ D as default
36
+ };
@@ -0,0 +1,24 @@
1
+ import { defineComponent as m, useSlots as c, createBlock as i, openBlock as a, resolveDynamicComponent as u, h as e, unref as t } from "vue";
2
+ import { TtIcon as p } from "../../tt-icon/index.js";
3
+ import f from "../index.vue.js";
4
+ import l from "../../../assets/svg/add.svg.js";
5
+ const T = /* @__PURE__ */ m({
6
+ name: "TtAddButton",
7
+ inheritAttrs: !1,
8
+ __name: "AddButton",
9
+ setup(d) {
10
+ const n = c();
11
+ return (s, _) => (a(), i(u(
12
+ e(f, s.$attrs, () => {
13
+ var o, r;
14
+ return [
15
+ e(t(p), { icon: t(l), isCustomSvg: !0, size: 20, class: "color-inherit! mr-[1px]" }),
16
+ (r = (o = t(n)).default) == null ? void 0 : r.call(o)
17
+ ];
18
+ })
19
+ )));
20
+ }
21
+ });
22
+ export {
23
+ T as default
24
+ };
@@ -0,0 +1,4 @@
1
+ import f from "./AddButton.vue.js";
2
+ export {
3
+ f as default
4
+ };
@@ -0,0 +1,9 @@
1
+ import { withInstall as t } from "@dazhicheng/utils";
2
+ import o from "./index.vue.js";
3
+ import r from "./components/AddButton.vue.js";
4
+ const f = t(o), i = t(r);
5
+ export {
6
+ i as TtAddButton,
7
+ f as TtButton,
8
+ f as default
9
+ };
@@ -0,0 +1,7 @@
1
+ import t from "./index.vue2.js";
2
+ /* empty css */
3
+ import o from "../../_virtual/_plugin-vue_export-helper.js";
4
+ const p = /* @__PURE__ */ o(t, [["__scopeId", "data-v-c14bbb20"]]);
5
+ export {
6
+ p as default
7
+ };
@@ -0,0 +1,68 @@
1
+ import { defineComponent as b, useAttrs as g, ref as l, computed as k, withDirectives as v, createBlock as h, openBlock as C, unref as t, mergeProps as _, createSlots as x, renderList as D, withCtx as P, renderSlot as R, normalizeProps as S, guardReactiveProps as T } from "vue";
2
+ import "lodash-es";
3
+ import "@vueuse/core";
4
+ import "../tt-icon/index.js";
5
+ import $ from "../../directives/disabled-tip/index.js";
6
+ import { ElButton as j } from "element-plus";
7
+ import { useDesign as w } from "@dazhicheng/hooks";
8
+ import { isArray as z, isObject as A } from "@dazhicheng/utils";
9
+ const J = /* @__PURE__ */ b({
10
+ name: "TtButton",
11
+ __name: "index",
12
+ props: {
13
+ size: {},
14
+ disabled: { type: Boolean },
15
+ type: {},
16
+ icon: {},
17
+ nativeType: {},
18
+ loading: { type: Boolean },
19
+ loadingIcon: {},
20
+ plain: { type: Boolean },
21
+ text: { type: Boolean },
22
+ link: { type: Boolean },
23
+ bg: { type: Boolean },
24
+ autofocus: { type: Boolean },
25
+ round: { type: Boolean },
26
+ circle: { type: Boolean },
27
+ dashed: { type: Boolean },
28
+ color: {},
29
+ dark: { type: Boolean },
30
+ autoInsertSpace: { type: Boolean },
31
+ tag: {},
32
+ iconFont: {}
33
+ },
34
+ emits: ["click"],
35
+ setup(p, { expose: c, emit: d }) {
36
+ const n = p, u = d, i = g(), r = l(!1), f = k(() => {
37
+ const e = i["disabled-tip"];
38
+ return z(e) && e.length > 0 ? e.some((o) => !!(o != null && o.condition)) : A(e) ? !!e.condition : !!n.disabled;
39
+ }), a = l(null), { prefixCls: m } = w("button");
40
+ async function y(e) {
41
+ u("click", e, (o) => {
42
+ r.value = o || !1;
43
+ });
44
+ }
45
+ return c({
46
+ buttonRef: a
47
+ }), (e, o) => v((C(), h(t(j), _({
48
+ ref_key: "buttonRef",
49
+ ref: a,
50
+ class: [t(m)]
51
+ }, { ...n, ...e.$attrs, disabled: f.value }, {
52
+ loading: r.value || n.loading,
53
+ onClick: y
54
+ }), x({ _: 2 }, [
55
+ D(Object.keys(e.$slots), (s) => ({
56
+ name: s,
57
+ fn: P((B) => [
58
+ R(e.$slots, s, S(T(B || {})), void 0, !0)
59
+ ])
60
+ }))
61
+ ]), 1040, ["class", "loading"])), [
62
+ [t($), t(i)["disabled-tip"]]
63
+ ]);
64
+ }
65
+ });
66
+ export {
67
+ J as default
68
+ };
@@ -0,0 +1,7 @@
1
+ import { withInstall as t } from "@dazhicheng/utils";
2
+ import o from "./index.vue.js";
3
+ const a = t(o);
4
+ export {
5
+ a as TtCheckbox,
6
+ a as default
7
+ };
@@ -0,0 +1,77 @@
1
+ import { defineComponent as v, useAttrs as V, computed as d, ref as u, watch as C, withDirectives as y, createBlock as B, openBlock as k, unref as p, mergeProps as x, createSlots as S, renderList as T, withCtx as j, renderSlot as w, normalizeProps as L, guardReactiveProps as O } from "vue";
2
+ import { isArray as P, isObject as A } from "@dazhicheng/utils";
3
+ import N from "../../directives/disabled-tip/index.js";
4
+ import { useFormItem as _, ElCheckbox as z } from "element-plus";
5
+ import { omit as D } from "lodash-es";
6
+ const R = /* @__PURE__ */ v({
7
+ name: "TtCheckbox",
8
+ inheritAttrs: !1,
9
+ __name: "index",
10
+ props: {
11
+ modelValue: { type: [Number, String, Boolean] },
12
+ label: { type: [String, Boolean, Number, Object] },
13
+ value: { type: [String, Boolean, Number, Object] },
14
+ indeterminate: { type: Boolean },
15
+ disabled: { type: Boolean },
16
+ checked: { type: Boolean },
17
+ name: {},
18
+ trueValue: {},
19
+ falseValue: {},
20
+ trueLabel: {},
21
+ falseLabel: {},
22
+ id: {},
23
+ border: { type: Boolean },
24
+ size: {},
25
+ tabindex: {},
26
+ validateEvent: { type: Boolean },
27
+ ariaLabel: {},
28
+ ariaControls: {},
29
+ beforeChange: {},
30
+ disabledTip: {}
31
+ },
32
+ emits: ["update:modelValue", "change"],
33
+ setup(c, { emit: m }) {
34
+ const a = c, i = m, r = V(), b = d(() => {
35
+ if (r.disabled !== void 0)
36
+ return !!r.disabled;
37
+ if (a.disabled)
38
+ return !0;
39
+ const e = a.disabledTip;
40
+ return P(e) && e.length > 0 ? e.some((t) => !!(t != null && t.condition)) : A(e) ? !!e.condition : !1;
41
+ }), f = d(() => ({
42
+ ...a,
43
+ ...D(r, ["onUpdate:modelValue", "onChange", "onInput"]),
44
+ disabled: b.value
45
+ })), l = u(), { formItem: n } = _(), s = u(!1);
46
+ async function h(e) {
47
+ const t = a.modelValue;
48
+ let o = !0;
49
+ a.beforeChange && (o = await a.beforeChange(e, t)), o ? (i("update:modelValue", e), i("change", e, t)) : l.value = t;
50
+ }
51
+ return C(
52
+ () => a.modelValue,
53
+ (e) => {
54
+ l.value = e, s.value && (n == null || n.validate("change").catch((t) => {
55
+ })), s.value = !0;
56
+ },
57
+ { immediate: !0, deep: !0 }
58
+ ), (e, t) => y((k(), B(p(z), x(f.value, {
59
+ modelValue: l.value,
60
+ "onUpdate:modelValue": t[0] || (t[0] = (o) => l.value = o),
61
+ "validate-event": !1,
62
+ onChange: h
63
+ }), S({ _: 2 }, [
64
+ T(Object.keys(e.$slots), (o) => ({
65
+ name: o,
66
+ fn: j((g) => [
67
+ w(e.$slots, o, L(O(g)))
68
+ ])
69
+ }))
70
+ ]), 1040, ["modelValue"])), [
71
+ [p(N), a.disabledTip]
72
+ ]);
73
+ }
74
+ });
75
+ export {
76
+ R as default
77
+ };
@@ -0,0 +1,4 @@
1
+ import f from "./index.vue.js";
2
+ export {
3
+ f as default
4
+ };
@@ -0,0 +1,14 @@
1
+ import { withInstall as r } from "@dazhicheng/utils";
2
+ import t from "./src/RenderDrawer.vue.js";
3
+ /* empty css */
4
+ import "vue";
5
+ import "@tanstack/vue-store";
6
+ import "vue-router";
7
+ import "element-plus";
8
+ import "xe-utils";
9
+ import "@vueuse/core";
10
+ const l = r(t);
11
+ export {
12
+ l as RenderDrawer,
13
+ l as default
14
+ };