epic-designer-gold 1.0.2 → 1.0.4

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 (102) hide show
  1. package/dist/attributeView-CPrGnVQ8.js +106 -0
  2. package/dist/attributeView-DEg9mFCt.cjs +1 -0
  3. package/dist/axios-BAhOY32t.cjs +6 -0
  4. package/dist/{js.cookie-oHpRFPCO.js → axios-BFVeUxau.js} +942 -737
  5. package/dist/col-BNNn9Yx8.cjs +1 -0
  6. package/dist/{col-Dy6oYMf5.js → col-u5YiB-UK.js} +8 -8
  7. package/dist/index-B8V7odtp.cjs +1 -0
  8. package/dist/index-BEXliJtJ.cjs +1 -0
  9. package/dist/index-BN_dXDiO.cjs +1 -0
  10. package/dist/index-BPRzjSrH.cjs +10 -0
  11. package/dist/index-BPmq8lmK.js +72 -0
  12. package/dist/index-BY9j66Gp.js +4 -0
  13. package/dist/{index-DNeYX6HK.js → index-BiXYEiWV.js} +1 -1
  14. package/dist/index-BoVrWUpL.js +271 -0
  15. package/dist/{index-DLMH0OSJ.js → index-BstMY1Nn.js} +1 -1
  16. package/dist/index-Bsv8EECz.js +71 -0
  17. package/dist/index-C2Sx6r6b.cjs +1 -0
  18. package/dist/index-C5-ZZLug.cjs +1 -0
  19. package/dist/index-C6C5D9M8.js +602 -0
  20. package/dist/index-CIwV58Ko.js +1359 -0
  21. package/dist/index-CgisEnmm.cjs +1 -0
  22. package/dist/index-CtkdvWFN.cjs +1 -0
  23. package/dist/{index-DkyxbMHi.js → index-Cwgv4MbW.js} +24 -24
  24. package/dist/{index-CYDtBJTI.cjs → index-D3Uft3bJ.cjs} +1 -1
  25. package/dist/{index-BKDRMrcc.js → index-D7z34DMU.js} +28 -47
  26. package/dist/index-DAhVvQNH.cjs +1 -0
  27. package/dist/index-DO5DuUPL.js +581 -0
  28. package/dist/index-DddOVmF6.cjs +1 -0
  29. package/dist/index-DdsHIglg.js +104 -0
  30. package/dist/index-Dru9G2MF.js +195 -0
  31. package/dist/index-KGGnmoAO.cjs +1 -0
  32. package/dist/{index-XUQ1VGQg.js → index-Sin3ac_7.js} +1 -1
  33. package/dist/{index-DJxuHxdI.js → index-dUOJH8fj.js} +24 -24
  34. package/dist/index-dcjty1Ho.cjs +1 -0
  35. package/dist/{index-Dyo12Kua.cjs → index-g1W7IHK_.cjs} +1 -1
  36. package/dist/index-ykB9CsYG.cjs +1 -0
  37. package/dist/index.cjs +1 -1
  38. package/dist/index.js +35 -35
  39. package/dist/locale/index.d.ts +4 -0
  40. package/dist/locale/lang/en-US.d.ts +246 -0
  41. package/dist/locale/lang/zh-cn.d.ts +246 -0
  42. package/dist/modal-BLOgN3us.cjs +1 -0
  43. package/dist/modal-UFu4bD6x.js +57 -0
  44. package/dist/{outline-CNayBNNC.js → outline-CG-aHThT.js} +2 -2
  45. package/dist/outline-Coy4TGIa.cjs +1 -0
  46. package/dist/row-BWnbt6dh.cjs +1 -0
  47. package/dist/{row-qOviQw5w.js → row-DAy14ve9.js} +4 -4
  48. package/dist/sign-BlMhTkWG.cjs +1 -0
  49. package/dist/sign-C0z0Ygs4.js +219 -0
  50. package/dist/style.css +1 -1
  51. package/dist/{styleView-BLVqzqPV.js → styleView-CkbdwQhA.js} +34 -33
  52. package/dist/styleView-D0W-N4vW.cjs +1 -0
  53. package/dist/tree.vue_vue_type_script_setup_true_lang-KKt_Qgqv.cjs +1 -0
  54. package/dist/{tree.vue_vue_type_script_setup_true_lang-BntCm43E.js → tree.vue_vue_type_script_setup_true_lang-RWHCYpkY.js} +1 -1
  55. package/dist/ui/antd/date-picker/datePicker.d.ts +2 -2
  56. package/dist/ui/elementPlus/index.cjs +1 -1
  57. package/dist/ui/elementPlus/index.js +553 -542
  58. package/dist/ui/naiveUi/index.cjs +1 -1
  59. package/dist/ui/naiveUi/index.js +1 -1
  60. package/dist/uploadFile-Bh5GyGFd.js +77 -0
  61. package/dist/uploadFile-CmKFRZMw.cjs +1 -0
  62. package/dist/{uploadImage-742IA7ei.js → uploadImage-CbVsUivh.js} +34 -33
  63. package/dist/uploadImage-CcMA6CyX.cjs +1 -0
  64. package/dist/uploadImage-DENhzttU.cjs +1 -0
  65. package/dist/{uploadImage-CnNnAISs.js → uploadImage-qHq6JX83.js} +17 -20
  66. package/package.json +1 -1
  67. package/dist/attributeView-B-IswSw7.js +0 -105
  68. package/dist/attributeView-CQBVIMGW.cjs +0 -1
  69. package/dist/col-RWuL5Zuz.cjs +0 -1
  70. package/dist/index-0GtpyUBx.js +0 -64
  71. package/dist/index-B4ido7VJ.cjs +0 -1
  72. package/dist/index-BGvqo4s7.js +0 -104
  73. package/dist/index-BMtRXkSh.cjs +0 -1
  74. package/dist/index-BSLudrcT.cjs +0 -1
  75. package/dist/index-BXO8Zj1H.cjs +0 -1
  76. package/dist/index-B_9x_cPH.js +0 -1633
  77. package/dist/index-B_TFfRwe.js +0 -194
  78. package/dist/index-C3_E7xcD.js +0 -270
  79. package/dist/index-C3a1hfUC.cjs +0 -10
  80. package/dist/index-CucdgcqX.cjs +0 -1
  81. package/dist/index-CvEzOhT_.cjs +0 -1
  82. package/dist/index-DEPx91yu.cjs +0 -1
  83. package/dist/index-DKVv0PbJ.js +0 -56
  84. package/dist/index-DSzJgAzW.cjs +0 -1
  85. package/dist/index-Dz1OM1dD.cjs +0 -1
  86. package/dist/index-HNPgHrkl.cjs +0 -1
  87. package/dist/index-JhxJizMR.js +0 -601
  88. package/dist/index-aBofZ4Mk.js +0 -4
  89. package/dist/index-sKJ91s0r.cjs +0 -1
  90. package/dist/js.cookie-BH1G_HRi.cjs +0 -6
  91. package/dist/modal-BPJM1Muh.js +0 -59
  92. package/dist/modal-_fid8E1T.cjs +0 -1
  93. package/dist/outline-6Qt3qlWm.cjs +0 -1
  94. package/dist/row-Bm8OjIsU.cjs +0 -1
  95. package/dist/sign--js815Se.cjs +0 -1
  96. package/dist/sign-CO47QOTw.js +0 -218
  97. package/dist/styleView-C1zTBeyd.cjs +0 -1
  98. package/dist/tree.vue_vue_type_script_setup_true_lang-BjjL_VlR.cjs +0 -1
  99. package/dist/uploadFile-CYDDVa_x.js +0 -76
  100. package/dist/uploadFile-eWBMdZ9d.cjs +0 -1
  101. package/dist/uploadImage-BQhv5ymq.cjs +0 -1
  102. package/dist/uploadImage-BXcN2FA_.cjs +0 -1
