@dt-frames/ui 1.0.2 → 1.0.5

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 (233) hide show
  1. package/README.md +1 -15
  2. package/es/assets/imgs/header/avatar.png +0 -0
  3. package/es/assets/style/reset.less +0 -3
  4. package/es/components/curd/src/components/dialog.d.ts +21 -58
  5. package/es/components/curd/src/types/curd.type.d.ts +2 -1
  6. package/es/components/dialog/index.d.ts +2 -0
  7. package/es/components/dialog/src/hooks/useDialog.d.ts +3 -0
  8. package/es/components/forms/index.d.ts +2 -2
  9. package/es/components/forms/src/components/formIcon.d.ts +4 -47
  10. package/es/components/forms/src/index.d.ts +2 -6
  11. package/es/components/iframe/index.d.ts +2 -2
  12. package/es/components/index.d.ts +3 -2
  13. package/es/components/modal/src/components/close-icon.d.ts +0 -43
  14. package/es/components/modal/src/index.d.ts +0 -43
  15. package/es/components/source/src/types/table.type.d.ts +1 -1
  16. package/es/components/table/index.d.ts +1 -1
  17. package/es/components/table/src/components/setting/Column.d.ts +6 -5
  18. package/es/components/table/src/hooks/useColumns.d.ts +1 -1
  19. package/es/components/table/src/hooks/useDataSource.d.ts +1 -3
  20. package/es/components/table/src/hooks/useHeaderCode.d.ts +2 -0
  21. package/es/components/table/src/hooks/useRowSelection.d.ts +2 -3
  22. package/es/components/table/src/index.d.ts +15 -3
  23. package/es/components/table/src/props.d.ts +7 -1
  24. package/es/index.js +284 -271
  25. package/es/style/assets/style/reset.less +0 -3
  26. package/es/style/components/forms/{src/index.less → index.less} +2 -0
  27. package/es/style/components/icons/index.less +1 -0
  28. package/es/style/components/iframe/index.less +3 -0
  29. package/es/style/components/modal/{src/index.less → index.less} +0 -0
  30. package/es/style/components/table/{src/index.less → index.less} +12 -1
  31. package/es/style/theme/header/index.less +8 -4
  32. package/es/style/theme/sider/index.less +25 -25
  33. package/es/style/theme/theme.less +2 -1
  34. package/es/theme/header/components/logo.d.ts +43 -0
  35. package/es/theme/header/components/notify.d.ts +0 -1
  36. package/package.json +50 -40
  37. package/src/assets/data/icons/actions.ts +427 -0
  38. package/src/assets/data/icons/code.ts +10 -0
  39. package/src/assets/data/icons/commuticate.ts +190 -0
  40. package/src/assets/data/icons/currency.ts +46 -0
  41. package/src/assets/data/icons/devices.ts +128 -0
  42. package/src/assets/data/icons/edit.ts +165 -0
  43. package/src/assets/data/icons/file.ts +104 -0
  44. package/src/assets/data/icons/math.ts +53 -0
  45. package/src/assets/data/icons/message.ts +75 -0
  46. package/src/assets/data/icons/navigate.ts +181 -0
  47. package/src/assets/data/icons/other.ts +333 -0
  48. package/src/assets/data/icons.ts +58 -0
  49. package/src/assets/imgs/header/avatar.png +0 -0
  50. package/src/assets/imgs/logo/logo.png +0 -0
  51. package/src/assets/locales/en_US.json +3 -0
  52. package/src/assets/locales/zh_CN.json +3 -0
  53. package/src/assets/style/index.less +10 -0
  54. package/src/assets/style/reset.less +17 -0
  55. package/src/components/container/index.less +85 -0
  56. package/src/components/container/index.ts +8 -0
  57. package/src/components/container/src/bar.ts +107 -0
  58. package/src/components/container/src/lazy-container.vue +9 -0
  59. package/src/components/container/src/scroll-bar.vue +117 -0
  60. package/src/components/container/src/scroll-container.vue +61 -0
  61. package/src/components/curd/index.ts +5 -0
  62. package/src/components/curd/src/components/dialog.vue +71 -0
  63. package/src/components/curd/src/components/props.ts +32 -0
  64. package/src/components/curd/src/hooks/useCurd.tsx +87 -0
  65. package/src/components/curd/src/types/curd.type.ts +31 -0
  66. package/src/components/dialog/index.ts +5 -0
  67. package/src/components/dialog/src/hooks/useDialog.ts +85 -0
  68. package/src/components/excel/index.ts +6 -0
  69. package/src/components/excel/src/export2Excel.ts +44 -0
  70. package/src/components/forms/index.less +84 -0
  71. package/src/components/forms/index.ts +11 -0
  72. package/src/components/forms/src/componentMap.ts +44 -0
  73. package/src/components/forms/src/components/formButton.vue +150 -0
  74. package/src/components/forms/src/components/formIcon.vue +50 -0
  75. package/src/components/forms/src/components/formItem.vue +407 -0
  76. package/src/components/forms/src/components/radioButton.vue +58 -0
  77. package/src/components/forms/src/const/form.const.ts +7 -0
  78. package/src/components/forms/src/hooks/helper.ts +70 -0
  79. package/src/components/forms/src/hooks/useForm.ts +130 -0
  80. package/src/components/forms/src/hooks/useFormActions.ts +63 -0
  81. package/src/components/forms/src/hooks/useFormEvents.ts +247 -0
  82. package/src/components/forms/src/hooks/useFormValue.ts +49 -0
  83. package/src/components/forms/src/hooks/useFormValues.ts +131 -0
  84. package/src/components/forms/src/hooks/useLabelWidth.ts +57 -0
  85. package/src/components/forms/src/index.vue +306 -0
  86. package/src/components/forms/src/prop.ts +80 -0
  87. package/src/components/forms/src/types/form.type.ts +269 -0
  88. package/{es/style/components/icons/src → src/components/icons}/index.less +1 -0
  89. package/src/components/icons/index.ts +7 -0
  90. package/src/components/icons/src/pick-icon.vue +117 -0
  91. package/src/components/icons/src/svg-icon.vue +117 -0
  92. package/src/components/iframe/index.less +3 -0
  93. package/src/components/iframe/index.ts +5 -0
  94. package/src/components/iframe/src/index.less +3 -0
  95. package/src/components/iframe/src/index.vue +38 -0
  96. package/src/components/index.ts +48 -0
  97. package/src/components/modal/index.less +60 -0
  98. package/src/components/modal/index.ts +8 -0
  99. package/src/components/modal/src/components/close-icon.vue +47 -0
  100. package/src/components/modal/src/components/modal-wrap.vue +118 -0
  101. package/src/components/modal/src/components/modal.tsx +30 -0
  102. package/src/components/modal/src/components/modalFooter.vue +38 -0
  103. package/src/components/modal/src/hooks/useDrag.ts +107 -0
  104. package/src/components/modal/src/hooks/useFullScreen.ts +27 -0
  105. package/src/components/modal/src/hooks/useModal.ts +176 -0
  106. package/src/components/modal/src/index.vue +173 -0
  107. package/src/components/modal/src/props.ts +43 -0
  108. package/src/components/modal/src/types/modal.type.ts +27 -0
  109. package/src/components/router/base-router.vue +11 -0
  110. package/src/components/router/index.ts +3 -0
  111. package/src/components/source/index.ts +1 -0
  112. package/src/components/source/src/hooks/useFetch.ts +69 -0
  113. package/src/components/source/src/hooks/usePage.ts +3 -0
  114. package/src/components/source/src/hooks/useSource.ts +179 -0
  115. package/src/components/source/src/index.ts +5 -0
  116. package/src/components/source/src/types/source.type.ts +68 -0
  117. package/src/components/source/src/types/table.type.ts +8 -0
  118. package/src/components/table/index.less +173 -0
  119. package/src/components/table/index.ts +7 -0
  120. package/src/components/table/src/components/TableActions.vue +108 -0
  121. package/src/components/table/src/components/TableHeader.vue +77 -0
  122. package/src/components/table/src/components/TableRender.vue +76 -0
  123. package/src/components/table/src/components/setting/Column.vue +354 -0
  124. package/src/components/table/src/components/setting/Download.vue +55 -0
  125. package/src/components/table/src/components/setting/Fullscreen.vue +43 -0
  126. package/src/components/table/src/components/setting/Size.vue +42 -0
  127. package/src/components/table/src/components/setting/index.vue +64 -0
  128. package/src/components/table/src/const.ts +13 -0
  129. package/src/components/table/src/hooks/useColumns.ts +319 -0
  130. package/{es/assets/app-antd-dark-theme-style.e3b0c442.css → src/components/table/src/hooks/useCustomRow.ts} +0 -0
  131. package/src/components/table/src/hooks/useDataSource.ts +99 -0
  132. package/src/components/table/src/hooks/useHeaderCode.ts +82 -0
  133. package/src/components/table/src/hooks/useLoading.ts +29 -0
  134. package/src/components/table/src/hooks/usePagination.ts +76 -0
  135. package/src/components/table/src/hooks/useRowSelection.ts +145 -0
  136. package/src/components/table/src/hooks/useRows.ts +30 -0
  137. package/src/components/table/src/hooks/useTable.ts +89 -0
  138. package/src/components/table/src/hooks/useTableHeader.ts +48 -0
  139. package/src/components/table/src/hooks/useTableInstance.ts +29 -0
  140. package/src/components/table/src/hooks/useTableScroll.ts +229 -0
  141. package/src/components/table/src/index.vue +197 -0
  142. package/src/components/table/src/props.ts +157 -0
  143. package/src/components/table/src/types/table.type.ts +133 -0
  144. package/src/components/table/src/types/tableHeader.type.ts +27 -0
  145. package/{es/assets/app-theme-style.e3b0c442.css → src/components/type.ts} +0 -0
  146. package/src/directives/icon.ts +36 -0
  147. package/src/directives/index.ts +26 -0
  148. package/src/directives/permission.ts +20 -0
  149. package/src/global.d.ts +8 -0
  150. package/src/index.ts +4 -0
  151. package/src/theme/content/index.vue +37 -0
  152. package/src/theme/feature/back-top.vue +11 -0
  153. package/src/theme/feature/index.vue +7 -0
  154. package/src/theme/footer/index.less +16 -0
  155. package/src/theme/footer/index.vue +24 -0
  156. package/src/theme/header/components/bread-crumb.vue +26 -0
  157. package/src/theme/header/components/fullscreen.vue +12 -0
  158. package/src/theme/header/components/handler.ts +81 -0
  159. package/src/theme/header/components/index.ts +21 -0
  160. package/src/theme/header/components/lang-picker.vue +36 -0
  161. package/src/theme/header/components/logo.vue +35 -0
  162. package/src/theme/header/components/menu-search.vue +62 -0
  163. package/src/theme/header/components/notify.vue +22 -0
  164. package/src/theme/header/components/setting-theme.vue +123 -0
  165. package/src/theme/header/components/theme-drawer/enum.ts +12 -0
  166. package/src/theme/header/components/theme-drawer/feature.vue +75 -0
  167. package/src/theme/header/components/theme-drawer/index.ts +7 -0
  168. package/src/theme/header/components/theme-drawer/menu-type.vue +40 -0
  169. package/src/theme/header/components/theme-drawer/select-item.vue +46 -0
  170. package/src/theme/header/components/theme-drawer/switch-item.vue +39 -0
  171. package/src/theme/header/components/theme-drawer/theme-color.vue +26 -0
  172. package/src/theme/header/components/trigger.vue +14 -0
  173. package/src/theme/header/components/user-info.vue +60 -0
  174. package/src/theme/header/const/index.ts +40 -0
  175. package/src/theme/header/helper/menu-tree.ts +64 -0
  176. package/src/theme/header/index.less +442 -0
  177. package/{es/theme/theme.d.ts → src/theme/header/index.ts} +0 -0
  178. package/src/theme/header/index.vue +96 -0
  179. package/src/theme/header/multiple-header.vue +67 -0
  180. package/src/theme/header/set-theme.less +68 -0
  181. package/src/theme/index.ts +3 -0
  182. package/src/theme/sider/components/basic-menu/basic-menu-item.vue +14 -0
  183. package/src/theme/sider/components/basic-menu/basic-menu.vue +122 -0
  184. package/src/theme/sider/components/basic-menu/basic-sub-menu-item.vue +46 -0
  185. package/src/theme/sider/components/basic-menu/menu-item-content.vue +13 -0
  186. package/src/theme/sider/components/drag-bar.vue +26 -0
  187. package/src/theme/sider/components/layout-menu.vue +132 -0
  188. package/src/theme/sider/components/props.ts +97 -0
  189. package/src/theme/sider/components/sider-trigger.vue +24 -0
  190. package/src/theme/sider/helper/sider.ts +52 -0
  191. package/src/theme/sider/helper/split-menu.ts +146 -0
  192. package/src/theme/sider/hooks/useDragLine.ts +86 -0
  193. package/src/theme/sider/hooks/useOpenKeys.ts +57 -0
  194. package/src/theme/sider/index.less +203 -0
  195. package/src/theme/sider/index.vue +88 -0
  196. package/src/theme/tabs/components/TabContent.vue +36 -0
  197. package/src/theme/tabs/components/TabRedo.vue +18 -0
  198. package/src/theme/tabs/hooks/useMultifyTabs.ts +96 -0
  199. package/src/theme/tabs/hooks/useTabDropdown.ts +89 -0
  200. package/src/theme/tabs/index.less +165 -0
  201. package/src/theme/tabs/index.vue +98 -0
  202. package/src/theme/tabs/types/tabs.type.ts +8 -0
  203. package/src/theme/theme.less +67 -0
  204. package/src/theme/theme.vue +90 -0
  205. package/src/theme/transition.less +99 -0
  206. package/es/assets/data/icon.d.ts +0 -4
  207. package/es/assets/data/icon.ts +0 -69
  208. package/es/assets/data/icon11.ts +0 -69
  209. package/es/assets/style/var.less +0 -42
  210. package/es/components/icons/pick-icon.d.ts +0 -529
  211. package/es/components/icons/svg-icon.d.ts +0 -44
  212. package/es/components/table/src/hooks/useFormat.d.ts +0 -2
  213. package/es/components/table/src/hooks/useVirtualScroll.d.ts +0 -5
  214. package/es/components/table/src/utils/format.d.ts +0 -1
  215. package/es/index.css +0 -1
  216. package/es/style/assets/style/var.less +0 -42
  217. package/es/theme/content/index.d.ts +0 -29
  218. package/es/theme/header/components/menu-search.d.ts +0 -528
  219. package/es/theme/header/components/setting-theme.d.ts +0 -2550
  220. package/es/theme/header/components/user-info.d.ts +0 -452
  221. package/es/theme/header/index.d.ts +0 -4369
  222. package/es/theme/header/multiple-header.d.ts +0 -2001
  223. package/es/theme/styles/hooks/changeTheme.d.ts +0 -1
  224. package/es/theme/styles/hooks/generate.d.ts +0 -13
  225. package/es/theme/styles/index.d.ts +0 -2
  226. package/es/theme/tabs/components/TabRedo.d.ts +0 -49
  227. package/es/theme/tabs/index.d.ts +0 -1399
  228. package/es/theme/theme/initTheme.d.ts +0 -3
  229. package/es/theme/theme/util.d.ts +0 -5
  230. package/es/themes/generate.ts +0 -74
  231. package/es/themes/index.ts +0 -10
  232. package/es/themes/modifyVars.ts +0 -33
  233. package/es/themes/themePlugiin.ts +0 -74
