@mc20230601/keep-up 1.0.18 → 1.0.26

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 (255) hide show
  1. package/es/components/codeEditor/index.d.ts +11 -11
  2. package/es/{packages/components → components}/codeEditor/index.mjs +3 -3
  3. package/es/components/codeEditor/index.mjs.map +1 -0
  4. package/es/components/commonDrawer/index.d.ts +28 -15
  5. package/es/{packages/components → components}/commonDrawer/index.mjs +11 -4
  6. package/es/components/commonDrawer/index.mjs.map +1 -0
  7. package/es/components/commonEditor/constants.d.ts +17 -0
  8. package/es/components/commonEditor/constants.mjs +16 -0
  9. package/es/components/commonEditor/constants.mjs.map +1 -0
  10. package/es/components/commonEditor/index.d.ts +181 -0
  11. package/es/components/commonEditor/index.mjs +193 -0
  12. package/es/components/commonEditor/index.mjs.map +1 -0
  13. package/es/components/commonEditor/index.module.mjs +4 -0
  14. package/es/components/commonEditor/index.module.mjs.map +1 -0
  15. package/es/components/commonEditor/interfaces.d.ts +46 -0
  16. package/es/components/commonEditor/interfaces.mjs +2 -0
  17. package/es/components/commonEditor/interfaces.mjs.map +1 -0
  18. package/es/components/commonEditor/useModeMap.d.ts +4 -0
  19. package/es/components/commonEditor/useModeMap.mjs +17 -0
  20. package/es/components/commonEditor/useModeMap.mjs.map +1 -0
  21. package/es/components/commonFilter/constants.d.ts +2 -0
  22. package/es/components/commonFilter/constants.mjs +4 -0
  23. package/es/components/commonFilter/constants.mjs.map +1 -0
  24. package/es/components/commonFilter/index.d.ts +107 -0
  25. package/es/components/commonFilter/index.mjs +103 -0
  26. package/es/components/commonFilter/index.mjs.map +1 -0
  27. package/es/components/commonFilter/index.module.mjs +4 -0
  28. package/es/components/commonFilter/index.module.mjs.map +1 -0
  29. package/es/components/commonFilter/interfaces.d.ts +75 -0
  30. package/es/components/commonFilter/interfaces.mjs +2 -0
  31. package/es/components/commonFilter/interfaces.mjs.map +1 -0
  32. package/es/components/commonFilter/props.d.ts +31 -0
  33. package/es/components/commonFilter/props.mjs +30 -0
  34. package/es/components/commonFilter/props.mjs.map +1 -0
  35. package/es/components/commonFilter/useCollapse.d.ts +2 -0
  36. package/es/components/commonFilter/useCollapse.mjs +29 -0
  37. package/es/components/commonFilter/useCollapse.mjs.map +1 -0
  38. package/es/components/commonFilter/useFieldsParser.d.ts +5 -0
  39. package/es/components/commonFilter/useFieldsParser.mjs +34 -0
  40. package/es/components/commonFilter/useFieldsParser.mjs.map +1 -0
  41. package/es/components/commonFilter/useKeepFilter.d.ts +3 -0
  42. package/es/components/commonFilter/useKeepFilter.mjs +36 -0
  43. package/es/components/commonFilter/useKeepFilter.mjs.map +1 -0
  44. package/es/components/commonFilter/utils.d.ts +3 -0
  45. package/es/components/commonFilter/utils.mjs +14 -0
  46. package/es/components/commonFilter/utils.mjs.map +1 -0
  47. package/es/components/commonJsonPretty/index.d.ts +31 -0
  48. package/es/components/commonJsonPretty/index.mjs +26 -0
  49. package/es/components/commonJsonPretty/index.mjs.map +1 -0
  50. package/es/components/commonLocations/constants.d.ts +28 -0
  51. package/es/components/commonLocations/constants.mjs +18 -0
  52. package/es/components/commonLocations/constants.mjs.map +1 -0
  53. package/es/components/commonLocations/index.d.ts +40 -0
  54. package/es/components/commonLocations/index.mjs +94 -0
  55. package/es/components/commonLocations/index.mjs.map +1 -0
  56. package/es/components/commonLocations/index.module.mjs +4 -0
  57. package/es/components/commonLocations/index.module.mjs.map +1 -0
  58. package/es/components/commonLocations/interfaces.d.ts +100 -0
  59. package/es/components/commonLocations/interfaces.mjs +2 -0
  60. package/es/components/commonLocations/interfaces.mjs.map +1 -0
  61. package/es/components/commonLocations/useLocations.d.ts +2 -0
  62. package/es/components/commonLocations/useLocations.mjs +151 -0
  63. package/es/components/commonLocations/useLocations.mjs.map +1 -0
  64. package/es/components/commonLocations/utils.d.ts +14 -0
  65. package/es/components/commonLocations/utils.mjs +73 -0
  66. package/es/components/commonLocations/utils.mjs.map +1 -0
  67. package/es/components/commonModal/index.d.ts +30 -0
  68. package/es/components/commonModal/index.mjs +56 -0
  69. package/es/components/commonModal/index.mjs.map +1 -0
  70. package/es/components/commonModal/index.module.mjs +4 -0
  71. package/es/components/commonModal/index.module.mjs.map +1 -0
  72. package/es/components/commonModal/interfaces.d.ts +7 -0
  73. package/es/components/commonModal/interfaces.mjs +2 -0
  74. package/es/components/commonModal/interfaces.mjs.map +1 -0
  75. package/es/components/commonPage/constants.d.ts +18 -0
  76. package/es/components/commonPage/constants.mjs +16 -0
  77. package/es/components/commonPage/constants.mjs.map +1 -0
  78. package/es/components/commonPage/index.d.ts +256 -0
  79. package/es/components/commonPage/index.mjs +461 -0
  80. package/es/components/commonPage/index.mjs.map +1 -0
  81. package/es/components/commonPage/index.module.mjs +4 -0
  82. package/es/components/commonPage/index.module.mjs.map +1 -0
  83. package/es/components/commonPage/interfaces.d.ts +113 -0
  84. package/es/components/commonPage/interfaces.mjs +2 -0
  85. package/es/components/commonPage/interfaces.mjs.map +1 -0
  86. package/es/components/commonPage/useAsyncDataSource.d.ts +4 -0
  87. package/es/components/commonPage/useAsyncDataSource.mjs +39 -0
  88. package/es/components/commonPage/useAsyncDataSource.mjs.map +1 -0
  89. package/es/components/commonPage/useLayout.d.ts +6 -0
  90. package/es/components/commonPage/useLayout.mjs +37 -0
  91. package/es/components/commonPage/useLayout.mjs.map +1 -0
  92. package/es/components/commonPage/usePage.d.ts +4 -0
  93. package/es/components/commonPage/usePage.mjs +64 -0
  94. package/es/components/commonPage/usePage.mjs.map +1 -0
  95. package/es/components/commonPage/usePageActions.d.ts +2 -0
  96. package/es/components/commonPage/usePageActions.mjs +66 -0
  97. package/es/components/commonPage/usePageActions.mjs.map +1 -0
  98. package/es/components/commonPage/usePagePreferences.d.ts +3 -0
  99. package/es/components/commonPage/usePagePreferences.mjs +54 -0
  100. package/es/components/commonPage/usePagePreferences.mjs.map +1 -0
  101. package/es/components/commonPage/utils.d.ts +4 -0
  102. package/es/components/commonPage/utils.mjs +11 -0
  103. package/es/components/commonPage/utils.mjs.map +1 -0
  104. package/es/components/commonSetter/components/draggableList/index.d.ts +31 -0
  105. package/es/components/commonSetter/components/draggableList/index.mjs +113 -0
  106. package/es/components/commonSetter/components/draggableList/index.mjs.map +1 -0
  107. package/es/components/commonSetter/components/draggableList/index.module.mjs +4 -0
  108. package/es/components/commonSetter/components/draggableList/index.module.mjs.map +1 -0
  109. package/es/components/commonSetter/constants.d.ts +7 -0
  110. package/es/components/commonSetter/constants.mjs +10 -0
  111. package/es/components/commonSetter/constants.mjs.map +1 -0
  112. package/es/components/commonSetter/index.d.ts +31 -0
  113. package/es/components/commonSetter/index.mjs +108 -0
  114. package/es/components/commonSetter/index.mjs.map +1 -0
  115. package/es/components/commonSetter/index.module.mjs +4 -0
  116. package/es/components/commonSetter/index.module.mjs.map +1 -0
  117. package/es/components/commonTable/constants.d.ts +11 -0
  118. package/es/components/commonTable/constants.mjs +14 -0
  119. package/es/components/commonTable/constants.mjs.map +1 -0
  120. package/es/components/commonTable/index.d.ts +132 -0
  121. package/es/components/commonTable/index.mjs +140 -0
  122. package/es/components/commonTable/index.mjs.map +1 -0
  123. package/es/components/commonTable/index.module.mjs +4 -0
  124. package/es/components/commonTable/index.module.mjs.map +1 -0
  125. package/es/components/commonTable/interfaces.d.ts +54 -0
  126. package/es/components/commonTable/interfaces.mjs +2 -0
  127. package/es/components/commonTable/interfaces.mjs.map +1 -0
  128. package/es/components/commonTable/props.d.ts +71 -0
  129. package/es/components/commonTable/props.mjs +72 -0
  130. package/es/components/commonTable/props.mjs.map +1 -0
  131. package/es/components/commonTable/usePagination.d.ts +3 -0
  132. package/es/components/commonTable/usePagination.mjs +41 -0
  133. package/es/components/commonTable/usePagination.mjs.map +1 -0
  134. package/es/components/commonTable/utils.d.ts +3 -0
  135. package/es/components/commonTable/utils.mjs +17 -0
  136. package/es/components/commonTable/utils.mjs.map +1 -0
  137. package/es/components/elIconPlus/index.d.ts +15 -0
  138. package/es/components/elIconPlus/index.mjs +31 -0
  139. package/es/components/elIconPlus/index.mjs.map +1 -0
  140. package/es/components/formTabs/index.d.ts +35 -0
  141. package/es/components/formTabs/index.mjs +60 -0
  142. package/es/components/formTabs/index.mjs.map +1 -0
  143. package/es/components/formilyCmps/formTab/index.d.ts +83 -0
  144. package/es/components/formilyCmps/formTab/index.mjs +146 -0
  145. package/es/components/formilyCmps/formTab/index.mjs.map +1 -0
  146. package/es/components/formilyCmps/formilyForm/constants.d.ts +39 -0
  147. package/es/components/formilyCmps/formilyForm/constants.mjs +41 -0
  148. package/es/components/formilyCmps/formilyForm/constants.mjs.map +1 -0
  149. package/es/components/formilyCmps/formilyForm/index.d.ts +131 -0
  150. package/es/components/formilyCmps/formilyForm/index.mjs +148 -0
  151. package/es/components/formilyCmps/formilyForm/index.mjs.map +1 -0
  152. package/es/components/formilyCmps/formilyForm/index.module.mjs +4 -0
  153. package/es/components/formilyCmps/formilyForm/index.module.mjs.map +1 -0
  154. package/es/components/formilyCmps/formilyForm/interfaces.d.ts +28 -0
  155. package/es/components/formilyCmps/formilyForm/interfaces.mjs +2 -0
  156. package/es/components/formilyCmps/formilyForm/interfaces.mjs.map +1 -0
  157. package/es/components/formilyCmps/formilyForm/utils.d.ts +3 -0
  158. package/es/components/formilyCmps/formilyForm/utils.mjs +14 -0
  159. package/es/components/formilyCmps/formilyForm/utils.mjs.map +1 -0
  160. package/es/components/formilyCmps/index.d.ts +3 -0
  161. package/es/components/formilyCmps/index.mjs +3 -0
  162. package/es/components/formilyCmps/sectionTitle/index.d.ts +28 -0
  163. package/es/components/formilyCmps/sectionTitle/index.mjs +30 -0
  164. package/es/components/formilyCmps/sectionTitle/index.mjs.map +1 -0
  165. package/es/components/formilyCmps/sectionTitle/index.module.mjs +4 -0
  166. package/es/components/formilyCmps/sectionTitle/index.module.mjs.map +1 -0
  167. package/es/components/fragment/index.d.ts +4 -0
  168. package/es/components/fragment/index.mjs +16 -0
  169. package/es/components/fragment/index.mjs.map +1 -0
  170. package/es/components/iconFont/index.d.ts +36 -0
  171. package/es/components/iconFont/index.mjs +44 -0
  172. package/es/components/iconFont/index.mjs.map +1 -0
  173. package/es/components/index.d.ts +22 -0
  174. package/es/components/index.mjs +21 -0
  175. package/es/{packages/interfaces → components}/index.mjs.map +1 -1
  176. package/es/components/radioGroup/constants.d.ts +371 -0
  177. package/es/components/radioGroup/constants.mjs +11 -0
  178. package/es/components/radioGroup/constants.mjs.map +1 -0
  179. package/es/components/radioGroup/index.d.ts +203 -0
  180. package/es/components/radioGroup/index.mjs +60 -0
  181. package/es/components/radioGroup/index.mjs.map +1 -0
  182. package/es/components/radioGroup/interfaces.d.ts +7 -0
  183. package/es/components/radioGroup/interfaces.mjs +2 -0
  184. package/es/components/radioGroup/interfaces.mjs.map +1 -0
  185. package/es/components/space/index.d.ts +61 -0
  186. package/es/components/space/index.mjs +59 -0
  187. package/es/components/space/index.mjs.map +1 -0
  188. package/es/components/upload/formilyUpload.d.ts +73 -0
  189. package/es/components/upload/formilyUpload.mjs +90 -0
  190. package/es/components/upload/formilyUpload.mjs.map +1 -0
  191. package/es/components/upload/index.d.ts +271 -0
  192. package/es/components/upload/index.mjs +22 -0
  193. package/es/components/upload/index.mjs.map +1 -0
  194. package/es/components/upload/index.module.mjs +4 -0
  195. package/es/components/upload/index.module.mjs.map +1 -0
  196. package/es/components/upload/modalUpload.d.ts +36 -0
  197. package/es/components/upload/modalUpload.mjs +67 -0
  198. package/es/components/upload/modalUpload.mjs.map +1 -0
  199. package/es/components/upload/upload.d.ts +76 -0
  200. package/es/components/upload/upload.mjs +91 -0
  201. package/es/components/upload/upload.mjs.map +1 -0
  202. package/es/constants/common.d.ts +1 -1
  203. package/es/constants/common.mjs.map +1 -0
  204. package/es/index.d.ts +17 -1
  205. package/es/index.mjs +20 -2
  206. package/es/index.mjs.map +1 -1
  207. package/es/styles/index.css +298 -0
  208. package/es/utils/common.d.ts +1 -1
  209. package/es/utils/common.mjs.map +1 -0
  210. package/es/{packages/utils → utils}/emitter.mjs +1 -1
  211. package/es/utils/emitter.mjs.map +1 -0
  212. package/es/utils/shared.mjs.map +1 -0
  213. package/es/utils/storage.mjs.map +1 -0
  214. package/package.json +1 -2
  215. package/es/_virtual/ace.mjs +0 -4
  216. package/es/_virtual/ace.mjs.map +0 -1
  217. package/es/_virtual/mode-javascript.mjs +0 -4
  218. package/es/_virtual/mode-javascript.mjs.map +0 -1
  219. package/es/_virtual/theme-monokai.mjs +0 -4
  220. package/es/_virtual/theme-monokai.mjs.map +0 -1
  221. package/es/constants/index.d.ts +0 -0
  222. package/es/node_modules/.pnpm/ace-builds@1.43.5/node_modules/ace-builds/src-noconflict/ace.mjs +0 -21889
  223. package/es/node_modules/.pnpm/ace-builds@1.43.5/node_modules/ace-builds/src-noconflict/ace.mjs.map +0 -1
  224. package/es/node_modules/.pnpm/ace-builds@1.43.5/node_modules/ace-builds/src-noconflict/mode-javascript.mjs +0 -1186
  225. package/es/node_modules/.pnpm/ace-builds@1.43.5/node_modules/ace-builds/src-noconflict/mode-javascript.mjs.map +0 -1
  226. package/es/node_modules/.pnpm/ace-builds@1.43.5/node_modules/ace-builds/src-noconflict/theme-monokai.mjs +0 -22
  227. package/es/node_modules/.pnpm/ace-builds@1.43.5/node_modules/ace-builds/src-noconflict/theme-monokai.mjs.map +0 -1
  228. package/es/node_modules/.pnpm/mitt@3.0.1/node_modules/mitt/dist/mitt.mjs +0 -4
  229. package/es/node_modules/.pnpm/mitt@3.0.1/node_modules/mitt/dist/mitt.mjs.map +0 -1
  230. package/es/packages/components/codeEditor/index.mjs.map +0 -1
  231. package/es/packages/components/commonDrawer/index.mjs.map +0 -1
  232. package/es/packages/components/index.mjs +0 -3
  233. package/es/packages/constants/common.mjs.map +0 -1
  234. package/es/packages/interfaces/index.mjs +0 -2
  235. package/es/packages/utils/common.mjs.map +0 -1
  236. package/es/packages/utils/emitter.mjs.map +0 -1
  237. package/es/packages/utils/shared.mjs.map +0 -1
  238. package/es/packages/utils/storage.mjs.map +0 -1
  239. /package/es/{packages/components → components}/commonDrawer/index.module.mjs +0 -0
  240. /package/es/{packages/components → components}/commonDrawer/index.module.mjs.map +0 -0
  241. /package/es/{packages/components → components}/commonDrawer/interfaces.mjs +0 -0
  242. /package/es/{packages/components → components}/commonDrawer/interfaces.mjs.map +0 -0
  243. /package/es/{packages/components → components/formilyCmps}/index.mjs.map +0 -0
  244. /package/es/{packages/constants → constants}/common.mjs +0 -0
  245. /package/es/{packages/interfaces → interfaces}/common.mjs +0 -0
  246. /package/es/{packages/interfaces → interfaces}/common.mjs.map +0 -0
  247. /package/es/{packages/interfaces → interfaces}/commonPage.mjs +0 -0
  248. /package/es/{packages/interfaces → interfaces}/commonPage.mjs.map +0 -0
  249. /package/es/{packages/constants → interfaces}/index.mjs +0 -0
  250. /package/es/{packages/constants → interfaces}/index.mjs.map +0 -0
  251. /package/es/{packages/utils → utils}/common.mjs +0 -0
  252. /package/es/{packages/utils → utils}/index.mjs +0 -0
  253. /package/es/{packages/utils → utils}/index.mjs.map +0 -0
  254. /package/es/{packages/utils → utils}/shared.mjs +0 -0
  255. /package/es/{packages/utils → utils}/storage.mjs +0 -0