@@ -0,0 +1,246 @@
1
+ declare const _default: {
2
+ component: string;
3
+ outline: string;
4
+ style: string;
5
+ attribute: string;
6
+ searchComponent: string;
7
+ noComponentFound: string;
8
+ all: string;
9
+ form: string;
10
+ labelPosition: string;
11
+ left: string;
12
+ right: string;
13
+ top: string;
14
+ labelWidth: string;
15
+ labelSuffix: string;
16
+ pleaseEnter: string;
17
+ formSize: string;
18
+ pleaseSelect: string;
19
+ large: string;
20
+ medium: string;
21
+ small: string;
22
+ asteriskPosition: string;
23
+ inlineValidationMessage: string;
24
+ validationFeedbackIcon: string;
25
+ scrollToValidationError: string;
26
+ inlineMode: string;
27
+ getFormData: string;
28
+ setFormData: string;
29
+ validateForm: string;
30
+ layout: string;
31
+ fieldName: string;
32
+ title: string;
33
+ defaultValue: string;
34
+ placeholder: string;
35
+ size: string;
36
+ maxInputLength: string;
37
+ countWords: string;
38
+ inputType: string;
39
+ showToggleIcon: string;
40
+ clearable: string;
41
+ formValidation: string;
42
+ validationRuleRequiresForm: string;
43
+ onInput: string;
44
+ onChange: string;
45
+ onFocus: string;
46
+ onBlur: string;
47
+ onClear: string;
48
+ focusInput: string;
49
+ blurInput: string;
50
+ clearInput: string;
51
+ selectInputText: string;
52
+ input: string;
53
+ cardLayout: string;
54
+ shadowTiming: string;
55
+ textarea: string;
56
+ minRows: string;
57
+ maxRows: string;
58
+ inputValue: string;
59
+ valueChange: string;
60
+ focus: string;
61
+ blur: string;
62
+ signaturePad: string;
63
+ lineWidth: string;
64
+ rewriteWillClearCanvas: string;
65
+ clearSuccess: string;
66
+ uploadSuccess: string;
67
+ uploadFailed: string;
68
+ confirmAbandonSignature: string;
69
+ warning: string;
70
+ cancel: string;
71
+ rewrite: string;
72
+ confirm: string;
73
+ numberInput: string;
74
+ maxValue: string;
75
+ minValue: string;
76
+ step: string;
77
+ controlButtonPosition: string;
78
+ precision: string;
79
+ inputControlIsMultipleOfStep: string;
80
+ onValueChange: string;
81
+ gridLayout: string;
82
+ verticalAlignment: string;
83
+ horizontalArrangement: string;
84
+ gridSpacing: string;
85
+ gridWidth: string;
86
+ radio: string;
87
+ option1: string;
88
+ option2: string;
89
+ buttonMode: string;
90
+ optionTextColor: string;
91
+ effectiveInButtonMode: string;
92
+ optionButtonColor: string;
93
+ optionManagement: string;
94
+ s: string;
95
+ dataSourceConfig: string;
96
+ checkbox: string;
97
+ maxSelected: string;
98
+ minSelected: string;
99
+ select: string;
100
+ multiple: string;
101
+ hideMultiple: string;
102
+ hideHint: string;
103
+ retainSearchKeyword: string;
104
+ tagType: string;
105
+ multipleLimit: string;
106
+ hintTheme: string;
107
+ filterable: string;
108
+ allowCreate: string;
109
+ dropdownPosition: string;
110
+ dropdownWidthSameAsInput: string;
111
+ noDataText: string;
112
+ configureOptions: string;
113
+ cascader: string;
114
+ separator: string;
115
+ subMenuExpandMode: string;
116
+ searchable: string;
117
+ collapseTags: string;
118
+ showCollapsedTags: string;
119
+ hidePath: string;
120
+ parentSelectable: string;
121
+ parentChildNotLinked: string;
122
+ onlyGetSelectedNodes: string;
123
+ onSelectedNodeChange: string;
124
+ onBlurs: string;
125
+ onFocu: string;
126
+ getCurrentSelectedNodes: string;
127
+ togglePopperVisibility: string;
128
+ datePicker: string;
129
+ dateType: string;
130
+ date: string;
131
+ week: string;
132
+ month: string;
133
+ year: string;
134
+ time: string;
135
+ timeRange: string;
136
+ dateRange: string;
137
+ monthRange: string;
138
+ multipleDates: string;
139
+ startPlaceholder: string;
140
+ endPlaceholder: string;
141
+ editable: string;
142
+ displayFormat: string;
143
+ dataFormat: string;
144
+ fileUpload: string;
145
+ requestUrl: string;
146
+ uploadFileField: string;
147
+ multiples: string;
148
+ showFileList: string;
149
+ dragUpload: string;
150
+ maxUploadCount: string;
151
+ imageUpload: string;
152
+ switch: string;
153
+ onValue: string;
154
+ offValue: string;
155
+ onDescription: string;
156
+ offDescription: string;
157
+ width: string;
158
+ textInside: string;
159
+ onChangeSwitch: string;
160
+ slider: string;
161
+ showStops: string;
162
+ tooltip: string;
163
+ range: string;
164
+ vertical: string;
165
+ height: string;
166
+ showInput: string;
167
+ controlButtons: string;
168
+ tooltipPosition: string;
169
+ realTimeTrigger: string;
170
+ onChangeEnd: string;
171
+ colorPicker: string;
172
+ format: string;
173
+ alpha: string;
174
+ staticText: string;
175
+ leftAlign: string;
176
+ centerAlign: string;
177
+ rightAlign: string;
178
+ fontSize: string;
179
+ button: string;
180
+ type: string;
181
+ actionType: string;
182
+ customColor: string;
183
+ plainButton: string;
184
+ roundButton: string;
185
+ circleButton: string;
186
+ textButton: string;
187
+ loadingState: string;
188
+ onClick: string;
189
+ onDoubleClick: string;
190
+ componentId: string;
191
+ canvasWidth: string;
192
+ canvasHeight: string;
193
+ editComponentProperties: string;
194
+ page: string;
195
+ pageName: string;
196
+ padding: string;
197
+ margin: string;
198
+ backgroundColor: string;
199
+ fontColor: string;
200
+ addOption: string;
201
+ dataSources: string;
202
+ pleaseSelectDataSource: string;
203
+ pleaseCheckDataSourceConfig: string;
204
+ dynamic: string;
205
+ static: string;
206
+ noOptions: string;
207
+ configuration: string;
208
+ addDataSource: string;
209
+ apiName: string;
210
+ pleaseEnterApiName: string;
211
+ pleaseEnterRequestUrl: string;
212
+ requestMethod: string;
213
+ labelKey: string;
214
+ pleaseEnterLabelKey: string;
215
+ valueKey: string;
216
+ pleaseEnterValueKey: string;
217
+ dataPath: string;
218
+ nestedPath: string;
219
+ requestParams: string;
220
+ add: string;
221
+ paramName: string;
222
+ paramValue: string;
223
+ requestHeaders: string;
224
+ requestBody: string;
225
+ requestTest: string;
226
+ save: string;
227
+ configError: string;
228
+ requestFailed: string;
229
+ fillRequiredFields: string;
230
+ completeFormFirst: string;
231
+ addRule: string;
232
+ required: string;
233
+ validationTrigger: string;
234
+ validationMessage: string;
235
+ customRule: string;
236
+ validationFunction: string;
237
+ regexValidation: string;
238
+ fieldLength: string;
239
+ minLength: string;
240
+ maxLength: string;
241
+ saveForm: string;
242
+ clickToUpload: string;
243
+ row: string;
244
+ column: string;
245
+ };
246
+ export default _default;
@@ -0,0 +1,246 @@
1
+ declare const _default: {
2
+ component: string;
3
+ outline: string;
4
+ style: string;
5
+ attribute: string;
6
+ searchComponent: string;
7
+ noComponentFound: string;
8
+ all: string;
9
+ form: string;
10
+ labelPosition: string;
11
+ left: string;
12
+ right: string;
13
+ top: string;
14
+ labelWidth: string;
15
+ labelSuffix: string;
16
+ pleaseEnter: string;
17
+ formSize: string;
18
+ pleaseSelect: string;
19
+ large: string;
20
+ medium: string;
21
+ small: string;
22
+ asteriskPosition: string;
23
+ inlineValidationMessage: string;
24
+ validationFeedbackIcon: string;
25
+ scrollToValidationError: string;
26
+ inlineMode: string;
27
+ getFormData: string;
28
+ setFormData: string;
29
+ validateForm: string;
30
+ layout: string;
31
+ fieldName: string;
32
+ title: string;
33
+ defaultValue: string;
34
+ placeholder: string;
35
+ size: string;
36
+ maxInputLength: string;
37
+ countWords: string;
38
+ inputType: string;
39
+ showToggleIcon: string;
40
+ clearable: string;
41
+ formValidation: string;
42
+ validationRuleRequiresForm: string;
43
+ onInput: string;
44
+ onChange: string;
45
+ onFocus: string;
46
+ onBlur: string;
47
+ onClear: string;
48
+ focusInput: string;
49
+ blurInput: string;
50
+ clearInput: string;
51
+ selectInputText: string;
52
+ input: string;
53
+ cardLayout: string;
54
+ shadowTiming: string;
55
+ textarea: string;
56
+ minRows: string;
57
+ maxRows: string;
58
+ inputValue: string;
59
+ valueChange: string;
60
+ focus: string;
61
+ blur: string;
62
+ signaturePad: string;
63
+ lineWidth: string;
64
+ rewriteWillClearCanvas: string;
65
+ clearSuccess: string;
66
+ uploadSuccess: string;
67
+ uploadFailed: string;
68
+ confirmAbandonSignature: string;
69
+ warning: string;
70
+ cancel: string;
71
+ rewrite: string;
72
+ confirm: string;
73
+ numberInput: string;
74
+ maxValue: string;
75
+ minValue: string;
76
+ step: string;
77
+ controlButtonPosition: string;
78
+ precision: string;
79
+ inputControlIsMultipleOfStep: string;
80
+ onValueChange: string;
81
+ gridLayout: string;
82
+ verticalAlignment: string;
83
+ horizontalArrangement: string;
84
+ gridSpacing: string;
85
+ gridWidth: string;
86
+ radio: string;
87
+ option1: string;
88
+ option2: string;
89
+ buttonMode: string;
90
+ optionTextColor: string;
91
+ effectiveInButtonMode: string;
92
+ optionButtonColor: string;
93
+ optionManagement: string;
94
+ dataSource: string;
95
+ dataSourceConfig: string;
96
+ checkbox: string;
97
+ maxSelected: string;
98
+ minSelected: string;
99
+ select: string;
100
+ multiple: string;
101
+ hideMultiple: string;
102
+ hideHint: string;
103
+ retainSearchKeyword: string;
104
+ tagType: string;
105
+ multipleLimit: string;
106
+ hintTheme: string;
107
+ filterable: string;
108
+ allowCreate: string;
109
+ dropdownPosition: string;
110
+ dropdownWidthSameAsInput: string;
111
+ noDataText: string;
112
+ configureOptions: string;
113
+ cascader: string;
114
+ separator: string;
115
+ subMenuExpandMode: string;
116
+ searchable: string;
117
+ collapseTags: string;
118
+ showCollapsedTags: string;
119
+ hidePath: string;
120
+ parentSelectable: string;
121
+ parentChildNotLinked: string;
122
+ onlyGetSelectedNodes: string;
123
+ onSelectedNodeChange: string;
124
+ onBlurs: string;
125
+ onFocu: string;
126
+ getCurrentSelectedNodes: string;
127
+ togglePopperVisibility: string;
128
+ datePicker: string;
129
+ dateType: string;
130
+ date: string;
131
+ week: string;
132
+ month: string;
133
+ year: string;
134
+ time: string;
135
+ timeRange: string;
136
+ dateRange: string;
137
+ monthRange: string;
138
+ multipleDates: string;
139
+ startPlaceholder: string;
140
+ endPlaceholder: string;
141
+ editable: string;
142
+ displayFormat: string;
143
+ dataFormat: string;
144
+ fileUpload: string;
145
+ requestUrl: string;
146
+ uploadFileField: string;
147
+ multiples: string;
148
+ showFileList: string;
149
+ dragUpload: string;
150
+ maxUploadCount: string;
151
+ imageUpload: string;
152
+ switch: string;
153
+ onValue: string;
154
+ offValue: string;
155
+ onDescription: string;
156
+ offDescription: string;
157
+ width: string;
158
+ textInside: string;
159
+ onChangeSwitch: string;
160
+ slider: string;
161
+ showStops: string;
162
+ tooltip: string;
163
+ range: string;
164
+ vertical: string;
165
+ height: string;
166
+ showInput: string;
167
+ controlButtons: string;
168
+ tooltipPosition: string;
169
+ realTimeTrigger: string;
170
+ onChangeEnd: string;
171
+ colorPicker: string;
172
+ format: string;
173
+ alpha: string;
174
+ staticText: string;
175
+ leftAlign: string;
176
+ centerAlign: string;
177
+ rightAlign: string;
178
+ fontSize: string;
179
+ button: string;
180
+ type: string;
181
+ actionType: string;
182
+ customColor: string;
183
+ plainButton: string;
184
+ roundButton: string;
185
+ circleButton: string;
186
+ textButton: string;
187
+ loadingState: string;
188
+ onClick: string;
189
+ onDoubleClick: string;
190
+ componentId: string;
191
+ canvasWidth: string;
192
+ canvasHeight: string;
193
+ page: string;
194
+ editComponentProperties: string;
195
+ pageName: string;
196
+ padding: string;
197
+ margin: string;
198
+ backgroundColor: string;
199
+ fontColor: string;
200
+ addOption: string;
201
+ dataSources: string;
202
+ pleaseSelectDataSource: string;
203
+ pleaseCheckDataSourceConfig: string;
204
+ dynamic: string;
205
+ static: string;
206
+ noOptions: string;
207
+ configuration: string;
208
+ addDataSource: string;
209
+ apiName: string;
210
+ pleaseEnterApiName: string;
211
+ pleaseEnterRequestUrl: string;
212
+ requestMethod: string;
213
+ labelKey: string;
214
+ pleaseEnterLabelKey: string;
215
+ valueKey: string;
216
+ pleaseEnterValueKey: string;
217
+ dataPath: string;
218
+ nestedPath: string;
219
+ requestParams: string;
220
+ add: string;
221
+ paramName: string;
222
+ paramValue: string;
223
+ requestHeaders: string;
224
+ requestBody: string;
225
+ requestTest: string;
226
+ save: string;
227
+ configError: string;
228
+ requestFailed: string;
229
+ fillRequiredFields: string;
230
+ completeFormFirst: string;
231
+ addRule: string;
232
+ required: string;
233
+ validationTrigger: string;
234
+ validationMessage: string;
235
+ customRule: string;
236
+ validationFunction: string;
237
+ regexValidation: string;
238
+ fieldLength: string;
239
+ minLength: string;
240
+ maxLength: string;
241
+ saveForm: string;
242
+ clickToUpload: string;
243
+ row: string;
244
+ column: string;
245
+ };
246
+ export default _default;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),c=require("element-plus"),h=e.defineComponent({props:{componentSchema:{type:Object,default:()=>({})}},emits:["ok","close","update:modelValue"],setup(a,{attrs:p,slots:o,emit:n}){return()=>{var i;const l={...a.componentSchema,...p,title:((i=a.componentSchema)==null?void 0:i.label)??"",class:"epic-modal-el epic-modal-main","destroy-on-close":!0,"onUpdate:modelValue":u},r=l.children??[];delete l.children;let d=null;r.length?d=()=>r.map(m=>e.renderSlot(o,"node",{componentSchema:m})):d=()=>[e.renderSlot(o,"default")];function s(){n("ok")}function u(m){n("update:modelValue",!1),n("close")}return e.h(c.ElDialog,l,{default:()=>[e.renderSlot(o,"edit-node",{},d),e.h("div",{class:"epic-modal-footer"},[e.h(c.ElButton,{onClick:u},{default:()=>"关闭"}),e.h(c.ElButton,{type:"primary",onClick:s},{default:()=>l.okText??t("confirm")})])]})}}});exports.default=h;
@@ -0,0 +1,57 @@
1
+ import { defineComponent as h, h as o, renderSlot as d } from "vue";
2
+ import { ElDialog as k, ElButton as u } from "element-plus";
3
+ const y = h({
4
+ props: {
5
+ componentSchema: {
6
+ type: Object,
7
+ default: () => ({})
8
+ }
9
+ },
10
+ emits: ["ok", "close", "update:modelValue"],
11
+ setup(c, { attrs: f, slots: l, emit: n }) {
12
+ return () => {
13
+ var r;
14
+ const e = {
15
+ ...c.componentSchema,
16
+ ...f,
17
+ title: ((r = c.componentSchema) == null ? void 0 : r.label) ?? "",
18
+ class: "epic-modal-el epic-modal-main",
19
+ "destroy-on-close": !0,
20
+ "onUpdate:modelValue": i
21
+ }, m = e.children ?? [];
22
+ delete e.children;
23
+ let a = null;
24
+ m.length ? a = () => m.map((p) => d(l, "node", { componentSchema: p })) : a = () => [d(l, "default")];
25
+ function s() {
26
+ n("ok");
27
+ }
28
+ function i(p) {
29
+ n("update:modelValue", !1), n("close");
30
+ }
31
+ return o(k, e, {
32
+ default: () => [
33
+ d(l, "edit-node", {}, a),
34
+ o("div", { class: "epic-modal-footer" }, [
35
+ o(
36
+ u,
37
+ { onClick: i },
38
+ {
39
+ default: () => "关闭"
40
+ }
41
+ ),
42
+ o(
43
+ u,
44
+ { type: "primary", onClick: s },
45
+ {
46
+ default: () => e.okText ?? t("confirm")
47
+ }
48
+ )
49
+ ])
50
+ ]
51
+ });
52
+ };
53
+ }
54
+ });
55
+ export {
56
+ y as default
57
+ };
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as g, inject as l, computed as k, openBlock as p, createElementBlock as v, createVNode as N, unref as e, withCtx as x, createElementVNode as i, normalizeClass as C, withModifiers as m, createBlock as M, createCommentVNode as S, createTextVNode as b, toDisplayString as u } from "vue";
2
- import { _ as w } from "./tree.vue_vue_type_script_setup_true_lang-BntCm43E.js";
3
- import { p as B } from "./js.cookie-oHpRFPCO.js";
2
+ import { _ as w } from "./tree.vue_vue_type_script_setup_true_lang-RWHCYpkY.js";
3
+ import { p as B } from "./axios-BFVeUxau.js";
4
4
  import { _ as V } from "./icon.vue_vue_type_script_setup_true_lang-D3QdcReY.js";
