slw 0.10.10 → 0.10.11
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.
|
@@ -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-820929a2.js";
|
|
3
3
|
import "vue-router";
|
|
4
4
|
const I = {
|
|
5
5
|
computed: {},
|
|
@@ -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_cc35f3fa_lang = "", _withScopeId$8 = (H) => (pushScopeId("data-v-cc35f3fa"), 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: "",
|
|
@@ -10301,7 +10301,7 @@ const windowGrid_vue_vue_type_style_index_0_scoped_268fd076_lang = "", _withScop
|
|
|
10301
10301
|
onClick: (he) => toolBarButtonClick(ue, se, ce)
|
|
10302
10302
|
}, createSlots({
|
|
10303
10303
|
default: withCtx(() => [
|
|
10304
|
-
!ue.iconComponent || typeof ue.iconComponent > "u" ? (openBlock(), createElementBlock("span", _hoisted_8$
|
|
10304
|
+
!ue.iconComponent || typeof ue.iconComponent > "u" ? (openBlock(), createElementBlock("span", _hoisted_8$H, toDisplayString(unref($T)(ue.name)), 1)) : createCommentVNode("", !0)
|
|
10305
10305
|
]),
|
|
10306
10306
|
_: 2
|
|
10307
10307
|
}, [
|
|
@@ -10495,7 +10495,7 @@ const windowGrid_vue_vue_type_style_index_0_scoped_268fd076_lang = "", _withScop
|
|
|
10495
10495
|
]);
|
|
10496
10496
|
};
|
|
10497
10497
|
}
|
|
10498
|
-
}, WindowGrid = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["__scopeId", "data-v-
|
|
10498
|
+
}, WindowGrid = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["__scopeId", "data-v-cc35f3fa"]]);
|
|
10499
10499
|
WindowGrid.name = "slw-window-grid";
|
|
10500
10500
|
WindowGrid.install = (H) => {
|
|
10501
10501
|
H.component(WindowGrid.name, WindowGrid);
|
|
@@ -44459,10 +44459,10 @@ var js = js$1.exports;
|
|
|
44459
44459
|
})(H);
|
|
44460
44460
|
})(js$1);
|
|
44461
44461
|
var jsExports = js$1.exports;
|
|
44462
|
-
const index$o = /* @__PURE__ */ getDefaultExportFromCjs(jsExports),
|
|
44462
|
+
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
44463
|
key: 0,
|
|
44464
44464
|
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 = {
|
|
44465
|
+
}, _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
44466
|
__name: "window-form",
|
|
44467
44467
|
props: {
|
|
44468
44468
|
formConfig: {
|
|
@@ -44475,7 +44475,7 @@ const index$o = /* @__PURE__ */ getDefaultExportFromCjs(jsExports), windowForm_v
|
|
|
44475
44475
|
"update:formConfig"
|
|
44476
44476
|
],
|
|
44477
44477
|
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");
|
|
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");
|
|
44479
44479
|
let regionMap = inject("$regionMap");
|
|
44480
44480
|
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
44481
|
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 +44493,9 @@ const index$o = /* @__PURE__ */ getDefaultExportFromCjs(jsExports), windowForm_v
|
|
|
44493
44493
|
}), fieldPreviewMap = ref({}), editorFocusField = ref("");
|
|
44494
44494
|
const localEditorViews = shallowRef({}), handleReady = (H, Q) => {
|
|
44495
44495
|
localEditorViews[H] = Q.view;
|
|
44496
|
-
}
|
|
44496
|
+
};
|
|
44497
|
+
let codemirrorDrawer = ref(!1), codemirrorTitle = ref(""), codemirrorCol = ref(null);
|
|
44498
|
+
const $Message = ref({
|
|
44497
44499
|
success(H) {
|
|
44498
44500
|
success(H);
|
|
44499
44501
|
},
|
|
@@ -45207,7 +45209,8 @@ const index$o = /* @__PURE__ */ getDefaultExportFromCjs(jsExports), windowForm_v
|
|
|
45207
45209
|
else if (Q == "swap") {
|
|
45208
45210
|
let G = X.doc.toString();
|
|
45209
45211
|
G = codeTranslationV3(G), G = G.replaceAll("this.$data.", "").replaceAll("this.$", "").replaceAll("this.", ""), formData.value[H.field] = G;
|
|
45210
|
-
}
|
|
45212
|
+
} else
|
|
45213
|
+
Q == "full" && (codemirrorDrawer.value = !0, codemirrorCol.value = H, codemirrorTitle.value = H.title);
|
|
45211
45214
|
Z.focus();
|
|
45212
45215
|
}, setTitleWidth = (H) => {
|
|
45213
45216
|
formConfig.value.params.formTitleWidth = H;
|
|
@@ -45226,7 +45229,7 @@ const index$o = /* @__PURE__ */ getDefaultExportFromCjs(jsExports), windowForm_v
|
|
|
45226
45229
|
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
45230
|
};
|
|
45228
45231
|
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");
|
|
45232
|
+
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
45233
|
return openBlock(), createElementBlock("div", _hoisted_1$l0, [
|
|
45231
45234
|
unref(formConfig).type === "FORM" ? (openBlock(), createElementBlock("div", {
|
|
45232
45235
|
key: 0,
|
|
@@ -45239,20 +45242,20 @@ const index$o = /* @__PURE__ */ getDefaultExportFromCjs(jsExports), windowForm_v
|
|
|
45239
45242
|
class: "form-buttons",
|
|
45240
45243
|
style: normalizeStyle(computeOptBtnStyle.value("top"))
|
|
45241
45244
|
}, [
|
|
45242
|
-
(openBlock(!0), createElementBlock(Fragment, null, renderList(buttons.value, (
|
|
45243
|
-
key:
|
|
45245
|
+
(openBlock(!0), createElementBlock(Fragment, null, renderList(buttons.value, (re) => (openBlock(), createBlock(X, {
|
|
45246
|
+
key: re.id,
|
|
45244
45247
|
"auto-insert-space": "",
|
|
45245
|
-
style: normalizeStyle("margin: 2px 2px 2px 2px;" +
|
|
45248
|
+
style: normalizeStyle("margin: 2px 2px 2px 2px;" + re.css),
|
|
45246
45249
|
type: "primary",
|
|
45247
|
-
loading:
|
|
45248
|
-
onClick: (
|
|
45250
|
+
loading: re.loading,
|
|
45251
|
+
onClick: (oe) => btnClickFun(re)
|
|
45249
45252
|
}, createSlots({
|
|
45250
45253
|
default: withCtx(() => [
|
|
45251
|
-
createTextVNode(" " + toDisplayString(unref($T)(
|
|
45254
|
+
createTextVNode(" " + toDisplayString(unref($T)(re.name)), 1)
|
|
45252
45255
|
]),
|
|
45253
45256
|
_: 2
|
|
45254
45257
|
}, [
|
|
45255
|
-
|
|
45258
|
+
re.iconComponent ? {
|
|
45256
45259
|
name: "icon",
|
|
45257
45260
|
fn: withCtx(() => [
|
|
45258
45261
|
createVNode(Z, {
|
|
@@ -45260,7 +45263,7 @@ const index$o = /* @__PURE__ */ getDefaultExportFromCjs(jsExports), windowForm_v
|
|
|
45260
45263
|
style: { verticalAlign: "middle" }
|
|
45261
45264
|
}, {
|
|
45262
45265
|
default: withCtx(() => [
|
|
45263
|
-
(openBlock(), createBlock(resolveDynamicComponent(
|
|
45266
|
+
(openBlock(), createBlock(resolveDynamicComponent(re.iconComponent)))
|
|
45264
45267
|
]),
|
|
45265
45268
|
_: 2
|
|
45266
45269
|
}, 1024)
|
|
@@ -45281,84 +45284,89 @@ const index$o = /* @__PURE__ */ getDefaultExportFromCjs(jsExports), windowForm_v
|
|
|
45281
45284
|
class: normalizeClass({ "single-row": unref(formConfig).params.singleRow })
|
|
45282
45285
|
}, {
|
|
45283
45286
|
default: withCtx(() => [
|
|
45284
|
-
(openBlock(!0), createElementBlock(Fragment, null, renderList(unref(formConfig).columns, (
|
|
45285
|
-
key:
|
|
45287
|
+
(openBlock(!0), createElementBlock(Fragment, null, renderList(unref(formConfig).columns, (re) => (openBlock(), createElementBlock(Fragment, {
|
|
45288
|
+
key: re.title
|
|
45286
45289
|
}, [
|
|
45287
|
-
|
|
45290
|
+
re.colType !== "showInGrid" ? (openBlock(), createBlock(K, {
|
|
45288
45291
|
key: 0,
|
|
45289
|
-
field:
|
|
45290
|
-
title: computeItemTitle.value(
|
|
45292
|
+
field: re.field,
|
|
45293
|
+
title: computeItemTitle.value(re),
|
|
45291
45294
|
"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":
|
|
45295
|
+
span: computeSpan.value(re),
|
|
45296
|
+
"item-render": re.itemRender,
|
|
45297
|
+
"title-prefix": re.titlePrefix,
|
|
45298
|
+
visible: re.displayForm,
|
|
45299
|
+
style: normalizeStyle(re.style),
|
|
45300
|
+
"class-name": computeItemClass.value(re),
|
|
45301
|
+
"visible-method": re.editRender.props.displayLogic ? displayLogicEvent : null
|
|
45299
45302
|
}, createSlots({ _: 2 }, [
|
|
45300
|
-
|
|
45303
|
+
re.dataType === "EDITOR" ? {
|
|
45301
45304
|
name: "default",
|
|
45302
45305
|
fn: withCtx(() => [
|
|
45303
45306
|
createVNode(unref(T$2), {
|
|
45304
|
-
modelValue: unref(formData)[
|
|
45305
|
-
"onUpdate:modelValue": (
|
|
45307
|
+
modelValue: unref(formData)[re.field],
|
|
45308
|
+
"onUpdate:modelValue": (oe) => unref(formData)[re.field] = oe,
|
|
45306
45309
|
extensions: [
|
|
45307
|
-
getCodeLanguagePlugin(
|
|
45310
|
+
getCodeLanguagePlugin(re.language),
|
|
45308
45311
|
unref(EditorView).lineWrapping
|
|
45309
45312
|
],
|
|
45310
|
-
onReady: (
|
|
45311
|
-
onFocus: (
|
|
45313
|
+
onReady: (oe) => handleReady(re.field, oe),
|
|
45314
|
+
onFocus: (oe) => isRef(editorFocusField) ? editorFocusField.value = re.field : editorFocusField = re.field,
|
|
45312
45315
|
"auto-destroy": ""
|
|
45313
45316
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "extensions", "onReady", "onFocus"]),
|
|
45314
45317
|
createElementVNode("div", {
|
|
45315
45318
|
class: "editor-operation-btn",
|
|
45316
|
-
style: normalizeStyle(computeEditorBtnStyle.value(
|
|
45319
|
+
style: normalizeStyle(computeEditorBtnStyle.value(re.field))
|
|
45317
45320
|
}, [
|
|
45318
|
-
|
|
45321
|
+
re.language == "javascript" ? (openBlock(), createElementBlock("i", {
|
|
45319
45322
|
key: 0,
|
|
45320
45323
|
title: "美化",
|
|
45321
45324
|
class: "iconfont icon-magic-stick",
|
|
45322
|
-
onClick: (
|
|
45325
|
+
onClick: (oe) => onEditorBtnClick(re, "beautify")
|
|
45323
45326
|
}, null, 8, _hoisted_3$hX)) : createCommentVNode("", !0),
|
|
45324
45327
|
createElementVNode("i", {
|
|
45325
45328
|
title: "全选",
|
|
45326
45329
|
class: "iconfont icon-check-square",
|
|
45327
|
-
onClick: (
|
|
45330
|
+
onClick: (oe) => onEditorBtnClick(re, "checkAll")
|
|
45328
45331
|
}, null, 8, _hoisted_4$ax),
|
|
45329
45332
|
createElementVNode("i", {
|
|
45330
45333
|
title: "复制",
|
|
45331
45334
|
class: "iconfont icon-document-copy",
|
|
45332
|
-
onClick: (
|
|
45335
|
+
onClick: (oe) => onEditorBtnClick(re, "copy")
|
|
45333
45336
|
}, null, 8, _hoisted_5$4X),
|
|
45334
45337
|
createElementVNode("i", {
|
|
45335
45338
|
title: "清空",
|
|
45336
45339
|
class: "iconfont icon-clear",
|
|
45337
|
-
onClick: (
|
|
45340
|
+
onClick: (oe) => onEditorBtnClick(re, "clear")
|
|
45338
45341
|
}, null, 8, _hoisted_6$20),
|
|
45339
|
-
|
|
45342
|
+
re.language == "javascript" ? (openBlock(), createElementBlock("i", {
|
|
45340
45343
|
key: 1,
|
|
45341
45344
|
title: "组合式API转换",
|
|
45342
45345
|
class: "iconfont icon-swap",
|
|
45343
|
-
onClick: (
|
|
45344
|
-
}, null, 8, _hoisted_7$13)) : createCommentVNode("", !0)
|
|
45346
|
+
onClick: (oe) => onEditorBtnClick(re, "swap")
|
|
45347
|
+
}, null, 8, _hoisted_7$13)) : createCommentVNode("", !0),
|
|
45348
|
+
createElementVNode("i", {
|
|
45349
|
+
title: "放大",
|
|
45350
|
+
class: "iconfont icon-full-screen",
|
|
45351
|
+
onClick: (oe) => onEditorBtnClick(re, "full")
|
|
45352
|
+
}, null, 8, _hoisted_8$G)
|
|
45345
45353
|
], 4)
|
|
45346
45354
|
]),
|
|
45347
45355
|
key: "0"
|
|
45348
|
-
} :
|
|
45356
|
+
} : re.dataType === "STRING" && re.canScan === !0 ? {
|
|
45349
45357
|
name: "default",
|
|
45350
45358
|
fn: withCtx(() => [
|
|
45351
45359
|
createVNode(G, mergeProps$1({
|
|
45352
|
-
modelValue: unref(formData)[
|
|
45353
|
-
"onUpdate:modelValue": (
|
|
45354
|
-
},
|
|
45355
|
-
onKeyup: (
|
|
45356
|
-
onChange: (
|
|
45360
|
+
modelValue: unref(formData)[re.field],
|
|
45361
|
+
"onUpdate:modelValue": (oe) => unref(formData)[re.field] = oe
|
|
45362
|
+
}, re.itemRender.props, {
|
|
45363
|
+
onKeyup: (oe) => onIconInputEnter(re, oe),
|
|
45364
|
+
onChange: (oe) => onIconInputChange(re)
|
|
45357
45365
|
}), {
|
|
45358
45366
|
suffix: withCtx(() => [
|
|
45359
45367
|
createElementVNode("i", {
|
|
45360
45368
|
class: "iconfont icon-scan1",
|
|
45361
|
-
onClick: (
|
|
45369
|
+
onClick: (oe) => onScanIconClick(re),
|
|
45362
45370
|
style: { cursor: "pointer" }
|
|
45363
45371
|
}, null, 8, ["onClick"])
|
|
45364
45372
|
]),
|
|
@@ -45366,37 +45374,37 @@ const index$o = /* @__PURE__ */ getDefaultExportFromCjs(jsExports), windowForm_v
|
|
|
45366
45374
|
}, 1040, ["modelValue", "onUpdate:modelValue", "onKeyup", "onChange"])
|
|
45367
45375
|
]),
|
|
45368
45376
|
key: "1"
|
|
45369
|
-
} :
|
|
45377
|
+
} : re.itemRender.props.suffixIconfont || re.itemRender.props.prefixIconfont ? {
|
|
45370
45378
|
name: "default",
|
|
45371
45379
|
fn: withCtx(() => [
|
|
45372
45380
|
createVNode(G, mergeProps$1({
|
|
45373
|
-
modelValue: unref(formData)[
|
|
45374
|
-
"onUpdate:modelValue": (
|
|
45381
|
+
modelValue: unref(formData)[re.field],
|
|
45382
|
+
"onUpdate:modelValue": (oe) => unref(formData)[re.field] = oe,
|
|
45375
45383
|
clearable: !1
|
|
45376
|
-
},
|
|
45377
|
-
onKeyup: (
|
|
45378
|
-
onChange: (
|
|
45384
|
+
}, re.itemRender.props, {
|
|
45385
|
+
onKeyup: (oe) => onIconInputEnter(re, oe),
|
|
45386
|
+
onChange: (oe) => onIconInputChange(re)
|
|
45379
45387
|
}), createSlots({ _: 2 }, [
|
|
45380
|
-
|
|
45388
|
+
re.itemRender.props.suffixIconfont ? {
|
|
45381
45389
|
name: "suffix",
|
|
45382
45390
|
fn: withCtx(() => [
|
|
45383
45391
|
createElementVNode("i", {
|
|
45384
45392
|
class: normalizeClass(
|
|
45385
|
-
"iconfont " +
|
|
45393
|
+
"iconfont " + re.itemRender.props.suffixIconfont
|
|
45386
45394
|
),
|
|
45387
|
-
onClick: (
|
|
45395
|
+
onClick: (oe) => onIconClick(re),
|
|
45388
45396
|
style: { cursor: "pointer" }
|
|
45389
45397
|
}, null, 10, ["onClick"])
|
|
45390
45398
|
]),
|
|
45391
45399
|
key: "0"
|
|
45392
|
-
} :
|
|
45400
|
+
} : re.itemRender.props.prefixIconfont ? {
|
|
45393
45401
|
name: "prefix",
|
|
45394
45402
|
fn: withCtx(() => [
|
|
45395
45403
|
createElementVNode("i", {
|
|
45396
45404
|
class: normalizeClass(
|
|
45397
|
-
"iconfont " +
|
|
45405
|
+
"iconfont " + re.itemRender.props.prefixIconfont
|
|
45398
45406
|
),
|
|
45399
|
-
onClick: (
|
|
45407
|
+
onClick: (oe) => onIconClick(re),
|
|
45400
45408
|
style: { cursor: "pointer" }
|
|
45401
45409
|
}, null, 10, ["onClick"])
|
|
45402
45410
|
]),
|
|
@@ -45405,25 +45413,25 @@ const index$o = /* @__PURE__ */ getDefaultExportFromCjs(jsExports), windowForm_v
|
|
|
45405
45413
|
]), 1040, ["modelValue", "onUpdate:modelValue", "onKeyup", "onChange"])
|
|
45406
45414
|
]),
|
|
45407
45415
|
key: "2"
|
|
45408
|
-
} :
|
|
45416
|
+
} : re.dataType === "IMG" ? {
|
|
45409
45417
|
name: "default",
|
|
45410
45418
|
fn: withCtx(() => [
|
|
45411
45419
|
createVNode(unref(PictureUpload), {
|
|
45412
45420
|
uploadConfig: unref(uploadConfig),
|
|
45413
|
-
fileFormData: unref(formData)[
|
|
45414
|
-
"onUpdate:fileFormData": (
|
|
45415
|
-
filePreviewList: unref(fieldPreviewMap)[
|
|
45416
|
-
"onUpdate:filePreviewList": (
|
|
45421
|
+
fileFormData: unref(formData)[re.field],
|
|
45422
|
+
"onUpdate:fileFormData": (oe) => unref(formData)[re.field] = oe,
|
|
45423
|
+
filePreviewList: unref(fieldPreviewMap)[re.field],
|
|
45424
|
+
"onUpdate:filePreviewList": (oe) => unref(fieldPreviewMap)[re.field] = oe
|
|
45417
45425
|
}, null, 8, ["uploadConfig", "fileFormData", "onUpdate:fileFormData", "filePreviewList", "onUpdate:filePreviewList"])
|
|
45418
45426
|
]),
|
|
45419
45427
|
key: "3"
|
|
45420
45428
|
} : void 0,
|
|
45421
|
-
|
|
45429
|
+
re.slotsTitle ? {
|
|
45422
45430
|
name: "title",
|
|
45423
45431
|
fn: withCtx(() => [
|
|
45424
|
-
(openBlock(), createBlock(resolveDynamicComponent(formItemTitleComponent.value[
|
|
45432
|
+
(openBlock(), createBlock(resolveDynamicComponent(formItemTitleComponent.value[re.field]), {
|
|
45425
45433
|
ref_for: !0,
|
|
45426
|
-
ref: (
|
|
45434
|
+
ref: (oe) => handleSetFormItemTitleRef(oe, re.field)
|
|
45427
45435
|
}, null, 512))
|
|
45428
45436
|
]),
|
|
45429
45437
|
key: "4"
|
|
@@ -45436,20 +45444,20 @@ const index$o = /* @__PURE__ */ getDefaultExportFromCjs(jsExports), windowForm_v
|
|
|
45436
45444
|
span: "24"
|
|
45437
45445
|
}, {
|
|
45438
45446
|
default: withCtx(() => [
|
|
45439
|
-
(openBlock(!0), createElementBlock(Fragment, null, renderList(buttons.value, (
|
|
45440
|
-
key:
|
|
45447
|
+
(openBlock(!0), createElementBlock(Fragment, null, renderList(buttons.value, (re) => (openBlock(), createBlock(X, {
|
|
45448
|
+
key: re.id,
|
|
45441
45449
|
"auto-insert-space": "",
|
|
45442
|
-
style: normalizeStyle("margin: 2px 2px 2px 2px;" +
|
|
45450
|
+
style: normalizeStyle("margin: 2px 2px 2px 2px;" + re.css),
|
|
45443
45451
|
type: "primary",
|
|
45444
|
-
loading:
|
|
45445
|
-
onClick: (
|
|
45452
|
+
loading: re.loading,
|
|
45453
|
+
onClick: (oe) => btnClickFun(re)
|
|
45446
45454
|
}, createSlots({
|
|
45447
45455
|
default: withCtx(() => [
|
|
45448
|
-
createTextVNode(" " + toDisplayString(unref($T)(
|
|
45456
|
+
createTextVNode(" " + toDisplayString(unref($T)(re.name)), 1)
|
|
45449
45457
|
]),
|
|
45450
45458
|
_: 2
|
|
45451
45459
|
}, [
|
|
45452
|
-
|
|
45460
|
+
re.iconComponent ? {
|
|
45453
45461
|
name: "icon",
|
|
45454
45462
|
fn: withCtx(() => [
|
|
45455
45463
|
createVNode(Z, {
|
|
@@ -45457,7 +45465,7 @@ const index$o = /* @__PURE__ */ getDefaultExportFromCjs(jsExports), windowForm_v
|
|
|
45457
45465
|
style: { verticalAlign: "middle" }
|
|
45458
45466
|
}, {
|
|
45459
45467
|
default: withCtx(() => [
|
|
45460
|
-
(openBlock(), createBlock(resolveDynamicComponent(
|
|
45468
|
+
(openBlock(), createBlock(resolveDynamicComponent(re.iconComponent)))
|
|
45461
45469
|
]),
|
|
45462
45470
|
_: 2
|
|
45463
45471
|
}, 1024)
|
|
@@ -45475,7 +45483,7 @@ const index$o = /* @__PURE__ */ getDefaultExportFromCjs(jsExports), windowForm_v
|
|
|
45475
45483
|
ref: "pictureUploadModal",
|
|
45476
45484
|
width: "20%",
|
|
45477
45485
|
modelValue: unref(uploadConfig).show,
|
|
45478
|
-
"onUpdate:modelValue": Q[0] || (Q[0] = (
|
|
45486
|
+
"onUpdate:modelValue": Q[0] || (Q[0] = (re) => unref(uploadConfig).show = re),
|
|
45479
45487
|
"z-index": 1e3,
|
|
45480
45488
|
draggable: "",
|
|
45481
45489
|
"append-to-body": "",
|
|
@@ -45487,11 +45495,29 @@ const index$o = /* @__PURE__ */ getDefaultExportFromCjs(jsExports), windowForm_v
|
|
|
45487
45495
|
createVNode(unref(PictureUpload), { uploadConfig: unref(uploadConfig) }, null, 8, ["uploadConfig"])
|
|
45488
45496
|
]),
|
|
45489
45497
|
_: 1
|
|
45498
|
+
}, 8, ["modelValue", "title"]),
|
|
45499
|
+
createVNode(ne, {
|
|
45500
|
+
modelValue: unref(codemirrorDrawer),
|
|
45501
|
+
"onUpdate:modelValue": Q[3] || (Q[3] = (re) => isRef(codemirrorDrawer) ? codemirrorDrawer.value = re : codemirrorDrawer = re),
|
|
45502
|
+
title: unref(codemirrorTitle),
|
|
45503
|
+
direction: "rtl",
|
|
45504
|
+
class: "codemirror-drawer"
|
|
45505
|
+
}, {
|
|
45506
|
+
default: withCtx(() => [
|
|
45507
|
+
createVNode(unref(T$2), {
|
|
45508
|
+
modelValue: unref(formData)[unref(codemirrorCol).field],
|
|
45509
|
+
"onUpdate:modelValue": Q[1] || (Q[1] = (re) => unref(formData)[unref(codemirrorCol).field] = re),
|
|
45510
|
+
extensions: [getCodeLanguagePlugin(unref(codemirrorCol).language), unref(EditorView).lineWrapping],
|
|
45511
|
+
onFocus: Q[2] || (Q[2] = (re) => isRef(editorFocusField) ? editorFocusField.value = unref(codemirrorCol).field : editorFocusField = unref(codemirrorCol).field),
|
|
45512
|
+
"auto-destroy": ""
|
|
45513
|
+
}, null, 8, ["modelValue", "extensions"])
|
|
45514
|
+
]),
|
|
45515
|
+
_: 1
|
|
45490
45516
|
}, 8, ["modelValue", "title"])
|
|
45491
45517
|
]);
|
|
45492
45518
|
};
|
|
45493
45519
|
}
|
|
45494
|
-
}, WindowForm = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["__scopeId", "data-v-
|
|
45520
|
+
}, WindowForm = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["__scopeId", "data-v-2aa2920b"]]);
|
|
45495
45521
|
WindowForm.name = "slw-window-form";
|
|
45496
45522
|
WindowForm.install = (H) => {
|
|
45497
45523
|
H.component(WindowForm.name, WindowForm);
|
|
@@ -62635,7 +62661,7 @@ const windowDesigner_vue_vue_type_style_index_0_scoped_a3ebe962_lang = "", _with
|
|
|
62635
62661
|
emits: ["update:type", "update:rootLayout", "update:viewData", "update:rowData"],
|
|
62636
62662
|
setup(H, { emit: Q }) {
|
|
62637
62663
|
const Z = H, X = defineAsyncComponent(
|
|
62638
|
-
() => import("./index-
|
|
62664
|
+
() => import("./index-76ee59b7.js")
|
|
62639
62665
|
);
|
|
62640
62666
|
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
62667
|
re.value = createDesigner();
|
|
@@ -147775,7 +147801,7 @@ function reConsole() {
|
|
|
147775
147801
|
}
|
|
147776
147802
|
}
|
|
147777
147803
|
console.info(
|
|
147778
|
-
`%cSLW %cVer 0.10.
|
|
147804
|
+
`%cSLW %cVer 0.10.11%c
|
|
147779
147805
|
%c指引文档:%chttp://slwdoc.js.sforcecon.com:5900/%c
|
|
147780
147806
|
%c启光文档:%chttp://docs.js.sforcecon.com:5900/notepad/view/592`,
|
|
147781
147807
|
"color:#409EFF;font-size: 22px;font-weight:bolder;text-shadow: 2px 2px 4px #84c1ff;",
|
package/lib/index.js
CHANGED