@@ -23,15 +23,15 @@ declare const _default: {
23
23
  default: string;
24
24
  };
25
25
  }>> & Readonly<{
26
- "onUpdate:modelValue"?: (...args: any[]) => any;
27
26
  onChange?: (...args: any[]) => any;
27
+ "onUpdate:modelValue"?: (...args: any[]) => any;
28
28
  }>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
29
29
  [key: string]: any;
30
- }>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "change")[], import("vue").PublicProps, {
30
+ }>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "update:modelValue")[], import("vue").PublicProps, {
31
31
  value: string;
32
32
  modelValue: string;
33
- language: string;
34
33
  theme: string;
34
+ language: string;
35
35
  }, true, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
36
36
  P: {};
37
37
  B: {};
@@ -61,15 +61,15 @@ declare const _default: {
61
61
  default: string;
62
62
  };
63
63
  }>> & Readonly<{
64
- "onUpdate:modelValue"?: (...args: any[]) => any;
65
64
  onChange?: (...args: any[]) => any;
65
+ "onUpdate:modelValue"?: (...args: any[]) => any;
66
66
  }>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
67
67
  [key: string]: any;
68
68
  }>, {}, {}, {}, {
69
69
  value: string;
70
70
  modelValue: string;
71
- language: string;
72
71
  theme: string;
72
+ language: string;
73
73
  }>;
