@cmstops/pro-compo 0.3.96 → 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
  })
@@ -21,7 +21,7 @@ const TAB_DICT = {
21
21
  ["remind"]: { title: "\u63D0\u9192\u6211\u7684", component: _sfc_main },
22
22
  ["local"]: { title: "\u672C\u5730\u7D20\u6750", component: _sfc_main$1 },
23
23
  ["system"]: { title: "\u5185\u7F6E\u7D20\u6750", component: _sfc_main$2 },
24
- ["ai"]: { title: "AI\u4F18\u9009", component: _sfc_main$3 },
24
+ ["ai"]: { title: "\u6B63\u6587\u7D20\u6750", component: _sfc_main$3 },
25
25
  ["video"]: { title: "\u89C6\u9891\u5C01\u9762", component: _sfc_main$4 }
26
26
  };
27
27
  function useTabFilter(props) {
@@ -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
  })
@@ -23,7 +23,7 @@ const TAB_DICT = {
23
23
  ["remind"]: { title: "\u63D0\u9192\u6211\u7684", component: index },
24
24
  ["local"]: { title: "\u672C\u5730\u7D20\u6750", component: index$1 },
25
25
  ["system"]: { title: "\u5185\u7F6E\u7D20\u6750", component: index$2 },
26
- ["ai"]: { title: "AI\u4F18\u9009", component: index$3 },
26
+ ["ai"]: { title: "\u6B63\u6587\u7D20\u6750", component: index$3 },
27
27
  ["video"]: { title: "\u89C6\u9891\u5C01\u9762", component: index$4 }
28
28
  };
29
29
  function useTabFilter(props) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cmstops/pro-compo",
3
- "version": "0.3.96",
3
+ "version": "0.3.98",
4
4
  "description": "",
5
5
  "keywords": [
6
6
  "vue",