sctj-components 1.0.35 → 1.0.37
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/sctj-components.es.js +66 -12
- package/lib/sctj-components.umd.js +1 -1
- package/lib/style.css +1 -1
- package/package.json +1 -1
|
@@ -792,7 +792,7 @@ const _sfc_main$n = {
|
|
|
792
792
|
}
|
|
793
793
|
};
|
|
794
794
|
const SCTJImageUpload = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["__scopeId", "data-v-672e5149"]]);
|
|
795
|
-
const
|
|
795
|
+
const index_vue_vue_type_style_index_0_scoped_e91fd2ba_lang = "";
|
|
796
796
|
const _hoisted_1$g = { class: "image-slot" };
|
|
797
797
|
const _sfc_main$m = {
|
|
798
798
|
__name: "index",
|
|
@@ -903,6 +903,7 @@ const _sfc_main$m = {
|
|
|
903
903
|
onClick: withModifiers(clickImage, ["stop", "prevent"]),
|
|
904
904
|
src: `${unref(realSrc)}`,
|
|
905
905
|
fit: "cover",
|
|
906
|
+
"show-progress": "",
|
|
906
907
|
style: normalizeStyle(`width:${unref(realWidth)};height:${unref(realHeight)};`),
|
|
907
908
|
"preview-src-list": unref(realSrcList)
|
|
908
909
|
}, {
|
|
@@ -924,7 +925,7 @@ const _sfc_main$m = {
|
|
|
924
925
|
};
|
|
925
926
|
}
|
|
926
927
|
};
|
|
927
|
-
const SCTJImagePreview = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["__scopeId", "data-v-
|
|
928
|
+
const SCTJImagePreview = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["__scopeId", "data-v-e91fd2ba"]]);
|
|
928
929
|
const icons = [
|
|
929
930
|
"404",
|
|
930
931
|
"bug",
|
|
@@ -3959,6 +3960,10 @@ const _sfc_main$5 = {
|
|
|
3959
3960
|
headers: {
|
|
3960
3961
|
type: Object,
|
|
3961
3962
|
default: () => ({})
|
|
3963
|
+
},
|
|
3964
|
+
otherTemplate: {
|
|
3965
|
+
type: Array,
|
|
3966
|
+
default: () => []
|
|
3962
3967
|
}
|
|
3963
3968
|
},
|
|
3964
3969
|
emits: ["loadSucccess"],
|
|
@@ -4014,13 +4019,17 @@ const _sfc_main$5 = {
|
|
|
4014
4019
|
return url.includes("?") ? `${url}&${query}` : `${url}?${query}`;
|
|
4015
4020
|
}
|
|
4016
4021
|
};
|
|
4017
|
-
const importTemplate =
|
|
4018
|
-
|
|
4019
|
-
|
|
4020
|
-
|
|
4022
|
+
const importTemplate = (item) => {
|
|
4023
|
+
var _a, _b;
|
|
4024
|
+
if (!item) {
|
|
4025
|
+
downLoad(props.templateUrl, { ...extraParams });
|
|
4026
|
+
} else {
|
|
4027
|
+
downLoad((_a = item.templateUrl) != null ? _a : props.templateUrl, { ...(_b = item.extraParams) != null ? _b : {} });
|
|
4021
4028
|
}
|
|
4029
|
+
};
|
|
4030
|
+
const downLoad = async (url, params2) => {
|
|
4022
4031
|
try {
|
|
4023
|
-
const href = buildUrlWithParams(
|
|
4032
|
+
const href = buildUrlWithParams(url, params2);
|
|
4024
4033
|
const response = await fetch(href, {
|
|
4025
4034
|
method: "POST",
|
|
4026
4035
|
headers: props.headers || {}
|
|
@@ -4095,13 +4104,16 @@ const _sfc_main$5 = {
|
|
|
4095
4104
|
const _component_el_icon = resolveComponent("el-icon");
|
|
4096
4105
|
const _component_el_checkbox = resolveComponent("el-checkbox");
|
|
4097
4106
|
const _component_el_link = resolveComponent("el-link");
|
|
4107
|
+
const _component_el_dropdown_item = resolveComponent("el-dropdown-item");
|
|
4108
|
+
const _component_el_dropdown_menu = resolveComponent("el-dropdown-menu");
|
|
4109
|
+
const _component_el_dropdown = resolveComponent("el-dropdown");
|
|
4098
4110
|
const _component_el_upload = resolveComponent("el-upload");
|
|
4099
4111
|
const _component_el_button = resolveComponent("el-button");
|
|
4100
4112
|
const _component_el_dialog = resolveComponent("el-dialog");
|
|
4101
4113
|
return openBlock(), createBlock(_component_el_dialog, {
|
|
4102
4114
|
title: __props.title + "\u5BFC\u5165",
|
|
4103
4115
|
modelValue: params.open,
|
|
4104
|
-
"onUpdate:modelValue": _cache[
|
|
4116
|
+
"onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => params.open = $event),
|
|
4105
4117
|
width: "400px",
|
|
4106
4118
|
"append-to-body": "",
|
|
4107
4119
|
onClose: cancel
|
|
@@ -4109,7 +4121,7 @@ const _sfc_main$5 = {
|
|
|
4109
4121
|
footer: withCtx(() => [
|
|
4110
4122
|
createElementVNode("div", _hoisted_5$2, [
|
|
4111
4123
|
createVNode(_component_el_button, {
|
|
4112
|
-
onClick: _cache[
|
|
4124
|
+
onClick: _cache[2] || (_cache[2] = ($event) => params.open = false)
|
|
4113
4125
|
}, {
|
|
4114
4126
|
default: withCtx(() => [
|
|
4115
4127
|
createTextVNode("\u53D6 \u6D88")
|
|
@@ -4152,17 +4164,59 @@ const _sfc_main$5 = {
|
|
|
4152
4164
|
createTextVNode(" \u662F\u5426\u66F4\u65B0\u5DF2\u7ECF\u5B58\u5728\u7684\u6570\u636E ")
|
|
4153
4165
|
])) : createCommentVNode("", true),
|
|
4154
4166
|
_hoisted_4$2,
|
|
4155
|
-
|
|
4167
|
+
!__props.otherTemplate.length ? (openBlock(), createBlock(_component_el_link, {
|
|
4168
|
+
key: 1,
|
|
4156
4169
|
type: "primary",
|
|
4157
4170
|
underline: false,
|
|
4158
4171
|
style: { "font-size": "12px", "vertical-align": "baseline" },
|
|
4159
|
-
onClick: importTemplate
|
|
4172
|
+
onClick: _cache[1] || (_cache[1] = ($event) => importTemplate())
|
|
4160
4173
|
}, {
|
|
4161
4174
|
default: withCtx(() => [
|
|
4162
4175
|
createTextVNode(" \u4E0B\u8F7D\u6A21\u677F ")
|
|
4163
4176
|
]),
|
|
4164
4177
|
_: 1
|
|
4165
|
-
})
|
|
4178
|
+
})) : (openBlock(), createBlock(_component_el_dropdown, {
|
|
4179
|
+
key: 2,
|
|
4180
|
+
onCommand: importTemplate,
|
|
4181
|
+
trigger: "click"
|
|
4182
|
+
}, {
|
|
4183
|
+
dropdown: withCtx(() => [
|
|
4184
|
+
createVNode(_component_el_dropdown_menu, null, {
|
|
4185
|
+
default: withCtx(() => [
|
|
4186
|
+
createVNode(_component_el_dropdown_item, null, {
|
|
4187
|
+
default: withCtx(() => [
|
|
4188
|
+
createTextVNode("\u57FA\u7840\u6A21\u677F")
|
|
4189
|
+
]),
|
|
4190
|
+
_: 1
|
|
4191
|
+
}),
|
|
4192
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.otherTemplate, (item, index2) => {
|
|
4193
|
+
return openBlock(), createBlock(_component_el_dropdown_item, {
|
|
4194
|
+
key: index2,
|
|
4195
|
+
command: item
|
|
4196
|
+
}, {
|
|
4197
|
+
default: withCtx(() => [
|
|
4198
|
+
createTextVNode(toDisplayString(item.name), 1)
|
|
4199
|
+
]),
|
|
4200
|
+
_: 2
|
|
4201
|
+
}, 1032, ["command"]);
|
|
4202
|
+
}), 128))
|
|
4203
|
+
]),
|
|
4204
|
+
_: 1
|
|
4205
|
+
})
|
|
4206
|
+
]),
|
|
4207
|
+
default: withCtx(() => [
|
|
4208
|
+
createVNode(_component_el_link, {
|
|
4209
|
+
type: "primary",
|
|
4210
|
+
underline: false
|
|
4211
|
+
}, {
|
|
4212
|
+
default: withCtx(() => [
|
|
4213
|
+
createTextVNode(" \u9009\u62E9\u6A21\u677F ")
|
|
4214
|
+
]),
|
|
4215
|
+
_: 1
|
|
4216
|
+
})
|
|
4217
|
+
]),
|
|
4218
|
+
_: 1
|
|
4219
|
+
}))
|
|
4166
4220
|
])
|
|
4167
4221
|
]),
|
|
4168
4222
|
default: withCtx(() => [
|