5
5
  const $ = { class: "epic-outline" }, E = ["onMouseenter"], H = { class: "max-w-full truncate" }, P = { class: "epic-node-type-text flex-1 w-0 truncate" }, q = /* @__PURE__ */ g({
6
6
  __name: "outline",
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),_=require("./tree.vue_vue_type_script_setup_true_lang-KKt_Qgqv.cjs"),f=require("./axios-BAhOY32t.cjs"),m=require("./icon.vue_vue_type_script_setup_true_lang-DJbUD5AQ.cjs"),v={class:"epic-outline"},y=["onMouseenter"],g={class:"max-w-full truncate"},h={class:"epic-node-type-text flex-1 w-0 truncate"},k=e.defineComponent({__name:"outline",setup(N){const n=e.inject("designer"),a=e.inject("pageSchema"),l=e.computed(()=>{var s;const o=(s=n.state.checkedNode)==null?void 0:s.id;return o?[o]:[]});function u(o){n.setCheckedNode(o.componentSchema)}return(o,s)=>{var i;return e.openBlock(),e.createElementBlock("div",v,[e.createVNode(e.unref(_._sfc_main),{options:e.unref(a).schemas,draggable:"","selected-keys":l.value,"hover-key":(i=e.unref(n).state.hoverNode)==null?void 0:i.id,onNodeClick:u},{"tree-node":e.withCtx(({schema:t})=>{var r,c,d;return[e.createElementVNode("div",{class:e.normalizeClass(["epic-text-padding flex",{hidden:(r=t.componentProps)==null?void 0:r.hidden}]),onMouseenter:e.withModifiers(p=>e.unref(n).setHoverNode(t),["stop"]),onMouseleave:s[0]||(s[0]=e.withModifiers(p=>e.unref(n).setHoverNode(null),["stop"]))},[e.createElementVNode("span",g,[(c=t.componentProps)!=null&&c.hidden?(e.openBlock(),e.createBlock(e.unref(m._sfc_main),{key:0,name:"icon--epic--visibility-off-outline-rounded",class:"translate-y-2px"})):e.createCommentVNode("",!0),e.createTextVNode(" "+e.toDisplayString(t.label??((d=e.unref(f.pluginManager).getComponentConfingByType(t.type))==null?void 0:d.defaultSchema.label)),1)]),e.createElementVNode("span",h,e.toDisplayString(t.id),1)],42,y)]}),_:1},8,["options","selected-keys","hover-key"])])}}});exports.default=k;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),l=require("element-plus"),a=e.defineComponent({props:{componentSchema:{type:Object,required:!0,default:()=>({})}},setup(n,{attrs:u,slots:o}){return()=>{var r;const t={...n.componentSchema,title:(r=n.componentSchema)==null?void 0:r.label},c=t.children??[];return delete t.children,e.h(l.ElRow,{...t,style:{border:"1px dashed #ccc",padding:"8px"}},{default:()=>[e.renderSlot(o,"edit-node",{},()=>c.map(d=>e.renderSlot(o,"node",{componentSchema:d})))]})}}});exports.default=a;
@@ -1,6 +1,6 @@
1
- import { defineComponent as d, h as p, renderSlot as r } from "vue";
1
+ import { defineComponent as m, h as p, renderSlot as r } from "vue";
2
2
  import { ElRow as a } from "element-plus";
