slw 0.8.6 → 0.8.7
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/lib/index.js +23 -13
- package/lib/index.umd.cjs +5 -5
- package/lib/style.css +1 -1
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -8511,7 +8511,7 @@ PictureUpload.name = "slw-picture-upload";
|
|
|
8511
8511
|
PictureUpload.install = (Q) => {
|
|
8512
8512
|
Q.component(PictureUpload.name, PictureUpload);
|
|
8513
8513
|
};
|
|
8514
|
-
const
|
|
8514
|
+
const windowGrid_vue_vue_type_style_index_0_scoped_6ef05836_lang = "", _withScopeId$3 = (Q) => (pushScopeId("data-v-6ef05836"), Q = Q(), popScopeId(), Q), _hoisted_1$kW = {
|
|
8515
8515
|
class: "slw-window-grid-container",
|
|
8516
8516
|
style: { height: "100%" }
|
|
8517
8517
|
}, _hoisted_2$kS = /* @__PURE__ */ _withScopeId$3(() => /* @__PURE__ */ createElementVNode("span", { class: "vxe-table--cell-main-area" }, null, -1)), _hoisted_3$hT = /* @__PURE__ */ _withScopeId$3(() => /* @__PURE__ */ createElementVNode("span", { class: "vxe-table--cell-active-area" }, null, -1)), _hoisted_4$au = /* @__PURE__ */ _withScopeId$3(() => /* @__PURE__ */ createElementVNode("span", { class: "vxe-table--cell-copy-area" }, null, -1)), _hoisted_5$4U = [
|
|
@@ -9809,6 +9809,12 @@ const windowGrid_vue_vue_type_style_index_0_scoped_125e7a8a_lang = "", _withScop
|
|
|
9809
9809
|
const H = Q;
|
|
9810
9810
|
let X = getCurRegion();
|
|
9811
9811
|
X.params.newDownTemplateUrl = H;
|
|
9812
|
+
}, beforeExcelUpload = async (Q) => {
|
|
9813
|
+
let H = getCurRegion();
|
|
9814
|
+
return H.params.beforeUploadFn ? await H.params.beforeUploadFn() : !0;
|
|
9815
|
+
}, setBeforeUploadFn = (Q) => {
|
|
9816
|
+
let H = getCurRegion();
|
|
9817
|
+
H.params.beforeUploadFn = Q;
|
|
9812
9818
|
};
|
|
9813
9819
|
return onMounted(async () => {
|
|
9814
9820
|
gridData.value.addListener && getCurRegion() && addListener(), gridData.value.type === "TREE_STRUCTURE" && (gridData.value.menuConfig = {
|
|
@@ -10015,6 +10021,7 @@ const windowGrid_vue_vue_type_style_index_0_scoped_125e7a8a_lang = "", _withScop
|
|
|
10015
10021
|
headers: unref(httpHeaders)(),
|
|
10016
10022
|
accept: ".xls,.xlsx",
|
|
10017
10023
|
data: unref(uploadData),
|
|
10024
|
+
"before-upload": beforeExcelUpload,
|
|
10018
10025
|
"on-format-error": importFormatError,
|
|
10019
10026
|
"on-success": importSuccess
|
|
10020
10027
|
}, {
|
|
@@ -10050,7 +10057,7 @@ const windowGrid_vue_vue_type_style_index_0_scoped_125e7a8a_lang = "", _withScop
|
|
|
10050
10057
|
]);
|
|
10051
10058
|
};
|
|
10052
10059
|
}
|
|
10053
|
-
}, WindowGrid = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-
|
|
10060
|
+
}, WindowGrid = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-6ef05836"]]);
|
|
10054
10061
|
WindowGrid.name = "slw-window-grid";
|
|
10055
10062
|
WindowGrid.install = (Q) => {
|
|
10056
10063
|
Q.component(WindowGrid.name, WindowGrid);
|
|
@@ -38887,7 +38894,7 @@ var js = js$1.exports;
|
|
|
38887
38894
|
})(Q);
|
|
38888
38895
|
})(js$1);
|
|
38889
38896
|
var jsExports = js$1.exports;
|
|
38890
|
-
const index$n = /* @__PURE__ */ getDefaultExportFromCjs(jsExports),
|
|
38897
|
+
const index$n = /* @__PURE__ */ getDefaultExportFromCjs(jsExports), windowForm_vue_vue_type_style_index_0_scoped_02489a8c_lang = "", _withScopeId$2 = (Q) => (pushScopeId("data-v-02489a8c"), Q = Q(), popScopeId(), Q), _hoisted_1$kV = { class: "slw-window-form" }, _hoisted_2$kR = {
|
|
38891
38898
|
key: 0,
|
|
38892
38899
|
style: { "text-align": "left", "font-size": "18px", "line-height": "30px", "font-weight": "bold", padding: "5px 30px 0 15px" }
|
|
38893
38900
|
}, _hoisted_3$hS = ["onClick"], _sfc_main$5 = {
|
|
@@ -38918,8 +38925,10 @@ const index$n = /* @__PURE__ */ getDefaultExportFromCjs(jsExports), windowForm_v
|
|
|
38918
38925
|
// 是否拥有 图片上传 的按钮
|
|
38919
38926
|
openType: "",
|
|
38920
38927
|
fileList: []
|
|
38921
|
-
}), filePreviewList = ref([]);
|
|
38922
|
-
const
|
|
38928
|
+
}), filePreviewList = ref([]), editorFocusField = ref("");
|
|
38929
|
+
const localEditorViews = shallowRef({}), handleReady = (Q, H) => {
|
|
38930
|
+
localEditorViews[Q] = H.view;
|
|
38931
|
+
}, $Message = ref({
|
|
38923
38932
|
success(Q) {
|
|
38924
38933
|
success(Q);
|
|
38925
38934
|
},
|
|
@@ -39020,7 +39029,7 @@ const index$n = /* @__PURE__ */ getDefaultExportFromCjs(jsExports), windowForm_v
|
|
|
39020
39029
|
}), computeItemTitle = computed(() => (Q) => {
|
|
39021
39030
|
const H = Q.match(/([^()]+)\(/);
|
|
39022
39031
|
return $T(H ? H[1] : Q);
|
|
39023
|
-
});
|
|
39032
|
+
}), computeEditorBtnStyle = computed(() => (Q) => editorFocusField.value == Q ? "background: rgba(64, 158, 255, 0.5)" : "");
|
|
39024
39033
|
onMounted(async () => {
|
|
39025
39034
|
var H, X, G;
|
|
39026
39035
|
if (formConfig.value.params.linkUrl)
|
|
@@ -39193,7 +39202,7 @@ const index$n = /* @__PURE__ */ getDefaultExportFromCjs(jsExports), windowForm_v
|
|
|
39193
39202
|
}, clearData = () => {
|
|
39194
39203
|
for (let Q in formData.value)
|
|
39195
39204
|
formData.value[Q] = "";
|
|
39196
|
-
},
|
|
39205
|
+
}, validateDataChg = () => !XEUtils$1.isEqual(toRaw(formData.value), toRaw(formDataClone.value)), linkToMenu = (Q, H) => {
|
|
39197
39206
|
}, getRegion = (Q) => {
|
|
39198
39207
|
let H = regionMap.value[Q + "-" + preTag.value];
|
|
39199
39208
|
return H || regionMap.value[Q];
|
|
@@ -39558,6 +39567,8 @@ const index$n = /* @__PURE__ */ getDefaultExportFromCjs(jsExports), windowForm_v
|
|
|
39558
39567
|
X.title = G;
|
|
39559
39568
|
}
|
|
39560
39569
|
}, footerSum = () => {
|
|
39570
|
+
}, onEditorBtnClick = (Q, H) => {
|
|
39571
|
+
console.log(localEditorViews[Q.field]), H == "beautify" ? formData.value[Q.field] = jsExports.js_beautify(formData.value[Q.field], codeBeautifyConfig) : H == "checkAll", localEditorViews[Q.field].focus();
|
|
39561
39572
|
}, throwFunction = (Q) => {
|
|
39562
39573
|
Q.getData = () => getData(), Q.submitData = () => submitData(), Q.getValue = (H) => getValue(H), Q.setValue = (H, X) => setValue(H, X);
|
|
39563
39574
|
};
|
|
@@ -39596,17 +39607,16 @@ const index$n = /* @__PURE__ */ getDefaultExportFromCjs(jsExports), windowForm_v
|
|
|
39596
39607
|
name: "default",
|
|
39597
39608
|
fn: withCtx(() => [
|
|
39598
39609
|
createVNode(unref(T$1), {
|
|
39599
|
-
ref_for: !0,
|
|
39600
|
-
ref_key: "localEditor",
|
|
39601
|
-
ref: localEditor,
|
|
39602
39610
|
modelValue: unref(formData)[ne.field],
|
|
39603
39611
|
"onUpdate:modelValue": (re) => unref(formData)[ne.field] = re,
|
|
39604
39612
|
extensions: [
|
|
39605
39613
|
getCodeLanguagePlugin(ne.language),
|
|
39606
39614
|
unref(EditorView$1).lineWrapping
|
|
39607
39615
|
],
|
|
39616
|
+
onReady: (re) => handleReady(ne.field, re),
|
|
39617
|
+
onFocus: (re) => isRef(editorFocusField) ? editorFocusField.value = ne.field : editorFocusField = ne.field,
|
|
39608
39618
|
"auto-destroy": ""
|
|
39609
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "extensions"])
|
|
39619
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "extensions", "onReady", "onFocus"])
|
|
39610
39620
|
]),
|
|
39611
39621
|
key: "0"
|
|
39612
39622
|
} : ne.dataType === "STRING" && ne.canScan === !0 ? {
|
|
@@ -39757,7 +39767,7 @@ const index$n = /* @__PURE__ */ getDefaultExportFromCjs(jsExports), windowForm_v
|
|
|
39757
39767
|
]);
|
|
39758
39768
|
};
|
|
39759
39769
|
}
|
|
39760
|
-
}, WindowForm = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-
|
|
39770
|
+
}, WindowForm = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-02489a8c"]]);
|
|
39761
39771
|
WindowForm.name = "slw-window-form";
|
|
39762
39772
|
WindowForm.install = (Q) => {
|
|
39763
39773
|
Q.component(WindowForm.name, WindowForm);
|
|
@@ -124339,7 +124349,7 @@ function reConsole() {
|
|
|
124339
124349
|
}
|
|
124340
124350
|
}
|
|
124341
124351
|
console.info(
|
|
124342
|
-
"%cSLW %cVer 0.8.
|
|
124352
|
+
"%cSLW %cVer 0.8.7",
|
|
124343
124353
|
"color:#409EFF;font-size: 22px;font-weight:bolder",
|
|
124344
124354
|
"color:#999;font-size: 12px"
|
|
124345
124355
|
);
|