super-page-designer 2.3.3-design1 → 2.3.3-sit1-design1
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/es/components/design/utils/page-event-util.js +0 -1
- package/dist/es/components/design/utils/page-i18n-util.js +5 -6
- package/dist/es/components/design/utils/page-table-util.js +2 -2
- package/dist/es/components/design/views/assemblys/button/button/button-attr-advanced.vue.js +16 -16
- package/dist/es/components/design/views/assemblys/button/button/button-attr-base.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/button/component/set-dialog.vue.js +12 -13
- package/dist/es/components/design/views/assemblys/button/export-pdf/exportpdf-attr-base.vue.js +4 -4
- package/dist/es/components/design/views/assemblys/chart/column-line/series/column-line-series-attr-base.vue.js +4 -5
- package/dist/es/components/design/views/assemblys/chart/statistical-table/statisticalTable-design.vue2.js +17 -17
- package/dist/es/components/design/views/assemblys/common/common-icon-bind.vue2.js +0 -3
- package/dist/es/components/design/views/assemblys/common/common-style-background.vue.js +2 -3
- package/dist/es/components/design/views/assemblys/common/common-variable-bind.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/common/{common-variable-bind.vue3.js → common-variable-bind.vue2.js} +13 -13
- package/dist/es/components/design/views/assemblys/common/page-permission-select.vue.js +4 -4
- package/dist/es/components/design/views/assemblys/container/tabs/tabs-attr.vue2.js +2 -3
- package/dist/es/components/design/views/assemblys/container/tools/tools-design.vue2.js +22 -22
- package/dist/es/components/design/views/assemblys/data/bar-code/barcode-design.vue2.js +3 -3
- package/dist/es/components/design/views/assemblys/data/component/composite-header.vue2.js +1 -1
- package/dist/es/components/design/views/assemblys/data/component/dynamic-column.vue.js +10 -10
- package/dist/es/components/design/views/assemblys/data/component/import-header.vue.js +2 -2
- package/dist/es/components/design/views/assemblys/data/table/table-design.vue2.js +8 -8
- package/dist/es/components/design/views/assemblys/data/tree/tree-attr-base.vue.js +4 -4
- package/dist/es/components/design/views/assemblys/data/tree/tree-design.vue2.js +3 -3
- package/dist/es/components/design/views/assemblys/form/common/icon-set-dialog.vue2.js +1 -1
- package/dist/es/components/design/views/assemblys/form/file-upload/fileupload-attr-base.vue.js +6 -6
- package/dist/es/components/design/views/assemblys/form/file-upload/fileupload-design.vue2.js +16 -16
- package/dist/es/components/design/views/assemblys/form/label/label-design.vue2.js +11 -11
- package/dist/es/components/design/views/assemblys/form/rich-text/richtext-design.vue2.js +13 -14
- package/dist/es/components/design/views/assemblys/page/component/setting-form-rule-base-input.vue.js +2 -2
- package/dist/es/components/design/views/assemblys/page/page-attr-advanced.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/workflow/picture-flow/pictureflow-design.vue2.js +1 -1
- package/dist/es/components/design/views/assemblys/workflow/workflow-node/workflownode-design.vue2.js +3 -3
- package/dist/es/components/design/views/design/page-design.vue2.js +1 -1
- package/dist/es/components/design/views/design/page-event/config.vue3.js +17 -18
- package/dist/es/components/design/views/design/view/components/quick-add-dialog.vue.js +0 -1
- package/dist/es/components/design/views/design/view/page-switch.vue2.js +2 -3
- package/dist/es/stores/undo-redo-store.js +1 -1
- package/package.json +4 -4
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as e, ref as l, resolveComponent as a, createBlock as o, openBlock as t, withCtx as u, createVNode as r, createElementVNode as n, createCommentVNode as s, createElementBlock as i, Fragment as m, renderList as p, unref as d, createTextVNode as c } from "vue";
|
|
2
2
|
import { getFormComponentOptions as f } from "../../../../utils/assemblys-config.js";
|
|
3
|
-
import
|
|
4
|
-
import
|
|
3
|
+
import b from "../component/data-origin-tree.vue.js";
|
|
4
|
+
import g from "../../form/common/data-linkage.vue.js";
|
|
5
5
|
import y from "../../common/common-attr-size.vue.js";
|
|
6
6
|
import V from "../../common/common-variable-bind.vue.js";
|
|
7
7
|
import _ from "../../common/common-icon-bind.vue.js";
|
|
@@ -28,11 +28,11 @@ const N = { style: { padding: "8px 0px 0px 0px" } }, T = { style: { padding: "8p
|
|
|
28
28
|
}).catch((e4) => {
|
|
29
29
|
});
|
|
30
30
|
}
|
|
31
|
-
return
|
|
31
|
+
return null == H2.configure.props.base.showCheckbox && (H2.configure.props.base.showCheckbox = "no"), null == H2.configure.props.base.defaultExpandAll && (H2.configure.props.base.defaultExpandAll = false), null == H2.configure.props.base.expandOnClickNode && (H2.configure.props.base.expandOnClickNode = true), null == H2.configure.props.base.accordion && (H2.configure.props.base.accordion = false), null == H2.configure.props.base.lazy && (H2.configure.props.base.lazy = false), H2.configure.props.format || (H2.configure.props.format = {}), (l2, U2) => {
|
|
32
32
|
const E = a("el-option"), I = a("el-select"), L = a("el-form-item"), q = a("el-input"), F = a("el-switch"), G = a("el-radio"), $ = a("el-radio-group"), M = a("el-button"), B = a("el-col"), J = a("el-icon"), K = a("el-tooltip"), Q = a("el-collapse-item"), R = a("Suffixmodule"), W = a("IconSetDialog"), X = a("el-input-number"), Y = a("VariateSelect"), Z = a("el-checkbox"), ee = a("el-collapse"), le = a("el-form");
|
|
33
33
|
return t(), o(le, { "label-width": "80px", size: "small" }, { default: u(() => [r(ee, { modelValue: w.value, "onUpdate:modelValue": U2[38] || (U2[38] = (e3) => w.value = e3), style: { "margin-top": "6px" } }, { default: u(() => [r(Q, { title: "基本", name: "base", class: "amb-design-attr-group-header" }, { default: u(() => [n("div", N, [r(L, { label: "组件类型", class: "amb-design-attr-item" }, { default: u(() => [r(I, { modelValue: e2.configure.name, "onUpdate:modelValue": U2[0] || (U2[0] = (l3) => e2.configure.name = l3), disabled: "", placeholder: "请选择" }, { default: u(() => [(t(true), i(m, null, p(d(f)(), (e3) => (t(), o(E, { key: e3.name, label: e3.label, value: e3.name }, null, 8, ["label", "value"]))), 128))]), _: 1 }, 8, ["modelValue"])]), _: 1 }), r(L, { label: "唯一编码", class: "amb-design-attr-item" }, { default: u(() => [r(q, { modelValue: e2.configure.uuid, "onUpdate:modelValue": U2[1] || (U2[1] = (l3) => e2.configure.uuid = l3), readonly: "", title: e2.configure.uuid }, null, 8, ["modelValue", "title"])]), _: 1 }), r(L, { label: "绑定变量", class: "amb-design-attr-item" }, { default: u(() => [(t(), o(V, { key: e2.configure.uuid, modelValue: e2.configure.props.base.prop, paramTypes: ["data", "page"], "onUpdate:modelValue": j }, null, 8, ["modelValue"]))]), _: 1 }), r(L, { label: "自定义编码", class: "amb-design-attr-item" }, { default: u(() => [r(q, { modelValue: e2.configure.code, "onUpdate:modelValue": U2[2] || (U2[2] = (l3) => e2.configure.code = l3), placeholder: "请输入" }, null, 8, ["modelValue"])]), _: 1 }), r(L, { label: "可选择", class: "amb-design-attr-item" }, { default: u(() => [r(F, { modelValue: e2.configure.props.base.showCheckbox, "onUpdate:modelValue": U2[3] || (U2[3] = (l3) => e2.configure.props.base.showCheckbox = l3), "active-text": "是", "inactive-text": "否" }, null, 8, ["modelValue"])]), _: 1 }), r(L, { label: "默认展开", class: "amb-design-attr-item" }, { default: u(() => [r($, { modelValue: e2.configure.props.base.defaultExpandAll, "onUpdate:modelValue": U2[4] || (U2[4] = (l3) => e2.configure.props.base.defaultExpandAll = l3), class: "ml-4" }, { default: u(() => [r(G, { value: true }, { default: u(() => U2[39] || (U2[39] = [c("是")])), _: 1 }), r(G, { value: false }, { default: u(() => U2[40] || (U2[40] = [c("否")])), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 }), e2.configure.props.base.defaultExpandAll ? (t(), o(L, { key: 0, label: "展开级数", class: "amb-design-attr-item" }, { default: u(() => [r(q, { modelValue: e2.configure.props.base.unfoldGrade, "onUpdate:modelValue": U2[5] || (U2[5] = (l3) => e2.configure.props.base.unfoldGrade = l3) }, null, 8, ["modelValue"])]), _: 1 })) : s("", true), r(L, { label: "节点可点击", title: "点击节点时展开或收缩节点", class: "amb-design-attr-item" }, { default: u(() => [r($, { modelValue: e2.configure.props.base.expandOnClickNode, "onUpdate:modelValue": U2[6] || (U2[6] = (l3) => e2.configure.props.base.expandOnClickNode = l3), class: "ml-4" }, { default: u(() => [r(G, { value: true }, { default: u(() => U2[41] || (U2[41] = [c("是")])), _: 1 }), r(G, { value: false }, { default: u(() => U2[42] || (U2[42] = [c("否")])), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 }), r(L, { label: "手风琴模式", title: "每次只打开一个同级树节点", class: "amb-design-attr-item" }, { default: u(() => [r($, { modelValue: e2.configure.props.base.accordion, "onUpdate:modelValue": U2[7] || (U2[7] = (l3) => e2.configure.props.base.accordion = l3), class: "ml-4" }, { default: u(() => [r(G, { value: true }, { default: u(() => U2[43] || (U2[43] = [c("是")])), _: 1 }), r(G, { value: false }, { default: u(() => U2[44] || (U2[44] = [c("否")])), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 }), r(L, { label: "是否懒加载", class: "amb-design-attr-item" }, { default: u(() => [r($, { modelValue: e2.configure.props.base.lazy, "onUpdate:modelValue": U2[8] || (U2[8] = (l3) => e2.configure.props.base.lazy = l3), class: "ml-4" }, { default: u(() => [r(G, { value: true }, { default: u(() => U2[45] || (U2[45] = [c("是")])), _: 1 }), r(G, { value: false }, { default: u(() => U2[46] || (U2[46] = [c("否")])), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 }), r(L, { label: "是否过滤", class: "amb-design-attr-item" }, { default: u(() => [r($, { modelValue: e2.configure.props.base.filter, "onUpdate:modelValue": U2[9] || (U2[9] = (l3) => e2.configure.props.base.filter = l3), class: "ml-4" }, { default: u(() => [r(G, { value: true }, { default: u(() => U2[47] || (U2[47] = [c("是")])), _: 1 }), r(G, { value: false }, { default: u(() => U2[48] || (U2[48] = [c("否")])), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 }), r(L, { label: "节点图标", class: "amb-design-attr-item" }, { default: u(() => [r(_, { iconType: e2.configure.props.base.iconType, iconValue: e2.configure.props.base.icon, "onUpdate:modelValue": U2[10] || (U2[10] = (e3, l3) => function(e4, l4) {
|
|
34
34
|
H2.configure.props.base.iconType = e4, H2.configure.props.base.iconValue = l4;
|
|
35
|
-
}(e3, l3)) }, null, 8, ["iconType", "iconValue"])]), _: 1 }), r(L, { label: "节点内容", class: "amb-design-attr-item" }, { default: u(() => [r(I, { modelValue: e2.configure.props.format.contentLogic, "onUpdate:modelValue": U2[11] || (U2[11] = (l3) => e2.configure.props.format.contentLogic = l3), filterable: "", placeholder: "请选择" }, { default: u(() => [(t(true), i(m, null, p(e2.pageDesign.customEvents, (e3) => (t(), o(E, { label: e3.eventName, value: e3.uuid }, null, 8, ["label", "value"]))), 256))]), _: 1 }, 8, ["modelValue"])]), _: 1 }), r(L, { label: "状态", class: "amb-design-attr-item" }, { default: u(() => [r($, { modelValue: e2.configure.props.base.state, "onUpdate:modelValue": U2[12] || (U2[12] = (l3) => e2.configure.props.base.state = l3), class: "ml-4" }, { default: u(() => [r(G, { value: "default" }, { default: u(() => U2[49] || (U2[49] = [c("普通")])), _: 1 }), r(G, { value: "hidden" }, { default: u(() => U2[50] || (U2[50] = [c("隐藏")])), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 }), r(L, { label: "对应数据表", class: "amb-design-attr-item" }, { default: u(() => [r(B, { span: 20 }, { default: u(() => [r(q, { modelValue: e2.configure.props.base.treeTableName, "onUpdate:modelValue": U2[13] || (U2[13] = (l3) => e2.configure.props.base.treeTableName = l3), title: e2.configure.props.base.treeTableName, clearable: "", readonly: "true", onClick: O, placeholder: "请选择数据表" }, { append: u(() => [r(M, { type: "default", icon: d(h), onClick: O, size: "small" }, null, 8, ["icon"]), r(M, { type: "default", icon: d(k), onClick: A, title: "Clear", size: "small" }, null, 8, ["icon"])]), _: 1 }, 8, ["modelValue", "title"])]), _: 1 }), r(K, { class: "box-item", content: "使用右键菜单编辑保存时需要配置" }, { default: u(() => [r(J, null, { default: u(() => [r(d(x))]), _: 1 })]), _: 1 })]), _: 1 }), r(L, { label: "父节点关联属性", class: "amb-design-attr-item" }, { default: u(() => [r(B, { span: 20 }, { default: u(() => [r(I, { modelValue: e2.configure.props.base.treeParentIdProp, "onUpdate:modelValue": U2[14] || (U2[14] = (l3) => e2.configure.props.base.treeParentIdProp = l3), clearable: "", filterable: "", "allow-create": "", placeholder: "请选择" }, { default: u(() => [(t(true), i(m, null, p(z.value, (e3) => (t(), o(E, { key: e3.dbColumnName, label: e3.alias, value: e3.dbColumnName }, null, 8, ["label", "value"]))), 128))]), _: 1 }, 8, ["modelValue"])]), _: 1 }), r(K, { class: "box-item", content: "树节点nodeId对应数据表的父节点属性字段名" }, { default: u(() => [r(J, null, { default: u(() => [r(d(x))]), _: 1 })]), _: 1 })]), _: 1 }), r(L, { label: "标签属性", class: "amb-design-attr-item" }, { default: u(() => [r(B, { span: 20 }, { default: u(() => [r(I, { modelValue: e2.configure.props.base.treeLabelProp, "onUpdate:modelValue": U2[15] || (U2[15] = (l3) => e2.configure.props.base.treeLabelProp = l3), clearable: "", filterable: "", "allow-create": "", placeholder: "请选择" }, { default: u(() => [(t(true), i(m, null, p(z.value, (e3) => (t(), o(E, { key: e3.dbColumnName, label: e3.alias, value: e3.dbColumnName }, null, 8, ["label", "value"]))), 128))]), _: 1 }, 8, ["modelValue"])]), _: 1 }), r(K, { class: "box-item", content: "树节点Label对应数据表的属性字段名" }, { default: u(() => [r(J, null, { default: u(() => [r(d(x))]), _: 1 })]), _: 1 })]), _: 1 })])]), _: 1 }), r(Q, { title: "右键菜单", name: "nodeContextmenu", class: "amb-design-attr-group-header" }, { default: u(() => [r(v, { configure: e2.configure, pageDesign: e2.pageDesign }, null, 8, ["configure", "pageDesign"])]), _: 1 }), (t(), o(g, { key: e2.configure.uuid, configure: e2.configure }, { beanName: u(() => [r(L, { label: "", class: "amb-design-attr-item" }, { default: u(() => [e2.configure.props.dataOrigin ? (t(), o(B, { key: 0, span: 20 }, { default: u(() => [r(q, { modelValue: e2.configure.props.dataOrigin.beanName, "onUpdate:modelValue": U2[16] || (U2[16] = (l3) => e2.configure.props.dataOrigin.beanName = l3), placeholder: "beanName" }, null, 8, ["modelValue"])]), _: 1 })) : s("", true), r(K, { class: "box-item", content: "为空时默认使用页面配置的自定义bean" }, { default: u(() => [r(J, null, { default: u(() => [r(d(x))]), _: 1 })]), _: 1 })]), _: 1 })]), _: 1 }, 8, ["configure"])), r(Q, { title: "格式设置", name: "formatting", class: "amb-design-attr-group-header" }, { default: u(() => [n("div", T, [r(L, { label: "格式化分类", class: "amb-design-attr-item" }, { default: u(() => [r(I, { modelValue: e2.configure.props.format.type, "onUpdate:modelValue": U2[17] || (U2[17] = (l3) => e2.configure.props.format.type = l3), placeholder: "请选择" }, { default: u(() => [r(E, { label: "数值", value: "number" }), r(E, { label: "货币", value: "currency" }), r(E, { label: "日期", value: "date" }), r(E, { label: "时间", value: "time" }), r(E, { label: "百分比", value: "percent" }), r(E, { label: "自定义控件", value: "customControl" }), r(E, { label: "超链接", value: "hyperlinks" }), r(E, { label: "图标/标签", value: "icon" }), r(E, { label: "附件控件", value: "files" }), r(E, { label: "富文本", value: "richEditor" }), r(E, { label: "脱敏组件", value: "secretInfo" }), r(E, { label: "自定义方法", value: "custom" })]), _: 1 }, 8, ["modelValue"])]), _: 1 }), "number" === e2.configure.props.format.type || "currency" === e2.configure.props.format.type || "percent" === e2.configure.props.format.type ? (t(), o(L, { key: 0, label: "小数位数", class: "amb-design-attr-item" }, { default: u(() => [r(q, { modelValue: e2.configure.props.format.decimalDigit, "onUpdate:modelValue": U2[18] || (U2[18] = (l3) => e2.configure.props.format.decimalDigit = l3) }, null, 8, ["modelValue"])]), _: 1 })) : s("", true), "number" === e2.configure.props.format.type ? (t(), o(L, { key: 1, label: "科学计数", class: "amb-design-attr-item" }, { default: u(() => [r(F, { modelValue: e2.configure.props.format.scientific, "onUpdate:modelValue": U2[19] || (U2[19] = (l3) => e2.configure.props.format.scientific = l3), "active-text": "使用", "inactive-text": "不使用" }, null, 8, ["modelValue"])]), _: 1 })) : s("", true), "number" === e2.configure.props.format.type && e2.configure.props.format.scientific ? (t(), o(L, { key: 2, label: "计数位数", class: "amb-design-attr-item" }, { default: u(() => [r(q, { modelValue: e2.configure.props.format.scientificNum, "onUpdate:modelValue": U2[20] || (U2[20] = (l3) => e2.configure.props.format.scientificNum = l3) }, null, 8, ["modelValue"])]), _: 1 })) : s("", true), "number" === e2.configure.props.format.type ? (t(), o(L, { key: 3, label: "千位分隔符", class: "amb-design-attr-item" }, { default: u(() => [r(F, { modelValue: e2.configure.props.format.thousandsSeparator, "onUpdate:modelValue": U2[21] || (U2[21] = (l3) => e2.configure.props.format.thousandsSeparator = l3), "active-text": "使用", "inactive-text": "不使用" }, null, 8, ["modelValue"])]), _: 1 })) : s("", true), "number" === e2.configure.props.format.type ? (t(), o(L, { key: 4, label: "数值符号", class: "amb-design-attr-item" }, { default: u(() => [r(q, { modelValue: e2.configure.props.format.symbol, "onUpdate:modelValue": U2[22] || (U2[22] = (l3) => e2.configure.props.format.symbol = l3) }, null, 8, ["modelValue"])]), _: 1 })) : s("", true), "currency" === e2.configure.props.format.type ? (t(), o(L, { key: 5, label: "货币符号", class: "amb-design-attr-item" }, { default: u(() => [r(I, { modelValue: e2.configure.props.format.currencySymbol, "onUpdate:modelValue": U2[23] || (U2[23] = (l3) => e2.configure.props.format.currencySymbol = l3), placeholder: "Select" }, { default: u(() => [r(E, { label: "$", value: "$" }), r(E, { label: "¥", value: "¥" })]), _: 1 }, 8, ["modelValue"])]), _: 1 })) : s("", true), "date" === e2.configure.props.format.type ? (t(), o(L, { key: 6, label: "日期类型", class: "amb-design-attr-item" }, { default: u(() => [r(I, { modelValue: e2.configure.props.format.dataType, "onUpdate:modelValue": U2[24] || (U2[24] = (l3) => e2.configure.props.format.dataType = l3), placeholder: "Select" }, { default: u(() => [r(E, { label: "yyyy-m-d", value: "yyyy-m-d" }), r(E, { label: "yyyy-m-d hh:mm:ss", value: "yyyy-m-d hh:mm:ss" }), r(E, { label: "yyyy-m", value: "yyyy-m" }), r(E, { label: "m-d", value: "m-d" }), r(E, { label: "yyyy", value: "yyyy" }), r(E, { label: "yyyy年m月d日", value: "yyyy年m月d日" }), r(E, { label: "yyyy年m月d日hh时mm分ss秒", value: "yyyy年m月d日hh时mm分ss秒" }), r(E, { label: "yyyy年m月", value: "yyyy年m月" }), r(E, { label: "m月d日", value: "m月d日" })]), _: 1 }, 8, ["modelValue"])]), _: 1 })) : s("", true), "time" === e2.configure.props.format.type ? (t(), o(L, { key: 7, label: "时间类型", class: "amb-design-attr-item" }, { default: u(() => [r(I, { modelValue: e2.configure.props.format.timeType, "onUpdate:modelValue": U2[25] || (U2[25] = (l3) => e2.configure.props.format.timeType = l3), placeholder: "Select" }, { default: u(() => [r(E, { label: "HH:mm", value: "HH:mm" }), r(E, { label: "HH:mm:ss", value: "HH:mm:ss" }), r(E, { label: "HH时mm分", value: "HH时mm分" }), r(E, { label: "HH时mm分ss秒", value: "HH时mm分ss秒" }), r(E, { label: "hh:mm", value: "hh:mm" }), r(E, { label: "hh:mm:ss", value: "hh:mm:ss" }), r(E, { label: "hh时mm分", value: "hh时mm分" }), r(E, { label: "hh时mm分ss秒", value: "hh时mm分ss秒" })]), _: 1 }, 8, ["modelValue"])]), _: 1 })) : s("", true), "customControl" === e2.configure.props.format.type ? (t(), o(L, { key: 8, label: "自定义控件", class: "amb-design-attr-item" }, { default: u(() => [r(q, { modelValue: e2.configure.props.format.customControl, "onUpdate:modelValue": U2[26] || (U2[26] = (l3) => e2.configure.props.format.customControl = l3) }, null, 8, ["modelValue"])]), _: 1 })) : s("", true), "hyperlinks" === e2.configure.props.format.type ? (t(), o(R, { key: 9, pageDesign: e2.pageDesign, configure: e2.configure }, null, 8, ["pageDesign", "configure"])) : s("", true), "icon" === e2.configure.props.format.type ? (t(), o(L, { key: 10, label: "图标", class: "amb-design-attr-item" }, { default: u(() => [r(W, { modelValue: e2.configure.props.format.icon, "onUpdate:modelValue": U2[27] || (U2[27] = (l3) => e2.configure.props.format.icon = l3) }, null, 8, ["modelValue"])]), _: 1 })) : s("", true), "icon" === e2.configure.props.format.type ? (t(), o(L, { key: 11, label: "图标位置", class: "amb-design-attr-item" }, { default: u(() => [r(F, { modelValue: e2.configure.props.format.position, "onUpdate:modelValue": U2[28] || (U2[28] = (l3) => e2.configure.props.format.position = l3), "active-text": "后缀", "inactive-text": "前缀", "active-value": "suf", "inactive-value": "pre" }, null, 8, ["modelValue"])]), _: 1 })) : s("", true), "icon" === e2.configure.props.format.type ? (t(), o(L, { key: 12, label: "回调事件", class: "amb-design-attr-item" }, { default: u(() => [r(q, { modelValue: e2.configure.props.format.event, "onUpdate:modelValue": U2[29] || (U2[29] = (l3) => e2.configure.props.format.event = l3) }, null, 8, ["modelValue"])]), _: 1 })) : s("", true), "custom" === e2.configure.props.format.type ? (t(), o(L, { key: 13, label: "自定义方法", class: "amb-design-attr-item" }, { default: u(() => [r(q, { modelValue: e2.configure.props.format.customControl, "onUpdate:modelValue": U2[30] || (U2[30] = (l3) => e2.configure.props.format.customControl = l3) }, null, 8, ["modelValue"])]), _: 1 })) : s("", true), "files" === e2.configure.props.format.type ? (t(), o(L, { key: 14, label: "是否多选", class: "amb-design-attr-item" }, { default: u(() => [r(F, { modelValue: e2.configure.props.format.multiple, "onUpdate:modelValue": U2[31] || (U2[31] = (l3) => e2.configure.props.format.multiple = l3) }, null, 8, ["modelValue"])]), _: 1 })) : s("", true), "files" === e2.configure.props.format.type ? (t(), o(L, { key: 15, label: "文件类型", class: "amb-design-attr-item" }, { default: u(() => [r(q, { modelValue: e2.configure.props.format.accept, "onUpdate:modelValue": U2[32] || (U2[32] = (l3) => e2.configure.props.format.accept = l3) }, null, 8, ["modelValue"])]), _: 1 })) : s("", true), "files" === e2.configure.props.format.type ? (t(), o(L, { key: 16, label: "文件限制(M)", class: "amb-design-attr-item" }, { default: u(() => [r(X, { modelValue: e2.configure.props.format.limitFileSize, "onUpdate:modelValue": U2[33] || (U2[33] = (l3) => e2.configure.props.format.limitFileSize = l3), min: 1 }, null, 8, ["modelValue"])]), _: 1 })) : s("", true), "files" === e2.configure.props.format.type && e2.configure.props.format.multiple ? (t(), o(L, { key: 17, label: "选择数据表" }, { default: u(() => [r(q, { modelValue: e2.configure.props.format.childAnnexDataTableCode, "onUpdate:modelValue": U2[34] || (U2[34] = (l3) => e2.configure.props.format.childAnnexDataTableCode = l3), onClick: l2.openSelectDataTable, clearable: "" }, { append: u(() => [r(M, { type: "default", icon: d(h), onClick: l2.openSelectDataTable }, null, 8, ["icon", "onClick"])]), _: 1 }, 8, ["modelValue", "onClick"])]), _: 1 })) : s("", true), "files" === e2.configure.props.format.type ? (t(), o(L, { key: 18, label: "展示名字段", class: "amb-design-attr-item" }, { default: u(() => [r(Y, { prop: e2.configure.props.format.showName, "onUpdate:prop": U2[35] || (U2[35] = (l3) => e2.configure.props.format.showName = l3), tableConfigure: l2.tableConfigure }, null, 8, ["prop", "tableConfigure"])]), _: 1 })) : s("", true), "files" === e2.configure.props.format.type ? (t(), o(L, { key: 19, label: "服务器字段", class: "amb-design-attr-item" }, { default: u(() => [r(Y, { prop: e2.configure.props.format.serverName, "onUpdate:prop": U2[36] || (U2[36] = (l3) => e2.configure.props.format.serverName = l3), tableConfigure: l2.tableConfigure }, null, 8, ["prop", "tableConfigure"])]), _: 1 })) : s("", true)])]), _: 1 }), (t(), o(b, { key: e2.configure.uuid, configureProps: e2.configure.props }, null, 8, ["configureProps"])), (t(), o(Q, { title: "校验", name: "verification", key: e2.configure.uuid, class: "amb-design-attr-group-header" }, { default: u(() => [n("div", D, [r(L, { class: "amb-design-attr-item", "label-width": "0" }, { default: u(() => [r(Z, { modelValue: e2.configure.props.verification.required, "onUpdate:modelValue": U2[37] || (U2[37] = (l3) => e2.configure.props.verification.required = l3), label: "必填" }, null, 8, ["modelValue"])]), _: 1 }), r(L, { class: "amb-design-attr-item", "label-width": "0" }, { default: u(() => [r(B, { span: 8 }, { default: u(() => [r(Z, { label: "自定义", value: "custom" })]), _: 1 }), r(B, { span: 14 }, { default: u(() => [r(M, { type: "default" }, { default: u(() => U2[51] || (U2[51] = [c("自定义逻辑")])), _: 1 }), r(M, { type: "default", icon: d(h), circle: "" }, null, 8, ["icon"])]), _: 1 })]), _: 1 })])]), _: 1 })), (t(), o(y, { key: e2.configure.uuid, size: e2.configure.props.size, showCalcHeight: true }, null, 8, ["size"]))]), _: 1 }, 8, ["modelValue"]), r(C, { ref_key: "selectTableDialog", ref: S, onSelectTable: P, systemCode: e2.pageDesign.systemCode, systemVersion: e2.pageDesign.systemVersion }, null, 8, ["systemCode", "systemVersion"])]), _: 1 });
|
|
35
|
+
}(e3, l3)) }, null, 8, ["iconType", "iconValue"])]), _: 1 }), r(L, { label: "节点内容", class: "amb-design-attr-item" }, { default: u(() => [r(I, { modelValue: e2.configure.props.format.contentLogic, "onUpdate:modelValue": U2[11] || (U2[11] = (l3) => e2.configure.props.format.contentLogic = l3), filterable: "", placeholder: "请选择" }, { default: u(() => [(t(true), i(m, null, p(e2.pageDesign.customEvents, (e3) => (t(), o(E, { label: e3.eventName, value: e3.uuid }, null, 8, ["label", "value"]))), 256))]), _: 1 }, 8, ["modelValue"])]), _: 1 }), r(L, { label: "状态", class: "amb-design-attr-item" }, { default: u(() => [r($, { modelValue: e2.configure.props.base.state, "onUpdate:modelValue": U2[12] || (U2[12] = (l3) => e2.configure.props.base.state = l3), class: "ml-4" }, { default: u(() => [r(G, { value: "default" }, { default: u(() => U2[49] || (U2[49] = [c("普通")])), _: 1 }), r(G, { value: "hidden" }, { default: u(() => U2[50] || (U2[50] = [c("隐藏")])), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 }), r(L, { label: "对应数据表", class: "amb-design-attr-item" }, { default: u(() => [r(B, { span: 20 }, { default: u(() => [r(q, { modelValue: e2.configure.props.base.treeTableName, "onUpdate:modelValue": U2[13] || (U2[13] = (l3) => e2.configure.props.base.treeTableName = l3), title: e2.configure.props.base.treeTableName, clearable: "", readonly: "true", onClick: O, placeholder: "请选择数据表" }, { append: u(() => [r(M, { type: "default", icon: d(h), onClick: O, size: "small" }, null, 8, ["icon"]), r(M, { type: "default", icon: d(k), onClick: A, title: "Clear", size: "small" }, null, 8, ["icon"])]), _: 1 }, 8, ["modelValue", "title"])]), _: 1 }), r(K, { class: "box-item", content: "使用右键菜单编辑保存时需要配置" }, { default: u(() => [r(J, null, { default: u(() => [r(d(x))]), _: 1 })]), _: 1 })]), _: 1 }), r(L, { label: "父节点关联属性", class: "amb-design-attr-item" }, { default: u(() => [r(B, { span: 20 }, { default: u(() => [r(I, { modelValue: e2.configure.props.base.treeParentIdProp, "onUpdate:modelValue": U2[14] || (U2[14] = (l3) => e2.configure.props.base.treeParentIdProp = l3), clearable: "", filterable: "", "allow-create": "", placeholder: "请选择" }, { default: u(() => [(t(true), i(m, null, p(z.value, (e3) => (t(), o(E, { key: e3.dbColumnName, label: e3.alias, value: e3.dbColumnName }, null, 8, ["label", "value"]))), 128))]), _: 1 }, 8, ["modelValue"])]), _: 1 }), r(K, { class: "box-item", content: "树节点nodeId对应数据表的父节点属性字段名" }, { default: u(() => [r(J, null, { default: u(() => [r(d(x))]), _: 1 })]), _: 1 })]), _: 1 }), r(L, { label: "标签属性", class: "amb-design-attr-item" }, { default: u(() => [r(B, { span: 20 }, { default: u(() => [r(I, { modelValue: e2.configure.props.base.treeLabelProp, "onUpdate:modelValue": U2[15] || (U2[15] = (l3) => e2.configure.props.base.treeLabelProp = l3), clearable: "", filterable: "", "allow-create": "", placeholder: "请选择" }, { default: u(() => [(t(true), i(m, null, p(z.value, (e3) => (t(), o(E, { key: e3.dbColumnName, label: e3.alias, value: e3.dbColumnName }, null, 8, ["label", "value"]))), 128))]), _: 1 }, 8, ["modelValue"])]), _: 1 }), r(K, { class: "box-item", content: "树节点Label对应数据表的属性字段名" }, { default: u(() => [r(J, null, { default: u(() => [r(d(x))]), _: 1 })]), _: 1 })]), _: 1 })])]), _: 1 }), r(Q, { title: "右键菜单", name: "nodeContextmenu", class: "amb-design-attr-group-header" }, { default: u(() => [r(v, { configure: e2.configure, pageDesign: e2.pageDesign }, null, 8, ["configure", "pageDesign"])]), _: 1 }), (t(), o(b, { key: e2.configure.uuid, configure: e2.configure }, { beanName: u(() => [r(L, { label: "", class: "amb-design-attr-item" }, { default: u(() => [e2.configure.props.dataOrigin ? (t(), o(B, { key: 0, span: 20 }, { default: u(() => [r(q, { modelValue: e2.configure.props.dataOrigin.beanName, "onUpdate:modelValue": U2[16] || (U2[16] = (l3) => e2.configure.props.dataOrigin.beanName = l3), placeholder: "beanName" }, null, 8, ["modelValue"])]), _: 1 })) : s("", true), r(K, { class: "box-item", content: "为空时默认使用页面配置的自定义bean" }, { default: u(() => [r(J, null, { default: u(() => [r(d(x))]), _: 1 })]), _: 1 })]), _: 1 })]), _: 1 }, 8, ["configure"])), r(Q, { title: "格式设置", name: "formatting", class: "amb-design-attr-group-header" }, { default: u(() => [n("div", T, [r(L, { label: "格式化分类", class: "amb-design-attr-item" }, { default: u(() => [r(I, { modelValue: e2.configure.props.format.type, "onUpdate:modelValue": U2[17] || (U2[17] = (l3) => e2.configure.props.format.type = l3), placeholder: "请选择" }, { default: u(() => [r(E, { label: "数值", value: "number" }), r(E, { label: "货币", value: "currency" }), r(E, { label: "日期", value: "date" }), r(E, { label: "时间", value: "time" }), r(E, { label: "百分比", value: "percent" }), r(E, { label: "自定义控件", value: "customControl" }), r(E, { label: "超链接", value: "hyperlinks" }), r(E, { label: "图标/标签", value: "icon" }), r(E, { label: "附件控件", value: "files" }), r(E, { label: "富文本", value: "richEditor" }), r(E, { label: "脱敏组件", value: "secretInfo" }), r(E, { label: "自定义方法", value: "custom" })]), _: 1 }, 8, ["modelValue"])]), _: 1 }), "number" === e2.configure.props.format.type || "currency" === e2.configure.props.format.type || "percent" === e2.configure.props.format.type ? (t(), o(L, { key: 0, label: "小数位数", class: "amb-design-attr-item" }, { default: u(() => [r(q, { modelValue: e2.configure.props.format.decimalDigit, "onUpdate:modelValue": U2[18] || (U2[18] = (l3) => e2.configure.props.format.decimalDigit = l3) }, null, 8, ["modelValue"])]), _: 1 })) : s("", true), "number" === e2.configure.props.format.type ? (t(), o(L, { key: 1, label: "科学计数", class: "amb-design-attr-item" }, { default: u(() => [r(F, { modelValue: e2.configure.props.format.scientific, "onUpdate:modelValue": U2[19] || (U2[19] = (l3) => e2.configure.props.format.scientific = l3), "active-text": "使用", "inactive-text": "不使用" }, null, 8, ["modelValue"])]), _: 1 })) : s("", true), "number" === e2.configure.props.format.type && e2.configure.props.format.scientific ? (t(), o(L, { key: 2, label: "计数位数", class: "amb-design-attr-item" }, { default: u(() => [r(q, { modelValue: e2.configure.props.format.scientificNum, "onUpdate:modelValue": U2[20] || (U2[20] = (l3) => e2.configure.props.format.scientificNum = l3) }, null, 8, ["modelValue"])]), _: 1 })) : s("", true), "number" === e2.configure.props.format.type ? (t(), o(L, { key: 3, label: "千位分隔符", class: "amb-design-attr-item" }, { default: u(() => [r(F, { modelValue: e2.configure.props.format.thousandsSeparator, "onUpdate:modelValue": U2[21] || (U2[21] = (l3) => e2.configure.props.format.thousandsSeparator = l3), "active-text": "使用", "inactive-text": "不使用" }, null, 8, ["modelValue"])]), _: 1 })) : s("", true), "number" === e2.configure.props.format.type ? (t(), o(L, { key: 4, label: "数值符号", class: "amb-design-attr-item" }, { default: u(() => [r(q, { modelValue: e2.configure.props.format.symbol, "onUpdate:modelValue": U2[22] || (U2[22] = (l3) => e2.configure.props.format.symbol = l3) }, null, 8, ["modelValue"])]), _: 1 })) : s("", true), "currency" === e2.configure.props.format.type ? (t(), o(L, { key: 5, label: "货币符号", class: "amb-design-attr-item" }, { default: u(() => [r(I, { modelValue: e2.configure.props.format.currencySymbol, "onUpdate:modelValue": U2[23] || (U2[23] = (l3) => e2.configure.props.format.currencySymbol = l3), placeholder: "Select" }, { default: u(() => [r(E, { label: "$", value: "$" }), r(E, { label: "¥", value: "¥" })]), _: 1 }, 8, ["modelValue"])]), _: 1 })) : s("", true), "date" === e2.configure.props.format.type ? (t(), o(L, { key: 6, label: "日期类型", class: "amb-design-attr-item" }, { default: u(() => [r(I, { modelValue: e2.configure.props.format.dataType, "onUpdate:modelValue": U2[24] || (U2[24] = (l3) => e2.configure.props.format.dataType = l3), placeholder: "Select" }, { default: u(() => [r(E, { label: "yyyy-m-d", value: "yyyy-m-d" }), r(E, { label: "yyyy-m-d hh:mm:ss", value: "yyyy-m-d hh:mm:ss" }), r(E, { label: "yyyy-m", value: "yyyy-m" }), r(E, { label: "m-d", value: "m-d" }), r(E, { label: "yyyy", value: "yyyy" }), r(E, { label: "yyyy年m月d日", value: "yyyy年m月d日" }), r(E, { label: "yyyy年m月d日hh时mm分ss秒", value: "yyyy年m月d日hh时mm分ss秒" }), r(E, { label: "yyyy年m月", value: "yyyy年m月" }), r(E, { label: "m月d日", value: "m月d日" })]), _: 1 }, 8, ["modelValue"])]), _: 1 })) : s("", true), "time" === e2.configure.props.format.type ? (t(), o(L, { key: 7, label: "时间类型", class: "amb-design-attr-item" }, { default: u(() => [r(I, { modelValue: e2.configure.props.format.timeType, "onUpdate:modelValue": U2[25] || (U2[25] = (l3) => e2.configure.props.format.timeType = l3), placeholder: "Select" }, { default: u(() => [r(E, { label: "HH:mm", value: "HH:mm" }), r(E, { label: "HH:mm:ss", value: "HH:mm:ss" }), r(E, { label: "HH时mm分", value: "HH时mm分" }), r(E, { label: "HH时mm分ss秒", value: "HH时mm分ss秒" }), r(E, { label: "hh:mm", value: "hh:mm" }), r(E, { label: "hh:mm:ss", value: "hh:mm:ss" }), r(E, { label: "hh时mm分", value: "hh时mm分" }), r(E, { label: "hh时mm分ss秒", value: "hh时mm分ss秒" })]), _: 1 }, 8, ["modelValue"])]), _: 1 })) : s("", true), "customControl" === e2.configure.props.format.type ? (t(), o(L, { key: 8, label: "自定义控件", class: "amb-design-attr-item" }, { default: u(() => [r(q, { modelValue: e2.configure.props.format.customControl, "onUpdate:modelValue": U2[26] || (U2[26] = (l3) => e2.configure.props.format.customControl = l3) }, null, 8, ["modelValue"])]), _: 1 })) : s("", true), "hyperlinks" === e2.configure.props.format.type ? (t(), o(R, { key: 9, pageDesign: e2.pageDesign, configure: e2.configure }, null, 8, ["pageDesign", "configure"])) : s("", true), "icon" === e2.configure.props.format.type ? (t(), o(L, { key: 10, label: "图标", class: "amb-design-attr-item" }, { default: u(() => [r(W, { modelValue: e2.configure.props.format.icon, "onUpdate:modelValue": U2[27] || (U2[27] = (l3) => e2.configure.props.format.icon = l3) }, null, 8, ["modelValue"])]), _: 1 })) : s("", true), "icon" === e2.configure.props.format.type ? (t(), o(L, { key: 11, label: "图标位置", class: "amb-design-attr-item" }, { default: u(() => [r(F, { modelValue: e2.configure.props.format.position, "onUpdate:modelValue": U2[28] || (U2[28] = (l3) => e2.configure.props.format.position = l3), "active-text": "后缀", "inactive-text": "前缀", "active-value": "suf", "inactive-value": "pre" }, null, 8, ["modelValue"])]), _: 1 })) : s("", true), "icon" === e2.configure.props.format.type ? (t(), o(L, { key: 12, label: "回调事件", class: "amb-design-attr-item" }, { default: u(() => [r(q, { modelValue: e2.configure.props.format.event, "onUpdate:modelValue": U2[29] || (U2[29] = (l3) => e2.configure.props.format.event = l3) }, null, 8, ["modelValue"])]), _: 1 })) : s("", true), "custom" === e2.configure.props.format.type ? (t(), o(L, { key: 13, label: "自定义方法", class: "amb-design-attr-item" }, { default: u(() => [r(q, { modelValue: e2.configure.props.format.customControl, "onUpdate:modelValue": U2[30] || (U2[30] = (l3) => e2.configure.props.format.customControl = l3) }, null, 8, ["modelValue"])]), _: 1 })) : s("", true), "files" === e2.configure.props.format.type ? (t(), o(L, { key: 14, label: "是否多选", class: "amb-design-attr-item" }, { default: u(() => [r(F, { modelValue: e2.configure.props.format.multiple, "onUpdate:modelValue": U2[31] || (U2[31] = (l3) => e2.configure.props.format.multiple = l3) }, null, 8, ["modelValue"])]), _: 1 })) : s("", true), "files" === e2.configure.props.format.type ? (t(), o(L, { key: 15, label: "文件类型", class: "amb-design-attr-item" }, { default: u(() => [r(q, { modelValue: e2.configure.props.format.accept, "onUpdate:modelValue": U2[32] || (U2[32] = (l3) => e2.configure.props.format.accept = l3) }, null, 8, ["modelValue"])]), _: 1 })) : s("", true), "files" === e2.configure.props.format.type ? (t(), o(L, { key: 16, label: "文件限制(M)", class: "amb-design-attr-item" }, { default: u(() => [r(X, { modelValue: e2.configure.props.format.limitFileSize, "onUpdate:modelValue": U2[33] || (U2[33] = (l3) => e2.configure.props.format.limitFileSize = l3), min: 1 }, null, 8, ["modelValue"])]), _: 1 })) : s("", true), "files" === e2.configure.props.format.type && e2.configure.props.format.multiple ? (t(), o(L, { key: 17, label: "选择数据表" }, { default: u(() => [r(q, { modelValue: e2.configure.props.format.childAnnexDataTableCode, "onUpdate:modelValue": U2[34] || (U2[34] = (l3) => e2.configure.props.format.childAnnexDataTableCode = l3), onClick: l2.openSelectDataTable, clearable: "" }, { append: u(() => [r(M, { type: "default", icon: d(h), onClick: l2.openSelectDataTable }, null, 8, ["icon", "onClick"])]), _: 1 }, 8, ["modelValue", "onClick"])]), _: 1 })) : s("", true), "files" === e2.configure.props.format.type ? (t(), o(L, { key: 18, label: "展示名字段", class: "amb-design-attr-item" }, { default: u(() => [r(Y, { prop: e2.configure.props.format.showName, "onUpdate:prop": U2[35] || (U2[35] = (l3) => e2.configure.props.format.showName = l3), tableConfigure: l2.tableConfigure }, null, 8, ["prop", "tableConfigure"])]), _: 1 })) : s("", true), "files" === e2.configure.props.format.type ? (t(), o(L, { key: 19, label: "服务器字段", class: "amb-design-attr-item" }, { default: u(() => [r(Y, { prop: e2.configure.props.format.serverName, "onUpdate:prop": U2[36] || (U2[36] = (l3) => e2.configure.props.format.serverName = l3), tableConfigure: l2.tableConfigure }, null, 8, ["prop", "tableConfigure"])]), _: 1 })) : s("", true)])]), _: 1 }), (t(), o(g, { key: e2.configure.uuid, configureProps: e2.configure.props }, null, 8, ["configureProps"])), (t(), o(Q, { title: "校验", name: "verification", key: e2.configure.uuid, class: "amb-design-attr-group-header" }, { default: u(() => [n("div", D, [r(L, { class: "amb-design-attr-item", "label-width": "0" }, { default: u(() => [r(Z, { modelValue: e2.configure.props.verification.required, "onUpdate:modelValue": U2[37] || (U2[37] = (l3) => e2.configure.props.verification.required = l3), label: "必填" }, null, 8, ["modelValue"])]), _: 1 }), r(L, { class: "amb-design-attr-item", "label-width": "0" }, { default: u(() => [r(B, { span: 8 }, { default: u(() => [r(Z, { label: "自定义", value: "custom" })]), _: 1 }), r(B, { span: 14 }, { default: u(() => [r(M, { type: "default" }, { default: u(() => U2[51] || (U2[51] = [c("自定义逻辑")])), _: 1 }), r(M, { type: "default", icon: d(h), circle: "" }, null, 8, ["icon"])]), _: 1 })]), _: 1 })])]), _: 1 })), (t(), o(y, { key: e2.configure.uuid, size: e2.configure.props.size, showCalcHeight: true }, null, 8, ["size"]))]), _: 1 }, 8, ["modelValue"]), r(C, { ref_key: "selectTableDialog", ref: S, onSelectTable: P, systemCode: e2.pageDesign.systemCode, systemVersion: e2.pageDesign.systemVersion }, null, 8, ["systemCode", "systemVersion"])]), _: 1 });
|
|
36
36
|
};
|
|
37
37
|
} });
|
|
38
38
|
export {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { defineComponent as e, ref as a, watch as t, resolveComponent as i, createElementBlock as n, openBlock as
|
|
1
|
+
import { defineComponent as e, ref as a, watch as t, resolveComponent as i, createElementBlock as n, openBlock as o, normalizeClass as l, createVNode as c, normalizeStyle as r } from "vue";
|
|
2
2
|
import { caculateDetailComponentStyle as d, caculateComponentProps as s } from "../../../../utils/form-design-util.js";
|
|
3
3
|
const u = e({ __name: "tree-design", props: { configure: Object }, emits: ["handleSelect"], setup(e2, { emit: u2 }) {
|
|
4
4
|
const p = e2;
|
|
5
5
|
null == p.configure.title && (p.configure.title = "");
|
|
6
6
|
const f = { id: "nodeId", label: "name", children: "children", isLeaf: "leaf", disabled: "disabled", nodeType: "nodeType", iconType: "iconType", iconValue: "iconValue" }, b = a({}), h = a(""), x = a({}), g = a({});
|
|
7
7
|
return t(p.configure.style, () => {
|
|
8
|
-
d(p.configure, b, h, x),
|
|
8
|
+
d(p.configure, b, h, x), p.configure.runtime.style = b.value, p.configure.runtime.class = h.value, p.configure.runtime.headerStyle = x.value;
|
|
9
9
|
}, { immediate: true }), t(p.configure.props, () => {
|
|
10
10
|
s(p.configure, g), function() {
|
|
11
11
|
let e3 = {};
|
|
@@ -22,7 +22,7 @@ const u = e({ __name: "tree-design", props: { configure: Object }, emits: ["hand
|
|
|
22
22
|
}(), p.configure.runtime.props = g.value;
|
|
23
23
|
}, { immediate: true }), (e3, a2) => {
|
|
24
24
|
const t2 = i("el-tree");
|
|
25
|
-
return
|
|
25
|
+
return o(), n("div", { class: l(["amb-tree-group-main", h.value]) }, [c(t2, { style: r([b.value, { width: "100%" }]), data: g.value.staticData, "default-expand-all": g.value.defaultExpandAll, "expand-on-click-node": g.value.expandOnClickNode, indent: g.value.retractWidth ? g.value.retractWidth : 18, accordion: g.value.accordion, "show-checkbox": g.value.showCheckbox, props: f }, null, 8, ["style", "data", "default-expand-all", "expand-on-click-node", "indent", "accordion", "show-checkbox"])], 2);
|
|
26
26
|
};
|
|
27
27
|
} });
|
|
28
28
|
export {
|
|
@@ -6,7 +6,7 @@ const w = { class: "icon-set-center-body" }, x = ["onClick"], z = { class: "dial
|
|
|
6
6
|
M.value = true;
|
|
7
7
|
}
|
|
8
8
|
function A() {
|
|
9
|
-
|
|
9
|
+
F("update:modelValue", N.value), M.value = false;
|
|
10
10
|
}
|
|
11
11
|
return o(() => q.modelValue, (e3) => {
|
|
12
12
|
L.value = e3;
|
package/dist/es/components/design/views/assemblys/form/file-upload/fileupload-attr-base.vue.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { defineComponent as e, ref as l, resolveComponent as a, createBlock as o, openBlock as t, withCtx as u, createVNode as i, createCommentVNode as d, createElementVNode as s, withDirectives as r, createElementBlock as n, Fragment as p, renderList as m, unref as c, createTextVNode as f, vShow as
|
|
2
|
-
import { getFormComponentOptions as
|
|
1
|
+
import { defineComponent as e, ref as l, resolveComponent as a, createBlock as o, openBlock as t, withCtx as u, createVNode as i, createCommentVNode as d, createElementVNode as s, withDirectives as r, createElementBlock as n, Fragment as p, renderList as m, unref as c, createTextVNode as f, vShow as b } from "vue";
|
|
2
|
+
import { getFormComponentOptions as g } from "../../../../utils/assemblys-config.js";
|
|
3
3
|
import { componentNameChange as V } from "../../../../utils/form-design-util.js";
|
|
4
4
|
import _ from "../../common/common-attr-size.vue.js";
|
|
5
5
|
import v from "../common/uploading.vue.js";
|
|
6
6
|
import y from "../../common/common-variable-bind.vue.js";
|
|
7
7
|
import h from "../../common/common-function-code.vue.js";
|
|
8
|
-
import
|
|
9
|
-
const U = { style: { padding: "8px 0px 0px 0px" } },
|
|
8
|
+
import w from "../../common/common-i18n-key-input.vue.js";
|
|
9
|
+
const U = { style: { padding: "8px 0px 0px 0px" } }, x = { style: { padding: "8px 0px 0px 0px" } }, k = e({ __name: "fileupload-attr-base", props: { configure: { type: Object, required: true, default: () => ({ props: {} }) }, pageDesign: { type: Object, default: () => {
|
|
10
10
|
} } }, emits: ["changeAssembly"], setup(e2, { emit: k2 }) {
|
|
11
11
|
const j = e2, S = l(j.configure.name), z = k2;
|
|
12
12
|
j.configure.props || (j.configure.props = {}), j.configure.props.uploadConfig || (j.configure.props.uploadConfig = {});
|
|
@@ -18,8 +18,8 @@ const U = { style: { padding: "8px 0px 0px 0px" } }, w = { style: { padding: "8p
|
|
|
18
18
|
V(j.configure, e3, z);
|
|
19
19
|
}
|
|
20
20
|
return j.configure.isTable && (T.value = true), (l2, V2) => {
|
|
21
|
-
const k3 = a("el-option"), j2 = a("el-select"), z2 = a("el-form-item"),
|
|
22
|
-
return t(), o(K, { "label-width": "80px", size: "small" }, { default: u(() => [i(J, { modelValue: C.value, "onUpdate:modelValue": V2[
|
|
21
|
+
const k3 = a("el-option"), j2 = a("el-select"), z2 = a("el-form-item"), D = a("el-input"), N = a("el-radio"), O = a("el-radio-group"), P = a("el-input-number"), A = a("el-switch"), B = a("el-collapse-item"), E = a("el-radio-button"), F = a("el-text"), G = a("el-checkbox"), H = a("el-col"), I = a("el-button"), J = a("el-collapse"), K = a("el-form");
|
|
22
|
+
return t(), o(K, { "label-width": "80px", size: "small" }, { default: u(() => [i(J, { modelValue: C.value, "onUpdate:modelValue": V2[13] || (V2[13] = (e3) => C.value = e3), style: { "margin-top": "6px" } }, { default: u(() => [i(B, { title: "基本", name: "base", class: "amb-design-attr-group-header" }, { default: u(() => [s("div", U, [i(z2, { label: "组件类型", class: "amb-design-attr-item" }, { default: u(() => [i(j2, { modelValue: S.value, "onUpdate:modelValue": V2[0] || (V2[0] = (e3) => S.value = e3), onChange: q, placeholder: "请选择" }, { default: u(() => [(t(true), n(p, null, m(c(g)(), (e3) => (t(), o(k3, { key: e3.name, label: e3.label, value: e3.name }, null, 8, ["label", "value"]))), 128))]), _: 1 }, 8, ["modelValue"])]), _: 1 }), i(z2, { label: "唯一编码", class: "amb-design-attr-item" }, { default: u(() => [i(D, { modelValue: e2.configure.uuid, "onUpdate:modelValue": V2[1] || (V2[1] = (l3) => e2.configure.uuid = l3), readonly: "", title: e2.configure.uuid }, null, 8, ["modelValue", "title"])]), _: 1 }), T.value ? d("", true) : (t(), o(z2, { key: 0, label: "文件路径", class: "amb-design-attr-item" }, { default: u(() => [(t(), o(y, { key: e2.configure.uuid, modelValue: e2.configure.props.base.prop, paramTypes: ["data"], "onUpdate:modelValue": V2[2] || (V2[2] = (e3, l3) => W(e3, "prop", l3)) }, null, 8, ["modelValue"]))]), _: 1 })), T.value ? d("", true) : (t(), o(z2, { key: 1, label: "文件名", class: "amb-design-attr-item" }, { default: u(() => [(t(), o(y, { key: e2.configure.uuid, modelValue: e2.configure.props.base.propName, paramTypes: ["data", "fixed"], "onUpdate:modelValue": V2[3] || (V2[3] = (e3) => W(e3, "propName")) }, null, 8, ["modelValue"]))]), _: 1 })), T.value ? d("", true) : (t(), o(z2, { key: 2, label: "绑定权限", class: "amb-design-attr-item" }, { default: u(() => [(t(), o(h, { key: e2.configure.uuid, configure: e2.configure }, null, 8, ["configure"]))]), _: 1 })), T.value ? d("", true) : (t(), o(z2, { key: 3, label: "标题显示", class: "amb-design-attr-item" }, { default: u(() => [i(O, { modelValue: e2.configure.props.base.tittleShow, "onUpdate:modelValue": V2[4] || (V2[4] = (l3) => e2.configure.props.base.tittleShow = l3), class: "ml-4" }, { default: u(() => [i(N, { value: true }, { default: u(() => V2[14] || (V2[14] = [f("显示")])), _: 1 }), i(N, { value: false }, { default: u(() => V2[15] || (V2[15] = [f("隐藏")])), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 })), r(i(z2, { label: "标题", class: "amb-design-attr-item" }, { default: u(() => [i(w, { modelValue: e2.configure.props.base.title, "onUpdate:modelValue": V2[5] || (V2[5] = (l3) => e2.configure.props.base.title = l3) }, null, 8, ["modelValue"])]), _: 1 }, 512), [[b, e2.configure.props.base.tittleShow]]), r(i(z2, { label: "标题宽度", class: "amb-design-attr-item" }, { default: u(() => [i(P, { modelValue: e2.configure.props.base.titleWidth, "onUpdate:modelValue": V2[6] || (V2[6] = (l3) => e2.configure.props.base.titleWidth = l3), style: { width: "100%" }, min: 0, placeholder: "请输入" }, null, 8, ["modelValue"])]), _: 1 }, 512), [[b, e2.configure.props.base.tittleShow]]), r(i(z2, { label: "标题超宽", title: "标题超宽显示", class: "amb-design-attr-item" }, { default: u(() => [i(O, { modelValue: e2.configure.props.base.titleShowWay, "onUpdate:modelValue": V2[7] || (V2[7] = (l3) => e2.configure.props.base.titleShowWay = l3), class: "ml-4" }, { default: u(() => [i(N, { value: "block" }, { default: u(() => V2[16] || (V2[16] = [f("换行")])), _: 1 }), i(N, { value: "inline" }, { default: u(() => V2[17] || (V2[17] = [f("不换行")])), _: 1 }), i(N, { value: "omit" }, { default: u(() => V2[18] || (V2[18] = [f("省略号")])), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 }, 512), [[b, e2.configure.props.base.tittleShow && e2.configure.props.base.titleWidth > 0]]), i(z2, { label: "输入提示", class: "amb-design-attr-item" }, { default: u(() => [i(w, { modelValue: e2.configure.props.base.placeholder, "onUpdate:modelValue": V2[8] || (V2[8] = (l3) => e2.configure.props.base.placeholder = l3) }, null, 8, ["modelValue"])]), _: 1 }), i(z2, { label: "状态", class: "amb-design-attr-item" }, { default: u(() => [i(O, { modelValue: e2.configure.props.base.state, "onUpdate:modelValue": V2[9] || (V2[9] = (l3) => e2.configure.props.base.state = l3), class: "ml-4" }, { default: u(() => [i(N, { value: "default" }, { default: u(() => V2[19] || (V2[19] = [f("普通")])), _: 1 }), i(N, { value: "disabled" }, { default: u(() => V2[20] || (V2[20] = [f("禁用")])), _: 1 }), i(N, { value: "hidden" }, { default: u(() => V2[21] || (V2[21] = [f("隐藏")])), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 }), i(z2, { label: "禁用时可预览", class: "amb-design-attr-item" }, { default: u(() => [i(A, { modelValue: e2.configure.props.base.absolutePreview, "onUpdate:modelValue": V2[10] || (V2[10] = (l3) => e2.configure.props.base.absolutePreview = l3) }, null, 8, ["modelValue"])]), _: 1 }), i(z2, { label: "禁用时可下载", class: "amb-design-attr-item" }, { default: u(() => [i(A, { modelValue: e2.configure.props.base.absoluteDownloadable, "onUpdate:modelValue": V2[11] || (V2[11] = (l3) => e2.configure.props.base.absoluteDownloadable = l3) }, null, 8, ["modelValue"])]), _: 1 })])]), _: 1 }), i(v, { uploadConfig: e2.configure.props.uploadConfig }, { addition: u((e3) => [i(z2, { label: "上传方式", class: "amb-design-attr-item" }, { default: u(() => [i(O, { modelValue: e3.row.displayType, "onUpdate:modelValue": (l3) => e3.row.displayType = l3, size: "small" }, { default: u(() => [i(E, { label: "输入框", value: "input" }), i(E, { label: "按钮", value: "button" }), i(E, { label: "拖拽", value: "drag" })]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"])]), _: 2 }, 1024), i(z2, { label: "文件类型", class: "amb-design-attr-item" }, { default: u(() => [i(D, { modelValue: e3.row.accept, "onUpdate:modelValue": (l3) => e3.row.accept = l3, placeholder: "*" }, null, 8, ["modelValue", "onUpdate:modelValue"]), i(F, { type: "success" }, { default: u(() => V2[22] || (V2[22] = [f("格式如:.doc,.docx,.xml...")])), _: 1 })]), _: 2 }, 1024)]), _: 1 }, 8, ["uploadConfig"]), (t(), o(B, { title: "校验", name: "verification", key: e2.configure.uuid, class: "amb-design-attr-group-header" }, { default: u(() => [s("div", x, [i(z2, { class: "amb-design-attr-item", "label-width": "0" }, { default: u(() => [i(G, { modelValue: e2.configure.props.verification.required, "onUpdate:modelValue": V2[12] || (V2[12] = (l3) => e2.configure.props.verification.required = l3), label: "必填" }, null, 8, ["modelValue"])]), _: 1 }), i(z2, { class: "amb-design-attr-item", "label-width": "0" }, { default: u(() => [i(H, { span: 8 }, { default: u(() => [i(G, { label: "自定义", value: "custom" })]), _: 1 }), i(H, { span: 14 }, { default: u(() => [i(I, { type: "default" }, { default: u(() => V2[23] || (V2[23] = [f("自定义逻辑")])), _: 1 }), i(I, { type: "default", icon: l2.Search, circle: "" }, null, 8, ["icon"])]), _: 1 })]), _: 1 })])]), _: 1 })), T.value ? d("", true) : (t(), o(_, { key: e2.configure.uuid, size: e2.configure.props.size }, null, 8, ["size"]))]), _: 1 }, 8, ["modelValue"])]), _: 1 });
|
|
23
23
|
};
|
|
24
24
|
} });
|
|
25
25
|
export {
|
package/dist/es/components/design/views/assemblys/form/file-upload/fileupload-design.vue2.js
CHANGED
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import { defineComponent as e, ref as l, watch as i, resolveComponent as
|
|
1
|
+
import { defineComponent as e, ref as l, watch as i, resolveComponent as o, createBlock as t, openBlock as a, normalizeStyle as u, normalizeClass as r, withCtx as p, createVNode as s, unref as n, createElementBlock as m, createCommentVNode as c, toDisplayString as d } from "vue";
|
|
2
2
|
import { caculateDetailComponentStyle as f, caculateComponentProps as v } from "../../../../utils/form-design-util.js";
|
|
3
3
|
import { FsUploadNew as g } from "agilebuilder-ui";
|
|
4
4
|
import "@element-plus/icons-vue";
|
|
5
|
-
const
|
|
6
|
-
const
|
|
7
|
-
|
|
8
|
-
const
|
|
9
|
-
return i(
|
|
10
|
-
f(
|
|
11
|
-
}, { immediate: true }), i(
|
|
12
|
-
v(
|
|
13
|
-
let e3 =
|
|
14
|
-
const l2 = e3.uploadConfig ? e3.uploadConfig : {}, i2 = e3.base ? e3.base : {},
|
|
15
|
-
l2.drag && (
|
|
16
|
-
}(),
|
|
5
|
+
const b = e({ __name: "fileupload-design", props: { pageDesign: {}, configure: {} }, setup(e2) {
|
|
6
|
+
const b2 = e2;
|
|
7
|
+
b2.configure.runtime || (b2.configure.runtime = {});
|
|
8
|
+
const y = l({}), h = l(""), C = l({}), w = l({}), S = l({});
|
|
9
|
+
return i(b2.configure.style, () => {
|
|
10
|
+
f(b2.configure, y, h, C), b2.configure.runtime.style = y.value, b2.configure.runtime.class = h.value, b2.configure.runtime.headerStyle = C.value;
|
|
11
|
+
}, { immediate: true }), i(b2.configure.props, () => {
|
|
12
|
+
v(b2.configure, w, S), function() {
|
|
13
|
+
let e3 = b2.configure.props ? b2.configure.props : {};
|
|
14
|
+
const l2 = e3.uploadConfig ? e3.uploadConfig : {}, i2 = e3.base ? e3.base : {}, o2 = {};
|
|
15
|
+
l2.drag && (o2.drag = l2.drag), o2.prop = i2.prop, o2.propName = i2.propName, o2.displayType = l2.displayType ? l2.displayType : "input", o2.state = i2.state, o2.placeholder = i2.placeholder, o2.absolutePreview = i2.absolutePreview, o2.absoluteDownloadable = i2.absoluteDownloadable, l2.accept ? o2.accept = l2.accept : o2.accept = null, l2.multiple ? (o2.multiple = l2.multiple, l2.limit ? o2.limit = l2.limit : o2.limit = null) : (o2.multiple = false, o2.limit = 1), l2.limitFileSize ? o2.limitFileSize = l2.limitFileSize : o2.limitFileSize = null, l2.openCameraOrChoosePhoto ? o2.openCameraOrChoosePhoto = l2.openCameraOrChoosePhoto : o2.openCameraOrChoosePhoto = null, o2.isDeleteNow = l2.isDeleteNow, Object.assign(w.value, o2);
|
|
16
|
+
}(), b2.configure.runtime.props = w.value, b2.configure.runtime.titleExceedStyle = S.value;
|
|
17
17
|
}, { immediate: true }), (e3, l2) => {
|
|
18
|
-
const i2 =
|
|
19
|
-
return a(),
|
|
18
|
+
const i2 = o("el-form-item");
|
|
19
|
+
return a(), t(i2, { required: !!w.value.required, class: r([h.value, "remove-formLabel-formContent-blankStyle"]), "label-width": w.value.labelWidth, style: u(y.value) }, { label: p(() => [w.value.tittleShow ? (a(), m("div", { key: 0, style: u({ ...C.value, ...S.value, "padding-right": "12px" }) }, d(w.value.title ? w.value.title : "Files"), 5)) : c("", true)]), default: p(() => [s(n(g), { disabled: "disabled" == w.value.state, style: { width: "100%" }, displayType: w.value.displayType, accept: w.value.accept, multiple: w.value.multiple, placeholder: w.value.placeholder, limit: w.value.limit, "limit-file-size": w.value.limitFileSize, "file-info": e3.fileInfo, "file-list": e3.fileList, "on-success": e3.onSuccess, "on-remove": e3.onRemove, openFsUpload: false, "before-upload": e3.beforeUpload }, null, 8, ["disabled", "displayType", "accept", "multiple", "placeholder", "limit", "limit-file-size", "file-info", "file-list", "on-success", "on-remove", "before-upload"])]), _: 1 }, 8, ["required", "class", "label-width", "style"]);
|
|
20
20
|
};
|
|
21
21
|
} });
|
|
22
22
|
export {
|
|
23
|
-
|
|
23
|
+
b as default
|
|
24
24
|
};
|
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
import { defineComponent as e, ref as u, watch as
|
|
1
|
+
import { defineComponent as e, ref as u, watch as t, resolveComponent as l, createBlock as a, openBlock as o, normalizeStyle as i, normalizeClass as n, withCtx as r, createElementVNode as s, createElementBlock as p, createCommentVNode as c, createTextVNode as f, unref as v, toDisplayString as y } from "vue";
|
|
2
2
|
import { caculateDetailComponentStyle as d, caculateComponentProps as m } from "../../../../utils/form-design-util.js";
|
|
3
3
|
import { SuperIcon as T } from "agilebuilder-ui";
|
|
4
4
|
const g = { style: { display: "flex", width: "100%", "justify-content": "space-between" } }, x = ["title"], I = e({ __name: "label-design", props: { configure: { type: Object, required: true } }, setup(e2) {
|
|
5
5
|
const I2 = e2;
|
|
6
6
|
I2.configure.runtime || (I2.configure.runtime = {});
|
|
7
7
|
const b = u({}), h = u(""), V = u({}), _ = u({}), w = u({});
|
|
8
|
-
return
|
|
8
|
+
return t(I2.configure.style, () => {
|
|
9
9
|
d(I2.configure, b, h, V), I2.configure.runtime.style = b.value, I2.configure.runtime.class = h.value, I2.configure.runtime.headerStyle = V.value;
|
|
10
|
-
}, { immediate: true }),
|
|
11
|
-
m(I2.configure, _, w),
|
|
10
|
+
}, { immediate: true }), t(I2.configure.props, () => {
|
|
11
|
+
m(I2.configure, _, w), function() {
|
|
12
12
|
let e3 = I2.configure.props ? I2.configure.props : {};
|
|
13
|
-
const u2 = e3.base ? e3.base : {},
|
|
14
|
-
u2.labelText && (
|
|
13
|
+
const u2 = e3.base ? e3.base : {}, t2 = e3.dataOrigin ? e3.dataOrigin : {}, l2 = {};
|
|
14
|
+
u2.labelText && (l2.labelText = u2.labelText), u2.whetherTittle && (l2.whetherTittle = u2.whetherTittle);
|
|
15
15
|
const a2 = e3.preSuffix ? e3.preSuffix : {};
|
|
16
|
-
(a2.preIconType || a2.preText || a2.sufIconType || a2.sufText) && (
|
|
17
|
-
const o2 =
|
|
16
|
+
(a2.preIconType || a2.preText || a2.sufIconType || a2.sufText) && (l2.preIconType = a2.preIconType, l2.preIconValue = a2.preIconValue, l2.preText = a2.preText, l2.sufIconType = a2.sufIconType, l2.sufIconValue = a2.sufIconValue, l2.sufText = a2.sufText, l2.iconPosition = a2.position);
|
|
17
|
+
const o2 = t2.optionValueSetType;
|
|
18
18
|
let i2 = false;
|
|
19
|
-
o2 && (_.value.formatType = o2, "static" != o2 && "optionGroup" != o2 && "dynamicData" != o2 && "dataTable" != o2 || (i2 = true), _.value.hasOptions = i2, _.value.decimalDigit =
|
|
19
|
+
o2 && (_.value.formatType = o2, "static" != o2 && "optionGroup" != o2 && "dynamicData" != o2 && "dataTable" != o2 || (i2 = true), _.value.hasOptions = i2, _.value.decimalDigit = t2.decimalDigit, _.value.thousandsSeparator = t2.thousandsSeparator, _.value.symbol = t2.symbol, _.value.dateFormat = t2.dateFormat, _.value.timeFormat = t2.timeFormat, _.value.formatFunc = t2.formatFunc), Object.assign(_.value, l2);
|
|
20
20
|
}(), I2.configure.runtime.props = _.value, I2.configure.runtime.titleExceedStyle = w.value;
|
|
21
21
|
}, { immediate: true }), (e3, u2) => {
|
|
22
|
-
const
|
|
23
|
-
return o(), a(
|
|
22
|
+
const t2 = l("el-form-item");
|
|
23
|
+
return o(), a(t2, { required: !!_.value.required, class: n(h.value), "label-width": _.value.labelWidth, style: i(b.value) }, { label: r(() => [_.value.tittleShow ? (o(), p("div", { key: 0, style: i({ ...V.value, ...w.value }) }, y(_.value.title), 5)) : c("", true)]), default: r(() => [s("div", g, [s("span", { style: { overflow: "hidden" }, title: _.value.value }, [_.value.preIconValue || _.value.preText ? (o(), p("span", { key: 0, class: n({ "el-input__suffix": "outer" != _.value.iconPosition, "el-input-group__append": "outer" == _.value.iconPosition }), style: i(e3.appendStyle) }, [_.value.preIconType && _.value.preIconValue ? (o(), a(v(T), { key: 0, iconType: _.value.preIconType, iconValue: _.value.preIconValue }, null, 8, ["iconType", "iconValue"])) : c("", true), f(" " + y(_.value.preText), 1)], 6)) : c("", true), f(" " + y(_.value.value), 1)], 8, x), _.value.sufIconValue || _.value.sufText ? (o(), p("span", { key: 0, class: n({ "el-input__suffix": "outer" != _.value.iconPosition, "el-input-group__append": "outer" == _.value.iconPosition }) }, [_.value.sufIconType && _.value.sufIconValue ? (o(), a(v(T), { key: 0, style: {}, iconType: _.value.sufIconType, iconValue: _.value.sufIconValue }, null, 8, ["iconType", "iconValue"])) : c("", true), s("span", null, " " + y(_.value.sufText), 1)], 2)) : c("", true)])]), _: 1 }, 8, ["required", "class", "label-width", "style"]);
|
|
24
24
|
};
|
|
25
25
|
} });
|
|
26
26
|
export {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { defineComponent as e, ref as l, watch as t, onMounted as i, onUnmounted as u, resolveComponent as a, createBlock as n, openBlock as r, normalizeStyle as o, normalizeClass as c, withCtx as d, createElementVNode as s, createElementBlock as p, createCommentVNode as f, toDisplayString as
|
|
2
|
-
import { caculateDetailComponentStyle as
|
|
1
|
+
import { defineComponent as e, ref as l, watch as t, onMounted as i, onUnmounted as u, resolveComponent as a, createBlock as n, openBlock as r, normalizeStyle as o, normalizeClass as c, withCtx as d, createElementVNode as s, createElementBlock as p, createCommentVNode as f, toDisplayString as g } from "vue";
|
|
2
|
+
import { caculateDetailComponentStyle as v, caculateComponentProps as m } from "../../../../utils/form-design-util.js";
|
|
3
3
|
import h from "quill";
|
|
4
4
|
import "quill/dist/quill.snow.css";
|
|
5
5
|
const y = { style: { height: "100%", width: "100%" } }, b = e({ __name: "richtext-design", props: { configure: { type: Object, required: true } }, setup(e2) {
|
|
6
6
|
const b2 = e2;
|
|
7
7
|
b2.configure.runtime || (b2.configure.runtime = {}), l(null);
|
|
8
|
-
const x = l(null), k = l(null), q = l(null), w = l({ modules: { toolbar: [["bold", "italic", "underline", "strike"], ["blockquote", "code-block"], [{ list: "ordered" }, { list: "bullet" }], [{ script: "sub" }, { script: "super" }], [{ indent: "-1" }, { indent: "+1" }], [{ direction: "rtl" }], [{ size: ["12px", "13px", "14px", "15px", "16px", "18px", "20px", "24px", "28px", "32px", "36px"] }], [{ header: [1, 2, 3, 4, 5, 6, false] }], [{ color: [] }, { background: [] }], [{ font: [] }], [{ align: [] }], ["clean"], ["link", "image"]] }, theme: "snow", placeholder: "", readOnly: true }), S = l({}), _ = l(""), C = l({}), E = l({}), R = l({}),
|
|
9
|
-
function
|
|
8
|
+
const x = l(null), k = l(null), q = l(null), w = l({ modules: { toolbar: [["bold", "italic", "underline", "strike"], ["blockquote", "code-block"], [{ list: "ordered" }, { list: "bullet" }], [{ script: "sub" }, { script: "super" }], [{ indent: "-1" }, { indent: "+1" }], [{ direction: "rtl" }], [{ size: ["12px", "13px", "14px", "15px", "16px", "18px", "20px", "24px", "28px", "32px", "36px"] }], [{ header: [1, 2, 3, 4, 5, 6, false] }], [{ color: [] }, { background: [] }], [{ font: [] }], [{ align: [] }], ["clean"], ["link", "image"]] }, theme: "snow", placeholder: "", readOnly: true }), S = l({}), _ = l(""), C = l({}), E = l({}), R = l({}), j = l({});
|
|
9
|
+
function B() {
|
|
10
10
|
if (k && k.value && k.value.container) {
|
|
11
11
|
const e3 = k.value.container.parentNode.getBoundingClientRect(), l2 = k.value.container.getBoundingClientRect();
|
|
12
12
|
let t2 = e3.height - (l2.top - e3.top);
|
|
@@ -14,15 +14,15 @@ const y = { style: { height: "100%", width: "100%" } }, b = e({ __name: "richtex
|
|
|
14
14
|
}
|
|
15
15
|
}
|
|
16
16
|
t(b2.configure.style, () => {
|
|
17
|
-
|
|
17
|
+
v(b2.configure, S, _, C), b2.configure.runtime.style = S.value, b2.configure.runtime.class = _.value, b2.configure.runtime.headerStyle = C.value;
|
|
18
18
|
}, { immediate: true }), t(b2.configure.props, () => {
|
|
19
19
|
m(b2.configure, E, R);
|
|
20
20
|
let e3 = b2.configure.props ? b2.configure.props : {};
|
|
21
21
|
const l2 = e3.base ? e3.base : {};
|
|
22
22
|
let t2 = "";
|
|
23
|
-
t2 = l2.prop ? l2.prop : l2.defaultValue ? l2.defaultValue : "${page." + b2.configure.uuid + "}", E.value.value = t2,
|
|
23
|
+
t2 = l2.prop ? l2.prop : l2.defaultValue ? l2.defaultValue : "${page." + b2.configure.uuid + "}", E.value.value = t2, B(), k && k.value && (k.value.enable("readonly" != E.value.state), k.value.root.dataset.placeholder = E.value.placeholder ? E.value.placeholder : ""), b2.configure.runtime.props = E.value, b2.configure.runtime.titleExceedStyle = R.value;
|
|
24
24
|
}, { immediate: true });
|
|
25
|
-
const
|
|
25
|
+
const T = (e3) => {
|
|
26
26
|
q.value && e3 && q.value.click();
|
|
27
27
|
}, F = (e3) => {
|
|
28
28
|
const l2 = Array.prototype.slice.call(e3.target.files);
|
|
@@ -35,18 +35,17 @@ const y = { style: { height: "100%", width: "100%" } }, b = e({ __name: "richtex
|
|
|
35
35
|
}
|
|
36
36
|
});
|
|
37
37
|
};
|
|
38
|
-
let
|
|
38
|
+
let O;
|
|
39
39
|
return i(() => {
|
|
40
|
-
k.value = new h(x.value, w.value), k.value.getModule("toolbar").addHandler("image",
|
|
41
|
-
|
|
42
|
-
k.value.root.innerHTML;
|
|
40
|
+
k.value = new h(x.value, w.value), k.value.getModule("toolbar").addHandler("image", T), k.value.on("text-change", function(e3, l2, t2) {
|
|
41
|
+
O && clearTimeout(O), O = setTimeout(function() {
|
|
43
42
|
}, 1e3);
|
|
44
|
-
}),
|
|
43
|
+
}), B();
|
|
45
44
|
}), u(() => {
|
|
46
|
-
|
|
45
|
+
O && clearTimeout(O);
|
|
47
46
|
}), (e3, l2) => {
|
|
48
47
|
const t2 = a("el-form-item");
|
|
49
|
-
return r(), n(t2, { required: E.value.required, class: c([_.value, "remove-formLabel-formContent-blankStyle"]), "label-width": E.value.labelWidth, style: o(S.value) }, { label: d(() => [E.value.tittleShow ? (r(), p("div", { key: 0, style: o({ ...C.value, ...R.value, "padding-right": "12px" }) },
|
|
48
|
+
return r(), n(t2, { required: E.value.required, class: c([_.value, "remove-formLabel-formContent-blankStyle"]), "label-width": E.value.labelWidth, style: o(S.value) }, { label: d(() => [E.value.tittleShow ? (r(), p("div", { key: 0, style: o({ ...C.value, ...R.value, "padding-right": "12px" }) }, g(E.value.title), 5)) : f("", true)]), default: d(() => [s("div", y, [s("div", { ref_key: "quillEditorRef", ref: x, style: o({ ...j.value }) }, null, 4), s("input", { type: "file", hidden: "", accept: ".jpg,.png", ref_key: "fileBtn", ref: q, onChange: F }, null, 544)])]), _: 1 }, 8, ["required", "class", "label-width", "style"]);
|
|
50
49
|
};
|
|
51
50
|
} });
|
|
52
51
|
export {
|
package/dist/es/components/design/views/assemblys/page/component/setting-form-rule-base-input.vue.js
CHANGED
|
@@ -23,9 +23,9 @@ const h = { class: "operation-area operation-area-float" }, $ = e({ __name: "set
|
|
|
23
23
|
const l3 = T.value.filter((l4) => l4.dbColumnName && l4.dbColumnName === e4);
|
|
24
24
|
l3 && l3.length > 0 && (q.value.fieldName = l3[0].name);
|
|
25
25
|
}
|
|
26
|
-
q.value.id ? (
|
|
26
|
+
q.value.id ? (l2 = q.value.id, a2 = q.value, y.put(window.$vueApp.config.globalProperties.baseAPI + `/mms/setting-form-rule-base/${l2}`, a2)).then((e5) => {
|
|
27
27
|
q.value = e5, b({ showClose: true, message: "保存成功", type: "success" });
|
|
28
|
-
})
|
|
28
|
+
}) : (q.value.systemCode = w.systemCode, function(e5) {
|
|
29
29
|
return y.post(window.$vueApp.config.globalProperties.baseAPI + "/mms/setting-form-rule-base", e5);
|
|
30
30
|
}(q.value).then((e5) => {
|
|
31
31
|
q.value = e5, b({ showClose: true, message: "保存成功", type: "success" });
|
|
@@ -25,7 +25,7 @@ const I = { style: { padding: "8px 0px 0px 0px" } }, N = { class: "amb-design-at
|
|
|
25
25
|
e3 && !R2.configure.props.formNoRuleCode && (R2.configure.props.formNoRuleCode = e3), F(), S.value = false;
|
|
26
26
|
}
|
|
27
27
|
function E(e3) {
|
|
28
|
-
e3.target.value
|
|
28
|
+
e3.target.value = e3.target.value.trim();
|
|
29
29
|
}
|
|
30
30
|
function F() {
|
|
31
31
|
let e3 = window.$vueApp.config.globalProperties.baseAPI + "/mms/systems/getByCode/" + R2.configure.systemCode;
|
package/dist/es/components/design/views/assemblys/workflow/picture-flow/pictureflow-design.vue2.js
CHANGED
|
@@ -19,7 +19,7 @@ const a = ["id"], g = e({ __name: "pictureflow-design", props: { configure: Obje
|
|
|
19
19
|
}, { immediate: true });
|
|
20
20
|
const v = t({ nodes: [{ id: "1", type: "rect", x: 0, y: 70, text: "经办人填写" }, { id: "2", type: "rect", x: 0, y: 70, text: "品质主管审核" }, { id: "3", type: "rect", x: 0, y: 70, text: "品质总监确认" }], edges: [{ sourceNodeId: "1", targetNodeId: "2", type: "polyline" }, { sourceNodeId: "2", targetNodeId: "3", type: "polyline" }] }), m = t(null), y = new ResizeObserver((e3) => {
|
|
21
21
|
var t2;
|
|
22
|
-
m.value && (v.value.nodes[0].x = m.value.offsetWidth / 3 - 116, v.value.nodes[1].x = m.value.offsetWidth / 3 + 134, v.value.nodes[2].x = m.value.offsetWidth / 3 + 384,
|
|
22
|
+
m.value && (v.value.nodes[0].x = m.value.offsetWidth / 3 - 116, v.value.nodes[1].x = m.value.offsetWidth / 3 + 134, v.value.nodes[2].x = m.value.offsetWidth / 3 + 384, t2 = g2.configure.uuid, new s({ container: document.getElementById(t2), grid: true, isSilentMode: true, stopZoomGraph: true, stopScrollGraph: true, stopMoveGraph: true }).render(v.value));
|
|
23
23
|
});
|
|
24
24
|
return i(() => {
|
|
25
25
|
y.observe(m.value);
|
package/dist/es/components/design/views/assemblys/workflow/workflow-node/workflownode-design.vue2.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { defineComponent as e, ref as u, watch as i, createElementBlock as t, openBlock as n, normalizeStyle as r, normalizeClass as
|
|
1
|
+
import { defineComponent as e, ref as u, watch as i, createElementBlock as t, openBlock as n, normalizeStyle as r, normalizeClass as o, createElementVNode as l, toDisplayString as s } from "vue";
|
|
2
2
|
import { caculateDetailComponentStyle as a, caculateComponentProps as c } from "../../../../utils/form-design-util.js";
|
|
3
3
|
const f = e({ __name: "workflownode-design", props: { configure: Object }, setup(e2) {
|
|
4
4
|
const f2 = e2, p = u({}), g = u(""), m = u({}), v = u({});
|
|
5
5
|
return i(f2.configure.style, () => {
|
|
6
6
|
a(f2.configure, p, g, m), f2.configure.runtime.style = p.value, f2.configure.runtime.class = g.value, f2.configure.runtime.headerStyle = m.value;
|
|
7
7
|
}, { immediate: true }), i(f2.configure.props, () => {
|
|
8
|
-
c(f2.configure, v),
|
|
8
|
+
c(f2.configure, v), function() {
|
|
9
9
|
let e3 = f2.configure.props ? f2.configure.props : {};
|
|
10
10
|
const u2 = e3.base ? e3.base : {};
|
|
11
11
|
u2.title && u2.title, Object.assign(v.value, u2);
|
|
12
12
|
}(), f2.configure.runtime.props = v.value;
|
|
13
|
-
}, { immediate: true }), (e3, u2) => (n(), t("div", { class:
|
|
13
|
+
}, { immediate: true }), (e3, u2) => (n(), t("div", { class: o(g.value), style: r(p.value) }, [l("div", { style: r(m.value) }, [l("span", null, s(v.value.title), 1), u2[0] || (u2[0] = l("span", null, "xxxxxx", -1))], 4)], 6));
|
|
14
14
|
} });
|
|
15
15
|
export {
|
|
16
16
|
f as default
|
|
@@ -106,7 +106,7 @@ const P = { class: "amb-page-container" }, T = { class: "amb-page-container-head
|
|
|
106
106
|
U.value = e3.code, H.value = e3.definitionVersion, L.value = e3.id;
|
|
107
107
|
}
|
|
108
108
|
function ve() {
|
|
109
|
-
if (!Q.value) return
|
|
109
|
+
if (!Q.value) return;
|
|
110
110
|
let e3, l2;
|
|
111
111
|
F.value.props.activeWorkflow && F.value.props.workflowSource && "link" === F.value.props.workflowSource ? (l2 = F.value.props.linkWorkflowCode, e3 = F.value.props.linkWorkflowVersion) : F.value.props.activeWorkflow && F.value.props.workflowSource && "create" === F.value.props.workflowSource && (l2 = F.value.props.createWorkflowCode, e3 = 1), l2 ? !U.value && !H.value || U.value !== l2 || H.value !== e3 ? (K.value = false, Q.value = false, function(e4, l3) {
|
|
112
112
|
V(e4, l3, Y.value).then((e5) => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as e, ref as t, onMounted as
|
|
1
|
+
import { defineComponent as e, ref as t, onMounted as l, onUnmounted as o, resolveComponent as n, createElementBlock as a, openBlock as r, createElementVNode as i, createVNode as s, createTextVNode as u, withCtx as c, unref as d, normalizeStyle as m } from "vue";
|
|
2
2
|
import { useLocalStorage as f } from "@vueuse/core";
|
|
3
3
|
import { Search as p, MagicStick as v } from "@element-plus/icons-vue";
|
|
4
4
|
import { EditorView as h, basicSetup as g } from "codemirror";
|
|
@@ -9,31 +9,30 @@ import "@codemirror/language";
|
|
|
9
9
|
import { openSearchPanel as y } from "@codemirror/search";
|
|
10
10
|
import k from "js-beautify";
|
|
11
11
|
import w from "./completion-data.js";
|
|
12
|
-
const j = { style: { padding: "8px 16px", margin: "10px 0px", "background-color": "#f4f4f5" }, class: "pppp" }, C = { style: { color: "#909399", "font-size": "14px" } },
|
|
12
|
+
const j = { style: { padding: "8px 16px", margin: "10px 0px", "background-color": "#f4f4f5" }, class: "pppp" }, C = { style: { color: "#909399", "font-size": "14px" } }, z = { key: 0 }, F = { key: 1 }, S = { class: "editorTool" }, O = e({ __name: "config", props: { eventForm: { type: Object, default: () => ({}) } }, emits: ["fullScreen"], setup(e2, { expose: O2, emit: V }) {
|
|
13
13
|
const D = e2;
|
|
14
14
|
t(false);
|
|
15
15
|
const L = t({ theme: "default", fontSize: 14, searchOpen: false }), T = t(null), W = t(null), $ = t(null), B = t({ backgroundColor: "#fff", color: "#333", border: "1px solid #ddd", overflow: "auto" });
|
|
16
16
|
let R;
|
|
17
|
-
|
|
18
|
-
D.eventForm;
|
|
17
|
+
l(() => {
|
|
19
18
|
let e3 = f("editorStyle", "").value;
|
|
20
19
|
e3 && (e3 = JSON.parse(e3), L.value.theme = e3.theme || "default", L.value.fontSize = e3.fontSize || 14), G();
|
|
21
|
-
}),
|
|
20
|
+
}), o(() => {
|
|
22
21
|
R && clearTimeout(R);
|
|
23
22
|
});
|
|
24
23
|
const U = b.data.of({ autocomplete: function(e3) {
|
|
25
24
|
const t2 = e3.matchBefore(/(?:window\.[\w$\.]*|logicContext\.[\w$\.]*)/);
|
|
26
25
|
if (!t2 || "" === t2.text) return null;
|
|
27
|
-
const
|
|
28
|
-
if (w[
|
|
29
|
-
let
|
|
30
|
-
for (const e4 of Object.keys(w))
|
|
31
|
-
if (!
|
|
32
|
-
if (
|
|
33
|
-
let e4 = w[
|
|
34
|
-
return (
|
|
26
|
+
const l2 = t2.text;
|
|
27
|
+
if (w[l2]) return { from: t2.from, options: w[l2], filter: true };
|
|
28
|
+
let o2 = null;
|
|
29
|
+
for (const e4 of Object.keys(w)) l2.startsWith(e4) && (!o2 || e4.length > o2.length) && (o2 = e4);
|
|
30
|
+
if (!o2) for (const e4 of Object.keys(w)) e4.startsWith(l2) && (!o2 || e4.length > o2.length) && (o2 = e4);
|
|
31
|
+
if (o2) {
|
|
32
|
+
let e4 = w[o2];
|
|
33
|
+
return (l2.length > o2.length || l2 !== o2) && (e4 = e4.filter((e5) => e5.label.startsWith(l2))), { from: t2.from, options: e4, filter: false };
|
|
35
34
|
}
|
|
36
|
-
if ("window.$" ===
|
|
35
|
+
if ("window.$" === l2) return { from: t2.from, options: w["window."].filter((e4) => e4.label.startsWith("window.$")), filter: false };
|
|
37
36
|
return null;
|
|
38
37
|
} });
|
|
39
38
|
function q() {
|
|
@@ -42,7 +41,7 @@ const j = { style: { padding: "8px 16px", margin: "10px 0px", "background-color"
|
|
|
42
41
|
function E() {
|
|
43
42
|
const e3 = h.theme({}), t2 = h.theme({ ".cm-content, .cm-gutter": { minHeight: "400px" }, "&": { fontSize: L.value.fontSize + "px" } });
|
|
44
43
|
return x.create({ doc: D.eventForm.jsContent, extensions: [x.tabSize.of(16), g, _(), U, e3, t2, h.updateListener.of(function(e4) {
|
|
45
|
-
|
|
44
|
+
D.eventForm.jsContent = e4.state.doc.toString();
|
|
46
45
|
})] });
|
|
47
46
|
}
|
|
48
47
|
function G() {
|
|
@@ -69,9 +68,9 @@ const j = { style: { padding: "8px 16px", margin: "10px 0px", "background-color"
|
|
|
69
68
|
var _a;
|
|
70
69
|
const t2 = D.eventForm.jsContent ? D.eventForm.jsContent : "";
|
|
71
70
|
e3 && D.eventForm && (e3.jsContent || (e3.jsContent = ""), Object.assign(D.eventForm, e3), (_a = T.value) == null ? void 0 : _a.dispatch({ changes: { from: 0, to: t2.length, insert: D.eventForm.jsContent } }));
|
|
72
|
-
} }), (t2,
|
|
73
|
-
const
|
|
74
|
-
return r(), a("div", { style: { "padding-right": "20px" }, ref_key: "editorContentRef", ref: $ }, [i("div", j, [i("span", C, [
|
|
71
|
+
} }), (t2, l2) => {
|
|
72
|
+
const o2 = n("el-input"), f2 = n("el-option"), h2 = n("el-select"), g2 = n("el-tooltip"), b2 = n("el-icon");
|
|
73
|
+
return r(), a("div", { style: { "padding-right": "20px" }, ref_key: "editorContentRef", ref: $ }, [i("div", j, [i("span", C, [l2[6] || (l2[6] = u(" function ")), "customFunc" === e2.eventForm.name ? (r(), a("span", z, [l2[3] || (l2[3] = u(" ( ")), l2[4] || (l2[4] = i("span", { class: "is_req" }, [i("span", { class: "cell--span required__label" })], -1)), s(o2, { size: "small", modelValue: e2.eventForm.funcParam, "onUpdate:modelValue": l2[0] || (l2[0] = (t3) => e2.eventForm.funcParam = t3), style: { width: "300px" }, title: "方法参数" }, null, 8, ["modelValue"]), l2[5] || (l2[5] = u(" ) "))])) : (r(), a("span", F, " ( params ) ")), l2[7] || (l2[7] = u("{ "))]), i("span", S, [s(g2, { class: "box-item", effect: "dark", content: "切换主题", placement: "top" }, { default: c(() => [s(h2, { class: "editorOption", onChange: q, modelValue: L.value.theme, "onUpdate:modelValue": l2[1] || (l2[1] = (e3) => L.value.theme = e3), placeholder: "", size: "small", style: { width: "120px" } }, { default: c(() => [s(f2, { label: "默认", value: "default" }), s(f2, { label: "VScodeDark", value: "vscodeDark" }), s(f2, { label: "Dracula", value: "dracula" }), s(f2, { label: "GithubLight", value: "githubLight" }), s(f2, { label: "GithubDark", value: "githubDark" }), s(f2, { label: "Eclipse", value: "eclipse" }), s(f2, { label: "XcodeLight", value: "xcodeLight" }), s(f2, { label: "XcodeDark", value: "xcodeDark" })]), _: 1 }, 8, ["modelValue"])]), _: 1 }), s(g2, { class: "box-item", effect: "dark", content: "切换字体大小", placement: "top" }, { default: c(() => [s(h2, { class: "editorOption", modelValue: L.value.fontSize, "onUpdate:modelValue": l2[2] || (l2[2] = (e3) => L.value.fontSize = e3), placeholder: "", onChange: q, size: "small", style: { width: "80px" } }, { default: c(() => [s(f2, { label: "12", value: 12 }), s(f2, { label: "14", value: 14 }), s(f2, { label: "16", value: 16 }), s(f2, { label: "18", value: 18 }), s(f2, { label: "20", value: 20 }), s(f2, { label: "22", value: 22 }), s(f2, { label: "24", value: 24 }), s(f2, { label: "26", value: 26 }), s(f2, { label: "28", value: 28 })]), _: 1 }, 8, ["modelValue"])]), _: 1 })]), s(g2, { class: "box-item", effect: "dark", content: "打开搜索", placement: "top" }, { default: c(() => [s(b2, { class: "editorOption", onClick: H }, { default: c(() => [s(d(p))]), _: 1 })]), _: 1 }), s(g2, { class: "box-item", effect: "dark", content: "格式化代码", placement: "top" }, { default: c(() => [s(b2, { class: "editorOption", onClick: J }, { default: c(() => [s(d(v))]), _: 1 })]), _: 1 })]), i("div", { style: m(B.value), id: "cf-codemirror", ref_key: "codemirrorRef", ref: W }, null, 4), l2[8] || (l2[8] = i("span", { style: { color: "gray" } }, " }", -1))], 512);
|
|
75
74
|
};
|
|
76
75
|
} });
|
|
77
76
|
export {
|