package/README.md CHANGED
@@ -1,15 +1 @@
1
- # 主要处理主题和公共组件
2
-
3
- 目前支持的组件如下:
4
- - 增删改查
5
- - excel导出
6
- - 表单
7
- - 字体图标
8
- - iframe
9
- - 弹框
10
- - table
11
-
12
- 支持的指令:
13
- - permission权限
14
-
15
- 使用文档:http://dt-blog.gitee.io/docs/frame/guide/
1
+ # 主要处理主题和公共模块
Binary file
@@ -10,9 +10,6 @@
10
10
  .dt-icon{
11
11
  margin: 0 5px;
12
12
  }
13
- &:hover, &:focus{
14
- color: #fff !important;
15
- }
16
13
  }
17
14
 
18
15
  .ant-picker{
@@ -1,10 +1,14 @@
1
1
  import { Recordable } from "@dt-frames/core";
2
2
  import { Ref, PropType } from "vue";
3
+ import { FormProps } from "../../../forms";
3
4
  declare const _sfc_main: import("vue").DefineComponent<{
4
5
  onRegister: {
5
6
  type: FunctionConstructor;
6
7
  };
7
8
  formProps: {
9
+ type: PropType<Ref<Partial<FormProps>>>;
10
+ };
11
+ formsVal: {
8
12
  type: PropType<Ref<Recordable<any>>>;
9
13
  };
10
14
  title: {
@@ -42,6 +46,9 @@ declare const _sfc_main: import("vue").DefineComponent<{
42
46
  type: FunctionConstructor;
43
47
  };
44
48
  formProps: {
49
+ type: PropType<Ref<Partial<FormProps>>>;
50
+ };
51
+ formsVal: {
45
52
  type: PropType<Ref<Recordable<any>>>;
46
53
  };
47
54
  title: {
@@ -77,7 +84,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
77
84
  [x: string & `on${string}`]: ((...args: any[]) => any) | ((...args: unknown[]) => any);
78
85
  }>>;
79
86
  registerDialog: import("../../../modal/src/types/modal.type").RegisterFn;
80
- registerForm: (formInstance: import("../../../forms/src/types/form.type").FormActionType) => void;
87
+ registerForm: (formInstance: import("../../../forms").FormActionType) => void;
81
88
  getFormValues: () => Recordable<any>;
82
89
  setFormValues: (values: Recordable<any>) => Promise<void>;
83
90
  handleSave: () => void;
@@ -111,7 +118,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
111
118
  type: PropType<"small" | "default" | "large">;
112
119
  };
113
120
  formActions: {
114
- type: PropType<import("../../../forms/src/types/form.type").FormActionType>;
121
+ type: PropType<import("../../../forms").FormActionType>;
115
122
  };
116
123
  labelAlign: {
117
124
  type: PropType<"left" | "right">;
@@ -129,23 +136,19 @@ declare const _sfc_main: import("vue").DefineComponent<{
129
136
  default: any;
130
137
  };
131
138
  }>>>;
132
- colProps: PropType<import("../../../forms/src/types/form.type").ColEx>;
139
+ colProps: PropType<import("../../../forms").ColEx>;
133
140
  }, {
134
141
  getFormBindValue: import("vue").ComputedRef<Recordable<any>>;
135
142
  getFormClass: import("vue").ComputedRef<(string | {
136
143
  'basic-form--compact': boolean;
137
144
  'basic-form--search': boolean;
138
145
  })[]>;
139
- formModel: {
140
- [x: string]: any;
141
- };
146
+ formModel: Recordable<any>;
142
147
  getLayout: import("vue").ComputedRef<"vertical" | "horizontal" | "inline">;
143
- getProps: import("vue").ComputedRef<import("../../../forms/src/types/form.type").FormProps>;
148
+ getProps: import("vue").ComputedRef<FormProps>;
144
149
  getSchema: import("vue").ComputedRef<import("../../../forms").FormSchema[]>;
145
- defaultValue: Ref<{
146
- [x: string]: any;
147
- }>;
148
- formActionMethods: import("../../../forms/src/types/form.type").FormActionType;
150
+ defaultValue: Ref<Recordable<any>>;
151
+ formActionMethods: import("../../../forms").FormActionType;
149
152
  formElRef: any;
150
153
  props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
151
154
  mode: {
@@ -177,7 +180,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
177
180
  type: PropType<"small" | "default" | "large">;
178
181
  };
179
182
  formActions: {
180
- type: PropType<import("../../../forms/src/types/form.type").FormActionType>;
183
+ type: PropType<import("../../../forms").FormActionType>;
181
184
  };
182
185
  labelAlign: {
183
186
  type: PropType<"left" | "right">;
@@ -195,7 +198,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
195
198
  default: any;
196
199
  };
197
200
  }>>>;
198
- colProps: PropType<import("../../../forms/src/types/form.type").ColEx>;
201
+ colProps: PropType<import("../../../forms").ColEx>;
199
202
  }>> & {
200
203
  onRegister?: (...args: any[]) => any;
201
204
  onReset?: (...args: any[]) => any;
@@ -233,7 +236,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
233
236
  type: PropType<"small" | "default" | "large">;
234
237
  };
