form-custom-test 3.0.110 → 3.0.111
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/designer.es.js +59 -39
- package/dist/designer.style.css +2 -2
- package/dist/designer.umd.js +6 -6
- package/dist/render.es.js +53 -39
- package/dist/render.style.css +2 -2
- package/dist/render.umd.js +4 -4
- package/package.json +1 -1
package/dist/render.es.js
CHANGED
|
@@ -1532,6 +1532,8 @@ var enLocale = {
|
|
|
1532
1532
|
formCss: "Form CSS",
|
|
1533
1533
|
addCss: "Edit",
|
|
1534
1534
|
customClass: "Custom Class",
|
|
1535
|
+
mainTip: "Main Tip",
|
|
1536
|
+
subTip: "Sub Tip",
|
|
1535
1537
|
globalFunctions: "Global Functions",
|
|
1536
1538
|
addEventHandler: "Edit",
|
|
1537
1539
|
editWidgetEventHandler: "Edit Widget Event Handler",
|
|
@@ -1859,6 +1861,8 @@ var zhLocale = {
|
|
|
1859
1861
|
formCss: "\u8868\u5355\u5168\u5C40CSS",
|
|
1860
1862
|
addCss: "\u7F16\u5199CSS",
|
|
1861
1863
|
customClass: "\u81EA\u5B9A\u4E49CSS\u6837\u5F0F",
|
|
1864
|
+
mainTip: "\u4E3B\u63D0\u793A\u8BED",
|
|
1865
|
+
subTip: "\u526F\u63D0\u793A\u8BED",
|
|
1862
1866
|
globalFunctions: "\u8868\u5355\u5168\u5C40\u51FD\u6570",
|
|
1863
1867
|
addEventHandler: "\u7F16\u5199\u4EE3\u7801",
|
|
1864
1868
|
editWidgetEventHandler: "\u7EC4\u4EF6\u4E8B\u4EF6\u5904\u7406",
|
|
@@ -10866,15 +10870,16 @@ const _hoisted_2$k = {
|
|
|
10866
10870
|
key: 0,
|
|
10867
10871
|
class: "el-upload__tip"
|
|
10868
10872
|
};
|
|
10869
|
-
const _hoisted_3$g = { class: "
|
|
10870
|
-
const _hoisted_4$d = { class: "
|
|
10871
|
-
const _hoisted_5$b = { class: "
|
|
10872
|
-
const _hoisted_6$b =
|
|
10873
|
-
const _hoisted_7$9 = ["
|
|
10874
|
-
const _hoisted_8$6 =
|
|
10875
|
-
const _hoisted_9$5 =
|
|
10876
|
-
const _hoisted_10$4 = ["onClick"];
|
|
10873
|
+
const _hoisted_3$g = { class: "main-tip" };
|
|
10874
|
+
const _hoisted_4$d = { class: "sub-tip" };
|
|
10875
|
+
const _hoisted_5$b = { class: "upload-file-list" };
|
|
10876
|
+
const _hoisted_6$b = { class: "left-wrap" };
|
|
10877
|
+
const _hoisted_7$9 = ["src"];
|
|
10878
|
+
const _hoisted_8$6 = ["title"];
|
|
10879
|
+
const _hoisted_9$5 = { class: "right-wrap" };
|
|
10880
|
+
const _hoisted_10$4 = ["title", "onClick"];
|
|
10877
10881
|
const _hoisted_11$2 = ["onClick"];
|
|
10882
|
+
const _hoisted_12$1 = ["onClick"];
|
|
10878
10883
|
function _sfc_render$R(_ctx, _cache, $props, $setup, $data, $options) {
|
|
10879
10884
|
const _component_el_button = resolveComponent("el-button");
|
|
10880
10885
|
const _component_el_upload = resolveComponent("el-upload");
|
|
@@ -10918,40 +10923,40 @@ function _sfc_render$R(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
10918
10923
|
!!$props.field.options.uploadTip && !_ctx.getDisabled() ? (openBlock(), createElementBlock("div", _hoisted_2$k, toDisplayString($props.field.options.uploadTip), 1)) : createCommentVNode("", true)
|
|
10919
10924
|
]),
|
|
10920
10925
|
file: withCtx(({ file }) => [
|
|
10921
|
-
createElementVNode("div",
|
|
10922
|
-
createElementVNode("div",
|
|
10926
|
+
createElementVNode("div", _hoisted_5$b, [
|
|
10927
|
+
createElementVNode("div", _hoisted_6$b, [
|
|
10923
10928
|
createElementVNode("img", {
|
|
10924
10929
|
src: $options.getFileIcon(file.name),
|
|
10925
10930
|
alt: "",
|
|
10926
10931
|
style: { "width": "18px", "height": "18px", "margin-right": "8px" }
|
|
10927
|
-
}, null, 8,
|
|
10932
|
+
}, null, 8, _hoisted_7$9),
|
|
10928
10933
|
createElementVNode("div", {
|
|
10929
10934
|
class: "upload-file-name",
|
|
10930
10935
|
title: file.name
|
|
10931
|
-
}, toDisplayString(file.name), 9,
|
|
10936
|
+
}, toDisplayString(file.name), 9, _hoisted_8$6)
|
|
10932
10937
|
]),
|
|
10933
|
-
createElementVNode("div",
|
|
10938
|
+
createElementVNode("div", _hoisted_9$5, [
|
|
10934
10939
|
!_ctx.getDisabled() ? (openBlock(), createElementBlock("div", {
|
|
10935
10940
|
key: 0,
|
|
10936
10941
|
class: "file-action",
|
|
10937
10942
|
title: _ctx.i18nt("render.hint.removeFile"),
|
|
10938
10943
|
onClick: ($event) => $options.removeUploadFile(file.name, file.url, file.uid)
|
|
10939
|
-
}, [..._cache[
|
|
10944
|
+
}, [..._cache[2] || (_cache[2] = [
|
|
10940
10945
|
createElementVNode("img", {
|
|
10941
10946
|
src: _imports_1,
|
|
10942
10947
|
alt: ""
|
|
10943
10948
|
}, null, -1)
|
|
10944
|
-
])], 8,
|
|
10949
|
+
])], 8, _hoisted_10$4)) : createCommentVNode("", true),
|
|
10945
10950
|
_ctx.getDisabled() && !$options.isZip(file.name) ? (openBlock(), createElementBlock("div", {
|
|
10946
10951
|
key: 1,
|
|
10947
10952
|
onClick: withModifiers(($event) => $options.handlePreview(file), ["stop"]),
|
|
10948
10953
|
class: "pr-8px color-primary cursor-pointer file-action-right"
|
|
10949
|
-
}, " \u9884\u89C8 ", 8,
|
|
10954
|
+
}, " \u9884\u89C8 ", 8, _hoisted_11$2)) : createCommentVNode("", true),
|
|
10950
10955
|
_ctx.getDisabled() ? (openBlock(), createElementBlock("div", {
|
|
10951
10956
|
key: 2,
|
|
10952
10957
|
onClick: withModifiers(($event) => $options.handleDownload(file), ["stop"]),
|
|
10953
10958
|
class: "pr-8px color-primary cursor-pointer file-action-right"
|
|
10954
|
-
}, " \u4E0B\u8F7D ", 8,
|
|
10959
|
+
}, " \u4E0B\u8F7D ", 8, _hoisted_12$1)) : createCommentVNode("", true)
|
|
10955
10960
|
])
|
|
10956
10961
|
])
|
|
10957
10962
|
]),
|
|
@@ -10965,13 +10970,13 @@ function _sfc_render$R(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
10965
10970
|
src: _imports_0,
|
|
10966
10971
|
alt: ""
|
|
10967
10972
|
}, null, -1)),
|
|
10968
|
-
|
|
10969
|
-
createElementVNode("div",
|
|
10973
|
+
createElementVNode("div", _hoisted_3$g, toDisplayString($props.field.options.mainTip || "\u70B9\u51FB\u6216\u62D6\u62FD\u6587\u4EF6\u5230\u6B64\u533A\u57DF\u4E0A\u4F20"), 1),
|
|
10974
|
+
createElementVNode("div", _hoisted_4$d, toDisplayString($props.field.options.subTip || `\u652F\u6301\u4E0A\u4F20${$props.field.options.fileTypes.slice(0, 8).join("\uFF0C")}\u7B49\u683C\u5F0F\u6587\u4EF6`), 1)
|
|
10970
10975
|
], 64)) : (openBlock(), createBlock(_component_el_button, {
|
|
10971
10976
|
key: 1,
|
|
10972
10977
|
type: "primary"
|
|
10973
10978
|
}, {
|
|
10974
|
-
default: withCtx(() => [..._cache[
|
|
10979
|
+
default: withCtx(() => [..._cache[1] || (_cache[1] = [
|
|
10975
10980
|
createTextVNode(" \u9009\u62E9\u6587\u4EF6", -1)
|
|
10976
10981
|
])]),
|
|
10977
10982
|
_: 1
|
|
@@ -10992,7 +10997,7 @@ function _sfc_render$R(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
10992
10997
|
_: 1
|
|
10993
10998
|
}, 8, ["designer", "field", "rules", "design-state", "parent-widget", "parent-list", "index-of-parent-list", "sub-form-row-index", "sub-form-col-index", "sub-form-row-id"]);
|
|
10994
10999
|
}
|
|
10995
|
-
var fileUploadWidget = /* @__PURE__ */ _export_sfc$1(_sfc_main$R, [["render", _sfc_render$R], ["__scopeId", "data-v-
|
|
11000
|
+
var fileUploadWidget = /* @__PURE__ */ _export_sfc$1(_sfc_main$R, [["render", _sfc_render$R], ["__scopeId", "data-v-7746136c"]]);
|
|
10996
11001
|
var __glob_0_7 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
10997
11002
|
__proto__: null,
|
|
10998
11003
|
"default": fileUploadWidget
|
|
@@ -11677,6 +11682,7 @@ function _sfc_render$M(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
11677
11682
|
"sub-form-row-id": $props.subFormRowId
|
|
11678
11683
|
}, {
|
|
11679
11684
|
default: withCtx(() => [
|
|
11685
|
+
createTextVNode(toDisplayString(_ctx.getDisabled()) + " ", 1),
|
|
11680
11686
|
createVNode(_component_el_radio_group, {
|
|
11681
11687
|
ref: "fieldEditor",
|
|
11682
11688
|
modelValue: $data.fieldModel,
|
|
@@ -11721,7 +11727,7 @@ function _sfc_render$M(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
11721
11727
|
_: 1
|
|
11722
11728
|
}, 8, ["designer", "field", "rules", "design-state", "parent-widget", "parent-list", "index-of-parent-list", "sub-form-row-index", "sub-form-col-index", "sub-form-row-id"]);
|
|
11723
11729
|
}
|
|
11724
|
-
var radioWidget = /* @__PURE__ */ _export_sfc$1(_sfc_main$M, [["render", _sfc_render$M], ["__scopeId", "data-v-
|
|
11730
|
+
var radioWidget = /* @__PURE__ */ _export_sfc$1(_sfc_main$M, [["render", _sfc_render$M], ["__scopeId", "data-v-12ecda57"]]);
|
|
11725
11731
|
var __glob_0_13 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
11726
11732
|
__proto__: null,
|
|
11727
11733
|
"default": radioWidget
|
|
@@ -26173,13 +26179,13 @@ function registerIcon(app) {
|
|
|
26173
26179
|
if (typeof window !== "undefined") {
|
|
26174
26180
|
let loadSvg = function() {
|
|
26175
26181
|
var body = document.body;
|
|
26176
|
-
var svgDom = document.getElementById("
|
|
26182
|
+
var svgDom = document.getElementById("__svg__icons__dom__1777430449026__");
|
|
26177
26183
|
if (!svgDom) {
|
|
26178
26184
|
svgDom = document.createElementNS("http://www.w3.org/2000/svg", "svg");
|
|
26179
26185
|
svgDom.style.position = "absolute";
|
|
26180
26186
|
svgDom.style.width = "0";
|
|
26181
26187
|
svgDom.style.height = "0";
|
|
26182
|
-
svgDom.id = "
|
|
26188
|
+
svgDom.id = "__svg__icons__dom__1777430449026__";
|
|
26183
26189
|
svgDom.setAttribute("xmlns", "http://www.w3.org/2000/svg");
|
|
26184
26190
|
svgDom.setAttribute("xmlns:link", "http://www.w3.org/1999/xlink");
|
|
26185
26191
|
}
|
|
@@ -61781,16 +61787,10 @@ const _sfc_main$4 = {
|
|
|
61781
61787
|
this.visible = newVal;
|
|
61782
61788
|
if (newVal) {
|
|
61783
61789
|
this.getTableData();
|
|
61790
|
+
this.selectedRows = this.fieldValue && Array.isArray(this.fieldValue) ? lodash.exports.cloneDeep(this.fieldValue) : [];
|
|
61784
61791
|
}
|
|
61785
61792
|
}
|
|
61786
61793
|
},
|
|
61787
|
-
fieldValue: {
|
|
61788
|
-
handler(newVal) {
|
|
61789
|
-
this.selectedRows = newVal && Array.isArray(newVal) ? lodash.exports.cloneDeep(newVal) : [];
|
|
61790
|
-
},
|
|
61791
|
-
deep: true,
|
|
61792
|
-
immediate: true
|
|
61793
|
-
},
|
|
61794
61794
|
assetTypeValue: {
|
|
61795
61795
|
handler(newVal) {
|
|
61796
61796
|
if (newVal) {
|
|
@@ -61970,13 +61970,14 @@ function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
61970
61970
|
createElementVNode("div", _hoisted_4, [
|
|
61971
61971
|
createVNode(_component_el_form, { model: $data.form }, {
|
|
61972
61972
|
default: withCtx(() => [
|
|
61973
|
-
createVNode(_component_el_row, { gutter:
|
|
61973
|
+
createVNode(_component_el_row, { gutter: 12 }, {
|
|
61974
61974
|
default: withCtx(() => [
|
|
61975
61975
|
createVNode(_component_el_col, { span: 5 }, {
|
|
61976
61976
|
default: withCtx(() => [
|
|
61977
61977
|
createVNode(_component_el_form_item, null, {
|
|
61978
61978
|
default: withCtx(() => [
|
|
61979
61979
|
createVNode(_component_el_input, {
|
|
61980
|
+
maxlength: "50",
|
|
61980
61981
|
modelValue: $data.form.assetCode,
|
|
61981
61982
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => $data.form.assetCode = $event),
|
|
61982
61983
|
placeholder: "\u8BF7\u8F93\u5165"
|
|
@@ -61997,6 +61998,7 @@ function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
61997
61998
|
createVNode(_component_el_form_item, null, {
|
|
61998
61999
|
default: withCtx(() => [
|
|
61999
62000
|
createVNode(_component_el_input, {
|
|
62001
|
+
maxlength: "50",
|
|
62000
62002
|
modelValue: $data.form.labelName,
|
|
62001
62003
|
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => $data.form.labelName = $event),
|
|
62002
62004
|
placeholder: "\u8BF7\u8F93\u5165"
|
|
@@ -62047,6 +62049,7 @@ function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
62047
62049
|
createVNode(_component_el_form_item, null, {
|
|
62048
62050
|
default: withCtx(() => [
|
|
62049
62051
|
createVNode(_component_el_input, {
|
|
62052
|
+
maxlength: "50",
|
|
62050
62053
|
modelValue: $data.form.assetOwnerUnit,
|
|
62051
62054
|
"onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => $data.form.assetOwnerUnit = $event),
|
|
62052
62055
|
placeholder: "\u8BF7\u8F93\u5165"
|
|
@@ -62115,6 +62118,8 @@ function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
62115
62118
|
}),
|
|
62116
62119
|
createVNode(_component_el_table_column, {
|
|
62117
62120
|
prop: "assetTypeName",
|
|
62121
|
+
"header-align": "center",
|
|
62122
|
+
align: "center",
|
|
62118
62123
|
label: "\u8D44\u4EA7\u7C7B\u578B"
|
|
62119
62124
|
}),
|
|
62120
62125
|
createVNode(_component_el_table_column, {
|
|
@@ -62123,7 +62128,8 @@ function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
62123
62128
|
}),
|
|
62124
62129
|
createVNode(_component_el_table_column, {
|
|
62125
62130
|
prop: "originalValue",
|
|
62126
|
-
label: "\u539F\u503C(\u4E07\u5143)"
|
|
62131
|
+
label: "\u539F\u503C(\u4E07\u5143)",
|
|
62132
|
+
width: "120"
|
|
62127
62133
|
}, {
|
|
62128
62134
|
default: withCtx(({ row }) => [
|
|
62129
62135
|
createTextVNode(toDisplayString(row.originalValue | _ctx.formatMoney), 1)
|
|
@@ -62132,7 +62138,8 @@ function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
62132
62138
|
}),
|
|
62133
62139
|
createVNode(_component_el_table_column, {
|
|
62134
62140
|
prop: "netValue",
|
|
62135
|
-
label: "\u51C0\u503C(\u4E07\u5143)"
|
|
62141
|
+
label: "\u51C0\u503C(\u4E07\u5143)",
|
|
62142
|
+
width: "120"
|
|
62136
62143
|
}, {
|
|
62137
62144
|
default: withCtx(({ row }) => [
|
|
62138
62145
|
createTextVNode(toDisplayString(row.netValue | _ctx.formatMoney), 1)
|
|
@@ -62219,7 +62226,7 @@ function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
62219
62226
|
_: 1
|
|
62220
62227
|
}, 8, ["modelValue", "onClose"]);
|
|
62221
62228
|
}
|
|
62222
|
-
var AssetDialog = /* @__PURE__ */ _export_sfc$1(_sfc_main$4, [["render", _sfc_render$4], ["__scopeId", "data-v-
|
|
62229
|
+
var AssetDialog = /* @__PURE__ */ _export_sfc$1(_sfc_main$4, [["render", _sfc_render$4], ["__scopeId", "data-v-b38703a2"]]);
|
|
62223
62230
|
var index_vue_vue_type_style_index_0_lang$1 = "";
|
|
62224
62231
|
const _sfc_main$3 = {
|
|
62225
62232
|
name: "asset-select-widget",
|
|
@@ -62914,7 +62921,7 @@ const _sfc_main$1 = {
|
|
|
62914
62921
|
const _hoisted_1$1 = { key: 1 };
|
|
62915
62922
|
function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
62916
62923
|
const _component_el_table_column = resolveComponent("el-table-column");
|
|
62917
|
-
const
|
|
62924
|
+
const _component_el_text = resolveComponent("el-text");
|
|
62918
62925
|
const _component_el_table = resolveComponent("el-table");
|
|
62919
62926
|
const _component_detail_dialog = resolveComponent("detail-dialog");
|
|
62920
62927
|
const _component_form_item_wrapper = resolveComponent("form-item-wrapper");
|
|
@@ -62952,12 +62959,14 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
62952
62959
|
}),
|
|
62953
62960
|
createVNode(_component_el_table_column, {
|
|
62954
62961
|
prop: "labelName",
|
|
62955
|
-
label: "\u8D44\u4EA7\u540D\u79F0"
|
|
62962
|
+
label: "\u8D44\u4EA7\u540D\u79F0",
|
|
62963
|
+
align: "left"
|
|
62956
62964
|
}, {
|
|
62957
62965
|
default: withCtx(({ row }) => [
|
|
62958
|
-
$props.field.options.clickRow ? (openBlock(), createBlock(
|
|
62966
|
+
$props.field.options.clickRow ? (openBlock(), createBlock(_component_el_text, {
|
|
62959
62967
|
key: 0,
|
|
62960
|
-
|
|
62968
|
+
class: "click-text",
|
|
62969
|
+
type: "primary",
|
|
62961
62970
|
size: "small",
|
|
62962
62971
|
onClick: ($event) => $options.handleRow(row)
|
|
62963
62972
|
}, {
|
|
@@ -62971,6 +62980,7 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
62971
62980
|
}),
|
|
62972
62981
|
createVNode(_component_el_table_column, {
|
|
62973
62982
|
prop: "assetTypeName",
|
|
62983
|
+
align: "center",
|
|
62974
62984
|
label: "\u8D44\u4EA7\u7C7B\u578B"
|
|
62975
62985
|
}),
|
|
62976
62986
|
createVNode(_component_el_table_column, {
|
|
@@ -62997,6 +63007,8 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
62997
63007
|
}),
|
|
62998
63008
|
createVNode(_component_el_table_column, {
|
|
62999
63009
|
prop: "isUpdate",
|
|
63010
|
+
align: "center",
|
|
63011
|
+
"header-align": "center",
|
|
63000
63012
|
label: "\u662F\u5426\u5DF2\u5B8C\u6210\u586B\u5199"
|
|
63001
63013
|
}, {
|
|
63002
63014
|
default: withCtx(({ row }) => [
|
|
@@ -63218,6 +63230,8 @@ const loadExtension = function(app) {
|
|
|
63218
63230
|
registerCPEditor(app, "card-shadow", "card-shadow-editor", createSelectEditor("shadow", "extension.setting.cardShadow", {
|
|
63219
63231
|
optionItems: shadowOptions
|
|
63220
63232
|
}));
|
|
63233
|
+
registerCPEditor(app, "mainTip", "mainTip-editor", createInputTextEditor("mainTip", "designer.setting.mainTip"));
|
|
63234
|
+
registerCPEditor(app, "subTip", "subTip-editor", createInputTextEditor("subTip", "designer.setting.subTip"));
|
|
63221
63235
|
app.component(AlertWidget.name, AlertWidget);
|
|
63222
63236
|
registerCPEditor(app, "alert-title", "alert-title-editor", createInputTextEditor("title", "extension.setting.alertTitle"));
|
|
63223
63237
|
let typeOptions = [
|