@kp-ui/lowcode 1.0.73 → 1.0.75
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/_virtual/virtual_svg-icons-register.js +2 -2
- package/package.json +3 -3
- package/src/components/form-designer/form-widget/container-widget/vf-collapse-widget.vue.js +2 -2
- package/src/components/form-designer/setting-panel/index.vue.js +212 -206
- package/src/components/form-designer/toolbar-panel/index.vue.js +1 -1
- package/src/components/form-designer/toolbar-panel/index.vue2.js +0 -1
- package/src/components/form-render/container-item/vf-collapse-item.vue.js +2 -2
- package/src/components/form-render/dynamic-dialog.vue.js +181 -194
- package/src/components/form-render/dynamic-dialog.vue2.js +4 -0
- package/src/components/form-render/index.vue.js +4 -4
- package/src/components/public/CustomerModal/useCustomerModal.js +4 -2
- package/src/utils/smart-vue-i18n/index.js +2 -0
- package/stats.html +1 -1
- package/styles/style.css +1 -1
- package/types/install.d.ts +0 -3
- package/types/install.d.ts.map +1 -1
- package/types/src/env.d.ts +7 -6
- package/types/src/utils/smart-vue-i18n/index.d.ts.map +1 -1
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
if (typeof window !== "undefined") {
|
|
2
2
|
let loadSvg = function() {
|
|
3
3
|
var body = document.body;
|
|
4
|
-
var svgDom = document.getElementById("
|
|
4
|
+
var svgDom = document.getElementById("__svg__icons__dom__1750137558812__");
|
|
5
5
|
if (!svgDom) {
|
|
6
6
|
svgDom = document.createElementNS("http://www.w3.org/2000/svg", "svg");
|
|
7
7
|
svgDom.style.position = "absolute";
|
|
8
8
|
svgDom.style.width = "0";
|
|
9
9
|
svgDom.style.height = "0";
|
|
10
|
-
svgDom.id = "
|
|
10
|
+
svgDom.id = "__svg__icons__dom__1750137558812__";
|
|
11
11
|
svgDom.setAttribute("xmlns", "http://www.w3.org/2000/svg");
|
|
12
12
|
svgDom.setAttribute("xmlns:link", "http://www.w3.org/1999/xlink");
|
|
13
13
|
}
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kp-ui/lowcode",
|
|
3
|
-
"version": "1.0.
|
|
4
|
-
"sideEffects": false,
|
|
3
|
+
"version": "1.0.75",
|
|
5
4
|
"publishConfig": {
|
|
6
5
|
"access": "public"
|
|
7
6
|
},
|
|
8
7
|
"main": "index.js",
|
|
9
8
|
"module": "index.js",
|
|
10
|
-
"types": "types/install.d.ts",
|
|
9
|
+
"types": "types/install.d.d.ts",
|
|
10
|
+
"sideEffects": false,
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"@element-plus/icons-vue": "^0.2.4",
|
|
13
13
|
"@kp-ui/tool": "1.0.27",
|
|
@@ -39,7 +39,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
39
39
|
]),
|
|
40
40
|
_: 1
|
|
41
41
|
}),
|
|
42
|
-
|
|
42
|
+
!$props.widget.options.isCollapse ? (openBlock(), createElementBlock("div", {
|
|
43
43
|
key: 0,
|
|
44
44
|
class: normalizeClass(["header-right", $options.rightSlotCss])
|
|
45
45
|
}, [
|
|
@@ -137,7 +137,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
137
137
|
_: 1
|
|
138
138
|
}, 8, ["designer", "widget", "parent-widget", "parent-list", "index-of-parent-list"]);
|
|
139
139
|
}
|
|
140
|
-
const vfCollapseWidget = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-
|
|
140
|
+
const vfCollapseWidget = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-9faab9b5"]]);
|
|
141
141
|
export {
|
|
142
142
|
vfCollapseWidget as default
|
|
143
143
|
};
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { resolveComponent, createBlock, openBlock, withCtx, createVNode, createCommentVNode, createElementVNode, normalizeStyle, withModifiers, createElementBlock, Fragment, renderList, resolveDynamicComponent } from "vue";
|
|
2
1
|
import CodeEditor from "../../code-editor/index.vue.js";
|
|
3
2
|
import comps from "./property-editor/index.js";
|
|
4
3
|
import FormSetting from "./form-setting.vue.js";
|
|
@@ -8,6 +7,7 @@ import { addWindowResizeHandler } from "../../../utils/util.js";
|
|
|
8
7
|
import i18n from "../../../utils/i18n.js";
|
|
9
8
|
import emitter from "../../../utils/emitter.js";
|
|
10
9
|
import _sfc_main$1 from "../../code-editor/code-modal-editor.vue.js";
|
|
10
|
+
import { resolveComponent, createBlock, openBlock, withCtx, createVNode, createCommentVNode, createElementVNode, normalizeStyle, withModifiers, createElementBlock, Fragment, renderList, resolveDynamicComponent } from "vue";
|
|
11
11
|
/* empty css */
|
|
12
12
|
/* empty css */
|
|
13
13
|
import _export_sfc from "../../../../_virtual/_plugin-vue_export-helper.js";
|
|
@@ -206,239 +206,245 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
206
206
|
const _component_a_tabs = resolveComponent("a-tabs");
|
|
207
207
|
const _component_CodeModalEditor = resolveComponent("CodeModalEditor");
|
|
208
208
|
const _component_a_layout = resolveComponent("a-layout");
|
|
209
|
-
|
|
209
|
+
const _component_a_config_provider = resolveComponent("a-config-provider");
|
|
210
|
+
return openBlock(), createBlock(_component_a_config_provider, { componentSize: "small" }, {
|
|
210
211
|
default: withCtx(() => [
|
|
211
|
-
createVNode(
|
|
212
|
-
activeKey: $data.activeTab,
|
|
213
|
-
"onUpdate:activeKey": _cache[6] || (_cache[6] = ($event) => $data.activeTab = $event),
|
|
214
|
-
style: { "height": "100%", "width": "100%", "overflow": "hidden" }
|
|
215
|
-
}, {
|
|
212
|
+
createVNode(_component_a_layout, { class: "panel-container" }, {
|
|
216
213
|
default: withCtx(() => [
|
|
217
|
-
createVNode(
|
|
218
|
-
|
|
219
|
-
|
|
214
|
+
createVNode(_component_a_tabs, {
|
|
215
|
+
activeKey: $data.activeTab,
|
|
216
|
+
"onUpdate:activeKey": _cache[6] || (_cache[6] = ($event) => $data.activeTab = $event),
|
|
217
|
+
style: { "height": "100%", "width": "100%", "overflow": "hidden" }
|
|
220
218
|
}, {
|
|
221
219
|
default: withCtx(() => [
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
},
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
"
|
|
239
|
-
class: "setting-collapse"
|
|
220
|
+
createVNode(_component_a_tab_pane, {
|
|
221
|
+
tab: _ctx.i18nt("designer.hint.widgetSetting"),
|
|
222
|
+
key: "1"
|
|
223
|
+
}, {
|
|
224
|
+
default: withCtx(() => [
|
|
225
|
+
createElementVNode("div", {
|
|
226
|
+
class: "setting-scrollbar",
|
|
227
|
+
style: normalizeStyle({ height: $data.scrollerHeight })
|
|
228
|
+
}, [
|
|
229
|
+
!!$props.designer.selectedWidget && !$props.designer.selectedWidget.category ? (openBlock(), createBlock(_component_a_form, {
|
|
230
|
+
key: 0,
|
|
231
|
+
model: $options.optionModel,
|
|
232
|
+
labelAlign: "left",
|
|
233
|
+
"label-width": "120px",
|
|
234
|
+
class: "setting-form tpf-form",
|
|
235
|
+
onSubmit: _cache[2] || (_cache[2] = withModifiers(() => {
|
|
236
|
+
}, ["prevent"]))
|
|
240
237
|
}, {
|
|
241
238
|
default: withCtx(() => [
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
239
|
+
createVNode(_component_a_collapse, {
|
|
240
|
+
activeKey: $data.widgetActiveCollapseNames,
|
|
241
|
+
"onUpdate:activeKey": _cache[1] || (_cache[1] = ($event) => $data.widgetActiveCollapseNames = $event),
|
|
242
|
+
class: "setting-collapse"
|
|
245
243
|
}, {
|
|
246
244
|
default: withCtx(() => [
|
|
247
|
-
(
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
245
|
+
$options.showCollapse($data.commonProps) ? (openBlock(), createBlock(_component_a_collapse_panel, {
|
|
246
|
+
key: "1",
|
|
247
|
+
header: _ctx.i18nt("designer.setting.常见属性")
|
|
248
|
+
}, {
|
|
249
|
+
default: withCtx(() => [
|
|
250
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList($data.commonProps, (editorName, propName) => {
|
|
251
|
+
return openBlock(), createElementBlock(Fragment, null, [
|
|
252
|
+
$options.hasPropEditor(propName, editorName) ? (openBlock(), createBlock(resolveDynamicComponent($options.getPropEditor(propName, editorName)), {
|
|
253
|
+
key: propName,
|
|
254
|
+
designer: $props.designer,
|
|
255
|
+
"selected-widget": $props.selectedWidget,
|
|
256
|
+
"option-model": $options.optionModel,
|
|
257
|
+
"onUpdate:optionModel": _cache[0] || (_cache[0] = ($event) => $options.optionModel = $event)
|
|
258
|
+
}, null, 40, ["designer", "selected-widget", "option-model"])) : createCommentVNode("", true)
|
|
259
|
+
], 64);
|
|
260
|
+
}), 256))
|
|
261
|
+
]),
|
|
262
|
+
_: 1
|
|
263
|
+
}, 8, ["header"])) : createCommentVNode("", true),
|
|
264
|
+
$options.showCollapse($data.advProps) ? (openBlock(), createBlock(_component_a_collapse_panel, {
|
|
265
|
+
key: "2",
|
|
266
|
+
header: _ctx.i18nt("designer.setting.高级属性")
|
|
267
|
+
}, {
|
|
268
|
+
default: withCtx(() => [
|
|
269
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList($data.advProps, (editorName, propName) => {
|
|
270
|
+
return openBlock(), createElementBlock(Fragment, null, [
|
|
271
|
+
$options.hasPropEditor(propName, editorName) ? (openBlock(), createBlock(resolveDynamicComponent($options.getPropEditor(propName, editorName)), {
|
|
272
|
+
key: propName,
|
|
273
|
+
designer: $props.designer,
|
|
274
|
+
"selected-widget": $props.selectedWidget,
|
|
275
|
+
"option-model": $options.optionModel
|
|
276
|
+
}, null, 8, ["designer", "selected-widget", "option-model"])) : createCommentVNode("", true)
|
|
277
|
+
], 64);
|
|
278
|
+
}), 256))
|
|
279
|
+
]),
|
|
280
|
+
_: 1
|
|
281
|
+
}, 8, ["header"])) : createCommentVNode("", true),
|
|
282
|
+
$options.showEventCollapse() && $options.showCollapse($data.eventProps) ? (openBlock(), createBlock(_component_a_collapse_panel, {
|
|
283
|
+
key: "3",
|
|
284
|
+
class: "eventPanel",
|
|
285
|
+
header: _ctx.i18nt("designer.setting.事件属性")
|
|
286
|
+
}, {
|
|
287
|
+
default: withCtx(() => [
|
|
288
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList($data.eventProps, (editorName, propName) => {
|
|
289
|
+
return openBlock(), createElementBlock(Fragment, null, [
|
|
290
|
+
$options.hasPropEditor(propName, editorName) ? (openBlock(), createBlock(resolveDynamicComponent($options.getPropEditor(propName, editorName)), {
|
|
291
|
+
key: propName,
|
|
292
|
+
designer: $props.designer,
|
|
293
|
+
"selected-widget": $props.selectedWidget,
|
|
294
|
+
"option-model": $options.optionModel,
|
|
295
|
+
"event-handled": $options.getEventHandled(propName)
|
|
296
|
+
}, null, 8, ["designer", "selected-widget", "option-model", "event-handled"])) : createCommentVNode("", true)
|
|
297
|
+
], 64);
|
|
298
|
+
}), 256))
|
|
299
|
+
]),
|
|
300
|
+
_: 1
|
|
301
|
+
}, 8, ["header"])) : createCommentVNode("", true)
|
|
258
302
|
]),
|
|
259
303
|
_: 1
|
|
260
|
-
}, 8, ["
|
|
261
|
-
$options.showCollapse($data.advProps) ? (openBlock(), createBlock(_component_a_collapse_panel, {
|
|
262
|
-
key: "2",
|
|
263
|
-
header: _ctx.i18nt("designer.setting.高级属性")
|
|
264
|
-
}, {
|
|
265
|
-
default: withCtx(() => [
|
|
266
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList($data.advProps, (editorName, propName) => {
|
|
267
|
-
return openBlock(), createElementBlock(Fragment, null, [
|
|
268
|
-
$options.hasPropEditor(propName, editorName) ? (openBlock(), createBlock(resolveDynamicComponent($options.getPropEditor(propName, editorName)), {
|
|
269
|
-
key: propName,
|
|
270
|
-
designer: $props.designer,
|
|
271
|
-
"selected-widget": $props.selectedWidget,
|
|
272
|
-
"option-model": $options.optionModel
|
|
273
|
-
}, null, 8, ["designer", "selected-widget", "option-model"])) : createCommentVNode("", true)
|
|
274
|
-
], 64);
|
|
275
|
-
}), 256))
|
|
276
|
-
]),
|
|
277
|
-
_: 1
|
|
278
|
-
}, 8, ["header"])) : createCommentVNode("", true),
|
|
279
|
-
$options.showEventCollapse() && $options.showCollapse($data.eventProps) ? (openBlock(), createBlock(_component_a_collapse_panel, {
|
|
280
|
-
key: "3",
|
|
281
|
-
class: "eventPanel",
|
|
282
|
-
header: _ctx.i18nt("designer.setting.事件属性")
|
|
283
|
-
}, {
|
|
284
|
-
default: withCtx(() => [
|
|
285
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList($data.eventProps, (editorName, propName) => {
|
|
286
|
-
return openBlock(), createElementBlock(Fragment, null, [
|
|
287
|
-
$options.hasPropEditor(propName, editorName) ? (openBlock(), createBlock(resolveDynamicComponent($options.getPropEditor(propName, editorName)), {
|
|
288
|
-
key: propName,
|
|
289
|
-
designer: $props.designer,
|
|
290
|
-
"selected-widget": $props.selectedWidget,
|
|
291
|
-
"option-model": $options.optionModel,
|
|
292
|
-
"event-handled": $options.getEventHandled(propName)
|
|
293
|
-
}, null, 8, ["designer", "selected-widget", "option-model", "event-handled"])) : createCommentVNode("", true)
|
|
294
|
-
], 64);
|
|
295
|
-
}), 256))
|
|
296
|
-
]),
|
|
297
|
-
_: 1
|
|
298
|
-
}, 8, ["header"])) : createCommentVNode("", true)
|
|
304
|
+
}, 8, ["activeKey"])
|
|
299
305
|
]),
|
|
300
306
|
_: 1
|
|
301
|
-
}, 8, ["
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
class: "setting-form tpf-form",
|
|
311
|
-
onSubmit: _cache[5] || (_cache[5] = withModifiers(() => {
|
|
312
|
-
}, ["prevent"]))
|
|
313
|
-
}, {
|
|
314
|
-
default: withCtx(() => [
|
|
315
|
-
createVNode(_component_a_collapse, {
|
|
316
|
-
activeKey: $data.widgetActiveCollapseNames,
|
|
317
|
-
"onUpdate:activeKey": _cache[4] || (_cache[4] = ($event) => $data.widgetActiveCollapseNames = $event),
|
|
318
|
-
class: "setting-collapse"
|
|
307
|
+
}, 8, ["model"])) : createCommentVNode("", true),
|
|
308
|
+
!!$props.designer.selectedWidget && !!$props.designer.selectedWidget.category ? (openBlock(), createBlock(_component_a_form, {
|
|
309
|
+
key: 1,
|
|
310
|
+
model: $options.optionModel,
|
|
311
|
+
labelAlign: "left",
|
|
312
|
+
"label-width": "120px",
|
|
313
|
+
class: "setting-form tpf-form",
|
|
314
|
+
onSubmit: _cache[5] || (_cache[5] = withModifiers(() => {
|
|
315
|
+
}, ["prevent"]))
|
|
319
316
|
}, {
|
|
320
317
|
default: withCtx(() => [
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
default: withCtx(() => [
|
|
326
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList($data.commonProps, (editorName, propName) => {
|
|
327
|
-
return openBlock(), createElementBlock(Fragment, null, [
|
|
328
|
-
$options.hasPropEditor(propName, editorName) ? (openBlock(), createBlock(resolveDynamicComponent($options.getPropEditor(propName, editorName)), {
|
|
329
|
-
key: propName,
|
|
330
|
-
designer: $props.designer,
|
|
331
|
-
"selected-widget": $props.selectedWidget,
|
|
332
|
-
"option-model": $options.optionModel,
|
|
333
|
-
"onUpdate:optionModel": _cache[3] || (_cache[3] = ($event) => $options.optionModel = $event)
|
|
334
|
-
}, null, 40, ["designer", "selected-widget", "option-model"])) : createCommentVNode("", true)
|
|
335
|
-
], 64);
|
|
336
|
-
}), 256))
|
|
337
|
-
]),
|
|
338
|
-
_: 1
|
|
339
|
-
}, 8, ["header"])) : createCommentVNode("", true),
|
|
340
|
-
$options.showCollapse($data.advProps) ? (openBlock(), createBlock(_component_a_collapse_panel, {
|
|
341
|
-
key: "2",
|
|
342
|
-
header: _ctx.i18nt("designer.setting.高级属性")
|
|
318
|
+
createVNode(_component_a_collapse, {
|
|
319
|
+
activeKey: $data.widgetActiveCollapseNames,
|
|
320
|
+
"onUpdate:activeKey": _cache[4] || (_cache[4] = ($event) => $data.widgetActiveCollapseNames = $event),
|
|
321
|
+
class: "setting-collapse"
|
|
343
322
|
}, {
|
|
344
323
|
default: withCtx(() => [
|
|
345
|
-
(
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
324
|
+
$options.showCollapse($data.commonProps) ? (openBlock(), createBlock(_component_a_collapse_panel, {
|
|
325
|
+
key: "1",
|
|
326
|
+
header: _ctx.i18nt("designer.setting.常见属性")
|
|
327
|
+
}, {
|
|
328
|
+
default: withCtx(() => [
|
|
329
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList($data.commonProps, (editorName, propName) => {
|
|
330
|
+
return openBlock(), createElementBlock(Fragment, null, [
|
|
331
|
+
$options.hasPropEditor(propName, editorName) ? (openBlock(), createBlock(resolveDynamicComponent($options.getPropEditor(propName, editorName)), {
|
|
332
|
+
key: propName,
|
|
333
|
+
designer: $props.designer,
|
|
334
|
+
"selected-widget": $props.selectedWidget,
|
|
335
|
+
"option-model": $options.optionModel,
|
|
336
|
+
"onUpdate:optionModel": _cache[3] || (_cache[3] = ($event) => $options.optionModel = $event)
|
|
337
|
+
}, null, 40, ["designer", "selected-widget", "option-model"])) : createCommentVNode("", true)
|
|
338
|
+
], 64);
|
|
339
|
+
}), 256))
|
|
340
|
+
]),
|
|
341
|
+
_: 1
|
|
342
|
+
}, 8, ["header"])) : createCommentVNode("", true),
|
|
343
|
+
$options.showCollapse($data.advProps) ? (openBlock(), createBlock(_component_a_collapse_panel, {
|
|
344
|
+
key: "2",
|
|
345
|
+
header: _ctx.i18nt("designer.setting.高级属性")
|
|
346
|
+
}, {
|
|
347
|
+
default: withCtx(() => [
|
|
348
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList($data.advProps, (editorName, propName) => {
|
|
349
|
+
return openBlock(), createElementBlock(Fragment, null, [
|
|
350
|
+
$options.hasPropEditor(propName, editorName) ? (openBlock(), createBlock(resolveDynamicComponent($options.getPropEditor(propName, editorName)), {
|
|
351
|
+
key: propName,
|
|
352
|
+
designer: $props.designer,
|
|
353
|
+
"selected-widget": $props.selectedWidget,
|
|
354
|
+
"option-model": $options.optionModel
|
|
355
|
+
}, null, 8, ["designer", "selected-widget", "option-model"])) : createCommentVNode("", true)
|
|
356
|
+
], 64);
|
|
357
|
+
}), 256))
|
|
358
|
+
]),
|
|
359
|
+
_: 1
|
|
360
|
+
}, 8, ["header"])) : createCommentVNode("", true),
|
|
361
|
+
$options.showEventCollapse() && $options.showCollapse($data.eventProps) ? (openBlock(), createBlock(_component_a_collapse_panel, {
|
|
362
|
+
key: "3",
|
|
363
|
+
class: "eventPanel",
|
|
364
|
+
header: _ctx.i18nt("designer.setting.事件属性")
|
|
365
|
+
}, {
|
|
366
|
+
default: withCtx(() => [
|
|
367
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList($data.eventProps, (editorName, propName) => {
|
|
368
|
+
return openBlock(), createElementBlock(Fragment, null, [
|
|
369
|
+
$options.hasPropEditor(propName, editorName) ? (openBlock(), createBlock(resolveDynamicComponent($options.getPropEditor(propName, editorName)), {
|
|
370
|
+
key: propName,
|
|
371
|
+
designer: $props.designer,
|
|
372
|
+
"selected-widget": $props.selectedWidget,
|
|
373
|
+
"option-model": $options.optionModel,
|
|
374
|
+
"event-handled": $options.getEventHandled(propName)
|
|
375
|
+
}, null, 8, ["designer", "selected-widget", "option-model", "event-handled"])) : createCommentVNode("", true)
|
|
376
|
+
], 64);
|
|
377
|
+
}), 256))
|
|
378
|
+
]),
|
|
379
|
+
_: 1
|
|
380
|
+
}, 8, ["header"])) : createCommentVNode("", true)
|
|
355
381
|
]),
|
|
356
382
|
_: 1
|
|
357
|
-
}, 8, ["
|
|
358
|
-
$options.showEventCollapse() && $options.showCollapse($data.eventProps) ? (openBlock(), createBlock(_component_a_collapse_panel, {
|
|
359
|
-
key: "3",
|
|
360
|
-
class: "eventPanel",
|
|
361
|
-
header: _ctx.i18nt("designer.setting.事件属性")
|
|
362
|
-
}, {
|
|
363
|
-
default: withCtx(() => [
|
|
364
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList($data.eventProps, (editorName, propName) => {
|
|
365
|
-
return openBlock(), createElementBlock(Fragment, null, [
|
|
366
|
-
$options.hasPropEditor(propName, editorName) ? (openBlock(), createBlock(resolveDynamicComponent($options.getPropEditor(propName, editorName)), {
|
|
367
|
-
key: propName,
|
|
368
|
-
designer: $props.designer,
|
|
369
|
-
"selected-widget": $props.selectedWidget,
|
|
370
|
-
"option-model": $options.optionModel,
|
|
371
|
-
"event-handled": $options.getEventHandled(propName)
|
|
372
|
-
}, null, 8, ["designer", "selected-widget", "option-model", "event-handled"])) : createCommentVNode("", true)
|
|
373
|
-
], 64);
|
|
374
|
-
}), 256))
|
|
375
|
-
]),
|
|
376
|
-
_: 1
|
|
377
|
-
}, 8, ["header"])) : createCommentVNode("", true)
|
|
383
|
+
}, 8, ["activeKey"])
|
|
378
384
|
]),
|
|
379
385
|
_: 1
|
|
380
|
-
}, 8, ["
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
],
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
386
|
+
}, 8, ["model"])) : createCommentVNode("", true),
|
|
387
|
+
!$props.designer.selectedWidget ? (openBlock(), createBlock(_component_a_empty, {
|
|
388
|
+
key: 2,
|
|
389
|
+
description: _ctx.i18nt("designer.hint.noSelectedWidgetHint")
|
|
390
|
+
}, null, 8, ["description"])) : createCommentVNode("", true)
|
|
391
|
+
], 4)
|
|
392
|
+
]),
|
|
393
|
+
_: 1
|
|
394
|
+
}, 8, ["tab"]),
|
|
395
|
+
!!$props.designer ? (openBlock(), createBlock(_component_a_tab_pane, {
|
|
396
|
+
tab: _ctx.i18nt("designer.hint.表单设置"),
|
|
397
|
+
key: "2"
|
|
398
|
+
}, {
|
|
399
|
+
default: withCtx(() => [
|
|
400
|
+
createElementVNode("div", {
|
|
401
|
+
class: "setting-scrollbar",
|
|
402
|
+
style: normalizeStyle({ height: $data.scrollerHeight })
|
|
403
|
+
}, [
|
|
404
|
+
createVNode(_component_form_setting, {
|
|
405
|
+
designer: $props.designer,
|
|
406
|
+
"form-config": $props.formConfig
|
|
407
|
+
}, null, 8, ["designer", "form-config"])
|
|
408
|
+
], 4)
|
|
409
|
+
]),
|
|
410
|
+
_: 1
|
|
411
|
+
}, 8, ["tab"])) : createCommentVNode("", true),
|
|
412
|
+
createVNode(_component_a_tab_pane, {
|
|
413
|
+
tab: "表单api配置",
|
|
414
|
+
key: "3"
|
|
415
|
+
}, {
|
|
416
|
+
default: withCtx(() => [
|
|
417
|
+
createElementVNode("div", {
|
|
418
|
+
class: "ds-setting-scrollbar",
|
|
419
|
+
style: normalizeStyle({ height: $data.scrollerHeight })
|
|
420
|
+
}, [
|
|
421
|
+
createVNode(_component_FormCrudSetting, {
|
|
422
|
+
designer: $props.designer,
|
|
423
|
+
"form-config": $props.formConfig
|
|
424
|
+
}, null, 8, ["designer", "form-config"])
|
|
425
|
+
], 4)
|
|
426
|
+
]),
|
|
427
|
+
_: 1
|
|
428
|
+
})
|
|
423
429
|
]),
|
|
424
430
|
_: 1
|
|
425
|
-
})
|
|
431
|
+
}, 8, ["activeKey"]),
|
|
432
|
+
createVNode(_component_CodeModalEditor, {
|
|
433
|
+
eventHeader: $data.eventHeader,
|
|
434
|
+
ref: "CodeModalEditorRef",
|
|
435
|
+
title: _ctx.i18nt("designer.setting.editWidgetEventHandler"),
|
|
436
|
+
mode: "json",
|
|
437
|
+
readonly: false,
|
|
438
|
+
onSave: $options.saveEventHandler
|
|
439
|
+
}, null, 8, ["eventHeader", "title", "onSave"])
|
|
426
440
|
]),
|
|
427
441
|
_: 1
|
|
428
|
-
}
|
|
429
|
-
createVNode(_component_CodeModalEditor, {
|
|
430
|
-
eventHeader: $data.eventHeader,
|
|
431
|
-
ref: "CodeModalEditorRef",
|
|
432
|
-
title: _ctx.i18nt("designer.setting.editWidgetEventHandler"),
|
|
433
|
-
mode: "json",
|
|
434
|
-
readonly: false,
|
|
435
|
-
onSave: $options.saveEventHandler
|
|
436
|
-
}, null, 8, ["eventHeader", "title", "onSave"])
|
|
442
|
+
})
|
|
437
443
|
]),
|
|
438
444
|
_: 1
|
|
439
445
|
});
|
|
440
446
|
}
|
|
441
|
-
const SettingPanel = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-
|
|
447
|
+
const SettingPanel = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-2031a37b"]]);
|
|
442
448
|
export {
|
|
443
449
|
SettingPanel as default
|
|
444
450
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _sfc_main from "./index.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import _export_sfc from "../../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const ToolbarPanel = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
4
|
+
const ToolbarPanel = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-3264b11e"]]);
|
|
5
5
|
export {
|
|
6
6
|
ToolbarPanel as default
|
|
7
7
|
};
|
|
@@ -155,7 +155,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
155
155
|
]),
|
|
156
156
|
_: 1
|
|
157
157
|
}),
|
|
158
|
-
|
|
158
|
+
!$props.widget.options.isCollapse ? (openBlock(), createElementBlock("div", {
|
|
159
159
|
key: 0,
|
|
160
160
|
class: normalizeClass(["header-right", $options.rightSlotCss])
|
|
161
161
|
}, [
|
|
@@ -269,7 +269,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
269
269
|
[vShow, !$props.widget.options.hidden]
|
|
270
270
|
]);
|
|
271
271
|
}
|
|
272
|
-
const vfCollapseItem = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-
|
|
272
|
+
const vfCollapseItem = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-43b60d66"]]);
|
|
273
273
|
export {
|
|
274
274
|
vfCollapseItem as default
|
|
275
275
|
};
|