235
238
  formActions: {
236
- type: PropType<import("../../../forms/src/types/form.type").FormActionType>;
239
+ type: PropType<import("../../../forms").FormActionType>;
237
240
  };
238
241
  labelAlign: {
239
242
  type: PropType<"left" | "right">;
@@ -251,7 +254,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
251
254
  default: any;
252
255
  };
253
256
  }>>>;
254
- colProps: PropType<import("../../../forms/src/types/form.type").ColEx>;
257
+ colProps: PropType<import("../../../forms").ColEx>;
255
258
  }>> & {
256
259
  onRegister?: (...args: any[]) => any;
257
260
  onReset?: (...args: any[]) => any;
@@ -1278,49 +1281,6 @@ declare const _sfc_main: import("vue").DefineComponent<{
1278
1281
  autoAdjustOverflow: boolean | import("ant-design-vue/lib/tooltip").AdjustOverflow;
1279
1282
  arrowPointAtCenter: boolean;
1280
1283
  }> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & import("@vue/runtime-core").Plugin;
1281
- DtIcon: import("vue").DefineComponent<{
1282
- iconClass: {
1283
- type: StringConstructor;
1284
- required: true;
1285
- };
1286
- className: {
1287
- type: (StringConstructor | ArrayConstructor)[];
1288
- default: string;
1289
- };
1290
- color: {
1291
- type: StringConstructor;
1292
- default: string;
1293
- };
1294
- size: {
1295
- type: NumberConstructor;
1296
- default: number;
1297
- };
1298
- }, {
1299
- isSvgIcon: import("vue").ComputedRef<boolean>;
1300
- iconName: import("vue").ComputedRef<string>;
1301
- clsName: import("vue").ComputedRef<string>;
1302
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
1303
- iconClass: {
1304
- type: StringConstructor;
1305
- required: true;
1306
- };
1307
- className: {
1308
- type: (StringConstructor | ArrayConstructor)[];
1309
- default: string;
1310
- };
1311
- color: {
1312
- type: StringConstructor;
1313
- default: string;
1314
- };
1315
- size: {
1316
- type: NumberConstructor;
1317
- default: number;
1318
- };
1319
- }>>, {
1320
- className: string | unknown[];
1321
- color: string;
1322
- size: number;
1323
- }>;
1324
1284
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("cancel" | "fullscreen")[], "cancel" | "fullscreen", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
1325
1285
  canFullscreen: {
1326
1286
  type: BooleanConstructor;
@@ -1452,6 +1412,9 @@ declare const _sfc_main: import("vue").DefineComponent<{
1452
1412
  type: FunctionConstructor;
1453
1413
  };
1454
1414
  formProps: {
1415
+ type: PropType<Ref<Partial<FormProps>>>;
1416
+ };
1417
+ formsVal: {
1455
1418
  type: PropType<Ref<Recordable<any>>>;
1456
1419
  };
1457
1420
  title: {
@@ -1,5 +1,5 @@
1
1
  import { Recordable } from "@dt-frames/core";
2
- import { FormSchema, ButtonProps } from "../../../forms/src/types/form.type";
2
+ import { FormSchema, ButtonProps, FormProps } from "../../../forms/src/types/form.type";
3
3
  export declare type CrudOptType = {
4
4
  title?: string;
5
5
  width?: string | number;
@@ -8,6 +8,7 @@ export declare type CrudOptType = {
8
8
  showFullscreen?: boolean;
9
9
  showClose?: boolean;
10
10
  primaryKey?: string;
11
+ formProps?: Partial<FormProps>;
11
12
  curd?: {
12
13
  onAdd?: (model: Recordable) => void;
13
14
  onUpdate?: (model: Recordable) => void;
@@ -0,0 +1,2 @@
1
+ import { useDialog } from './src/hooks/useDialog';
2
+ export { useDialog };
@@ -0,0 +1,3 @@
1
+ export declare function useDialog(): {
2
+ createDialog: (component: any, options: any) => Promise<unknown>;
3
+ };
@@ -1,5 +1,5 @@
1
1
  import DtForm from "./src/index";
2
2
  import { useForm } from './src/hooks/useForm';
3
- import { ButtonProps, FormSchema } from './src/types/form.type';
4
3
  import FormButtons from "./src/components/formButton";
5
- export { FormButtons, DtForm, useForm, FormSchema, ButtonProps };
4
+ export * from './src/types/form.type';
5
+ export { FormButtons, DtForm, useForm };
@@ -612,11 +612,11 @@ declare const _sfc_main: import("vue").DefineComponent<{
612
612
  readonly TextArea: import("vue").DefineComponent<{
613
613
  rows: NumberConstructor;
614
614
  autosize: {
615
- type: import("vue").PropType<import("ant-design-vue/lib/input/inputProps").AutoSizeType>;
615
+ type: import("vue").PropType<boolean | import("ant-design-vue/lib/input/inputProps").AutoSizeType>;
616
616
  default: any;
617
617
  };
618
618
  autoSize: {
619
- type: import("vue").PropType<import("ant-design-vue/lib/input/inputProps").AutoSizeType>;
619
+ type: import("vue").PropType<boolean | import("ant-design-vue/lib/input/inputProps").AutoSizeType>;
620
620
  default: any;
621
621
  };
622
622
  onResize: {
@@ -693,11 +693,11 @@ declare const _sfc_main: import("vue").DefineComponent<{
693
693
  }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
694
694
  rows: NumberConstructor;
695
695
  autosize: {
696
- type: import("vue").PropType<import("ant-design-vue/lib/input/inputProps").AutoSizeType>;
696
+ type: import("vue").PropType<boolean | import("ant-design-vue/lib/input/inputProps").AutoSizeType>;
697
697
  default: any;
698
698
  };
699
699
  autoSize: {
700
- type: import("vue").PropType<import("ant-design-vue/lib/input/inputProps").AutoSizeType>;
700
+ type: import("vue").PropType<boolean | import("ant-design-vue/lib/input/inputProps").AutoSizeType>;
701
701
  default: any;
702
702
  };
703
703
  onResize: {
@@ -2669,49 +2669,6 @@ declare const _sfc_main: import("vue").DefineComponent<{
2669
2669
  autoAdjustOverflow: boolean | import("ant-design-vue/lib/tooltip").AdjustOverflow;
2670
2670
  arrowPointAtCenter: boolean;
2671
2671
  }> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & import("@vue/runtime-core").Plugin;
2672
- DtIcon: import("vue").DefineComponent<{
2673
- iconClass: {
2674
- type: StringConstructor;
2675
- required: true;
2676
- };
2677
- className: {
2678
- type: (StringConstructor | ArrayConstructor)[];
2679
- default: string;
2680
- };
2681
- color: {
2682
- type: StringConstructor;
2683
- default: string;
2684
- };
2685
- size: {
2686
- type: NumberConstructor;
2687
- default: number;
2688
- };
2689
- }, {
2690
- isSvgIcon: import("vue").ComputedRef<boolean>;
2691
- iconName: import("vue").ComputedRef<string>;
2692
- clsName: import("vue").ComputedRef<string>;
2693
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
2694
- iconClass: {
2695
- type: StringConstructor;
2696
- required: true;
2697
- };
2698
- className: {
2699
- type: (StringConstructor | ArrayConstructor)[];
2700
- default: string;
2701
- };
2702
- color: {
2703
- type: StringConstructor;
2704
- default: string;
2705
- };
2706
- size: {
2707
- type: NumberConstructor;
2708
- default: number;
2709
- };
2710
- }>>, {
2711
- className: string | unknown[];
2712
- color: string;
2713
- size: number;
2714
- }>;
2715
2672
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("cancel" | "fullscreen")[], "cancel" | "fullscreen", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
2716
2673
  canFullscreen: {
2717
2674
  type: BooleanConstructor;
@@ -56,15 +56,11 @@ declare const _default: import("vue").DefineComponent<{
56
56
  'basic-form--compact': boolean;
57
57
  'basic-form--search': boolean;
58
58
  })[]>;
59
- formModel: {
60
- [x: string]: any;
61
- };
59
+ formModel: Recordable<any>;
62
60
  getLayout: import("vue").ComputedRef<"vertical" | "horizontal" | "inline">;
63
61
  getProps: import("vue").ComputedRef<FormProps>;
64
62
  getSchema: import("vue").ComputedRef<FormSchema[]>;
65
- defaultValue: Ref<{
66
- [x: string]: any;
67
- }>;
63
+ defaultValue: Ref<Recordable<any>>;
68
64
  formActionMethods: FormActionType;
69
65
  formElRef: any;
70
66
  props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
@@ -1,2 +1,2 @@
1
- import DtIFrame from "./src/index";
2
- export { DtIFrame };
1
+ import DtIframe from "./src/index";
2
+ export { DtIframe };
@@ -7,8 +7,9 @@ import { DtTable, useTable } from './table';
7
7
  import { useSource } from './source';
8
8
  import { useCurd } from './curd';
9
9
  import { export2Excel } from './excel';
10
- import { DtIFrame } from './iframe';
10
+ import { DtIframe } from './iframe';
11
+ import { useDialog } from './dialog';
11
12
  export declare function initComponents(): {
12
13
  install(app: App): void;
13
14
  };
14
- export { DtBaseRouter, DtIcon, DtPickIcon, DtModal, DtForm, DtTable, FormButtons, DtIFrame, useForm, useTable, useSource, useCurd, useModal, useModalOut, export2Excel };
15
+ export { DtBaseRouter, DtIcon, DtPickIcon, DtModal, DtForm, DtTable, FormButtons, DtIframe, useForm, useTable, useSource, useCurd, useModal, useModalOut, export2Excel, useDialog };
@@ -283,49 +283,6 @@ declare const _sfc_main: import("vue").DefineComponent<{
283
283
  autoAdjustOverflow: boolean | import("ant-design-vue/lib/tooltip").AdjustOverflow;
284
284
  arrowPointAtCenter: boolean;
285
285
  }> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & import("@vue/runtime-core").Plugin;
286
- DtIcon: import("vue").DefineComponent<{
287
- iconClass: {
288
- type: StringConstructor;
289
- required: true;
290
- };
291
- className: {
292
- type: (StringConstructor | ArrayConstructor)[];
293
- default: string;
294
- };
295
- color: {
296
- type: StringConstructor;
297
- default: string;
298
- };
299
- size: {
300
- type: NumberConstructor;
301
- default: number;
302
- };
303
- }, {
304
- isSvgIcon: import("vue").ComputedRef<boolean>;
305
- iconName: import("vue").ComputedRef<string>;
306
- clsName: import("vue").ComputedRef<string>;
307
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
308
- iconClass: {
309
- type: StringConstructor;
310
- required: true;
311
- };
312
- className: {
313
- type: (StringConstructor | ArrayConstructor)[];
314
- default: string;
315
- };
316
- color: {
317
- type: StringConstructor;
318
- default: string;
319
- };
320
- size: {
321
- type: NumberConstructor;
322
- default: number;
323
- };
324
- }>>, {
325
- className: string | unknown[];
326
- color: string;
327
- size: number;
328
- }>;
329
286
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("cancel" | "fullscreen")[], "cancel" | "fullscreen", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
330
287
  canFullscreen: {
331
288
  type: BooleanConstructor;
@@ -1015,49 +1015,6 @@ declare const _sfc_main: import("vue").DefineComponent<{
1015
1015
  autoAdjustOverflow: boolean | import("ant-design-vue/lib/tooltip").AdjustOverflow;
1016
1016
  arrowPointAtCenter: boolean;
1017
1017
  }> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & import("@vue/runtime-core").Plugin;
1018
- DtIcon: import("vue").DefineComponent<{
1019
- iconClass: {
1020
- type: StringConstructor;
1021
- required: true;
1022
- };
1023
- className: {
1024
- type: (StringConstructor | ArrayConstructor)[];
1025
- default: string;
1026
- };
1027
- color: {
1028
- type: StringConstructor;
1029
- default: string;
1030
- };
1031
- size: {
1032
- type: NumberConstructor;
1033
- default: number;
1034
- };
1035
- }, {
1036
- isSvgIcon: import("vue").ComputedRef<boolean>;
1037
- iconName: import("vue").ComputedRef<string>;
1038
- clsName: import("vue").ComputedRef<string>;
1039
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
1040
- iconClass: {
1041
- type: StringConstructor;
1042
- required: true;
1043
- };
1044
- className: {
1045
- type: (StringConstructor | ArrayConstructor)[];
1046
- default: string;
1047
- };
1048
- color: {
1049
- type: StringConstructor;
1050
- default: string;
1051
- };
1052
- size: {
1053
- type: NumberConstructor;
1054
- default: number;
1055
- };
1056
- }>>, {
1057
- className: string | unknown[];
1058
- color: string;
1059
- size: number;
1060
- }>;
1061
1018
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("cancel" | "fullscreen")[], "cancel" | "fullscreen", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
1062
1019
  canFullscreen: {
1063
1020
  type: BooleanConstructor;
@@ -2,6 +2,6 @@ import { Recordable } from "@dt-frames/core";
2
2
  export declare type TableParamsType = {
3
3
  pagination: any;
4
4
  showBtnLoading: boolean;
5
- sort: Recordable;
5
+ sort: Recordable[];
6
6
  filter: any;
7
7
  };
@@ -1,3 +1,3 @@
1
1
  import { useTable } from './src/hooks/useTable';
2
2
  import DtTable from "./src/index";
3
- export { DtTable, useTable };
3
+ export { DtTable, useTable, };
@@ -1,3 +1,4 @@
1
+ import { nextTick } from 'vue';
1
2
  import { BasicColumn } from '../../types/table.type';
2
3
  import { CheckboxChangeEvent } from 'ant-design-vue/lib/checkbox/interface';
3
4
  declare const _sfc_main: import("vue").DefineComponent<{}, {
@@ -201,7 +202,7 @@ declare const _sfc_main: import("vue").DefineComponent<{}, {
201
202
  errorCaptured?: ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>, info: string) => boolean | void)[];
202
203
  };
203
204
  $forceUpdate: () => void;
204
- $nextTick: typeof import("vue").nextTick;
205
+ $nextTick: typeof nextTick;
205
206
  $watch(source: string | Function, cb: Function, options?: import("vue").WatchOptions<boolean>): import("vue").WatchStopHandle;
206
207
  } & Readonly<import("vue").ExtractPropTypes<{
207
208
  title: import("vue-types").VueTypeValidableDef<any>;
@@ -461,7 +462,7 @@ declare const _sfc_main: import("vue").DefineComponent<{}, {
461
462
  errorCaptured?: ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>, info: string) => boolean | void)[];
462
463
  };
463
464
  $forceUpdate: () => void;
464
- $nextTick: typeof import("vue").nextTick;
465
+ $nextTick: typeof nextTick;
465
466
  $watch(source: string | Function, cb: Function, options?: import("vue").WatchOptions<boolean>): import("vue").WatchStopHandle;
466
467
  } & Readonly<import("vue").ExtractPropTypes<{
467
468
  content: import("vue-types").VueTypeValidableDef<any>;
@@ -707,7 +708,7 @@ declare const _sfc_main: import("vue").DefineComponent<{}, {
707
708
  errorCaptured?: ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>, info: string) => boolean | void)[];
708
709
  };
709
710
  $forceUpdate: () => void;
710
- $nextTick: typeof import("vue").nextTick;
711
+ $nextTick: typeof nextTick;
711
712
  $watch(source: string | Function, cb: Function, options?: import("vue").WatchOptions<boolean>): import("vue").WatchStopHandle;
712
713
  } & Readonly<import("vue").ExtractPropTypes<{
713
714
  indeterminate: {
@@ -998,7 +999,7 @@ declare const _sfc_main: import("vue").DefineComponent<{}, {
998
999
  errorCaptured?: ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>, info: string) => boolean | void)[];
999
1000
  };
1000
1001
  $forceUpdate: () => void;
1001
- $nextTick: typeof import("vue").nextTick;
1002
+ $nextTick: typeof nextTick;
1002
1003
  $watch(source: string | Function, cb: Function, options?: import("vue").WatchOptions<boolean>): import("vue").WatchStopHandle;
1003
1004
  } & Readonly<import("vue").ExtractPropTypes<{
1004
1005
  prefixCls: StringConstructor;
@@ -1250,7 +1251,7 @@ declare const _sfc_main: import("vue").DefineComponent<{}, {
1250
1251
  errorCaptured?: ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>, info: string) => boolean | void)[];
1251
1252
  };
1252
1253
  $forceUpdate: () => void;
1253
- $nextTick: typeof import("vue").nextTick;
1254
+ $nextTick: typeof nextTick;
1254
1255
  $watch(source: string | Function, cb: Function, options?: import("vue").WatchOptions<boolean>): import("vue").WatchStopHandle;
1255
1256
  } & Readonly<import("vue").ExtractPropTypes<{
1256
1257
  prefixCls: StringConstructor;
@@ -6,7 +6,7 @@ export declare function useColumns(propsRef: ComputedRef<BasicTableProps>, getPa
6
6
  getViewColumns: ComputedRef<BasicColumn[]>;
7
7
  getColumnsRef: ComputedRef<BasicColumn[]>;
8
8
  getColumns: (opt?: SetColumnsParams) => BasicColumn[];
9
- setColumns: (columnList: Partial<BasicColumn>[] | string[]) => void;
9
+ setColumns: (columnList?: Partial<BasicColumn>[] | string[]) => void;
10
10
  setCacheColumnsByField: (dataIndex: string | undefined, value: Partial<BasicColumn>) => void;
11
11
  getCacheColumns: () => BasicColumn[];
12
12
  };
@@ -8,9 +8,7 @@ declare type ActionsType = {
8
8
  clearSelectedRowKeys: () => void;
9
9
  };
10
10
  export declare function useDataSource(propsRef: ComputedRef<BasicTableProps>, { getPaginationInfo, setPagination, clearSelectedRowKeys, }: ActionsType, emit: any): {
11
- getDataSourceRef: ComputedRef<{
12
- [x: string]: any;
13
- }[]>;
11
+ getDataSourceRef: ComputedRef<Recordable<any>[]>;
14
12
  handleTableChange: (pagination: PaginationProps, filters: Partial<Recordable<string[]>>, sorter: SorterResult) => any;
15
13
  };
16
14
  export {};
@@ -0,0 +1,2 @@
1
+ import { BasicColumn, CellFormat } from "../types/table.type";
2
+ export declare function useHeaderCode(code: string, templates: CellFormat, changeColumns: (rows: BasicColumn[]) => void): void;
@@ -1,3 +1,4 @@
1
+ import { Recordable } from "@dt-frames/core";
1
2
  import type { TableRowSelection } from 'ant-design-vue/lib/table/interface';
2
3
  import { ComputedRef } from "vue";
3
4
  import { BasicTableProps } from "../types/table.type";
@@ -6,8 +7,6 @@ export declare function useRowSelection(propsRef: ComputedRef<BasicTableProps>,
6
7
  clearSelectedRowKeys: () => void;
7
8
  getRowSelection: () => TableRowSelection<any>;
8
9
  getSelectRowKeys: () => string[];
9
- getSelectRows: () => {
10
- [x: string]: any;
11
- }[];
10
+ getSelectRows: () => Recordable<any>[];
12
11
  setSelectedRowKeys: (rowKeys: string[]) => void;
13
12
  };
@@ -54,6 +54,12 @@ declare const _default: import("vue").DefineComponent<{
54
54
  type: import("vue").PropType<Recordable<any>>;
55
55
  default: any;
56
56
  };
57
+ columnCode: {
58
+ type: StringConstructor;
59
+ };
60
+ templates: {
61
+ type: import("vue").PropType<import("./types/table.type").CellFormat>;
62
+ };
57
63
  columns: {
58
64
  type: import("vue").PropType<import("./types/table.type").BasicColumn[]>;
59
65
  default: () => any[];
@@ -278,6 +284,8 @@ declare const _default: import("vue").DefineComponent<{
278
284
  minWidth?: number;
279
285
  maxWidth?: number;
280
286
  defSort?: any;
287
+ columnCode?: string;
288
+ templates?: import("./types/table.type").CellFormat;
281
289
  rowClassName?: (record: any, index: number) => string;
282
290
  operations?: unknown;
283
291
  toolbar?: import("../../forms").ButtonProps[];
@@ -341,9 +349,7 @@ declare const _default: import("vue").DefineComponent<{
341
349
  'onUpdate:current': import("vue").PropType<(current: number) => void>;
342
350
  'onUpdate:pageSize': import("vue").PropType<(size: number) => void>;
343
351
  }>>, filters: Partial<Recordable<string[]>>, sorter: import("./types/table.type").SorterResult) => any;
344
- getSelectRows: () => {
345
- [x: string]: any;
346
- }[];
352
+ getSelectRows: () => Recordable<any>[];
347
353
  handleResizeColumn: (w: any, col: any) => void;
348
354
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("register" | "columns-change" | "selection-change")[], "register" | "columns-change" | "selection-change", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
349
355
  clickRowSelect: {
@@ -398,6 +404,12 @@ declare const _default: import("vue").DefineComponent<{
398
404
  type: import("vue").PropType<Recordable<any>>;
399
405
  default: any;
400
406
  };
407
+ columnCode: {
408
+ type: StringConstructor;
409
+ };
410
+ templates: {
411
+ type: import("vue").PropType<import("./types/table.type").CellFormat>;
412
+ };
401
413
  columns: {
402
414
  type: import("vue").PropType<import("./types/table.type").BasicColumn[]>;
403
415
  default: () => any[];
@@ -1,7 +1,7 @@
1
1
  import { Recordable } from '@dt-frames/core';
2
2
  import { PropType } from 'vue';
3
3
  import type { TableRowSelection } from 'ant-design-vue/lib/table/interface';
4
- import { ActionType, BasicColumn, BtnsType, SizeType } from './types/table.type';
4
+ import { ActionType, BasicColumn, BtnsType, CellFormat, SizeType } from './types/table.type';
5
5
  import { ButtonProps } from '../../forms';
6
6
  import { DownloadType } from './types/tableHeader.type';
7
7
  export declare const TableProps: {
@@ -57,6 +57,12 @@ export declare const TableProps: {
57
57
  type: PropType<Recordable<any>>;
58
58
  default: any;
59
59
  };
60
+ columnCode: {
61
+ type: StringConstructor;
62
+ };
63
+ templates: {
64
+ type: PropType<CellFormat>;
65
+ };
60
66
  columns: {
61
67
  type: PropType<BasicColumn[]>;
62
68
  default: () => any[];