slw 0.10.11 → 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,7 +8533,7 @@ 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
|
|
@@ -10137,6 +10137,36 @@ const windowGrid_vue_vue_type_style_index_0_scoped_cc35f3fa_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_cc35f3fa_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(() => {
|
|
@@ -10495,7 +10525,7 @@ const windowGrid_vue_vue_type_style_index_0_scoped_cc35f3fa_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);
|
|
@@ -62661,7 +62691,7 @@ const windowDesigner_vue_vue_type_style_index_0_scoped_a3ebe962_lang = "", _with
|
|
|
62661
62691
|
emits: ["update:type", "update:rootLayout", "update:viewData", "update:rowData"],
|
|
62662
62692
|
setup(H, { emit: Q }) {
|
|
62663
62693
|
const Z = H, X = defineAsyncComponent(
|
|
62664
|
-
() => import("./index-
|
|
62694
|
+
() => import("./index-ca5cfca5.js")
|
|
62665
62695
|
);
|
|
62666
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);
|
|
62667
62697
|
re.value = createDesigner();
|
|
@@ -147801,7 +147831,7 @@ function reConsole() {
|
|
|
147801
147831
|
}
|
|
147802
147832
|
}
|
|
147803
147833
|
console.info(
|
|
147804
|
-
`%cSLW %cVer 0.10.
|
|
147834
|
+
`%cSLW %cVer 0.10.12%c
|
|
147805
147835
|
%c指引文档:%chttp://slwdoc.js.sforcecon.com:5900/%c
|
|
147806
147836
|
%c启光文档:%chttp://docs.js.sforcecon.com:5900/notepad/view/592`,
|
|
147807
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