starfish-form-custom 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (73) hide show
  1. package/README.md +2 -0
  2. package/auto-imports.d.ts +9 -0
  3. package/components.d.ts +68 -0
  4. package/dist/formAction-28d86b6a.mjs +446 -0
  5. package/dist/index-04830c0b.mjs +126 -0
  6. package/dist/index-eab8ef70.mjs +519 -0
  7. package/dist/index-f7ea052c.mjs +241 -0
  8. package/dist/main-96327b2e.mjs +5051 -0
  9. package/dist/starfish-form-a18a5409.mjs +328 -0
  10. package/dist/starfish-form.mjs +36 -0
  11. package/dist/style.css +377 -0
  12. package/dist/types/form/src/common/Loading.vue.d.ts +3 -0
  13. package/dist/types/form/src/env.d.ts +15 -0
  14. package/dist/types/form/src/main.d.ts +43 -0
  15. package/dist/types/form/src/starfish-form.vue.d.ts +40 -0
  16. package/dist/types/form/src/utils/customHooks.d.ts +2 -0
  17. package/dist/types/form/src/utils/fieldConfig.d.ts +78 -0
  18. package/dist/types/form/src/utils/fieldProps.d.ts +43 -0
  19. package/dist/types/starfish-form.d.ts +3 -0
  20. package/package.json +42 -0
  21. package/src/common/KeyValueConfig.vue +145 -0
  22. package/src/common/KeyValueConfigMult.vue +139 -0
  23. package/src/common/Loading.vue +14 -0
  24. package/src/common/action.vue +76 -0
  25. package/src/common/formAction.vue +298 -0
  26. package/src/common/listConfig.vue +45 -0
  27. package/src/common/panel.vue +61 -0
  28. package/src/common/radiogroup.vue +31 -0
  29. package/src/components/CheckBox/index.vue +42 -0
  30. package/src/components/ColorSelect/index.vue +49 -0
  31. package/src/components/Date/index.vue +39 -0
  32. package/src/components/DateTime/index.vue +39 -0
  33. package/src/components/InputNumber/index.vue +48 -0
  34. package/src/components/JsonEditor/index.vue +167 -0
  35. package/src/components/Radio/index.vue +42 -0
  36. package/src/components/RichText/index.vue +60 -0
  37. package/src/components/Rule/index.vue +365 -0
  38. package/src/components/Rule/ruleform.json +315 -0
  39. package/src/components/Rule/rules.js +91 -0
  40. package/src/components/Selected/index.vue +50 -0
  41. package/src/components/Selecteds/index.vue +50 -0
  42. package/src/components/ShowRule/index.vue +50 -0
  43. package/src/components/Slider/index.vue +38 -0
  44. package/src/components/Switch/index.vue +61 -0
  45. package/src/components/Text/index.vue +48 -0
  46. package/src/components/TextArea/index.vue +49 -0
  47. package/src/components/Time/index.vue +36 -0
  48. package/src/env.d.ts +15 -0
  49. package/src/layout/Divider.vue +30 -0
  50. package/src/layout/Info.vue +69 -0
  51. package/src/layout/Tabs.vue +75 -0
  52. package/src/layout/collapse.vue +78 -0
  53. package/src/layout/grid.vue +88 -0
  54. package/src/layout/table.vue +80 -0
  55. package/src/main.ts +62 -0
  56. package/src/starfish-form.vue +265 -0
  57. package/src/styles/action.scss +25 -0
  58. package/src/styles/collapse.scss +15 -0
  59. package/src/styles/custom-cpm.scss +5 -0
  60. package/src/styles/divider.scss +16 -0
  61. package/src/styles/form-action.scss +92 -0
  62. package/src/styles/formedit.scss +69 -0
  63. package/src/styles/grid.scss +12 -0
  64. package/src/styles/index.scss +12 -0
  65. package/src/styles/keyvalueConfig.scss +56 -0
  66. package/src/styles/rule.scss +17 -0
  67. package/src/styles/showrule.scss +5 -0
  68. package/src/styles/table.scss +19 -0
  69. package/src/styles/tabs.scss +5 -0
  70. package/src/utils/customHooks.ts +22 -0
  71. package/src/utils/fieldConfig.ts +961 -0
  72. package/src/utils/fieldProps.ts +50 -0
  73. package/stats.html +4949 -0