74
74
  __isFragment?: never;
75
75
  __isTeleport?: never;
@@ -96,15 +96,15 @@ declare const _default: {
96
96
  default: string;
97
97
  };
98
98
  }>> & Readonly<{
99
- "onUpdate:modelValue"?: (...args: any[]) => any;
100
99
  onChange?: (...args: any[]) => any;
100
+ "onUpdate:modelValue"?: (...args: any[]) => any;
101
101
  }>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
102
102
  [key: string]: any;
103
- }>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "change")[], "update:modelValue" | "change", {
103
+ }>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "update:modelValue")[], "change" | "update:modelValue", {
104
104
  value: string;
105
105
  modelValue: string;
106
- language: string;
107
106
  theme: string;
107
+ language: string;
108
108
  }, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & {
109
109
  FormilyCodeEditor: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
110
110
  /** v-model体系-内容 */
@@ -129,7 +129,7 @@ declare const _default: {
129
129
  };
130
130
  }>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
131
131
  [key: string]: any;
132
- }>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "change")[], "update:modelValue" | "change", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
132
+ }>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "update:modelValue")[], "change" | "update:modelValue", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
133
133
  /** v-model体系-内容 */
134
134
  modelValue: {
135
135
  type: StringConstructor;
@@ -151,13 +151,13 @@ declare const _default: {
151
151
  default: string;
152
152
  };
153
153
  }>> & Readonly<{
154
- "onUpdate:modelValue"?: (...args: any[]) => any;
155
154
  onChange?: (...args: any[]) => any;
155
+ "onUpdate:modelValue"?: (...args: any[]) => any;
156
156
  }>, {
157
157
  value: string;
158
158
  modelValue: string;
159
- language: string;
160
159
  theme: string;
160
+ language: string;
161
161
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
162
162
  };