3
- const u = d({
3
+ const u = m({
4
4
  props: {
5
5
  componentSchema: {
6
6
  type: Object,
@@ -20,7 +20,7 @@ const u = d({
20
20
  {
21
21
  ...e,
22
22
  style: {
23
- // border: "1px dashed #333",
23
+ border: "1px dashed #ccc",
24
24
  padding: "8px"
25
25
  }
26
26
  },
@@ -31,7 +31,7 @@ const u = d({
31
31
  "edit-node",
32
32
  {},
33
33
  () => c.map(
34
- (m) => r(n, "node", { componentSchema: m })
34
+ (d) => r(n, "node", { componentSchema: d })
35
35
  )
36
36
  )
37
37
  ]
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),w=require("./axios-BAhOY32t.cjs"),p=require("element-plus"),k=require("./index-DddOVmF6.cjs"),I=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),z={class:"sign-main"},F=["src"],H={class:"sign",style:{height:"100%",width:"100%"}},O=["id"],L={class:"btn"},$={class:"btns"},G={__name:"sign",props:{componentSchema:{type:Object,require:!0,default:()=>({})},modelValue:{type:String,default:""}},emits:["update:modelValue"],setup(T,{expose:B,emit:C}){const{t:l}=k.useLocale(),S=w.pluginManager.getComponent("button"),E=w.pluginManager.getComponent("Dialog"),D=C,o=T,d=e.inject("disabled",{value:!1});e.watch(()=>o.componentSchema,()=>{e.nextTick(()=>{h.value=o.modelValue})},{deep:!0,immediate:!0});const s=e.ref(null),i=e.ref(null),a=e.ref(),M=e.ref("");function N(){var n,t,u,g;if(i.value&&((n=i.value)!=null&&n.clientHeight)&&((t=i.value)!=null&&t.clientWidth)){if(s.value=document.getElementById(`canvas${o.componentSchema.field}`),s.value.height=((u=i.value)==null?void 0:u.clientHeight)||600,s.value.width=(g=i.value)==null?void 0:g.clientWidth,a.value=s.value.getContext("2d"),o.modelValue){let m=new Image;m.src=o.modelValue,m.setAttribute("crossOrigin","anonymous"),m.onload=()=>{a.value.fillStyle=a.value.createPattern(m,"repeat"),a.value.fillRect(0,0,1e3,550)}}a.value.lineWidth=o.componentSchema.componentProps.lineWidth||4,o.componentSchema&&o.componentSchema.componentProps&&o.componentSchema.componentProps.style&&o.componentSchema.componentProps.style.color&&(a.value.strokeStyle=o.componentSchema.componentProps.style.color),M.value=s.value.getBoundingClientRect()}}const v=e.ref(""),f=e.ref(""),A=e.ref(""),W=e.ref(""),c=e.ref([]),x=e.ref(!1);function j(n){if(d.value||o.componentSchema.componentProps.readonly||o.componentSchema.componentProps.disabled)return;n=n||event,n.preventDefault();let t={x:n.offsetX,y:n.offsetY};v.value=t.x,f.value=t.y,a.value.beginPath(),a.value.moveTo(t.x,t.y),a.value.lineTo(t.x,t.y),a.value.stroke(),a.value.closePath(),c.value.push(t),x.value=!0}function q(n){if(!(d.value||o.componentSchema.componentProps.readonly||o.componentSchema.componentProps.disabled)&&(n=n||event,n.preventDefault(),x.value)){let t={x:n.offsetX,y:n.offsetY};A.value=t.x,W.value=t.y,a.value.beginPath(),a.value.moveTo(v.value,f.value),a.value.lineTo(t.x,t.y),a.value.stroke(),a.value.closePath(),v.value=t.x,f.value=t.y,c.value.push(t)}}function R(n){if(d.value||o.componentSchema.componentProps.readonly||o.componentSchema.componentProps.disabled)return;n=n||event,n.preventDefault();let t={x:n.offsetX,y:n.offsetY};a.value.beginPath(),a.value.moveTo(v.value,f.value),a.value.lineTo(t.x,t.y),a.value.stroke(),a.value.closePath(),c.value.push(t),c.value.push({x:-1,y:-1}),x.value=!1}function P(){p.ElMessageBox.confirm(l("rewriteWillClearCanvas"),l("warning"),{confirmButtonText:l("confirm"),cancelButtonText:l("cancel"),type:"warning"}).then(()=>{a.value.clearRect(0,0,s.value.width,s.value.height),c.value=[],p.ElMessage({type:"info",message:l("clearSuccess")})}).catch(()=>{})}const h=e.ref("");async function b(){let n=await U(s.value.toDataURL("image/png"));h.value=n,D("update:modelValue",n)}async function U(n){try{let t=atob(n.split(",")[1]),u=new ArrayBuffer(t.length),g=new Uint8Array(u);for(let y=0;y<t.length;y++)g[y]=t.charCodeAt(y);let m=new Blob([u],{type:"image/png"}),V=new FormData;V.append("file",m,Date.now()+"png");let Y=await w.axios({method:"post",url:"https://ess-ds.com/prod-api/center-file/file/upload",data:V,headers:{"Content-Type":"multipart/form-data",Authorization:"Bearer "+k.api.get("Admin-Token")}});return p.ElMessage({type:"success",message:l("uploadSuccess")}),Y.data.data.url}catch{p.ElMessage({type:"warning",message:l("uploadFailed")}),r.value=!1}finally{r.value=!1}}const r=e.ref(!1);function X(){p.ElMessageBox.confirm(l("confirmAbandonSignature"),l("warning"),{confirmButtonText:l("confirm"),cancelButtonText:l("cancel"),type:"warning"}).then(()=>{a.value.clearRect(0,0,s.value.width,s.value.height),c.value=[],r.value=!1}).catch(()=>!1)}function _(){d.value||o.componentSchema.componentProps.readonly||o.componentSchema.componentProps.disabled||(r.value=!0,a.value&&(a.value.clearRect(0,0,s.value.width,s.value.height),c.value=[]),e.nextTick(()=>{N()}))}return e.onMounted(()=>{}),e.onUnmounted(()=>{}),B({surewrite:b}),(n,t)=>(e.openBlock(),e.createElementBlock("div",z,[h.value?(e.openBlock(),e.createElementBlock("img",{key:1,class:"sign-board",src:h.value,alt:"",onClick:_},null,8,F)):(e.openBlock(),e.createElementBlock("div",{key:0,class:"sign-board",onClick:_},e.toDisplayString(e.unref(l)("signaturePad")),1)),e.createVNode(e.unref(E),{modelValue:r.value,"onUpdate:modelValue":t[0]||(t[0]=u=>r.value=u),title:e.unref(l)("signaturePad"),class:"w-860px",width:"860px",style:{height:"600px"},"before-close":X,draggable:!1,modal:""},{default:e.withCtx(()=>[e.createElementVNode("div",H,[e.createElementVNode("div",{class:"canvas",ref_key:"canvasWrap",ref:i},[e.createElementVNode("canvas",{id:`canvas${o.componentSchema.field}`,onMousedown:j,onMousemove:q,onMouseup:R},null,40,O)],512),e.createElementVNode("div",L,[t[1]||(t[1]=e.createElementVNode("div",{class:"remark"},null,-1)),e.createElementVNode("div",$,[e.createVNode(e.unref(S),{type:"info",size:"mini",onClick:P,onTouch:P},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(l)("rewrite")),1)]),_:1}),e.createVNode(e.unref(S),{type:"primary",size:"mini",onClick:b,onTouch:b},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(l)("confirm")),1)]),_:1})])])])]),_:1},8,["modelValue","title"])]))}},J=I._export_sfc(G,[["__scopeId","data-v-b0e855ca"]]);exports.default=J;