starfish-editor-custom 1.0.57 → 1.0.59
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.
- package/dist/ConditionModule.js +34 -34
- package/dist/ConditionSelect.js +22 -22
- package/dist/CustomDialog.js +1 -1
- package/dist/formStyle.js +16 -24
- package/dist/jsonCode.js +2 -2
- package/dist/jsonEditor.js +1 -1
- package/dist/main.js +261 -310
- package/dist/style.css +1 -1
- package/dist/types/{common → editor/src/common}/ConditionSelect/ConditionGroup.vue.d.ts +18 -0
- package/dist/types/{common → editor/src/common}/ConditionSelect/ConditionModule.vue.d.ts +17 -0
- package/dist/types/{common → editor/src/common}/ConditionSelect/ConditionTanc.vue.d.ts +30 -0
- package/dist/types/{common → editor/src/common}/ConditionSelect.vue.d.ts +13 -36
- package/dist/types/editor/src/common/CustomDialog.vue.d.ts +27 -0
- package/dist/types/editor/src/common/Loading.vue.d.ts +3 -0
- package/dist/types/editor/src/common/jsonCode.vue.d.ts +14 -0
- package/dist/types/editor/src/components/ComponentList.vue.d.ts +3 -0
- package/dist/types/editor/src/components/FormPreview.vue.d.ts +22 -0
- package/dist/types/editor/src/components/Nav.vue.d.ts +9 -0
- package/dist/types/editor/src/components/PropsPanel.vue.d.ts +46 -0
- package/dist/types/{components → editor/src/components}/Shape.vue.d.ts +9 -9
- package/dist/types/{components → editor/src/components}/Workspace.vue.d.ts +8 -8
- package/dist/types/editor/src/components/globalFormList.vue.d.ts +6 -0
- package/dist/types/editor/src/components/jsonEditor.vue.d.ts +6 -0
- package/dist/types/{controller → editor/src/controller}/action.d.ts +1 -1
- package/dist/types/{controller → editor/src/controller}/form.d.ts +1 -1
- package/dist/types/{controller → editor/src/controller}/history.d.ts +1 -1
- package/dist/types/{controller → editor/src/controller}/shortcut.d.ts +1 -1
- package/dist/types/{controller → editor/src/controller}/ui.d.ts +1 -1
- package/dist/types/editor/src/layouts/ControlEditSize.vue.d.ts +10 -0
- package/dist/types/editor/src/layouts/Framework.vue.d.ts +21 -0
- package/dist/types/editor/src/layouts/Resizer.vue.d.ts +13 -0
- package/dist/types/editor/src/layouts/ShortcutKey.vue.d.ts +8 -0
- package/dist/types/{main.d.ts → editor/src/main.d.ts} +2 -2
- package/dist/types/editor/src/starfish-editor.vue.d.ts +101 -0
- package/dist/types/{type.d.ts → editor/src/type.d.ts} +7 -7
- package/dist/types/{utils → editor/src/utils}/formKeycon.d.ts +1 -1
- package/dist/types/starfish-editor.d.ts +2 -2
- package/package.json +55 -55
- package/src/common/ConditionSelect/ConditionGroup.vue +4 -4
- package/src/common/ConditionSelect/ConditionModule.vue +5 -5
- package/src/common/ConditionSelect/ConditionTanc.vue +15 -15
- package/src/common/ConditionSelect.vue +16 -16
- package/src/common/formStyle.vue +4 -4
- package/src/common/jsonCode.vue +1 -1
- package/src/components/ComponentList.vue +9 -9
- package/src/components/FormPreview.vue +10 -10
- package/src/components/NavList.vue +25 -25
- package/src/components/PropsPanel.vue +5 -5
- package/src/components/Shape.vue +9 -9
- package/src/components/Workspace.vue +2 -2
- package/src/layouts/ControlEditSize.vue +1 -1
- package/src/layouts/ShortcutKey.vue +2 -2
- package/stats.html +4905 -3677
- package/dist/types/common/CustomDialog.vue.d.ts +0 -27
- package/dist/types/common/Loading.vue.d.ts +0 -3
- package/dist/types/common/jsonCode.vue.d.ts +0 -110
- package/dist/types/components/ComponentList.vue.d.ts +0 -32
- package/dist/types/components/FormPreview.vue.d.ts +0 -62
- package/dist/types/components/Nav.vue.d.ts +0 -9
- package/dist/types/components/PropsPanel.vue.d.ts +0 -56
- package/dist/types/components/globalFormList.vue.d.ts +0 -6
- package/dist/types/components/jsonEditor.vue.d.ts +0 -6
- package/dist/types/layouts/ControlEditSize.vue.d.ts +0 -17
- package/dist/types/layouts/Framework.vue.d.ts +0 -33
- package/dist/types/layouts/Resizer.vue.d.ts +0 -13
- package/dist/types/layouts/ShortcutKey.vue.d.ts +0 -8
- package/dist/types/starfish-editor.vue.d.ts +0 -109
- /package/dist/types/{common → editor/src/common}/formJson.d.ts +0 -0
- /package/dist/types/{locale → editor/src/locale}/en.d.ts +0 -0
- /package/dist/types/{locale → editor/src/locale}/index.d.ts +0 -0
- /package/dist/types/{locale → editor/src/locale}/zh-CN.d.ts +0 -0
- /package/dist/types/{shims-vue.d.ts → editor/src/shims-vue.d.ts} +0 -0
- /package/dist/types/{utils → editor/src/utils}/_.d.ts +0 -0
- /package/dist/types/{utils → editor/src/utils}/shortcutKey.d.ts +0 -0
- /package/dist/types/{utils → editor/src/utils}/vm.d.ts +0 -0
package/dist/ConditionModule.js
CHANGED
|
@@ -269,17 +269,17 @@ function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
269
269
|
default: withCtx(() => [
|
|
270
270
|
createVNode(_component_el_table_column, {
|
|
271
271
|
prop: "field",
|
|
272
|
-
label: _ctx.$
|
|
272
|
+
label: _ctx.$st("cond.field")
|
|
273
273
|
}, {
|
|
274
274
|
default: withCtx((scope) => [
|
|
275
275
|
createVNode(_component_el_select, {
|
|
276
276
|
modelValue: scope.row.field,
|
|
277
277
|
"onUpdate:modelValue": ($event) => scope.row.field = $event,
|
|
278
|
-
placeholder: _ctx.$
|
|
278
|
+
placeholder: _ctx.$st("common.select")
|
|
279
279
|
}, {
|
|
280
280
|
default: withCtx(() => [
|
|
281
281
|
createVNode(_component_el_option, {
|
|
282
|
-
label: _ctx.$
|
|
282
|
+
label: _ctx.$st("cond.unselect"),
|
|
283
283
|
value: ""
|
|
284
284
|
}, null, 8, ["label"]),
|
|
285
285
|
(openBlock(true), createElementBlock(Fragment, null, renderList($props.fieldList, (item, index) => {
|
|
@@ -290,20 +290,20 @@ function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
290
290
|
}, null, 8, ["label", "value"]);
|
|
291
291
|
}), 128))
|
|
292
292
|
]),
|
|
293
|
-
_:
|
|
294
|
-
},
|
|
293
|
+
_: 2
|
|
294
|
+
}, 1032, ["modelValue", "onUpdate:modelValue", "placeholder"])
|
|
295
295
|
]),
|
|
296
296
|
_: 1
|
|
297
297
|
}, 8, ["label"]),
|
|
298
298
|
createVNode(_component_el_table_column, {
|
|
299
299
|
prop: "logic",
|
|
300
|
-
label: _ctx.$
|
|
300
|
+
label: _ctx.$st("cond.logic")
|
|
301
301
|
}, {
|
|
302
302
|
default: withCtx((scope) => [
|
|
303
303
|
createVNode(_component_el_select, {
|
|
304
304
|
modelValue: scope.row.logic,
|
|
305
305
|
"onUpdate:modelValue": ($event) => scope.row.logic = $event,
|
|
306
|
-
placeholder: _ctx.$
|
|
306
|
+
placeholder: _ctx.$st("common.select")
|
|
307
307
|
}, {
|
|
308
308
|
default: withCtx(() => [
|
|
309
309
|
(openBlock(true), createElementBlock(Fragment, null, renderList($options.getLogic(), (item) => {
|
|
@@ -314,20 +314,20 @@ function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
314
314
|
}, null, 8, ["label", "value"]);
|
|
315
315
|
}), 128))
|
|
316
316
|
]),
|
|
317
|
-
_:
|
|
318
|
-
},
|
|
317
|
+
_: 2
|
|
318
|
+
}, 1032, ["modelValue", "onUpdate:modelValue", "placeholder"])
|
|
319
319
|
]),
|
|
320
320
|
_: 1
|
|
321
321
|
}, 8, ["label"]),
|
|
322
322
|
createVNode(_component_el_table_column, {
|
|
323
323
|
prop: "type",
|
|
324
|
-
label: _ctx.$
|
|
324
|
+
label: _ctx.$st("cond.valueType")
|
|
325
325
|
}, {
|
|
326
326
|
default: withCtx((scope) => [
|
|
327
327
|
createVNode(_component_el_select, {
|
|
328
328
|
modelValue: scope.row.type,
|
|
329
329
|
"onUpdate:modelValue": ($event) => scope.row.type = $event,
|
|
330
|
-
placeholder: _ctx.$
|
|
330
|
+
placeholder: _ctx.$st("common.select"),
|
|
331
331
|
onChange: $options.handleType
|
|
332
332
|
}, {
|
|
333
333
|
default: withCtx(() => [
|
|
@@ -339,14 +339,14 @@ function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
339
339
|
}, null, 8, ["label", "value"]);
|
|
340
340
|
}), 128))
|
|
341
341
|
]),
|
|
342
|
-
_:
|
|
343
|
-
},
|
|
342
|
+
_: 2
|
|
343
|
+
}, 1032, ["modelValue", "onUpdate:modelValue", "placeholder", "onChange"])
|
|
344
344
|
]),
|
|
345
345
|
_: 1
|
|
346
346
|
}, 8, ["label"]),
|
|
347
347
|
createVNode(_component_el_table_column, {
|
|
348
348
|
prop: "value",
|
|
349
|
-
label: _ctx.$
|
|
349
|
+
label: _ctx.$st("cond.value")
|
|
350
350
|
}, {
|
|
351
351
|
default: withCtx((scope) => [
|
|
352
352
|
$options.getTypeIsChange(scope.$index, _ctx.index) ? (openBlock(), createBlock(_component_el_form, {
|
|
@@ -374,12 +374,12 @@ function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
374
374
|
modelValue: scope.row.value,
|
|
375
375
|
"onUpdate:modelValue": ($event) => scope.row.value = $event,
|
|
376
376
|
filterable: "",
|
|
377
|
-
placeholder: _ctx.$
|
|
377
|
+
placeholder: _ctx.$st("common.select"),
|
|
378
378
|
multiple: $options.getMultiple()
|
|
379
379
|
}, {
|
|
380
380
|
default: withCtx(() => [
|
|
381
381
|
createVNode(_component_el_option, {
|
|
382
|
-
label: _ctx.$
|
|
382
|
+
label: _ctx.$st("cond.unselect"),
|
|
383
383
|
value: ""
|
|
384
384
|
}, null, 8, ["label"]),
|
|
385
385
|
(openBlock(true), createElementBlock(Fragment, null, renderList($options.getFiled(), (item, index) => {
|
|
@@ -390,8 +390,8 @@ function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
390
390
|
}, null, 8, ["label", "value"]);
|
|
391
391
|
}), 128))
|
|
392
392
|
]),
|
|
393
|
-
_:
|
|
394
|
-
},
|
|
393
|
+
_: 2
|
|
394
|
+
}, 1032, ["modelValue", "onUpdate:modelValue", "placeholder", "multiple"])) : createCommentVNode("", true),
|
|
395
395
|
scope.row.type == "boolean" ? (openBlock(), createBlock(_component_el_switch, {
|
|
396
396
|
key: 2,
|
|
397
397
|
modelValue: scope.row.value,
|
|
@@ -404,7 +404,7 @@ function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
404
404
|
}, 8, ["label"]),
|
|
405
405
|
createVNode(_component_el_table_column, {
|
|
406
406
|
fixed: "right",
|
|
407
|
-
label: _ctx.$
|
|
407
|
+
label: _ctx.$st("cond.action"),
|
|
408
408
|
width: "200"
|
|
409
409
|
}, {
|
|
410
410
|
default: withCtx((scope) => [
|
|
@@ -414,10 +414,10 @@ function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
414
414
|
onClick: withModifiers(($event) => $options.deleteRow(scope.$index, _ctx.index), ["prevent"])
|
|
415
415
|
}, {
|
|
416
416
|
default: withCtx(() => [
|
|
417
|
-
createTextVNode(toDisplayString(_ctx.$
|
|
417
|
+
createTextVNode(toDisplayString(_ctx.$st("common.delete")), 1)
|
|
418
418
|
]),
|
|
419
|
-
_:
|
|
420
|
-
},
|
|
419
|
+
_: 2
|
|
420
|
+
}, 1032, ["onClick"])
|
|
421
421
|
]),
|
|
422
422
|
_: 1
|
|
423
423
|
}, 8, ["label"])
|
|
@@ -432,7 +432,7 @@ function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
432
432
|
style: { "width": "100%" }
|
|
433
433
|
}, {
|
|
434
434
|
default: withCtx(() => [
|
|
435
|
-
createTextVNode("+" + toDisplayString(_ctx.$
|
|
435
|
+
createTextVNode("+" + toDisplayString(_ctx.$st("cond.condition")), 1)
|
|
436
436
|
]),
|
|
437
437
|
_: 1
|
|
438
438
|
}, 8, ["onClick"])) : createCommentVNode("", true)
|
|
@@ -449,13 +449,13 @@ function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
449
449
|
onClick: $options.saveJson
|
|
450
450
|
}, {
|
|
451
451
|
default: withCtx(() => [
|
|
452
|
-
createTextVNode(toDisplayString(_ctx.$
|
|
452
|
+
createTextVNode(toDisplayString(_ctx.$st("common.save")), 1)
|
|
453
453
|
]),
|
|
454
454
|
_: 1
|
|
455
455
|
}, 8, ["onClick"]),
|
|
456
456
|
createVNode(_component_el_button, { onClick: $options.closeDialog }, {
|
|
457
457
|
default: withCtx(() => [
|
|
458
|
-
createTextVNode(toDisplayString(_ctx.$
|
|
458
|
+
createTextVNode(toDisplayString(_ctx.$st("common.close")), 1)
|
|
459
459
|
]),
|
|
460
460
|
_: 1
|
|
461
461
|
}, 8, ["onClick"])
|
|
@@ -633,7 +633,7 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
633
633
|
createVNode(_component_el_select, {
|
|
634
634
|
modelValue: $props.result.type,
|
|
635
635
|
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => $props.result.type = $event),
|
|
636
|
-
placeholder: _ctx.$
|
|
636
|
+
placeholder: _ctx.$st("common.select"),
|
|
637
637
|
onChange: $options.onChange
|
|
638
638
|
}, {
|
|
639
639
|
default: withCtx(() => [
|
|
@@ -654,7 +654,7 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
654
654
|
disabled: !$props.result.type || $props.result.type == "data"
|
|
655
655
|
}, {
|
|
656
656
|
default: withCtx(() => [
|
|
657
|
-
createTextVNode(toDisplayString(_ctx.$
|
|
657
|
+
createTextVNode(toDisplayString(_ctx.$st("cond.add")), 1)
|
|
658
658
|
]),
|
|
659
659
|
_: 1
|
|
660
660
|
}, 8, ["onClick", "disabled"]),
|
|
@@ -664,7 +664,7 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
664
664
|
size: "default"
|
|
665
665
|
}, {
|
|
666
666
|
default: withCtx(() => [
|
|
667
|
-
createTextVNode(toDisplayString(_ctx.$
|
|
667
|
+
createTextVNode(toDisplayString(_ctx.$st("common.delete")), 1)
|
|
668
668
|
]),
|
|
669
669
|
_: 1
|
|
670
670
|
}, 8, ["onClick"]),
|
|
@@ -675,7 +675,7 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
675
675
|
size: "default"
|
|
676
676
|
}, {
|
|
677
677
|
default: withCtx(() => [
|
|
678
|
-
createTextVNode(toDisplayString(_ctx.$
|
|
678
|
+
createTextVNode(toDisplayString(_ctx.$st("common.edit")), 1)
|
|
679
679
|
]),
|
|
680
680
|
_: 1
|
|
681
681
|
}, 8, ["onClick"])) : createCommentVNode("", true),
|
|
@@ -760,7 +760,7 @@ const _sfc_main = {
|
|
|
760
760
|
methods: {
|
|
761
761
|
async show() {
|
|
762
762
|
var _a, _b;
|
|
763
|
-
this.$refs.maxJsonDialog.init(this.$
|
|
763
|
+
this.$refs.maxJsonDialog.init(this.$st("cond.available"), "icon-icon-bianji");
|
|
764
764
|
this.$refs.maxJsonDialog.show();
|
|
765
765
|
await this.$nextTick();
|
|
766
766
|
const allFormList = (_a = formStore) == null ? void 0 : _a.get("allFormList");
|
|
@@ -789,7 +789,7 @@ const _sfc_main = {
|
|
|
789
789
|
},
|
|
790
790
|
getDataConditionRelate(data) {
|
|
791
791
|
if (Object.keys(data.data).length == 0)
|
|
792
|
-
return this.$
|
|
792
|
+
return this.$st("cond.empty");
|
|
793
793
|
const fieldData = data.data;
|
|
794
794
|
const field = fieldData.field;
|
|
795
795
|
let value;
|
|
@@ -832,7 +832,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
832
832
|
default: withCtx(() => [
|
|
833
833
|
createVNode(_component_el_main, { class: "my-pageMain" }, {
|
|
834
834
|
default: withCtx(() => [
|
|
835
|
-
createElementVNode("div", _hoisted_1, toDisplayString(_ctx.$
|
|
835
|
+
createElementVNode("div", _hoisted_1, toDisplayString(_ctx.$st("cond.title")), 1),
|
|
836
836
|
createElementVNode("div", _hoisted_2, [
|
|
837
837
|
createVNode(_component_ConditionGroup, {
|
|
838
838
|
result: $data.result,
|
|
@@ -856,13 +856,13 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
856
856
|
onClick: $options.saveJson
|
|
857
857
|
}, {
|
|
858
858
|
default: withCtx(() => [
|
|
859
|
-
createTextVNode(toDisplayString(_ctx.$
|
|
859
|
+
createTextVNode(toDisplayString(_ctx.$st("common.save")), 1)
|
|
860
860
|
]),
|
|
861
861
|
_: 1
|
|
862
862
|
}, 8, ["onClick"]),
|
|
863
863
|
createVNode(_component_el_button, { onClick: $options.closeDialog }, {
|
|
864
864
|
default: withCtx(() => [
|
|
865
|
-
createTextVNode(toDisplayString(_ctx.$
|
|
865
|
+
createTextVNode(toDisplayString(_ctx.$st("common.close")), 1)
|
|
866
866
|
]),
|
|
867
867
|
_: 1
|
|
868
868
|
}, 8, ["onClick"])
|
package/dist/ConditionSelect.js
CHANGED
|
@@ -250,7 +250,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
250
250
|
default: withCtx(() => [
|
|
251
251
|
createVNode(_component_el_main, { class: "my-pageMain" }, {
|
|
252
252
|
default: withCtx(() => [
|
|
253
|
-
createElementVNode("div", _hoisted_1, toDisplayString(_ctx.$
|
|
253
|
+
createElementVNode("div", _hoisted_1, toDisplayString(_ctx.$st("cond.title")), 1),
|
|
254
254
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.andData, (table, index) => {
|
|
255
255
|
return openBlock(), createElementBlock("div", {
|
|
256
256
|
class: "tableContainer",
|
|
@@ -264,13 +264,13 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
264
264
|
default: withCtx(() => [
|
|
265
265
|
createVNode(_component_el_table_column, {
|
|
266
266
|
prop: "field",
|
|
267
|
-
label: _ctx.$
|
|
267
|
+
label: _ctx.$st("cond.field")
|
|
268
268
|
}, {
|
|
269
269
|
default: withCtx((scope) => [
|
|
270
270
|
createVNode(_component_el_select, {
|
|
271
271
|
modelValue: scope.row.field,
|
|
272
272
|
"onUpdate:modelValue": ($event) => scope.row.field = $event,
|
|
273
|
-
placeholder: _ctx.$
|
|
273
|
+
placeholder: _ctx.$st("common.select")
|
|
274
274
|
}, {
|
|
275
275
|
default: withCtx(() => [
|
|
276
276
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.fieldList, (item) => {
|
|
@@ -281,20 +281,20 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
281
281
|
}, null, 8, ["label", "value"]);
|
|
282
282
|
}), 128))
|
|
283
283
|
]),
|
|
284
|
-
_:
|
|
285
|
-
},
|
|
284
|
+
_: 2
|
|
285
|
+
}, 1032, ["modelValue", "onUpdate:modelValue", "placeholder"])
|
|
286
286
|
]),
|
|
287
287
|
_: 1
|
|
288
288
|
}, 8, ["label"]),
|
|
289
289
|
createVNode(_component_el_table_column, {
|
|
290
290
|
prop: "logic",
|
|
291
|
-
label: _ctx.$
|
|
291
|
+
label: _ctx.$st("cond.logic")
|
|
292
292
|
}, {
|
|
293
293
|
default: withCtx((scope) => [
|
|
294
294
|
createVNode(_component_el_select, {
|
|
295
295
|
modelValue: scope.row.logic,
|
|
296
296
|
"onUpdate:modelValue": ($event) => scope.row.logic = $event,
|
|
297
|
-
placeholder: _ctx.$
|
|
297
|
+
placeholder: _ctx.$st("common.select")
|
|
298
298
|
}, {
|
|
299
299
|
default: withCtx(() => [
|
|
300
300
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.getLogic(scope.$index, index), (item) => {
|
|
@@ -312,13 +312,13 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
312
312
|
}, 1032, ["label"]),
|
|
313
313
|
createVNode(_component_el_table_column, {
|
|
314
314
|
prop: "type",
|
|
315
|
-
label: _ctx.$
|
|
315
|
+
label: _ctx.$st("cond.valueType")
|
|
316
316
|
}, {
|
|
317
317
|
default: withCtx((scope) => [
|
|
318
318
|
createVNode(_component_el_select, {
|
|
319
319
|
modelValue: scope.row.type,
|
|
320
320
|
"onUpdate:modelValue": ($event) => scope.row.type = $event,
|
|
321
|
-
placeholder: _ctx.$
|
|
321
|
+
placeholder: _ctx.$st("common.select"),
|
|
322
322
|
onChange: ($event) => _ctx.handleType(scope.$index, index, scope.row.type)
|
|
323
323
|
}, {
|
|
324
324
|
default: withCtx(() => [
|
|
@@ -337,7 +337,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
337
337
|
}, 1032, ["label"]),
|
|
338
338
|
createVNode(_component_el_table_column, {
|
|
339
339
|
prop: "value",
|
|
340
|
-
label: _ctx.$
|
|
340
|
+
label: _ctx.$st("cond.value")
|
|
341
341
|
}, {
|
|
342
342
|
default: withCtx((scope) => [
|
|
343
343
|
_ctx.getTypeIsChange(scope.$index, index) && scope.row.type == "constant" ? (openBlock(), createBlock(_component_el_form, {
|
|
@@ -366,12 +366,12 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
366
366
|
modelValue: scope.row.value,
|
|
367
367
|
"onUpdate:modelValue": ($event) => scope.row.value = $event,
|
|
368
368
|
filterable: "",
|
|
369
|
-
placeholder: _ctx.$
|
|
369
|
+
placeholder: _ctx.$st("common.select"),
|
|
370
370
|
multiple: _ctx.getMultiple(scope.$index, index)
|
|
371
371
|
}, {
|
|
372
372
|
default: withCtx(() => [
|
|
373
373
|
createVNode(_component_el_option, {
|
|
374
|
-
label: _ctx.$
|
|
374
|
+
label: _ctx.$st("cond.unselect"),
|
|
375
375
|
value: ""
|
|
376
376
|
}, null, 8, ["label"]),
|
|
377
377
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.getFiled(scope.$index, index), (item, rightIndex) => {
|
|
@@ -394,7 +394,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
394
394
|
}, 1032, ["label"]),
|
|
395
395
|
createVNode(_component_el_table_column, {
|
|
396
396
|
fixed: "right",
|
|
397
|
-
label: _ctx.$
|
|
397
|
+
label: _ctx.$st("cond.action"),
|
|
398
398
|
width: "100"
|
|
399
399
|
}, {
|
|
400
400
|
default: withCtx((scope) => [
|
|
@@ -404,10 +404,10 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
404
404
|
onClick: withModifiers(($event) => _ctx.deleteRow(scope.$index, index), ["prevent"])
|
|
405
405
|
}, {
|
|
406
406
|
default: withCtx(() => [
|
|
407
|
-
createTextVNode(toDisplayString(_ctx.$
|
|
407
|
+
createTextVNode(toDisplayString(_ctx.$st("common.delete")), 1)
|
|
408
408
|
]),
|
|
409
|
-
_:
|
|
410
|
-
},
|
|
409
|
+
_: 2
|
|
410
|
+
}, 1032, ["onClick"])
|
|
411
411
|
]),
|
|
412
412
|
_: 2
|
|
413
413
|
}, 1032, ["label"])
|
|
@@ -421,10 +421,10 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
421
421
|
onClick: ($event) => _ctx.onAddItem(index)
|
|
422
422
|
}, {
|
|
423
423
|
default: withCtx(() => [
|
|
424
|
-
createTextVNode(toDisplayString(_ctx.$
|
|
424
|
+
createTextVNode(toDisplayString(_ctx.$st("cond.addAnd")), 1)
|
|
425
425
|
]),
|
|
426
|
-
_:
|
|
427
|
-
},
|
|
426
|
+
_: 2
|
|
427
|
+
}, 1032, ["onClick"])
|
|
428
428
|
]);
|
|
429
429
|
}), 128)),
|
|
430
430
|
createVNode(_component_el_button, {
|
|
@@ -433,7 +433,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
433
433
|
onClick: _ctx.onOrItem
|
|
434
434
|
}, {
|
|
435
435
|
default: withCtx(() => [
|
|
436
|
-
createTextVNode(toDisplayString(_ctx.$
|
|
436
|
+
createTextVNode(toDisplayString(_ctx.$st("cond.addOr")), 1)
|
|
437
437
|
]),
|
|
438
438
|
_: 1
|
|
439
439
|
}, 8, ["onClick"])
|
|
@@ -450,13 +450,13 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
450
450
|
onClick: _ctx.saveJson
|
|
451
451
|
}, {
|
|
452
452
|
default: withCtx(() => [
|
|
453
|
-
createTextVNode(toDisplayString(_ctx.$
|
|
453
|
+
createTextVNode(toDisplayString(_ctx.$st("common.save")), 1)
|
|
454
454
|
]),
|
|
455
455
|
_: 1
|
|
456
456
|
}, 8, ["onClick"]),
|
|
457
457
|
createVNode(_component_el_button, { onClick: _ctx.closeDialog }, {
|
|
458
458
|
default: withCtx(() => [
|
|
459
|
-
createTextVNode(toDisplayString(_ctx.$
|
|
459
|
+
createTextVNode(toDisplayString(_ctx.$st("common.close")), 1)
|
|
460
460
|
]),
|
|
461
461
|
_: 1
|
|
462
462
|
}, 8, ["onClick"])
|
package/dist/CustomDialog.js
CHANGED
|
@@ -29,7 +29,7 @@ import "element-plus/es/components/tree/style/css";
|
|
|
29
29
|
import "element-plus/es/components/tooltip/style/css";
|
|
30
30
|
import "gesto";
|
|
31
31
|
import "keycon";
|
|
32
|
-
var CustomDialog_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
32
|
+
var CustomDialog_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => ".MyDialogBody[data-v-38337299]{position:relative}.fullscreen[data-v-38337299]{width:100%!important;height:100%!important;margin:0;padding:0}\n")();
|
|
33
33
|
const _sfc_main = defineComponent({
|
|
34
34
|
props: {
|
|
35
35
|
dialogclass: String,
|
package/dist/formStyle.js
CHANGED
|
@@ -30,7 +30,7 @@ import "element-plus/es/components/drawer/style/css";
|
|
|
30
30
|
import "element-plus/es/components/tree/style/css";
|
|
31
31
|
import "gesto";
|
|
32
32
|
import "keycon";
|
|
33
|
-
var formStyle_vue_vue_type_style_index_0_lang = "";
|
|
33
|
+
var formStyle_vue_vue_type_style_index_0_lang = /* @__PURE__ */ (() => ".cm-gutters.cm-gutters-before{background:#133F63}\n")();
|
|
34
34
|
const _sfc_main = defineComponent({
|
|
35
35
|
ControlType: "FormStyle",
|
|
36
36
|
isHide: true,
|
|
@@ -61,7 +61,7 @@ const _sfc_main = defineComponent({
|
|
|
61
61
|
extensions,
|
|
62
62
|
codeDialog,
|
|
63
63
|
onStyleSet() {
|
|
64
|
-
codeDialog.value.init(proxy.$
|
|
64
|
+
codeDialog.value.init(proxy.$st("common.formStyle"), "icon-biaodan");
|
|
65
65
|
codeDialog.value.show();
|
|
66
66
|
},
|
|
67
67
|
saveCssStyle() {
|
|
@@ -84,27 +84,18 @@ const _sfc_main = defineComponent({
|
|
|
84
84
|
classArray.forEach((cItem) => {
|
|
85
85
|
const caItem = cItem.trim();
|
|
86
86
|
if (caItem.indexOf(".", 1) !== -1) {
|
|
87
|
-
const newClass = caItem.substring(
|
|
88
|
-
caItem.indexOf(".") + 1,
|
|
89
|
-
caItem.indexOf(".", 1)
|
|
90
|
-
);
|
|
87
|
+
const newClass = caItem.substring(caItem.indexOf(".") + 1, caItem.indexOf(".", 1));
|
|
91
88
|
if (newClass) {
|
|
92
89
|
cssNameArray.push(newClass.trim());
|
|
93
90
|
}
|
|
94
91
|
} else if (caItem.indexOf(" ") !== -1) {
|
|
95
|
-
const newClass = caItem.substring(
|
|
96
|
-
caItem.indexOf(".") + 1,
|
|
97
|
-
caItem.indexOf(" ")
|
|
98
|
-
);
|
|
92
|
+
const newClass = caItem.substring(caItem.indexOf(".") + 1, caItem.indexOf(" "));
|
|
99
93
|
if (newClass) {
|
|
100
94
|
cssNameArray.push(newClass.trim());
|
|
101
95
|
}
|
|
102
96
|
} else {
|
|
103
97
|
if (caItem.indexOf("{") !== -1) {
|
|
104
|
-
const newClass = caItem.substring(
|
|
105
|
-
caItem.indexOf(".") + 1,
|
|
106
|
-
caItem.indexOf("{")
|
|
107
|
-
);
|
|
98
|
+
const newClass = caItem.substring(caItem.indexOf(".") + 1, caItem.indexOf("{"));
|
|
108
99
|
cssNameArray.push(newClass.trim());
|
|
109
100
|
} else {
|
|
110
101
|
const newClass = caItem.substring(caItem.indexOf(".") + 1);
|
|
@@ -156,8 +147,9 @@ const _hoisted_3 = {
|
|
|
156
147
|
key: 0,
|
|
157
148
|
class: "item_require"
|
|
158
149
|
};
|
|
159
|
-
const _hoisted_4 = { class: "
|
|
160
|
-
const _hoisted_5 = { class: "
|
|
150
|
+
const _hoisted_4 = /* @__PURE__ */ createElementVNode("span", { class: "tip iconfontui icon-tishi" }, null, -1);
|
|
151
|
+
const _hoisted_5 = { class: "control" };
|
|
152
|
+
const _hoisted_6 = { class: "custom_code" };
|
|
161
153
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
162
154
|
const _component_el_tooltip = ElTooltip;
|
|
163
155
|
const _component_el_button = ElButton;
|
|
@@ -175,20 +167,20 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
175
167
|
content: _ctx.item.data.tip,
|
|
176
168
|
placement: "top"
|
|
177
169
|
}, {
|
|
178
|
-
default: withCtx(() => [
|
|
179
|
-
|
|
180
|
-
])
|
|
170
|
+
default: withCtx(() => [
|
|
171
|
+
_hoisted_4
|
|
172
|
+
]),
|
|
181
173
|
_: 1
|
|
182
174
|
}, 8, ["content"])) : createCommentVNode("", true)
|
|
183
175
|
]),
|
|
184
|
-
createElementVNode("div",
|
|
176
|
+
createElementVNode("div", _hoisted_5, [
|
|
185
177
|
createVNode(_component_el_button, {
|
|
186
178
|
style: { "width": "100%" },
|
|
187
179
|
onClick: _ctx.onStyleSet,
|
|
188
180
|
type: _ctx.code ? "primary" : ""
|
|
189
181
|
}, {
|
|
190
182
|
default: withCtx(() => [
|
|
191
|
-
createTextVNode(toDisplayString(_ctx.code ? _ctx.$
|
|
183
|
+
createTextVNode(toDisplayString(_ctx.code ? _ctx.$st("common.setDone") : _ctx.$st("common.settings")), 1)
|
|
192
184
|
]),
|
|
193
185
|
_: 1
|
|
194
186
|
}, 8, ["onClick", "type"]),
|
|
@@ -198,7 +190,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
198
190
|
width: "1000"
|
|
199
191
|
}, {
|
|
200
192
|
default: withCtx(() => [
|
|
201
|
-
createElementVNode("div",
|
|
193
|
+
createElementVNode("div", _hoisted_6, [
|
|
202
194
|
createVNode(_component_codemirror, {
|
|
203
195
|
modelValue: _ctx.code,
|
|
204
196
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => _ctx.code = $event),
|
|
@@ -220,13 +212,13 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
220
212
|
onClick: _ctx.saveCssStyle
|
|
221
213
|
}, {
|
|
222
214
|
default: withCtx(() => [
|
|
223
|
-
createTextVNode(toDisplayString(_ctx.$
|
|
215
|
+
createTextVNode(toDisplayString(_ctx.$st("common.confirm")), 1)
|
|
224
216
|
]),
|
|
225
217
|
_: 1
|
|
226
218
|
}, 8, ["onClick"]),
|
|
227
219
|
createVNode(_component_el_button, { onClick: _ctx.closeCodeDialog }, {
|
|
228
220
|
default: withCtx(() => [
|
|
229
|
-
createTextVNode(toDisplayString(_ctx.$
|
|
221
|
+
createTextVNode(toDisplayString(_ctx.$st("common.close")), 1)
|
|
230
222
|
]),
|
|
231
223
|
_: 1
|
|
232
224
|
}, 8, ["onClick"])
|
package/dist/jsonCode.js
CHANGED
|
@@ -30,7 +30,7 @@ import "element-plus/es/components/tree/style/css";
|
|
|
30
30
|
import "element-plus/es/components/tooltip/style/css";
|
|
31
31
|
import "gesto";
|
|
32
32
|
import "keycon";
|
|
33
|
-
var jsonCode_vue_vue_type_style_index_0_lang = "";
|
|
33
|
+
var jsonCode_vue_vue_type_style_index_0_lang = /* @__PURE__ */ (() => ".\\37c 2 .cm-gutters{background:#133F63;border-right:1px solid #1C4E7E}\n")();
|
|
34
34
|
const _sfc_main = defineComponent({
|
|
35
35
|
components: {
|
|
36
36
|
Codemirror
|
|
@@ -64,7 +64,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
64
64
|
modelValue: _ctx.internalValue,
|
|
65
65
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => _ctx.internalValue = $event),
|
|
66
66
|
onInput: _cache[1] || (_cache[1] = ($event) => _ctx.onUpdateValue($event.target.innerText)),
|
|
67
|
-
placeholder: _ctx.$
|
|
67
|
+
placeholder: _ctx.$st("common.importJson"),
|
|
68
68
|
mode: "text/json",
|
|
69
69
|
style: { height: "400px", "margin-bottom": "16px" },
|
|
70
70
|
extensions: _ctx.extensions
|
package/dist/jsonEditor.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent, ref, inject, computed, onMounted, openBlock, createElementBlock
|
|
1
|
+
import { defineComponent, ref, inject, computed, onMounted, toRaw, openBlock, createElementBlock } from "vue";
|
|
2
2
|
import JSONEditor from "jsoneditor";
|
|
3
3
|
import { _ as _export_sfc } from "./main.js";
|
|
4
4
|
import "element-plus/dist/index.css";
|