163
163
  export default _default;
@@ -1,8 +1,8 @@
1
1
  import { defineComponent, ref, onMounted, h } from 'vue';
2
2
  import { connect, mapProps, mapReadPretty } from '@formily/vue';
3
- import ace from '../../../node_modules/.pnpm/ace-builds@1.43.5/node_modules/ace-builds/src-noconflict/ace.mjs';
4
- import '../../../node_modules/.pnpm/ace-builds@1.43.5/node_modules/ace-builds/src-noconflict/mode-javascript.mjs';
5
- import '../../../node_modules/.pnpm/ace-builds@1.43.5/node_modules/ace-builds/src-noconflict/theme-monokai.mjs';
3
+ import ace from 'ace-builds';
4
+ import 'ace-builds/src-noconflict/mode-javascript';
5
+ import 'ace-builds/src-noconflict/theme-monokai';
6
6
  import '../../utils/emitter.mjs';
7
7
  import { composeExpose } from '../../utils/shared.mjs';
8
8
  import { PreviewText } from '@formily/element-plus';
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.mjs","sources":["../../../../../packages/components/codeEditor/index.ts"],"sourcesContent":["import { defineComponent, h, ref, onMounted } from 'vue'\nimport { connect, mapProps, mapReadPretty } from '@formily/vue'\nimport ace from 'ace-builds'\nimport 'ace-builds/src-noconflict/mode-javascript'\nimport 'ace-builds/src-noconflict/theme-monokai'\nimport { composeExpose } from '../../utils'\n\nimport { PreviewText } from '@formily/element-plus'\n\nconst props = {\n /** v-model体系-内容 */\n modelValue: {\n type: String,\n default: '',\n },\n /** formily体系-内容 */\n value: {\n type: String,\n default: '',\n },\n /** 语言 */\n language: {\n type: String,\n default: '',\n },\n /** 主题 */\n theme: {\n type: String,\n default: '',\n },\n}\nconst CodeEditor = defineComponent({\n name: 'CodeEditor',\n props,\n emits: ['update:modelValue', 'change'],\n setup(props, { emit, attrs }) {\n const codeEditorRef = ref<HTMLDivElement | null>(null)\n const codeEditorInstance = ref<ace.Ace.Editor | null>(null)\n const init = async () => {\n codeEditorInstance.value = ace.edit(codeEditorRef.value)\n codeEditorInstance.value.session.setMode(`ace/mode/${props.language || 'javascript'}`)\n codeEditorInstance.value.setOptions({\n fontSize: 14,\n tabSize: 2,\n useSoftTabs: true,\n showPrintMargin: false,\n wrap: true,\n })\n codeEditorInstance.value.on('change', () => {\n emit('update:modelValue', codeEditorInstance.value!.getValue())\n emit('change', codeEditorInstance.value!.getValue())\n })\n setTimeout(() => {\n codeEditorInstance.value.setValue(props.modelValue || props.value || '', -1)\n }, 500)\n }\n onMounted(init)\n return () =>\n h('div', {\n ref: codeEditorRef,\n style: 'width: 100%; height: 100%; border: 1px solid #333',\n })\n },\n})\n\nconst FormilyCodeEditor = connect(\n CodeEditor,\n mapProps({ value: 'modelValue' }),\n mapReadPretty(PreviewText.Input),\n)\n\nexport default composeExpose(CodeEditor, {\n FormilyCodeEditor: FormilyCodeEditor,\n})\n"],"names":["props"],"mappings":";;;;;;;;;AASA,MAAM,KAAQ,GAAA;AAAA;AAAA,EAEZ,UAAY,EAAA;AAAA,IACV,IAAM,EAAA,MAAA;AAAA,IACN,OAAS,EAAA,EAAA;AAAA,GACX;AAAA;AAAA,EAEA,KAAO,EAAA;AAAA,IAC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AAK,QAAU,EAAA,kBAAA,CAAmB,KAAO,CAAA,QAAA,EAAU,CAAA,CAAA;AAAA,OACpD,CAAA,CAAA;AACD,MAAA,UAAA,CAAW,MAAM;AACf,QAAA,kBAAA,CAAmB,MAAM,QAASA,CAAAA,MAAAA,CAAM,cAAcA,MAAM,CAAA,KAAA,IAAS,IAAI,CAAE,CAAA,CAAA,CAAA;AAAA,SAC1E,GAAG,CAAA,CAAA;AAAA,KACR,CAAA;AACA,IAAA,SAAA,CAAU,IAAI,CAAA,CAAA;AACd,IAAO,OAAA,MACL,EAAE,KAAO,EAAA;AAAA,MACP,GAAK,EAAA,aAAA;AAAA,MACL,KAAO,EAAA,mDAAA;AAAA,KACR,CAAA,CAAA;AAAA,GACL;AACF,CAAC,CAAA,CAAA;AAED,MAAM,iBAAoB,GAAA,OAAA;AAAA,EACxB,UAAA;AAAA,EACA,QAAS,CAAA,EAAE,KAAO,EAAA,YAAA,EAAc,CAAA;AAAA,EAChC,aAAA,CAAc,YAAY,KAAK,CAAA;AACjC,CAAA,CAAA;AAEA,YAAe,cAAc,UAAY,EAAA;AAAA,EACvC,iBAAA;AACF,CAAC,CAAA;;;;"}
@@ -1,24 +1,37 @@
1
- export * from './interfaces';
2
- declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
3
- title: {
4
- type: StringConstructor;
5
- default: string;
6
- };
7
- size: {
8
- type: StringConstructor;
9
- default: string;
10
- };
11
- }>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
1
+ import type { ExtractPropTypes, DefineComponent } from 'vue';
2
+ import type { DrawerProps } from 'element-plus';
3
+ import type { ICommonDrawerExpose } from './interfaces';
4
+ declare const props: {
5
+ /** 默认标题 */
12
6
  title: {
13
7
  type: StringConstructor;
14
8
  default: string;
15
9
  };
10
+ /** 宽度 */
16
11
  size: {
17
12
  type: StringConstructor;
18
13
  default: string;
19
14
  };
20
- }>> & Readonly<{}>, {
21
- title: string;
22
- size: string;
23
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
15
+ };
16
+ export type CardProps = ExtractPropTypes<typeof props> & Omit<Partial<DrawerProps>, 'title' | 'size'>;
17
+ export * from './interfaces';
18
+ declare const _default: DefineComponent<
19
+ /** props */
20
+ CardProps,
21
+ /** expose */
22
+ ICommonDrawerExpose,
23
+ /** 没人用,vue2的data */
24
+ {},
25
+ /** 没人用,vue2的computed */
26
+ {},
27
+ /** 没人用,vue2的method */
28
+ {},
29
+ /** 没人用,mixin */
30
+ {},
31
+ /** 没人用,extends */
32
+ {},
33
+ /** emits */
34
+ {
35
+ close: () => void;
36
+ }>;
24
37
  export default _default;