package/dist/style.css ADDED
@@ -0,0 +1,377 @@
1
+ .loading[data-v-2b901926] {
2
+ width: 100%;
3
+ height: 100%;
4
+ min-height: 40px;
5
+ }
6
+ .loading[data-v-2b901926] .el-loading-spinner .circular {
7
+ width: 30px;
8
+ height: 30px;
9
+ }.control[data-v-2c747f4d] {
10
+ width: 240px;
11
+ }
12
+ .control > div[data-v-2c747f4d] {
13
+ display: flex;
14
+ align-items: center;
15
+ }.starfish-editor .el-form-item__content,
16
+ .starfish-form .el-form-item__content,
17
+ .starfish-dynamicform .el-form-item__content {
18
+ margin-left: 0 !important;
19
+ margin-bottom: 12px;
20
+ display: block;
21
+ }
22
+ .starfish-editor .el-form-item,
23
+ .starfish-form .el-form-item,
24
+ .starfish-dynamicform .el-form-item {
25
+ margin-bottom: 0 !important;
26
+ }
27
+ .starfish-editor .el-form-item__error,
28
+ .starfish-form .el-form-item__error,
29
+ .starfish-dynamicform .el-form-item__error {
30
+ top: 100%;
31
+ left: 15px !important;
32
+ }
33
+ .starfish-editor .el-form,
34
+ .starfish-form .el-form,
35
+ .starfish-dynamicform .el-form {
36
+ padding-bottom: 64px;
37
+ }
38
+ .starfish-editor .jsoneditor-poweredBy,
39
+ .starfish-form .jsoneditor-poweredBy,
40
+ .starfish-dynamicform .jsoneditor-poweredBy {
41
+ display: none;
42
+ }
43
+ .starfish-editor .starfish-formitem,
44
+ .starfish-form .starfish-formitem,
45
+ .starfish-dynamicform .starfish-formitem {
46
+ text-align: left;
47
+ position: relative;
48
+ margin: 0 12px;
49
+ }
50
+ .starfish-editor .starfish-formitem.starfish-vertical,
51
+ .starfish-form .starfish-formitem.starfish-vertical,
52
+ .starfish-dynamicform .starfish-formitem.starfish-vertical {
53
+ display: flex;
54
+ align-items: center;
55
+ }
56
+ .starfish-editor .starfish-formitem.starfish-vertical .control,
57
+ .starfish-form .starfish-formitem.starfish-vertical .control,
58
+ .starfish-dynamicform .starfish-formitem.starfish-vertical .control {
59
+ width: 100%;
60
+ }
61
+ .starfish-editor .starfish-formitem.formCover,
62
+ .starfish-form .starfish-formitem.formCover,
63
+ .starfish-dynamicform .starfish-formitem.formCover {
64
+ padding-bottom: 12px;
65
+ }
66
+ .starfish-editor .starfish-formitem .label,
67
+ .starfish-form .starfish-formitem .label,
68
+ .starfish-dynamicform .starfish-formitem .label {
69
+ font-size: 14px;
70
+ height: 25px;
71
+ line-height: 25px;
72
+ padding-right: 12px;
73
+ box-sizing: border-box;
74
+ white-space: nowrap;
75
+ }
76
+ .starfish-editor .starfish-formitem .label.label_right,
77
+ .starfish-form .starfish-formitem .label.label_right,
78
+ .starfish-dynamicform .starfish-formitem .label.label_right {
79
+ float: left;
80
+ text-align: right;
81
+ position: absolute;
82
+ }
83
+ .starfish-editor .starfish-formitem .label.label_left,
84
+ .starfish-form .starfish-formitem .label.label_left,
85
+ .starfish-dynamicform .starfish-formitem .label.label_left {
86
+ float: left;
87
+ text-align: left;
88
+ position: absolute;
89
+ }
90
+ .starfish-editor .starfish-formitem .item_require,
91
+ .starfish-form .starfish-formitem .item_require,
92
+ .starfish-dynamicform .starfish-formitem .item_require {
93
+ color: red;
94
+ }
95
+ .starfish-editor #jsoneditor,
96
+ .starfish-form #jsoneditor,
97
+ .starfish-dynamicform #jsoneditor {
98
+ position: relative;
99
+ z-index: 1;
100
+ }
101
+ .starfish-editor #jsoneditor .fullScreen,
102
+ .starfish-form #jsoneditor .fullScreen,
103
+ .starfish-dynamicform #jsoneditor .fullScreen {
104
+ position: absolute;
105
+ right: 10px;
106
+ line-height: 1;
107
+ z-index: 2;
108
+ top: 10px;
109
+ color: white;
110
+ font-size: 18px;
111
+ }
112
+ .starfish-keyValueItem {
113
+ display: flex;
114
+ justify-content: space-around;
115
+ align-items: center;
116
+ font-size: 12px;
117
+ border: 1px solid #eee;
118
+ margin-bottom: 6px;
119
+ border-radius: 10px;
120
+ padding: 10px 0;
121
+ }
122
+ .starfish-keyValueItem .keyValueSelect {
123
+ width: 30px;
124
+ text-align: center;
125
+ }
126
+ .starfish-keyValueItem .keyValueInput {
127
+ flex: 1;
128
+ }
129
+ .starfish-keyValueItem .keyValueInput .inputItem {
130
+ line-height: 20px;
131
+ }
132
+ .starfish-keyValueItem .keyValueInput > div {
133
+ margin-bottom: 7px;
134
+ }
135
+ .starfish-keyValueItem .keyValueInput > div span {
136
+ display: block;
137
+ margin-bottom: 6px;
138
+ }
139
+ .starfish-keyValueItem .keyValueControl {
140
+ width: 40px;
141
+ display: flex;
142
+ flex-direction: column;
143
+ justify-content: space-around;
144
+ align-items: center;
145
+ }
146
+ .starfish-keyValueItem .keyValueControl > div {
147
+ width: 17px;
148
+ height: 17px;
149
+ border: 1px solid #eee;
150
+ border-radius: 50%;
151
+ background: #fff;
152
+ display: flex;
153
+ align-items: center;
154
+ justify-content: center;
155
+ margin: 5px 0;
156
+ }
157
+ .starfish-keyValueItem .keyValueControl .add {
158
+ background: #409eff;
159
+ color: white;
160
+ }
161
+ .starfish-keyValueItem .keyValueControl .remove {
162
+ background: red;
163
+ color: white;
164
+ }
165
+ .starfish-keyValueItem .keyValueControl i {
166
+ font-size: 12px;
167
+ }
168
+ .starfish-formitem-action .label {
169
+ align-self: flex-start;
170
+ }
171
+ .starfish-formitem-action .el-collapse-item {
172
+ border: 1px solid #ebeef5;
173
+ border-bottom-color: #e1e1e1;
174
+ }
175
+ .starfish-formitem-action .el-collapse-item .el-collapse-item__header {
176
+ background: #ebeef5;
177
+ height: 20px;
178
+ line-height: 20px;
179
+ padding: 5px;
180
+ font-size: 12px;
181
+ }
182
+ .starfish-formitem-action .el-collapse-item .el-collapse-item__header.is-active {
183
+ border-bottom-color: transparent;
184
+ }
185
+ .starfish-formitem-action .el-collapse-item .el-collapse-item__content {
186
+ padding: 5px;
187
+ }
188
+ .starfish-formitem-action .el-collapse-item .el-collapse-item__content .el-button + .el-button {
189
+ margin-left: 5px;
190
+ }
191
+ .starfish-editor-showrule .label {
192
+ align-self: flex-start;
193
+ }
194
+ .starfish-formitem-nomiddle .label {
195
+ align-self: flex-start;
196
+ }
197
+ .starfish-grid_box {
198
+ padding: 5px;
199
+ }
200
+ .starfish-grid_box .grid-col {
201
+ min-height: 60px;
202
+ }
203
+ .starfish-grid_box .draggable-box {
204
+ height: 100%;
205
+ background: white;
206
+ border: 1px #ccc dashed;
207
+ box-sizing: border-box;
208
+ }
209
+ .starfish-table_box .table_layout {
210
+ width: 100%;
211
+ }
212
+ .starfish-table_box .table_layout.table_layout_border {
213
+ border: 1px solid #ccc;
214
+ }
215
+ .starfish-table_box .table_layout td {
216
+ vertical-align: top;
217
+ }
218
+ .starfish-table_box .table_layout .draggable-box {
219
+ min-height: 60px;
220
+ background: white;
221
+ border: 1px #ccc dashed;
222
+ box-sizing: border-box;
223
+ min-width: 50px;
224
+ height: 100%;
225
+ }
226
+ .starfish-form-divider {
227
+ top: 6px;
228
+ }
229
+ .starfish-form-divider .control {
230
+ display: flex;
231
+ align-items: center;
232
+ justify-content: center;
233
+ font-weight: bold;
234
+ }
235
+ .starfish-form-divider .control .divider {
236
+ flex: 1;
237
+ height: 2px;
238
+ background: #000;
239
+ border-radius: 2px;
240
+ margin-left: 10px;
241
+ }
242
+ .collapse_box .draggable-box {
243
+ min-height: 50px;
244
+ background: white;
245
+ border: 1px #ccc dashed;
246
+ box-sizing: border-box;
247
+ width: 100%;
248
+ }
249
+ .collapse_box :deep(.el-collapse-item__content) {
250
+ padding-bottom: 5px;
251
+ }
252
+ .collapse_box :deep(.el-collapse-item__content) > * {
253
+ width: 100%;
254
+ }
255
+ .starfish-tabs_box .draggable-box {
256
+ min-height: 50px;
257
+ }
258
+ .common-layout {
259
+ padding: 15px;
260
+ height: 100%;
261
+ box-sizing: border-box;
262
+ }
263
+ .common-layout .action-header {
264
+ height: 40px;
265
+ padding: 5px;
266
+ border-bottom: 1px solid #eee;
267
+ background: #f2f6fc;
268
+ width: 100%;
269
+ box-sizing: border-box;
270
+ display: flex;
271
+ align-items: center;
272
+ justify-content: flex-start;
273
+ }
274
+ .common-layout .is-vertical {
275
+ flex-direction: column;
276
+ }
277
+ .common-layout .event-script-aside {
278
+ border-right: 1px solid #eee;
279
+ }
280
+ .common-layout .el-main {
281
+ padding: 0;
282
+ overflow: hidden;
283
+ }
284
+ .common-layout .coding {
285
+ display: flex;
286
+ flex-direction: column;
287
+ width: 100%;
288
+ }
289
+ .common-layout .action-list {
290
+ margin: 10px;
291
+ }
292
+ .common-layout .action-list .action {
293
+ border: 1px solid #dcdfe6;
294
+ background: #fff;
295
+ border-radius: 3px;
296
+ box-sizing: border-box;
297
+ padding: 10px !important;
298
+ height: auto;
299
+ line-height: 1;
300
+ cursor: default;
301
+ position: relative;
302
+ font-size: 14px;
303
+ white-space: nowrap;
304
+ }
305
+ .common-layout .action-list .action.selectAction {
306
+ background: #e4e7ed;
307
+ color: #303133;
308
+ }
309
+ .common-layout .action-list .action .event-script-menu-i {
310
+ position: absolute;
311
+ font-size: 12px;
312
+ left: 5px;
313
+ top: 13px;
314
+ width: 45px;
315
+ text-align: center;
316
+ color: #67c23a;
317
+ }
318
+ .common-layout .action-list .action .event-script-menu-label {
319
+ overflow: hidden;
320
+ text-overflow: ellipsis;
321
+ white-space: nowrap;
322
+ display: inline-block;
323
+ width: 170px;
324
+ margin-left: 50px;
325
+ vertical-align: middle;
326
+ }
327
+ .common-layout .action-list .action .event-script-menu-action {
328
+ display: inline-block;
329
+ padding-right: 10px;
330
+ color: #666;
331
+ font-weight: 600;
332
+ vertical-align: middle;
333
+ }
334
+ .common-layout .action-list .action .event-script-menu-action > i {
335
+ margin-left: 3px;
336
+ }
337
+ .common-layout .action-list .action + .action {
338
+ margin-top: 6px;
339
+ }
340
+ .common-layout .func_main {
341
+ padding: 10px;
342
+ }
343
+ .common-layout .event-script-main {
344
+ padding: 0;
345
+ }
346
+ .common-layout .event-script-main .event-script-main-header {
347
+ text-align: right;
348
+ justify-content: flex-end;
349
+ }.loading[data-v-5c6e2e4a] {
350
+ width: 100%;
351
+ min-height: 60px;
352
+ height: 100%;
353
+ }.el-collapse-item {
354
+ border: 1px solid #ebeef5;
355
+ border-bottom-color: #e1e1e1;
356
+ }
357
+ .el-collapse-item .el-collapse-item__header {
358
+ background: #ebeef5;
359
+ height: 20px;
360
+ line-height: 20px;
361
+ padding: 5px;
362
+ font-size: 12px;
363
+ }
364
+ .el-collapse-item .el-collapse-item__header.is-active {
365
+ border-bottom-color: transparent;
366
+ }
367
+ .el-collapse-item .el-collapse-item__content {
368
+ padding: 5px;
369
+ display: flex;
370
+ justify-content: space-between;
371
+ }
372
+ .el-collapse-item .el-collapse-item__content .el-button + .el-button {
373
+ margin-left: 5px;
374
+ }
375
+ .starfish-formitem-rule .label {
376
+ align-self: flex-start;
377
+ }
@@ -0,0 +1,3 @@
1
+ import type { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
2
+ declare const _default: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
3
+ export default _default;
@@ -0,0 +1,15 @@
1
+ /// <reference types="vite/client" />
2
+
3
+ declare module "*.vue" {
4
+ import type { DefineComponent } from "vue";
5
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/ban-types
6
+ const component: DefineComponent<{}, {}, any>;
7
+ export default component;
8
+ }
9
+
10
+ declare module "@codemirror/lang-javascript";
11
+
12
+ interface Window {
13
+ JSONEditor: any;
14
+ VApp: any;
15
+ }
@@ -0,0 +1,43 @@
1
+ import type { DefineComponent, ExtractPropTypes, PropType, Ref, ComponentOptionsMixin, PublicProps, ComponentProvideOptions, App } from 'vue';
2
+ export declare const Dynamicform: DefineComponent<ExtractPropTypes<{
3
+ allFormList: {
4
+ type: PropType<any>;
5
+ default(): never[];
6
+ };
7
+ formResult: {
8
+ type: ObjectConstructor;
9
+ default(): {};
10
+ };
11
+ globalConfig: {
12
+ type: ObjectConstructor;
13
+ default(): {};
14
+ };
15
+ }>, {
16
+ rules: any;
17
+ ruleForm: Ref<any, any>;
18
+ controlObj: Ref<any, any>;
19
+ handleControlChange: () => void;
20
+ reset: () => void;
21
+ getValidate: () => Promise<unknown>;
22
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<{
23
+ allFormList: {
24
+ type: PropType<any>;
25
+ default(): never[];
26
+ };
27
+ formResult: {
28
+ type: ObjectConstructor;
29
+ default(): {};
30
+ };
31
+ globalConfig: {
32
+ type: ObjectConstructor;
33
+ default(): {};
34
+ };
35
+ }>> & Readonly<{}>, {
36
+ allFormList: any;
37
+ formResult: Record<string, any>;
38
+ globalConfig: Record<string, any>;
39
+ }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
40
+ declare const _default: {
41
+ install: (app: App<any>) => void;
42
+ };
43
+ export default _default;
@@ -0,0 +1,40 @@
1
+ import type { DefineComponent, ExtractPropTypes, Ref, ComponentOptionsMixin, PublicProps, ComponentProvideOptions, PropType } from 'vue';
2
+ declare const _sfc_main: DefineComponent<ExtractPropTypes<{
3
+ allFormList: {
4
+ type: PropType<any>;
5
+ default(): never[];
6
+ };
7
+ formResult: {
8
+ type: ObjectConstructor;
9
+ default(): {};
10
+ };
11
+ globalConfig: {
12
+ type: ObjectConstructor;
13
+ default(): {};
14
+ };
15
+ }>, {
16
+ rules: any;
17
+ ruleForm: Ref<any, any>;
18
+ controlObj: Ref<any, any>;
19
+ handleControlChange: () => void;
20
+ reset: () => void;
21
+ getValidate: () => Promise<unknown>;
22
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<{
23
+ allFormList: {
24
+ type: PropType<any>;
25
+ default(): never[];
26
+ };
27
+ formResult: {
28
+ type: ObjectConstructor;
29
+ default(): {};
30
+ };
31
+ globalConfig: {
32
+ type: ObjectConstructor;
33
+ default(): {};
34
+ };
35
+ }>> & Readonly<{}>, {
36
+ allFormList: any;
37
+ formResult: Record<string, any>;
38
+ globalConfig: Record<string, any>;
39
+ }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
40
+ export default _sfc_main;
@@ -0,0 +1,2 @@
1
+ declare function useWatch(props: any): void;
2
+ export { useWatch };
@@ -0,0 +1,78 @@
1
+ import { AllFormItem } from "../../../editor/src/type";
2
+ export interface fields {
3
+ /**
4
+ * 字段名称
5
+ */
6
+ fieldName: string;
7
+ /**
8
+ * 标签名称
9
+ */
10
+ label: string;
11
+ /**
12
+ * 提示信息
13
+ */
14
+ tip?: string;
15
+ /**
16
+ * 占位内容
17
+ */
18
+ placeholder?: string;
19
+ /**
20
+ * 表单显示规则
21
+ */
22
+ showRule: string;
23
+ /**
24
+ * 是否必填
25
+ */
26
+ required?: boolean;
27
+ /**
28
+ * 校验规则
29
+ */
30
+ rule: string;
31
+ /**
32
+ * 默认内容
33
+ */
34
+ default?: string | number | any[];
35
+ type?: number;
36
+ size?: string | number;
37
+ itemConfig?: any;
38
+ formConfig?: any;
39
+ trs?: fieldsTrs[];
40
+ columns?: Columns[];
41
+ items?: Columns[];
42
+ }
43
+ interface Columns {
44
+ list: AllFormItem[];
45
+ span: number;
46
+ }
47
+ export interface fieldsTrs {
48
+ tds: fieldTds[];
49
+ }
50
+ export interface fieldTds {
51
+ colspan: number;
52
+ rowspan: number;
53
+ list: AllFormItem[];
54
+ }
55
+ export interface FormConfig {
56
+ ControlType: string;
57
+ data: fields;
58
+ layout?: boolean;
59
+ dynamic?: boolean;
60
+ }
61
+ interface Config {
62
+ fieldName: string;
63
+ component: string;
64
+ label?: string;
65
+ }
66
+ interface FormConfigReturn {
67
+ data: () => fields;
68
+ morenConfig: () => fields[];
69
+ }
70
+ /**
71
+ *
72
+ * @param componentName
73
+ * @param config
74
+ * @param filterField 过滤表单不要的配置
75
+ * @returns
76
+ */
77
+ declare function getFormConfig(componentName: string, config?: Config[], filterField?: string[]): FormConfigReturn;
78
+ export { getFormConfig };
@@ -0,0 +1,43 @@
1
+ import { PropType } from "vue";
2
+ interface FormConfig {
3
+ [key: string]: any;
4
+ }
5
+ declare const _default: {
6
+ drag: {
7
+ type: BooleanConstructor;
8
+ default: boolean;
9
+ };
10
+ data: {
11
+ type: PropType<FormConfig>;
12
+ required: boolean;
13
+ default(): {};
14
+ };
15
+ item: {
16
+ type: ObjectConstructor;
17
+ default(): {};
18
+ };
19
+ labelalign: {
20
+ type: StringConstructor;
21
+ default: string;
22
+ };
23
+ labelWidth: {
24
+ type: NumberConstructor;
25
+ };
26
+ suffix: {
27
+ type: StringConstructor;
28
+ default: string;
29
+ };
30
+ size: {
31
+ type: StringConstructor;
32
+ default: string;
33
+ };
34
+ styles: {
35
+ type: StringConstructor;
36
+ default: string;
37
+ };
38
+ csslist: {
39
+ type: PropType<string[]>;
40
+ default(): never[];
41
+ };
42
+ };
43
+ export default _default;
@@ -0,0 +1,3 @@
1
+ export * from './form/src/main'
2
+ import StarfishForm from './form/src/main'
3
+ export default StarfishForm
package/package.json ADDED
@@ -0,0 +1,42 @@
1
+ {
2
+ "name": "starfish-form-custom",
3
+ "version": "1.0.0",
4
+ "main": "dist/starfish-form.mjs",
5
+ "style": "dist/style.css",
6
+ "module": "dist/starfish-form.mjs",
7
+ "types": "dist/types/starfish-form.d.ts",
8
+ "exports": {
9
+ ".": {
10
+ "import": "./dist/starfish-form.mjs"
11
+ },
12
+ "./dist/style.css": {
13
+ "import": "./dist/style.css"
14
+ },
15
+ "./*": "./*"
16
+ },
17
+ "scripts": {
18
+ "build": "vite build",
19
+ "prepublish": "npm version && npm run build"
20
+ },
21
+ "dependencies": {
22
+ "element-plus": "^2.2.12",
23
+ "jsoneditor": "^9.9.0",
24
+ "vue": "^3.2.25",
25
+ "@element-plus/icons-vue": "^2.0.8",
26
+ "wangeditor": "^4.7.15",
27
+ "vue-codemirror": "6.1.1",
28
+ "codemirror": "6.0.1",
29
+ "@codemirror/lang-javascript": "6.0.2"
30
+ },
31
+ "devDependencies": {
32
+ "@vitejs/plugin-vue": "^2.3.3",
33
+ "sass": "^1.35.1",
34
+ "typescript": "^4.5.4",
35
+ "rollup-plugin-visualizer": "^5.8.3",
36
+ "unplugin-auto-import": "^0.17.5",
37
+ "unplugin-vue-components": "^0.26.0",
38
+ "vite": "^4.5.2",
39
+ "vite-plugin-dts": "^1.2.0",
40
+ "vue-tsc": "^0.34.7"
41
+ }
42
+ }