slw 0.10.10 → 0.10.12
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.
|
@@ -8533,11 +8533,11 @@ PictureUpload.name = "slw-picture-upload";
|
|
|
8533
8533
|
PictureUpload.install = (H) => {
|
|
8534
8534
|
H.component(PictureUpload.name, PictureUpload);
|
|
8535
8535
|
};
|
|
8536
|
-
const
|
|
8536
|
+
const windowGrid_vue_vue_type_style_index_0_scoped_017a6064_lang = "", _withScopeId$8 = (H) => (pushScopeId("data-v-017a6064"), H = H(), popScopeId(), H), _hoisted_1$l1 = /* @__PURE__ */ _withScopeId$8(() => /* @__PURE__ */ createElementVNode("span", { class: "vxe-table--cell-main-area" }, null, -1)), _hoisted_2$kY = /* @__PURE__ */ _withScopeId$8(() => /* @__PURE__ */ createElementVNode("span", { class: "vxe-table--cell-active-area" }, null, -1)), _hoisted_3$hY = /* @__PURE__ */ _withScopeId$8(() => /* @__PURE__ */ createElementVNode("span", { class: "vxe-table--cell-copy-area" }, null, -1)), _hoisted_4$ay = [
|
|
8537
8537
|
_hoisted_1$l1,
|
|
8538
8538
|
_hoisted_2$kY,
|
|
8539
8539
|
_hoisted_3$hY
|
|
8540
|
-
], _hoisted_5$4Y = ["onClick"], _hoisted_6$21 = ["id"], _hoisted_7$14 = ["id"], _hoisted_8$
|
|
8540
|
+
], _hoisted_5$4Y = ["onClick"], _hoisted_6$21 = ["id"], _hoisted_7$14 = ["id"], _hoisted_8$H = {
|
|
8541
8541
|
key: 0,
|
|
8542
8542
|
style: { verticalAlign: "middle" }
|
|
8543
8543
|
}, _hoisted_9$n = ["id"], _hoisted_10$q = /* @__PURE__ */ _withScopeId$8(() => /* @__PURE__ */ createElementVNode("i", {
|
|
@@ -8559,7 +8559,7 @@ const windowGrid_vue_vue_type_style_index_0_scoped_268fd076_lang = "", _withScop
|
|
|
8559
8559
|
},
|
|
8560
8560
|
emits: ["update:gridData", "jumpDesign"],
|
|
8561
8561
|
setup(__props, { expose: __expose, emit }) {
|
|
8562
|
-
const props = __props, axios = inject("$axios"), hiprint = inject("$hiprint"), silentHiprint = inject("$silentHiprint"), serverPrint = inject("$serverPrint"), regionMap = inject("$regionMap"), focusInput = inject("$focusInput"), base64Encode = inject("$base64Encode"), base64Decode = inject("$base64Decode"), $T = inject("$t"), httpHeaders = inject("$httpHeaders"), addGridClickEvent = inject("$addGridClickEvent"), showPreView = inject("$showPreView"), showPreViewClose = inject("$showPreViewClose"), preViewCloseCallback = inject("$preViewCloseCallback"), closePreModal = inject("$closePreModal"), rowDbClick = inject("$rowDbClick"), $Modal = inject("$modal"), $qs = inject("$qs"), $ElMessage = inject("$ElMessage"), $vxeMessage = inject("$vxeMessage"), $vxeConfirm = inject("$vxeConfirm"), $vxeOpen = inject("$vxeOpen"), $vxeReadFile = inject("$vxeReadFile"), openModal = inject("$openModal"), closeModal = inject("$closeModal"), evalDefaultValue = inject("$evalDefaultValue"), callGridClickEvents = inject("$callGridClickEvents"), ElMessageBox = inject("$ElMessageBox"), addOnActivatedFun = inject("$addOnActivatedFun"), debounce = inject("$debounce"), router = inject("$router"), $externalFun = inject("$externalFun"), beginEdit = inject("$beginEdit"), route = useRoute(), $components = inject("$components"), $componentsPath = inject("$componentsPath"), executeFun = inject("$executeFun"), isActivatedFun = inject("$isActivatedFun");
|
|
8562
|
+
const props = __props, axios = inject("$axios"), hiprint = inject("$hiprint"), silentHiprint = inject("$silentHiprint", ""), serverPrint = inject("$serverPrint"), regionMap = inject("$regionMap"), focusInput = inject("$focusInput"), base64Encode = inject("$base64Encode"), base64Decode = inject("$base64Decode"), $T = inject("$t"), httpHeaders = inject("$httpHeaders"), addGridClickEvent = inject("$addGridClickEvent"), showPreView = inject("$showPreView"), showPreViewClose = inject("$showPreViewClose"), preViewCloseCallback = inject("$preViewCloseCallback"), closePreModal = inject("$closePreModal"), rowDbClick = inject("$rowDbClick"), $Modal = inject("$modal"), $qs = inject("$qs"), $ElMessage = inject("$ElMessage"), $vxeMessage = inject("$vxeMessage"), $vxeConfirm = inject("$vxeConfirm"), $vxeOpen = inject("$vxeOpen"), $vxeReadFile = inject("$vxeReadFile"), openModal = inject("$openModal"), closeModal = inject("$closeModal"), evalDefaultValue = inject("$evalDefaultValue"), callGridClickEvents = inject("$callGridClickEvents"), ElMessageBox = inject("$ElMessageBox"), addOnActivatedFun = inject("$addOnActivatedFun"), debounce = inject("$debounce"), router = inject("$router"), $externalFun = inject("$externalFun"), beginEdit = inject("$beginEdit"), route = useRoute(), $components = inject("$components"), $componentsPath = inject("$componentsPath"), executeFun = inject("$executeFun"), isActivatedFun = inject("$isActivatedFun");
|
|
8563
8563
|
let gridData = useVModel$1(props, "gridData", emit), rowIndex = ref(0), isImport = ref(!1), importUrl = ref(`${(axios == null ? void 0 : axios.baseUrl) || ""}/window/import`), importBtnId = ref(""), uploadConfig = ref({
|
|
8564
8564
|
show: !1,
|
|
8565
8565
|
dataId: "",
|
|
@@ -10137,6 +10137,36 @@ const windowGrid_vue_vue_type_style_index_0_scoped_268fd076_lang = "", _withScop
|
|
|
10137
10137
|
}, setEditGridInputSlotsVuePath = async (H, Q, Z = "append") => {
|
|
10138
10138
|
const G = getCurRegion().columns.filter((K) => K.field == Q.toUpperCase())[0];
|
|
10139
10139
|
G && (G.editRender.slotsComponent = markRaw((await $components[`${$componentsPath}/${H}`]()).default), G.editRender.props.slots = Z);
|
|
10140
|
+
}, setEditGridColumnSelectOption = (H, Q = []) => {
|
|
10141
|
+
const X = getCurRegion().columns.filter((G) => G.field == H.toUpperCase())[0];
|
|
10142
|
+
X && (X.editRender.options = Q);
|
|
10143
|
+
}, getEditGridColumnSelectOption = async (H, Q) => {
|
|
10144
|
+
let Z = getCurRegion();
|
|
10145
|
+
H && (Z = getRegion(H));
|
|
10146
|
+
let X = [];
|
|
10147
|
+
if (Z) {
|
|
10148
|
+
let G = Z.columns.filter((K) => K.field == Q.toUpperCase())[0];
|
|
10149
|
+
if (G.editRender.options)
|
|
10150
|
+
X = G.editRender.options;
|
|
10151
|
+
else {
|
|
10152
|
+
const K = await axios.post(
|
|
10153
|
+
"/window/selector",
|
|
10154
|
+
$qs.stringify({
|
|
10155
|
+
_region_id: Z.params._region_id,
|
|
10156
|
+
_field_id: G.querys.id,
|
|
10157
|
+
_select_id: G.querys.selectorId
|
|
10158
|
+
})
|
|
10159
|
+
);
|
|
10160
|
+
K.data.result && K.data.data && (X = K.data.data.map((ee) => Object.assign(
|
|
10161
|
+
{
|
|
10162
|
+
value: ee.VALUE,
|
|
10163
|
+
label: ee.NAME
|
|
10164
|
+
},
|
|
10165
|
+
ee
|
|
10166
|
+
)));
|
|
10167
|
+
}
|
|
10168
|
+
}
|
|
10169
|
+
return X;
|
|
10140
10170
|
};
|
|
10141
10171
|
return onMounted(async () => {
|
|
10142
10172
|
gridData.value.addListener && getCurRegion() && addListener(), gridData.value.type === "TREE_STRUCTURE" && (gridData.value.menuConfig = {
|
|
@@ -10209,7 +10239,7 @@ const windowGrid_vue_vue_type_style_index_0_scoped_268fd076_lang = "", _withScop
|
|
|
10209
10239
|
search(H);
|
|
10210
10240
|
}, curRegion.value.getCheckedData = () => getCheckedData(), curRegion.value.getSelectRecord = () => getSelectRecord(), curRegion.value.setChecked = (H) => {
|
|
10211
10241
|
setChecked(H);
|
|
10212
|
-
}, curRegion.value.getParentRegion = () => getParentRegion(), curRegion.value.exportData = () => exportData(), curRegion.value.removeRow = (H) => removeRow(), curRegion.value.clearGrid = () => clearGrid(), curRegion.value.setCheckboxRowColor = (H, Q) => setCheckboxRowColor(H, Q), curRegion.value.setFormValue = (H, Q) => setFormValue(H, Q), curRegion.value.setRowCellColor = (H, Q, Z, X) => setRowCellColor(H, Q, Z, X), curRegion.value.setFormSelectOption = (H, Q, Z) => setFormSelectOption(H, Q, Z), curRegion.value.getFormSelectOption = (H, Q) => getFormSelectOption(H, Q), curRegion.value.setColumnFixed = (H, Q) => setColumnFixed(H, Q), curRegion.value.getQueryForm = (H) => getQueryForm(H), curRegion.value.setCurrentRowByRowIndex = (H, Q) => setCurrentRowByRowIndex(H, Q), curRegion.value.setUploadData = (H) => setUploadData(H), curRegion.value.setCheckMethod = (H) => setCheckMethod(H), curRegion.value.setButtonDisplay = (H, Q) => setButtonDisplay(H, Q), curRegion.value.addColumn = (H) => addColumn(H), curRegion.value.clearCheckedReserveData = () => clearCheckedReserveData(), curRegion.value.setQueryFormItemProperty = (H, Q, Z) => setQueryFormItemProperty(H, Q, Z);
|
|
10242
|
+
}, curRegion.value.getParentRegion = () => getParentRegion(), curRegion.value.exportData = () => exportData(), curRegion.value.removeRow = (H) => removeRow(), curRegion.value.clearGrid = () => clearGrid(), curRegion.value.setCheckboxRowColor = (H, Q) => setCheckboxRowColor(H, Q), curRegion.value.setFormValue = (H, Q) => setFormValue(H, Q), curRegion.value.setRowCellColor = (H, Q, Z, X) => setRowCellColor(H, Q, Z, X), curRegion.value.setFormSelectOption = (H, Q, Z) => setFormSelectOption(H, Q, Z), curRegion.value.getFormSelectOption = (H, Q) => getFormSelectOption(H, Q), curRegion.value.setColumnFixed = (H, Q) => setColumnFixed(H, Q), curRegion.value.getQueryForm = (H) => getQueryForm(H), curRegion.value.setCurrentRowByRowIndex = (H, Q) => setCurrentRowByRowIndex(H, Q), curRegion.value.setUploadData = (H) => setUploadData(H), curRegion.value.setCheckMethod = (H) => setCheckMethod(H), curRegion.value.setButtonDisplay = (H, Q) => setButtonDisplay(H, Q), curRegion.value.addColumn = (H) => addColumn(H), curRegion.value.clearCheckedReserveData = () => clearCheckedReserveData(), curRegion.value.setQueryFormItemProperty = (H, Q, Z) => setQueryFormItemProperty(H, Q, Z), curRegion.value.setEditGridColumnSelectOption = (H, Q) => setEditGridColumnSelectOption(H, Q), curRegion.value.getEditGridColumnSelectOption = (H, Q) => getEditGridColumnSelectOption(H, Q);
|
|
10213
10243
|
}), onUnmounted(() => {
|
|
10214
10244
|
checkedGridVisible.value = !1, checkedGridFixed.value = !1, document.removeEventListener("mousedown", tableOutDestroyAreaBox), document.removeEventListener("mouseup", tbodymouseup), document.removeEventListener("paste", ctrlVPaste), document.removeEventListener("copy", ctrlCopyAndCut), document.removeEventListener("cut", ctrlCopyAndCut);
|
|
10215
10245
|
}), onDeactivated(() => {
|
|
@@ -10301,7 +10331,7 @@ const windowGrid_vue_vue_type_style_index_0_scoped_268fd076_lang = "", _withScop
|
|
|
10301
10331
|
onClick: (he) => toolBarButtonClick(ue, se, ce)
|
|
10302
10332
|
}, createSlots({
|
|
10303
10333
|
default: withCtx(() => [
|
|
10304
|
-
!ue.iconComponent || typeof ue.iconComponent > "u" ? (openBlock(), createElementBlock("span", _hoisted_8$
|
|
10334
|
+
!ue.iconComponent || typeof ue.iconComponent > "u" ? (openBlock(), createElementBlock("span", _hoisted_8$H, toDisplayString(unref($T)(ue.name)), 1)) : createCommentVNode("", !0)
|
|
10305
10335
|
]),
|
|
10306
10336
|
_: 2
|
|
10307
10337
|
}, [
|
|
@@ -10495,7 +10525,7 @@ const windowGrid_vue_vue_type_style_index_0_scoped_268fd076_lang = "", _withScop
|
|
|
10495
10525
|
]);
|
|
10496
10526
|
};
|
|
10497
10527
|
}
|
|
10498
|
-
}, WindowGrid = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["__scopeId", "data-v-
|
|
10528
|
+
}, WindowGrid = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["__scopeId", "data-v-017a6064"]]);
|
|
10499
10529
|
WindowGrid.name = "slw-window-grid";
|
|
10500
10530
|
WindowGrid.install = (H) => {
|
|
10501
10531
|
H.component(WindowGrid.name, WindowGrid);
|
|
@@ -44459,10 +44489,10 @@ var js = js$1.exports;
|
|
|
44459
44489
|
})(H);
|
|
44460
44490
|
})(js$1);
|
|
44461
44491
|
var jsExports = js$1.exports;
|
|
44462
|
-
const index$o = /* @__PURE__ */ getDefaultExportFromCjs(jsExports),
|
|
44492
|
+
const index$o = /* @__PURE__ */ getDefaultExportFromCjs(jsExports), windowForm_vue_vue_type_style_index_0_scoped_2aa2920b_lang = "", _withScopeId$7 = (H) => (pushScopeId("data-v-2aa2920b"), H = H(), popScopeId(), H), _hoisted_1$l0 = { class: "slw-window-form" }, _hoisted_2$kX = {
|
|
44463
44493
|
key: 0,
|
|
44464
44494
|
class: "form-title"
|
|
44465
|
-
}, _hoisted_3$hX = ["onClick"], _hoisted_4$ax = ["onClick"], _hoisted_5$4X = ["onClick"], _hoisted_6$20 = ["onClick"], _hoisted_7$13 = ["onClick"], _sfc_main$c = {
|
|
44495
|
+
}, _hoisted_3$hX = ["onClick"], _hoisted_4$ax = ["onClick"], _hoisted_5$4X = ["onClick"], _hoisted_6$20 = ["onClick"], _hoisted_7$13 = ["onClick"], _hoisted_8$G = ["onClick"], _sfc_main$c = {
|
|
44466
44496
|
__name: "window-form",
|
|
44467
44497
|
props: {
|
|
44468
44498
|
formConfig: {
|
|
@@ -44475,7 +44505,7 @@ const index$o = /* @__PURE__ */ getDefaultExportFromCjs(jsExports), windowForm_v
|
|
|
44475
44505
|
"update:formConfig"
|
|
44476
44506
|
],
|
|
44477
44507
|
setup(__props, { expose: __expose, emit: emits }) {
|
|
44478
|
-
const props = __props, axios = inject("$axios"), hiprint = inject("$hiprint"), silentHiprint = inject("$silentHiprint"), serverPrint = inject("$serverPrint"), showPreView = inject("$showPreView"), showPreViewClose = inject("$showPreViewClose"), preViewCloseCallback = inject("$preViewCloseCallback"), $Modal = inject("$modal"), $qs = inject("$qs"), $ElMessage = inject("$ElMessage"), $vxeMessage = inject("$vxeMessage"), base64Encode = inject("$base64Encode"), base64Decode = inject("$base64Decode"), $vxeConfirm = inject("$vxeConfirm"), $T = inject("$t"), openModal = inject("$openModal"), closeModal = inject("$closeModal"), focusInput = inject("$focusInput"), evalDefaultValue = inject("$evalDefaultValue");
|
|
44508
|
+
const props = __props, axios = inject("$axios"), hiprint = inject("$hiprint"), silentHiprint = inject("$silentHiprint", ""), serverPrint = inject("$serverPrint"), showPreView = inject("$showPreView"), showPreViewClose = inject("$showPreViewClose"), preViewCloseCallback = inject("$preViewCloseCallback"), $Modal = inject("$modal"), $qs = inject("$qs"), $ElMessage = inject("$ElMessage"), $vxeMessage = inject("$vxeMessage"), base64Encode = inject("$base64Encode"), base64Decode = inject("$base64Decode"), $vxeConfirm = inject("$vxeConfirm"), $T = inject("$t"), openModal = inject("$openModal"), closeModal = inject("$closeModal"), focusInput = inject("$focusInput"), evalDefaultValue = inject("$evalDefaultValue");
|
|
44479
44509
|
let regionMap = inject("$regionMap");
|
|
44480
44510
|
const ElMessageBox = inject("$ElMessageBox"), addOnActivatedFun = inject("$addOnActivatedFun"), debounce = inject("$debounce"), router = inject("$router"), $externalFun = inject("$externalFun"), route = useRoute(), $components = inject("$components"), $componentsPath = inject("$componentsPath"), executeFun = inject("$executeFun"), $VXETableConfig = inject("$VXETableConfig"), isActivatedFun = inject("$isActivatedFun");
|
|
44481
44511
|
let formConfig = useVModel$1(props, "formConfig", emits), gridData = ref(formConfig.value), formData = ref({}), fieldColumnMap = ref({}), formDataClone = ref({}), formLoading = ref(!1), queryTimeout = ref(null);
|
|
@@ -44493,7 +44523,9 @@ const index$o = /* @__PURE__ */ getDefaultExportFromCjs(jsExports), windowForm_v
|
|
|
44493
44523
|
}), fieldPreviewMap = ref({}), editorFocusField = ref("");
|
|
44494
44524
|
const localEditorViews = shallowRef({}), handleReady = (H, Q) => {
|
|
44495
44525
|
localEditorViews[H] = Q.view;
|
|
44496
|
-
}
|
|
44526
|
+
};
|
|
44527
|
+
let codemirrorDrawer = ref(!1), codemirrorTitle = ref(""), codemirrorCol = ref(null);
|
|
44528
|
+
const $Message = ref({
|
|
44497
44529
|
success(H) {
|
|
44498
44530
|
success(H);
|
|
44499
44531
|
},
|
|
@@ -45207,7 +45239,8 @@ const index$o = /* @__PURE__ */ getDefaultExportFromCjs(jsExports), windowForm_v
|
|
|
45207
45239
|
else if (Q == "swap") {
|
|
45208
45240
|
let G = X.doc.toString();
|
|
45209
45241
|
G = codeTranslationV3(G), G = G.replaceAll("this.$data.", "").replaceAll("this.$", "").replaceAll("this.", ""), formData.value[H.field] = G;
|
|
45210
|
-
}
|
|
45242
|
+
} else
|
|
45243
|
+
Q == "full" && (codemirrorDrawer.value = !0, codemirrorCol.value = H, codemirrorTitle.value = H.title);
|
|
45211
45244
|
Z.focus();
|
|
45212
45245
|
}, setTitleWidth = (H) => {
|
|
45213
45246
|
formConfig.value.params.formTitleWidth = H;
|
|
@@ -45226,7 +45259,7 @@ const index$o = /* @__PURE__ */ getDefaultExportFromCjs(jsExports), windowForm_v
|
|
|
45226
45259
|
H.getData = () => getData(), H.submitData = () => submitData(), H.getValue = (Q) => getValue(Q), H.setValue = (Q, Z) => setValue(Q, Z), H.checkSubmitData = () => checkSubmitData(), H.searchData = (Q) => searchData(Q);
|
|
45227
45260
|
};
|
|
45228
45261
|
return __expose({ submitData, validateDataChg, getValue, getRegion, getData }), (H, Q) => {
|
|
45229
|
-
const Z = resolveComponent("el-icon"), X = resolveComponent("el-button"), G = resolveComponent("el-input"), K = resolveComponent("vxe-form-item"), ee = resolveComponent("vxe-form"), te = resolveComponent("el-dialog");
|
|
45262
|
+
const Z = resolveComponent("el-icon"), X = resolveComponent("el-button"), G = resolveComponent("el-input"), K = resolveComponent("vxe-form-item"), ee = resolveComponent("vxe-form"), te = resolveComponent("el-dialog"), ne = resolveComponent("el-drawer");
|
|
45230
45263
|
return openBlock(), createElementBlock("div", _hoisted_1$l0, [
|
|
45231
45264
|
unref(formConfig).type === "FORM" ? (openBlock(), createElementBlock("div", {
|
|
45232
45265
|
key: 0,
|
|
@@ -45239,20 +45272,20 @@ const index$o = /* @__PURE__ */ getDefaultExportFromCjs(jsExports), windowForm_v
|
|
|
45239
45272
|
class: "form-buttons",
|
|
45240
45273
|
style: normalizeStyle(computeOptBtnStyle.value("top"))
|
|
45241
45274
|
}, [
|
|
45242
|
-
(openBlock(!0), createElementBlock(Fragment, null, renderList(buttons.value, (
|
|
45243
|
-
key:
|
|
45275
|
+
(openBlock(!0), createElementBlock(Fragment, null, renderList(buttons.value, (re) => (openBlock(), createBlock(X, {
|
|
45276
|
+
key: re.id,
|
|
45244
45277
|
"auto-insert-space": "",
|
|
45245
|
-
style: normalizeStyle("margin: 2px 2px 2px 2px;" +
|
|
45278
|
+
style: normalizeStyle("margin: 2px 2px 2px 2px;" + re.css),
|
|
45246
45279
|
type: "primary",
|
|
45247
|
-
loading:
|
|
45248
|
-
onClick: (
|
|
45280
|
+
loading: re.loading,
|
|
45281
|
+
onClick: (oe) => btnClickFun(re)
|
|
45249
45282
|
}, createSlots({
|
|
45250
45283
|
default: withCtx(() => [
|
|
45251
|
-
createTextVNode(" " + toDisplayString(unref($T)(
|
|
45284
|
+
createTextVNode(" " + toDisplayString(unref($T)(re.name)), 1)
|
|
45252
45285
|
]),
|
|
45253
45286
|
_: 2
|
|
45254
45287
|
}, [
|
|
45255
|
-
|
|
45288
|
+
re.iconComponent ? {
|
|
45256
45289
|
name: "icon",
|
|
45257
45290
|
fn: withCtx(() => [
|
|
45258
45291
|
createVNode(Z, {
|
|
@@ -45260,7 +45293,7 @@ const index$o = /* @__PURE__ */ getDefaultExportFromCjs(jsExports), windowForm_v
|
|
|
45260
45293
|
style: { verticalAlign: "middle" }
|
|
45261
45294
|
}, {
|
|
45262
45295
|
default: withCtx(() => [
|
|
45263
|
-
(openBlock(), createBlock(resolveDynamicComponent(
|
|
45296
|
+
(openBlock(), createBlock(resolveDynamicComponent(re.iconComponent)))
|
|
45264
45297
|
]),
|
|
45265
45298
|
_: 2
|
|
45266
45299
|
}, 1024)
|
|
@@ -45281,84 +45314,89 @@ const index$o = /* @__PURE__ */ getDefaultExportFromCjs(jsExports), windowForm_v
|
|
|
45281
45314
|
class: normalizeClass({ "single-row": unref(formConfig).params.singleRow })
|
|
45282
45315
|
}, {
|
|
45283
45316
|
default: withCtx(() => [
|
|
45284
|
-
(openBlock(!0), createElementBlock(Fragment, null, renderList(unref(formConfig).columns, (
|
|
45285
|
-
key:
|
|
45317
|
+
(openBlock(!0), createElementBlock(Fragment, null, renderList(unref(formConfig).columns, (re) => (openBlock(), createElementBlock(Fragment, {
|
|
45318
|
+
key: re.title
|
|
45286
45319
|
}, [
|
|
45287
|
-
|
|
45320
|
+
re.colType !== "showInGrid" ? (openBlock(), createBlock(K, {
|
|
45288
45321
|
key: 0,
|
|
45289
|
-
field:
|
|
45290
|
-
title: computeItemTitle.value(
|
|
45322
|
+
field: re.field,
|
|
45323
|
+
title: computeItemTitle.value(re),
|
|
45291
45324
|
"title-overflow": "tooltip",
|
|
45292
|
-
span: computeSpan.value(
|
|
45293
|
-
"item-render":
|
|
45294
|
-
"title-prefix":
|
|
45295
|
-
visible:
|
|
45296
|
-
style: normalizeStyle(
|
|
45297
|
-
"class-name": computeItemClass.value(
|
|
45298
|
-
"visible-method":
|
|
45325
|
+
span: computeSpan.value(re),
|
|
45326
|
+
"item-render": re.itemRender,
|
|
45327
|
+
"title-prefix": re.titlePrefix,
|
|
45328
|
+
visible: re.displayForm,
|
|
45329
|
+
style: normalizeStyle(re.style),
|
|
45330
|
+
"class-name": computeItemClass.value(re),
|
|
45331
|
+
"visible-method": re.editRender.props.displayLogic ? displayLogicEvent : null
|
|
45299
45332
|
}, createSlots({ _: 2 }, [
|
|
45300
|
-
|
|
45333
|
+
re.dataType === "EDITOR" ? {
|
|
45301
45334
|
name: "default",
|
|
45302
45335
|
fn: withCtx(() => [
|
|
45303
45336
|
createVNode(unref(T$2), {
|
|
45304
|
-
modelValue: unref(formData)[
|
|
45305
|
-
"onUpdate:modelValue": (
|
|
45337
|
+
modelValue: unref(formData)[re.field],
|
|
45338
|
+
"onUpdate:modelValue": (oe) => unref(formData)[re.field] = oe,
|
|
45306
45339
|
extensions: [
|
|
45307
|
-
getCodeLanguagePlugin(
|
|
45340
|
+
getCodeLanguagePlugin(re.language),
|
|
45308
45341
|
unref(EditorView).lineWrapping
|
|
45309
45342
|
],
|
|
45310
|
-
onReady: (
|
|
45311
|
-
onFocus: (
|
|
45343
|
+
onReady: (oe) => handleReady(re.field, oe),
|
|
45344
|
+
onFocus: (oe) => isRef(editorFocusField) ? editorFocusField.value = re.field : editorFocusField = re.field,
|
|
45312
45345
|
"auto-destroy": ""
|
|
45313
45346
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "extensions", "onReady", "onFocus"]),
|
|
45314
45347
|
createElementVNode("div", {
|
|
45315
45348
|
class: "editor-operation-btn",
|
|
45316
|
-
style: normalizeStyle(computeEditorBtnStyle.value(
|
|
45349
|
+
style: normalizeStyle(computeEditorBtnStyle.value(re.field))
|
|
45317
45350
|
}, [
|
|
45318
|
-
|
|
45351
|
+
re.language == "javascript" ? (openBlock(), createElementBlock("i", {
|
|
45319
45352
|
key: 0,
|
|
45320
45353
|
title: "美化",
|
|
45321
45354
|
class: "iconfont icon-magic-stick",
|
|
45322
|
-
onClick: (
|
|
45355
|
+
onClick: (oe) => onEditorBtnClick(re, "beautify")
|
|
45323
45356
|
}, null, 8, _hoisted_3$hX)) : createCommentVNode("", !0),
|
|
45324
45357
|
createElementVNode("i", {
|
|
45325
45358
|
title: "全选",
|
|
45326
45359
|
class: "iconfont icon-check-square",
|
|
45327
|
-
onClick: (
|
|
45360
|
+
onClick: (oe) => onEditorBtnClick(re, "checkAll")
|
|
45328
45361
|
}, null, 8, _hoisted_4$ax),
|
|
45329
45362
|
createElementVNode("i", {
|
|
45330
45363
|
title: "复制",
|
|
45331
45364
|
class: "iconfont icon-document-copy",
|
|
45332
|
-
onClick: (
|
|
45365
|
+
onClick: (oe) => onEditorBtnClick(re, "copy")
|
|
45333
45366
|
}, null, 8, _hoisted_5$4X),
|
|
45334
45367
|
createElementVNode("i", {
|
|
45335
45368
|
title: "清空",
|
|
45336
45369
|
class: "iconfont icon-clear",
|
|
45337
|
-
onClick: (
|
|
45370
|
+
onClick: (oe) => onEditorBtnClick(re, "clear")
|
|
45338
45371
|
}, null, 8, _hoisted_6$20),
|
|
45339
|
-
|
|
45372
|
+
re.language == "javascript" ? (openBlock(), createElementBlock("i", {
|
|
45340
45373
|
key: 1,
|
|
45341
45374
|
title: "组合式API转换",
|
|
45342
45375
|
class: "iconfont icon-swap",
|
|
45343
|
-
onClick: (
|
|
45344
|
-
}, null, 8, _hoisted_7$13)) : createCommentVNode("", !0)
|
|
45376
|
+
onClick: (oe) => onEditorBtnClick(re, "swap")
|
|
45377
|
+
}, null, 8, _hoisted_7$13)) : createCommentVNode("", !0),
|
|
45378
|
+
createElementVNode("i", {
|
|
45379
|
+
title: "放大",
|
|
45380
|
+
class: "iconfont icon-full-screen",
|
|
45381
|
+
onClick: (oe) => onEditorBtnClick(re, "full")
|
|
45382
|
+
}, null, 8, _hoisted_8$G)
|
|
45345
45383
|
], 4)
|
|
45346
45384
|
]),
|
|
45347
45385
|
key: "0"
|
|
45348
|
-
} :
|
|
45386
|
+
} : re.dataType === "STRING" && re.canScan === !0 ? {
|
|
45349
45387
|
name: "default",
|
|
45350
45388
|
fn: withCtx(() => [
|
|
45351
45389
|
createVNode(G, mergeProps$1({
|
|
45352
|
-
modelValue: unref(formData)[
|
|
45353
|
-
"onUpdate:modelValue": (
|
|
45354
|
-
},
|
|
45355
|
-
onKeyup: (
|
|
45356
|
-
onChange: (
|
|
45390
|
+
modelValue: unref(formData)[re.field],
|
|
45391
|
+
"onUpdate:modelValue": (oe) => unref(formData)[re.field] = oe
|
|
45392
|
+
}, re.itemRender.props, {
|
|
45393
|
+
onKeyup: (oe) => onIconInputEnter(re, oe),
|
|
45394
|
+
onChange: (oe) => onIconInputChange(re)
|
|
45357
45395
|
}), {
|
|
45358
45396
|
suffix: withCtx(() => [
|
|
45359
45397
|
createElementVNode("i", {
|
|
45360
45398
|
class: "iconfont icon-scan1",
|
|
45361
|
-
onClick: (
|
|
45399
|
+
onClick: (oe) => onScanIconClick(re),
|
|
45362
45400
|
style: { cursor: "pointer" }
|
|
45363
45401
|
}, null, 8, ["onClick"])
|
|
45364
45402
|
]),
|
|
@@ -45366,37 +45404,37 @@ const index$o = /* @__PURE__ */ getDefaultExportFromCjs(jsExports), windowForm_v
|
|
|
45366
45404
|
}, 1040, ["modelValue", "onUpdate:modelValue", "onKeyup", "onChange"])
|
|
45367
45405
|
]),
|
|
45368
45406
|
key: "1"
|
|
45369
|
-
} :
|
|
45407
|
+
} : re.itemRender.props.suffixIconfont || re.itemRender.props.prefixIconfont ? {
|
|
45370
45408
|
name: "default",
|
|
45371
45409
|
fn: withCtx(() => [
|
|
45372
45410
|
createVNode(G, mergeProps$1({
|
|
45373
|
-
modelValue: unref(formData)[
|
|
45374
|
-
"onUpdate:modelValue": (
|
|
45411
|
+
modelValue: unref(formData)[re.field],
|
|
45412
|
+
"onUpdate:modelValue": (oe) => unref(formData)[re.field] = oe,
|
|
45375
45413
|
clearable: !1
|
|
45376
|
-
},
|
|
45377
|
-
onKeyup: (
|
|
45378
|
-
onChange: (
|
|
45414
|
+
}, re.itemRender.props, {
|
|
45415
|
+
onKeyup: (oe) => onIconInputEnter(re, oe),
|
|
45416
|
+
onChange: (oe) => onIconInputChange(re)
|
|
45379
45417
|
}), createSlots({ _: 2 }, [
|
|
45380
|
-
|
|
45418
|
+
re.itemRender.props.suffixIconfont ? {
|
|
45381
45419
|
name: "suffix",
|
|
45382
45420
|
fn: withCtx(() => [
|
|
45383
45421
|
createElementVNode("i", {
|
|
45384
45422
|
class: normalizeClass(
|
|
45385
|
-
"iconfont " +
|
|
45423
|
+
"iconfont " + re.itemRender.props.suffixIconfont
|
|
45386
45424
|
),
|
|
45387
|
-
onClick: (
|
|
45425
|
+
onClick: (oe) => onIconClick(re),
|
|
45388
45426
|
style: { cursor: "pointer" }
|
|
45389
45427
|
}, null, 10, ["onClick"])
|
|
45390
45428
|
]),
|
|
45391
45429
|
key: "0"
|
|
45392
|
-
} :
|
|
45430
|
+
} : re.itemRender.props.prefixIconfont ? {
|
|
45393
45431
|
name: "prefix",
|
|
45394
45432
|
fn: withCtx(() => [
|
|
45395
45433
|
createElementVNode("i", {
|
|
45396
45434
|
class: normalizeClass(
|
|
45397
|
-
"iconfont " +
|
|
45435
|
+
"iconfont " + re.itemRender.props.prefixIconfont
|
|
45398
45436
|
),
|
|
45399
|
-
onClick: (
|
|
45437
|
+
onClick: (oe) => onIconClick(re),
|
|
45400
45438
|
style: { cursor: "pointer" }
|
|
45401
45439
|
}, null, 10, ["onClick"])
|
|
45402
45440
|
]),
|
|
@@ -45405,25 +45443,25 @@ const index$o = /* @__PURE__ */ getDefaultExportFromCjs(jsExports), windowForm_v
|
|
|
45405
45443
|
]), 1040, ["modelValue", "onUpdate:modelValue", "onKeyup", "onChange"])
|
|
45406
45444
|
]),
|
|
45407
45445
|
key: "2"
|
|
45408
|
-
} :
|
|
45446
|
+
} : re.dataType === "IMG" ? {
|
|
45409
45447
|
name: "default",
|
|
45410
45448
|
fn: withCtx(() => [
|
|
45411
45449
|
createVNode(unref(PictureUpload), {
|
|
45412
45450
|
uploadConfig: unref(uploadConfig),
|
|
45413
|
-
fileFormData: unref(formData)[
|
|
45414
|
-
"onUpdate:fileFormData": (
|
|
45415
|
-
filePreviewList: unref(fieldPreviewMap)[
|
|
45416
|
-
"onUpdate:filePreviewList": (
|
|
45451
|
+
fileFormData: unref(formData)[re.field],
|
|
45452
|
+
"onUpdate:fileFormData": (oe) => unref(formData)[re.field] = oe,
|
|
45453
|
+
filePreviewList: unref(fieldPreviewMap)[re.field],
|
|
45454
|
+
"onUpdate:filePreviewList": (oe) => unref(fieldPreviewMap)[re.field] = oe
|
|
45417
45455
|
}, null, 8, ["uploadConfig", "fileFormData", "onUpdate:fileFormData", "filePreviewList", "onUpdate:filePreviewList"])
|
|
45418
45456
|
]),
|
|
45419
45457
|
key: "3"
|
|
45420
45458
|
} : void 0,
|
|
45421
|
-
|
|
45459
|
+
re.slotsTitle ? {
|
|
45422
45460
|
name: "title",
|
|
45423
45461
|
fn: withCtx(() => [
|
|
45424
|
-
(openBlock(), createBlock(resolveDynamicComponent(formItemTitleComponent.value[
|
|
45462
|
+
(openBlock(), createBlock(resolveDynamicComponent(formItemTitleComponent.value[re.field]), {
|
|
45425
45463
|
ref_for: !0,
|
|
45426
|
-
ref: (
|
|
45464
|
+
ref: (oe) => handleSetFormItemTitleRef(oe, re.field)
|
|
45427
45465
|
}, null, 512))
|
|
45428
45466
|
]),
|
|
45429
45467
|
key: "4"
|
|
@@ -45436,20 +45474,20 @@ const index$o = /* @__PURE__ */ getDefaultExportFromCjs(jsExports), windowForm_v
|
|
|
45436
45474
|
span: "24"
|
|
45437
45475
|
}, {
|
|
45438
45476
|
default: withCtx(() => [
|
|
45439
|
-
(openBlock(!0), createElementBlock(Fragment, null, renderList(buttons.value, (
|
|
45440
|
-
key:
|
|
45477
|
+
(openBlock(!0), createElementBlock(Fragment, null, renderList(buttons.value, (re) => (openBlock(), createBlock(X, {
|
|
45478
|
+
key: re.id,
|
|
45441
45479
|
"auto-insert-space": "",
|
|
45442
|
-
style: normalizeStyle("margin: 2px 2px 2px 2px;" +
|
|
45480
|
+
style: normalizeStyle("margin: 2px 2px 2px 2px;" + re.css),
|
|
45443
45481
|
type: "primary",
|
|
45444
|
-
loading:
|
|
45445
|
-
onClick: (
|
|
45482
|
+
loading: re.loading,
|
|
45483
|
+
onClick: (oe) => btnClickFun(re)
|
|
45446
45484
|
}, createSlots({
|
|
45447
45485
|
default: withCtx(() => [
|
|
45448
|
-
createTextVNode(" " + toDisplayString(unref($T)(
|
|
45486
|
+
createTextVNode(" " + toDisplayString(unref($T)(re.name)), 1)
|
|
45449
45487
|
]),
|
|
45450
45488
|
_: 2
|
|
45451
45489
|
}, [
|
|
45452
|
-
|
|
45490
|
+
re.iconComponent ? {
|
|
45453
45491
|
name: "icon",
|
|
45454
45492
|
fn: withCtx(() => [
|
|
45455
45493
|
createVNode(Z, {
|
|
@@ -45457,7 +45495,7 @@ const index$o = /* @__PURE__ */ getDefaultExportFromCjs(jsExports), windowForm_v
|
|
|
45457
45495
|
style: { verticalAlign: "middle" }
|
|
45458
45496
|
}, {
|
|
45459
45497
|
default: withCtx(() => [
|
|
45460
|
-
(openBlock(), createBlock(resolveDynamicComponent(
|
|
45498
|
+
(openBlock(), createBlock(resolveDynamicComponent(re.iconComponent)))
|
|
45461
45499
|
]),
|
|
45462
45500
|
_: 2
|
|
45463
45501
|
}, 1024)
|
|
@@ -45475,7 +45513,7 @@ const index$o = /* @__PURE__ */ getDefaultExportFromCjs(jsExports), windowForm_v
|
|
|
45475
45513
|
ref: "pictureUploadModal",
|
|
45476
45514
|
width: "20%",
|
|
45477
45515
|
modelValue: unref(uploadConfig).show,
|
|
45478
|
-
"onUpdate:modelValue": Q[0] || (Q[0] = (
|
|
45516
|
+
"onUpdate:modelValue": Q[0] || (Q[0] = (re) => unref(uploadConfig).show = re),
|
|
45479
45517
|
"z-index": 1e3,
|
|
45480
45518
|
draggable: "",
|
|
45481
45519
|
"append-to-body": "",
|
|
@@ -45487,11 +45525,29 @@ const index$o = /* @__PURE__ */ getDefaultExportFromCjs(jsExports), windowForm_v
|
|
|
45487
45525
|
createVNode(unref(PictureUpload), { uploadConfig: unref(uploadConfig) }, null, 8, ["uploadConfig"])
|
|
45488
45526
|
]),
|
|
45489
45527
|
_: 1
|
|
45528
|
+
}, 8, ["modelValue", "title"]),
|
|
45529
|
+
createVNode(ne, {
|
|
45530
|
+
modelValue: unref(codemirrorDrawer),
|
|
45531
|
+
"onUpdate:modelValue": Q[3] || (Q[3] = (re) => isRef(codemirrorDrawer) ? codemirrorDrawer.value = re : codemirrorDrawer = re),
|
|
45532
|
+
title: unref(codemirrorTitle),
|
|
45533
|
+
direction: "rtl",
|
|
45534
|
+
class: "codemirror-drawer"
|
|
45535
|
+
}, {
|
|
45536
|
+
default: withCtx(() => [
|
|
45537
|
+
createVNode(unref(T$2), {
|
|
45538
|
+
modelValue: unref(formData)[unref(codemirrorCol).field],
|
|
45539
|
+
"onUpdate:modelValue": Q[1] || (Q[1] = (re) => unref(formData)[unref(codemirrorCol).field] = re),
|
|
45540
|
+
extensions: [getCodeLanguagePlugin(unref(codemirrorCol).language), unref(EditorView).lineWrapping],
|
|
45541
|
+
onFocus: Q[2] || (Q[2] = (re) => isRef(editorFocusField) ? editorFocusField.value = unref(codemirrorCol).field : editorFocusField = unref(codemirrorCol).field),
|
|
45542
|
+
"auto-destroy": ""
|
|
45543
|
+
}, null, 8, ["modelValue", "extensions"])
|
|
45544
|
+
]),
|
|
45545
|
+
_: 1
|
|
45490
45546
|
}, 8, ["modelValue", "title"])
|
|
45491
45547
|
]);
|
|
45492
45548
|
};
|
|
45493
45549
|
}
|
|
45494
|
-
}, WindowForm = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["__scopeId", "data-v-
|
|
45550
|
+
}, WindowForm = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["__scopeId", "data-v-2aa2920b"]]);
|
|
45495
45551
|
WindowForm.name = "slw-window-form";
|
|
45496
45552
|
WindowForm.install = (H) => {
|
|
45497
45553
|
H.component(WindowForm.name, WindowForm);
|
|
@@ -62635,7 +62691,7 @@ const windowDesigner_vue_vue_type_style_index_0_scoped_a3ebe962_lang = "", _with
|
|
|
62635
62691
|
emits: ["update:type", "update:rootLayout", "update:viewData", "update:rowData"],
|
|
62636
62692
|
setup(H, { emit: Q }) {
|
|
62637
62693
|
const Z = H, X = defineAsyncComponent(
|
|
62638
|
-
() => import("./index-
|
|
62694
|
+
() => import("./index-ca5cfca5.js")
|
|
62639
62695
|
);
|
|
62640
62696
|
let G = useVModel(Z, "type", Q), K = useVModel(Z, "rootLayout", Q), ee = useVModel(Z, "viewData", Q), te = useVModel(Z, "rowData", Q), ne = ref(0), re = ref(null);
|
|
62641
62697
|
re.value = createDesigner();
|
|
@@ -147775,7 +147831,7 @@ function reConsole() {
|
|
|
147775
147831
|
}
|
|
147776
147832
|
}
|
|
147777
147833
|
console.info(
|
|
147778
|
-
`%cSLW %cVer 0.10.
|
|
147834
|
+
`%cSLW %cVer 0.10.12%c
|
|
147779
147835
|
%c指引文档:%chttp://slwdoc.js.sforcecon.com:5900/%c
|
|
147780
147836
|
%c启光文档:%chttp://docs.js.sforcecon.com:5900/notepad/view/592`,
|
|
147781
147837
|
"color:#409EFF;font-size: 22px;font-weight:bolder;text-shadow: 2px 2px 4px #84c1ff;",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { pushScopeId as P, popScopeId as V, createElementVNode as h, resolveComponent as g, openBlock as o, createElementBlock as p, createBlock as f, normalizeClass as T, normalizeStyle as A, withModifiers as R, withCtx as r, renderSlot as q, createCommentVNode as _, Fragment as B, createVNode as s, mergeProps as k, renderList as j, toDisplayString as E, normalizeProps as K, guardReactiveProps as Q, resolveDynamicComponent as Z, defineAsyncComponent as $, computed as F, unref as D, withDirectives as ee, vShow as te } from "vue";
|
|
2
|
-
import { _ as x, d as S, a as L, u as N } from "./index-
|
|
2
|
+
import { _ as x, d as S, a as L, u as N } from "./index-2e577275.js";
|
|
3
3
|
import "vue-router";
|
|
4
4
|
const I = {
|
|
5
5
|
computed: {},
|
package/lib/index.js
CHANGED