@cmstops/pro-compo 0.3.97 → 0.3.98
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.
|
@@ -36,6 +36,7 @@ const _sfc_main = defineComponent({
|
|
|
36
36
|
const importErrorInfo = ref("");
|
|
37
37
|
const importStep = ref(0);
|
|
38
38
|
const result = ref();
|
|
39
|
+
const loading = ref(false);
|
|
39
40
|
function uploadSuccess(e) {
|
|
40
41
|
const { response } = e;
|
|
41
42
|
result.value = response;
|
|
@@ -48,10 +49,12 @@ const _sfc_main = defineComponent({
|
|
|
48
49
|
}
|
|
49
50
|
const importPercent = ref(0);
|
|
50
51
|
const importStart = async () => {
|
|
52
|
+
loading.value = true;
|
|
51
53
|
emit(
|
|
52
54
|
"importStart",
|
|
53
55
|
{ result: result.value },
|
|
54
56
|
(status, cbInfo) => {
|
|
57
|
+
loading.value = false;
|
|
55
58
|
if (status === "success") {
|
|
56
59
|
importData.value = cbInfo.message;
|
|
57
60
|
importStep.value = 2;
|
|
@@ -146,6 +149,7 @@ const _sfc_main = defineComponent({
|
|
|
146
149
|
}, null, 8, ["action"])) : createCommentVNode("v-if", true),
|
|
147
150
|
importStep.value === 1 ? (openBlock(), createBlock(unref(Button), {
|
|
148
151
|
key: 1,
|
|
152
|
+
loading: loading.value,
|
|
149
153
|
type: "primary",
|
|
150
154
|
class: "primary2",
|
|
151
155
|
onClick: importStart
|
|
@@ -154,7 +158,7 @@ const _sfc_main = defineComponent({
|
|
|
154
158
|
createTextVNode("\u5F00\u59CB\u5BFC\u5165")
|
|
155
159
|
])),
|
|
156
160
|
_: 1
|
|
157
|
-
})) : createCommentVNode("v-if", true)
|
|
161
|
+
}, 8, ["loading"])) : createCommentVNode("v-if", true)
|
|
158
162
|
]),
|
|
159
163
|
_: 1
|
|
160
164
|
})
|
|
@@ -37,6 +37,7 @@ const _sfc_main = vue.defineComponent({
|
|
|
37
37
|
const importErrorInfo = vue.ref("");
|
|
38
38
|
const importStep = vue.ref(0);
|
|
39
39
|
const result = vue.ref();
|
|
40
|
+
const loading = vue.ref(false);
|
|
40
41
|
function uploadSuccess(e) {
|
|
41
42
|
const { response } = e;
|
|
42
43
|
result.value = response;
|
|
@@ -49,10 +50,12 @@ const _sfc_main = vue.defineComponent({
|
|
|
49
50
|
}
|
|
50
51
|
const importPercent = vue.ref(0);
|
|
51
52
|
const importStart = async () => {
|
|
53
|
+
loading.value = true;
|
|
52
54
|
emit(
|
|
53
55
|
"importStart",
|
|
54
56
|
{ result: result.value },
|
|
55
57
|
(status, cbInfo) => {
|
|
58
|
+
loading.value = false;
|
|
56
59
|
if (status === "success") {
|
|
57
60
|
importData.value = cbInfo.message;
|
|
58
61
|
importStep.value = 2;
|
|
@@ -147,6 +150,7 @@ const _sfc_main = vue.defineComponent({
|
|
|
147
150
|
}, null, 8, ["action"])) : vue.createCommentVNode("v-if", true),
|
|
148
151
|
importStep.value === 1 ? (vue.openBlock(), vue.createBlock(vue.unref(webVue.Button), {
|
|
149
152
|
key: 1,
|
|
153
|
+
loading: loading.value,
|
|
150
154
|
type: "primary",
|
|
151
155
|
class: "primary2",
|
|
152
156
|
onClick: importStart
|
|
@@ -155,7 +159,7 @@ const _sfc_main = vue.defineComponent({
|
|
|
155
159
|
vue.createTextVNode("\u5F00\u59CB\u5BFC\u5165")
|
|
156
160
|
])),
|
|
157
161
|
_: 1
|
|
158
|
-
})) : vue.createCommentVNode("v-if", true)
|
|
162
|
+
}, 8, ["loading"])) : vue.createCommentVNode("v-if", true)
|
|
159
163
|
]),
|
|
160
164
|
_: 1
|
|
161
165
|
})
|