@@ -3,23 +3,27 @@ import { ElDrawer, ElEmpty } from 'element-plus';
3
3
  import styles from './index.module.mjs';
4
4
 
5
5
  const props = {
6
+ /** 默认标题 */
6
7
  title: {
7
8
  type: String,
8
9
  default: "\u9ED8\u8BA4\u6807\u9898"
9
10
  },
11
+ /** 宽度 */
10
12
  size: {
11
13
  type: String,
12
14
  default: "70%"
13
15
  }
14
16
  };
15
- var index = defineComponent({
17
+ const commonDrawer = defineComponent({
16
18
  name: "CommonEditor",
17
19
  inheritAttrs: false,
18
20
  props,
21
+ emits: ["close"],
19
22
  setup(props2, {
20
23
  expose,
21
24
  slots,
22
- attrs
25
+ attrs,
26
+ emit
23
27
  }) {
24
28
  const visible = ref(false);
25
29
  const open = () => {
@@ -42,7 +46,10 @@ var index = defineComponent({
42
46
  "title": props2.title,
43
47
  "size": props2.size,
44
48
  "destroyOnClose": true,
45
- "appendToBody": true
49
+ "appendToBody": true,
50
+ "onClose": () => {
51
+ emit("close");
52
+ }
46
53
  }), {
47
54
  default: () => {
48
55
  var _a2;
@@ -57,5 +64,5 @@ var index = defineComponent({
57
64
  }
58
65
  });
59
66
 
60
- export { index as default };
67
+ export { commonDrawer as default };
61
68
  //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.mjs","sources":["../../../../../packages/components/commonDrawer/index.tsx"],"sourcesContent":["import { defineComponent, ref } from 'vue'\nimport { ElDrawer, ElEmpty } from 'element-plus'\nimport styles from './index.module.scss'\n\nimport type { ExtractPropTypes, DefineComponent } from 'vue'\nimport type { DrawerProps } from 'element-plus'\nimport type { ICommonDrawerExpose } from './interfaces'\n\nconst props = {\n /** 默认标题 */\n title: {\n type: String,\n default: '默认标题',\n },\n /** 宽度 */\n size: {\n type: String,\n default: '70%',\n },\n}\n\nexport type CardProps = ExtractPropTypes<typeof props> & Omit<Partial<DrawerProps>, 'title' | 'size'>\n\nexport * from './interfaces'\nconst commonDrawer = defineComponent({\n name: 'CommonEditor',\n inheritAttrs: false,\n props,\n emits: ['close'],\n setup(props, { expose, slots, attrs, emit }) {\n const visible = ref(false)\n /** 打开抽屉 */\n const open = () => {\n visible.value = true\n }\n /** 关闭抽屉 */\n const close = () => {\n visible.value = false\n }\n expose<ICommonDrawerExpose>({\n open,\n close,\n })\n return () => (\n <ElDrawer\n class={styles.container}\n v-model={visible.value}\n {...attrs}\n title={props.title}\n size={props.size}\n destroyOnClose\n appendToBody\n onClose={() => { emit('close') }}\n v-slots={{\n title: slots.title?.(),\n footer: slots.footer?.(),\n }}\n >\n {slots.default?.() || <ElEmpty description='No Data' />}\n </ElDrawer>\n )\n },\n})\n\nexport default commonDrawer as unknown as DefineComponent<\n /** props */ \n CardProps,\n /** expose */\n ICommonDrawerExpose,\n /** 没人用,vue2的data */\n {},\n /** 没人用,vue2的computed */\n {},\n /** 没人用,vue2的method */\n {},\n /** 没人用,mixin */\n {},\n /** 没人用,extends */\n {},\n /** emits */\n { close: () => void }\n>"],"names":["props","title","type","String","default","size","commonDrawer","defineComponent","name","inheritAttrs","emits","setup","expose","slots","attrs","emit","visible","ref","open","value","close","_createVNode","ElDrawer","_mergeProps","styles","container","$event","onClose","_a","ElEmpty","footer"],"mappings":";;;;A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A;AAAA,QAAA,SACFd,MAAMC,CAAAA,KAAAA;AAAAA,QAAK,QACZD,MAAMK,CAAAA,IAAAA;AAAAA,QAAI,gBAAA,EAAA,IAAA;AAAA,QAAA,cAAA,EAAA,IAAA;AAAA,QAAA,WAGPsB,MAAM;AAAEZ,UAAAA,IAAAA,CAAK,OAAO,CAAA,CAAA;AAAA,SAAE;AAAA,OAAC,CAAA,EAAA;AAAA,QAAAX,SAAAA,MAAA;AApDxC,UAAAwB,IAAAA,GAAAA,CAAAA;AAoDwC,UAAA,OAAA,CAAA,CAAA,CAM/Bf,MAAAA,KAAMT,CAAAA,OAAAA,KAANS,gBAAAA,GAAAA,CAAAA,IAAAA,CAAAA,KAAAA,CAAAA,KAAiBQ,YAAAQ,OAAA,EAAA;AAAA,YAAA,aAAA,EAAA,SAAA;AAAA,WAAA,EAAqC,IAAA,CAAA,CAAA,CAAA;AAAA,SAAA;AAAA,QAJrD5B,KAAAA,EAAAA,CAAOY,WAAMZ,KAANY,KAAAA,IAAAA,GAAAA,KAAAA,CAAAA,GAAAA,EAAAA,CAAAA,IAAAA,CAAAA,KAAAA,CAAAA;AAAAA,QACPiB,MAAAA,EAAAA,CAAQjB,WAAMiB,MAANjB,KAAAA,IAAAA,GAAAA,KAAAA,CAAAA,GAAAA,EAAAA,CAAAA,IAAAA,CAAAA,KAAAA,CAAAA;AAAAA,OAKb,CAAA,CAAA;AAAA,KAAA,CAAA;AAAA,GACH;AACF,CAAC;;;;"}
@@ -0,0 +1,17 @@
1
+ /** 模式 */
2
+ export declare enum MODE {
3
+ /** 查看 */
4
+ VIEW = "VIEW",
5
+ /** 创建 */
6
+ CREATE = "CREATE",
7
+ /** 编辑 */
8
+ EDIT = "EDIT"
9
+ }
10
+ /** 布局默认值 */
11
+ export declare const defaultLayout: {
12
+ columns: number;
13
+ labelStyle: {
14
+ width: string;
15
+ margin: string;
16
+ };
17
+ };
@@ -0,0 +1,16 @@
1
+ var MODE = /* @__PURE__ */ ((MODE2) => {
2
+ MODE2["VIEW"] = "VIEW";
3
+ MODE2["CREATE"] = "CREATE";
4
+ MODE2["EDIT"] = "EDIT";
5
+ return MODE2;
6
+ })(MODE || {});
7
+ const defaultLayout = {
8
+ columns: 1,
9
+ labelStyle: {
10
+ width: "80px",
11
+ margin: "0"
12
+ }
13
+ };
14
+
15
+ export { MODE, defaultLayout };
16
+ //# sourceMappingURL=constants.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.mjs","sources":["../../../../../packages/components/commonEditor/constants.ts"],"sourcesContent":["/** 模式 */\nexport enum MODE {\n /** 查看 */\n VIEW = 'VIEW',\n /** 创建 */\n CREATE = 'CREATE',\n /** 编辑 */\n EDIT = 'EDIT',\n}\n\n/** 布局默认值 */\nexport const defaultLayout = {\n columns: 1,\n labelStyle: {\n width: '80px',\n margin: '0',\n }\n}\n"],"names":["MODE"],"mappings":"AACY,IAAA,IAAA,qBAAAA,KAAL,KAAA;AAEL,EAAAA,MAAA,MAAO,CAAA,GAAA,MAAA,CAAA;AAEP,EAAAA,MAAA,QAAS,CAAA,GAAA,QAAA,CAAA;AAET,EAAAA,MAAA,MAAO,CAAA,GAAA,MAAA,CAAA;AANG,EAAAA,OAAAA,KAAAA,CAAAA;AAAA,CAAA,EAAA,IAAA,IAAA,EAAA,EAAA;AAUL,MAAM,aAAgB,GAAA;AAAA,EAC3B,OAAS,EAAA,CAAA;AAAA,EACT,UAAY,EAAA;AAAA,IACV,KAAO,EAAA,MAAA;AAAA,IACP,MAAQ,EAAA,GAAA;AAAA,GACV;AACF;;;;"}
@@ -0,0 +1,181 @@
1
+ import type { PropType } from 'vue';
2
+ import type { ISchema } from '@formily/vue';
3
+ import type { IEffectHooks } from '../formilyCmps/formilyForm';
4
+ import type { ICommonObj } from '../../interfaces/common';
5
+ import type { IEditorLayout } from './interfaces';
6
+ export * from './constants';
7
+ export * from './interfaces';
8
+ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
9
+ /** 创建Api */
10
+ createApi: {
11
+ type: PropType<(p: ICommonObj) => Promise<ICommonObj>>;
12
+ default: any;
13
+ };
14
+ /** 编辑Api */
15
+ editApi: {
16
+ type: PropType<(p: ICommonObj) => Promise<ICommonObj>>;
17
+ default: any;
18
+ };
19
+ /** 格式化列表接口入参 */
20
+ formatEditParams: {
21
+ type: PropType<(p: any) => any>;
22
+ default: any;
23
+ };
24
+ /** 编辑器字段 */
25
+ editFields: {
26
+ type: PropType<ISchema>;
27
+ default: () => {};
28
+ };
29
+ /** 标题 */
30
+ title: {
31
+ type: StringConstructor;
32
+ default: string;
33
+ };
34
+ /** 宽度 */
35
+ size: {
36
+ type: StringConstructor;
37
+ default: string;
38
+ };
39
+ /** layout */
40
+ layout: {
41
+ type: PropType<IEditorLayout>;
42
+ default: () => {
43
+ columns: number;
44
+ labelStyle: {
45
+ width: string;
46
+ margin: string;
47
+ };
48
+ };
49
+ };
50
+ /** effectHooks */
51
+ effectHooks: {
52
+ type: PropType<IEffectHooks>;
53
+ default: () => {};
54
+ };
55
+ /** 需要注册的组件 */
56
+ components: {
57
+ type: ObjectConstructor;
58
+ default: () => {};
59
+ };
60
+ }>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "confirmSuccess"[], "confirmSuccess", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
61
+ /** 创建Api */
62
+ createApi: {
63
+ type: PropType<(p: ICommonObj) => Promise<ICommonObj>>;
64
+ default: any;
65
+ };
66
+ /** 编辑Api */
67
+ editApi: {
68
+ type: PropType<(p: ICommonObj) => Promise<ICommonObj>>;
69
+ default: any;
70
+ };
71
+ /** 格式化列表接口入参 */
72
+ formatEditParams: {
73
+ type: PropType<(p: any) => any>;
74
+ default: any;
75
+ };
76
+ /** 编辑器字段 */
77
+ editFields: {
78
+ type: PropType<ISchema>;
79
+ default: () => {};
80
+ };
81
+ /** 标题 */
82
+ title: {
83
+ type: StringConstructor;
84
+ default: string;
85
+ };
86
+ /** 宽度 */
87
+ size: {
88
+ type: StringConstructor;
89
+ default: string;
90
+ };
91
+ /** layout */
92
+ layout: {
93
+ type: PropType<IEditorLayout>;
94
+ default: () => {
95
+ columns: number;
96
+ labelStyle: {
97
+ width: string;
98
+ margin: string;
99
+ };
100
+ };
101
+ };
102
+ /** effectHooks */
103
+ effectHooks: {
104
+ type: PropType<IEffectHooks>;
105
+ default: () => {};
106
+ };
107
+ /** 需要注册的组件 */
108
+ components: {
109
+ type: ObjectConstructor;
110
+ default: () => {};
111
+ };
112
+ }>> & Readonly<{
113
+ onConfirmSuccess?: (...args: any[]) => any;
114
+ }>, {
115
+ title: string;
116
+ effectHooks: IEffectHooks;
117
+ components: Record<string, any>;
118
+ layout: IEditorLayout;
119
+ size: string;
120
+ createApi: (p: ICommonObj) => Promise<ICommonObj>;
121
+ editApi: (p: ICommonObj) => Promise<ICommonObj>;
122
+ formatEditParams: (p: any) => any;
123
+ editFields: import("@formily/json-schema").Stringify<{
124
+ [key: symbol]: any;
125
+ [key: `x-${string}`]: any;
126
+ [key: `x-${number}`]: any;
127
+ version?: string;
128
+ name?: import("@formily/json-schema").SchemaKey;
129
+ title?: any;
130
+ description?: any;
131
+ default?: any;
132
+ readOnly?: boolean;
133
+ writeOnly?: boolean;
134
+ type?: import("@formily/json-schema").SchemaTypes;
135
+ enum?: import("@formily/json-schema").SchemaEnum<any>;
136
+ const?: any;
137
+ multipleOf?: number;
138
+ maximum?: number;
139
+ exclusiveMaximum?: number;
140
+ minimum?: number;
141
+ exclusiveMinimum?: number;
142
+ maxLength?: number;
143
+ minLength?: number;
144
+ pattern?: string | RegExp;
145
+ maxItems?: number;
146
+ minItems?: number;
147
+ uniqueItems?: boolean;
148
+ maxProperties?: number;
149
+ minProperties?: number;
150
+ required?: string[] | boolean | string;
151
+ format?: string;
152
+ $ref?: string;
153
+ $namespace?: string;
154
+ definitions?: import("@formily/json-schema").SchemaProperties<any, any, any, any, any, any, any, any>;
155
+ properties?: import("@formily/json-schema").SchemaProperties<any, any, any, any, any, any, any, any>;
156
+ items?: import("@formily/json-schema").SchemaItems<any, any, any, any, any, any, any, any>;
157
+ additionalItems?: import("@formily/json-schema").Stringify</*elided*/ any>;
158
+ patternProperties?: import("@formily/json-schema").SchemaProperties<any, any, any, any, any, any, any, any>;
159
+ additionalProperties?: import("@formily/json-schema").Stringify</*elided*/ any>;
160
+ "x-value"?: any;
161
+ "x-index"?: number;
162
+ "x-pattern"?: any;
163
+ "x-display"?: any;
164
+ "x-validator"?: any;
165
+ "x-decorator"?: any;
166
+ "x-decorator-props"?: any;
167
+ "x-component"?: any;
168
+ "x-component-props"?: any;
169
+ "x-reactions"?: import("@formily/json-schema").SchemaReactions<any>;
170
+ "x-content"?: any;
171
+ "x-data"?: any;
172
+ "x-visible"?: boolean;
173
+ "x-hidden"?: boolean;
174
+ "x-disabled"?: boolean;
175
+ "x-editable"?: boolean;
176
+ "x-read-only"?: boolean;
177
+ "x-read-pretty"?: boolean;
178
+ "x-compile-omitted"?: string[];
179
+ }>;
180
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
181
+ export default _default;
@@ -0,0 +1,193 @@
1
+ import { defineComponent, ref, computed, createVNode, nextTick, createTextVNode } from 'vue';
2
+ import { ElSpace, ElButton, ElMessage } from 'element-plus';
3
+ import FormilyForm from '../formilyCmps/formilyForm/index.mjs';
4
+ import { getRootSchema } from '../../constants/common.mjs';
5
+ import commonDrawer from '../commonDrawer/index.mjs';
6
+ import { defaultLayout } from './constants.mjs';
7
+ export { MODE, defaultLayout } from './constants.mjs';
8
+ import useModeMap from './useModeMap.mjs';
9
+ import styles from './index.module.mjs';
10
+
11
+ const props = {
12
+ /** 创建Api */
13
+ createApi: {
14
+ type: Function,
15
+ // TODO:建一个全局通用的async ts,这里的ICommonObj是否正确
16
+ default: void 0
17
+ },
18
+ /** 编辑Api */
19
+ editApi: {
20
+ type: Function,
21
+ default: void 0
22
+ },
23
+ /** 格式化列表接口入参 */
24
+ formatEditParams: {
25
+ type: Function,
26
+ default: void 0
27
+ },
28
+ /** 编辑器字段 */
29
+ editFields: {
30
+ type: Object,
31
+ default: () => ({})
32
+ },
33
+ /** 标题 */
34
+ title: {
35
+ type: String,
36
+ default: ""
37
+ },
38
+ /** 宽度 */
39
+ size: {
40
+ type: String,
41
+ default: "42%"
42
+ },
43
+ /** layout */
44
+ layout: {
45
+ type: Object,
46
+ default: () => ({
47
+ columns: 0,
48
+ labelStyle: {
49
+ width: "100px",
50
+ margin: "0"
51
+ }
52
+ })
53
+ },
54
+ /** effectHooks */
55
+ effectHooks: {
56
+ type: Object,
57
+ default: () => ({})
58
+ },
59
+ /** 需要注册的组件 */
60
+ components: {
61
+ type: Object,
62
+ default: () => ({})
63
+ }
64
+ };
65
+ var CommonEditor = defineComponent({
66
+ name: "CommonEditor",
67
+ props,
68
+ emits: ["confirmSuccess"],
69
+ setup(props2, {
70
+ emit,
71
+ expose,
72
+ slots
73
+ }) {
74
+ const commonDrawerRef = ref();
75
+ const formilyFormRef = ref();
76
+ const formRef = computed(() => {
77
+ var _a;
78
+ return (_a = formilyFormRef.value) == null ? void 0 : _a.formRef;
79
+ });
80
+ const mode = ref("VIEW");
81
+ const isCreate = computed(() => mode.value === "CREATE");
82
+ const isView = computed(() => mode.value === "VIEW");
83
+ const modeMap = useModeMap({
84
+ createApi: props2.createApi,
85
+ editApi: props2.editApi
86
+ });
87
+ const innerLayout = computed(() => ({
88
+ ...defaultLayout,
89
+ ...props2.layout
90
+ }));
91
+ const loading = ref(false);
92
+ const fields = computed(() => getRootSchema({
93
+ maxColumns: innerLayout.value.columns,
94
+ properties: props2.editFields
95
+ }));
96
+ const onClose = () => {
97
+ var _a, _b;
98
+ formRef.value.values = {};
99
+ (_b = (_a = formRef.value).clearErrors) == null ? void 0 : _b.call(_a);
100
+ };
101
+ const open = async ({
102
+ mode: curMode,
103
+ rowData
104
+ }) => {
105
+ var _a, _b;
106
+ (_b = (_a = commonDrawerRef.value) == null ? void 0 : _a.open) == null ? void 0 : _b.call(_a);
107
+ mode.value = curMode;
108
+ await nextTick();
109
+ if (!isCreate.value) {
110
+ formRef.value.values = rowData;
111
+ Object.assign(formRef.value, {
112
+ data: {
113
+ isEdit: true
114
+ }
115
+ });
116
+ }
117
+ formRef.value.readPretty = isView.value;
118
+ };
119
+ const close = () => {
120
+ var _a, _b;
121
+ (_b = (_a = commonDrawerRef.value) == null ? void 0 : _a.close) == null ? void 0 : _b.call(_a);
122
+ };
123
+ const confirm = async () => {
124
+ var _a, _b;
125
+ try {
126
+ loading.value = true;
127
+ const result = await formRef.value.submit();
128
+ await ((_b = (_a = modeMap[mode.value]) == null ? void 0 : _a.api) == null ? void 0 : _b.call(_a, typeof (props2 == null ? void 0 : props2.formatEditParams) === "function" ? props2.formatEditParams(result) : result));
129
+ ElMessage({
130
+ message: `${modeMap[mode.value].text}\u6210\u529F`,
131
+ type: "success"
132
+ });
133
+ close();
134
+ emit("confirmSuccess");
135
+ } catch (error) {
136
+ console.error(`${modeMap[mode.value].text}\u5931\u8D25\uFF0C\u5931\u8D25\u539F\u56E0\uFF1A${error}`);
137
+ } finally {
138
+ loading.value = false;
139
+ }
140
+ };
141
+ expose({
142
+ open,
143
+ getForm: () => {
144
+ var _a;
145
+ return (_a = formilyFormRef.value) == null ? void 0 : _a.formRef;
146
+ }
147
+ });
148
+ return () => {
149
+ var _a;
150
+ const footer = () => !isView.value ? createVNode(ElSpace, {
151
+ "class": styles.footer
152
+ }, {
153
+ default: () => [createVNode(ElButton, {
154
+ "onClick": close
155
+ }, {
156
+ default: () => [createTextVNode("\u53D6\u6D88")]
157
+ }), createVNode(ElButton, {
158
+ "type": "primary",
159
+ "loading": loading.value,
160
+ "onClick": confirm
161
+ }, {
162
+ default: () => [createTextVNode("\u786E\u8BA4")]
163
+ })]
164
+ }) : null;
165
+ return createVNode(commonDrawer, {
166
+ "ref": commonDrawerRef,
167
+ "title": props2.title || ((_a = modeMap[mode.value]) == null ? void 0 : _a.text),
168
+ "size": props2.size,
169
+ "onClose": onClose,
170
+ "class": [styles.container, {
171
+ [styles.editMode]: !isView.value
172
+ }],
173
+ "style": {
174
+ "--common-editor-label-width": innerLayout.value.labelStyle.width,
175
+ "--common-editor-label-margin": innerLayout.value.labelStyle.margin
176
+ },
177
+ "appendToBody": true
178
+ }, {
179
+ ...slots,
180
+ default: () => createVNode(FormilyForm, {
181
+ "ref": formilyFormRef,
182
+ "config": fields.value,
183
+ "components": props2.components,
184
+ "effectHooks": props2.effectHooks
185
+ }, null),
186
+ footer
187
+ });
188
+ };
189
+ }
190
+ });
191
+
192
+ export { CommonEditor as default };
193
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.mjs","sources":["../../../../../packages/components/commonEditor/index.tsx"],"sourcesContent":["import { defineComponent, ref, nextTick, computed } from 'vue'\nimport { ElMessage, ElSpace, ElButton } from 'element-plus'\nimport FormilyForm from '../formilyCmps/formilyForm'\nimport { getRootSchema } from '../../constants/common'\nimport CommonDrawer from '../commonDrawer'\nimport { defaultLayout } from './constants'\nimport useModeMap from './useModeMap'\nimport styles from './index.module.scss'\n\nimport type { PropType } from 'vue'\nimport type { ISchema } from '@formily/vue'\nimport type {\n IFormilyFormExpose,\n IEffectHooks,\n} from '../formilyCmps/formilyForm'\nimport type { ICommonObj } from '../../interfaces/common'\nimport type { ICommonDrawerExpose } from '../commonDrawer'\nimport type { IOpenParams, IEditorLayout, ICommonEditorExpose } from './interfaces'\n\nconst props = {\n /** 创建Api */\n createApi: {\n type: Function as PropType<(p: ICommonObj) => Promise<ICommonObj>>, // TODO:建一个全局通用的async ts,这里的ICommonObj是否正确\n default: undefined,\n },\n /** 编辑Api */\n editApi: {\n type: Function as PropType<(p: ICommonObj) => Promise<ICommonObj>>,\n default: undefined,\n },\n /** 格式化列表接口入参 */\n formatEditParams: {\n type: Function as PropType<(p: any) => any>,\n default: undefined,\n },\n /** 编辑器字段 */\n editFields: {\n type: Object as PropType<ISchema>,\n default: () => ({}),\n },\n /** 标题 */\n title: {\n type: String,\n default: '',\n },\n /** 宽度 */\n size: {\n type: String,\n default: '42%',\n },\n /** layout */\n layout: {\n type: Object as PropType<IEditorLayout>,\n default: () => ({\n columns: 0,\n labelStyle: {\n width: '100px',\n margin: '0',\n },\n }),\n },\n /** effectHooks */\n effectHooks: {\n type: Object as PropType<IEffectHooks>,\n default: () => ({}),\n },\n /** 需要注册的组件 */\n components: {\n type: Object,\n default: () => ({}),\n },\n}\n\nexport * from './constants'\nexport * from './interfaces'\nexport default defineComponent({\n name: 'CommonEditor',\n props,\n emits: ['confirmSuccess'],\n setup(props, { emit, expose, slots }) {\n const commonDrawerRef = ref<ICommonDrawerExpose>()\n const formilyFormRef = ref<IFormilyFormExpose>()\n const formRef = computed(() => formilyFormRef.value?.formRef)\n const mode = ref('VIEW')\n const isCreate = computed(() => mode.value === 'CREATE')\n const isView = computed(() => mode.value === 'VIEW')\n const modeMap = useModeMap({ createApi: props.createApi, editApi: props.editApi })\n const innerLayout = computed(() => ({ ...defaultLayout, ...props.layout }))\n const loading = ref(false)\n const fields = computed(() =>\n getRootSchema({ maxColumns: innerLayout.value.columns, properties: props.editFields }),\n )\n const onClose = () => {\n formRef.value.values = {}\n formRef.value.clearErrors?.()\n }\n const open = async ({ mode: curMode, rowData }: IOpenParams) => {\n commonDrawerRef.value?.open?.()\n mode.value = curMode\n await nextTick()\n if (!isCreate.value) {\n formRef.value.values = rowData\n Object.assign(formRef.value, { data: { isEdit: true } })\n }\n formRef.value.readPretty = isView.value\n }\n const close = () => {\n commonDrawerRef.value?.close?.()\n }\n const confirm = async () => {\n try {\n loading.value = true\n const result = await formRef.value.submit()\n await modeMap[mode.value]?.api?.(\n typeof props?.formatEditParams === 'function' ? props.formatEditParams(result) : result,\n )\n ElMessage({\n message: `${modeMap[mode.value].text}成功`,\n type: 'success',\n })\n close()\n emit('confirmSuccess')\n } catch (error: any) {\n console.error(`${modeMap[mode.value].text}失败,失败原因:${error}`)\n } finally {\n loading.value = false\n }\n }\n expose<ICommonEditorExpose>({\n open,\n getForm: () => formilyFormRef.value?.formRef,\n })\n return () => {\n const footer = () =>\n !isView.value ? (\n <ElSpace class={styles.footer}>\n <ElButton onClick={close}>取消</ElButton>\n <ElButton type='primary' loading={loading.value} onClick={confirm}>\n 确认\n </ElButton>\n </ElSpace>\n ) : null\n return (\n <CommonDrawer\n ref={commonDrawerRef}\n title={props.title || modeMap[mode.value]?.text}\n size={props.size}\n onClose={onClose}\n class={[styles.container, { [styles.editMode]: !isView.value }]}\n style={{\n '--common-editor-label-width': innerLayout.value.labelStyle.width,\n '--common-editor-label-margin': innerLayout.value.labelStyle.margin,\n }}\n appendToBody\n v-slots={{\n ...slots,\n default: () => (\n <FormilyForm\n ref={formilyFormRef}\n config={fields.value}\n components={props.components}\n effectHooks={props.effectHooks}\n />\n ),\n footer,\n }}\n />\n )\n }\n },\n})\n"],"names":["props","createApi","type","Function","default","undefined","editApi","formatEditParams","editFields","Object","title","String","size","layout","columns","labelStyle","width","margin","effectHooks","components","defineComponent","name","emits","setup","emit","expose","slots","commonDrawerRef","ref","formilyFormRef","formRef","computed","value","mode","isCreate","isView","modeMap","useModeMap","innerLayout","defaultLayout","loading","fields","getRootSchema","maxColumns","properties","onClose","values","clearErrors","open","curMode","rowData","nextTick","assign","data","isEdit","readPretty","close","confirm","result","submit","api","ElMessage","message","text","error","console","getForm","footer","_createVNode","ElSpace","styles","ElButton","_createTextVNode","CommonDrawer","container","editMode","FormilyForm"],"mappings":";;;;;;;;;;AAmBA,MAAMA,KAAQ,GAAA;AAAA;AAAA,EAEZC,SAAW,EAAA;AAAA,IACTC,IAAMC,EAAAA,QAAAA;AAAAA;AAAAA,IACNC,OAASC,EAAAA,KAAAA,CAAAA;AAAAA,GACX;AAAA;AAAA,EAEAC,OAAS,EAAA;AAAA,IACPJ,IAAMC,EAAAA,QAAAA;AAAAA,IACNC,OAASC,EAAAA,KAAAA,CAAAA;AAAAA,GACX;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