@cmstops/pro-compo 3.9.1-stable.7 → 3.9.1-stable.8

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.
@@ -1,11 +1,11 @@
1
- import { defineComponent, watch, openBlock, createElementBlock, createBlock, resolveDynamicComponent, mergeProps, unref, withCtx, createElementVNode, createCommentVNode, createVNode, isRef, Fragment, createTextVNode } from "vue";
1
+ import { defineComponent, openBlock, createElementBlock, createBlock, resolveDynamicComponent, mergeProps, unref, withCtx, createElementVNode, createCommentVNode, createVNode, isRef, Fragment, createTextVNode } from "vue";
2
2
  import { Button, Drawer, Modal } from "@arco-design/web-vue";
3
3
  import emptyData from "../emptyData/index.js";
4
4
  import _sfc_main$1 from "./components/ListTabs/index.js";
5
5
  import _sfc_main$3 from "./components/ListSelected/index.js";
6
6
  import _sfc_main$2 from "./components/List/ListCardWrapper.js";
7
7
  import { useResourceSelect } from "./scripts/useResourceSelect.js";
8
- import useTabFilter, { TabEnum } from "./scripts/useTabFilter.js";
8
+ import useTabFilter from "./scripts/useTabFilter.js";
9
9
  import useCompoentLifycycle from "./scripts/useCompoLf.js";
10
10
  const _hoisted_1 = { class: "resource-select-wrap" };
11
11
  const _hoisted_2 = { class: "resource-select-main" };
@@ -51,14 +51,6 @@ const _sfc_main = defineComponent({
51
51
  }
52
52
  });
53
53
  const isDiv = props.wrap === "div";
54
- watch(
55
- () => props.visible,
56
- (val) => {
57
- if (val)
58
- activeKey.value = TabEnum.ALL;
59
- },
60
- { immediate: true }
61
- );
62
54
  const handleOptions = (options, handleOptions2) => {
63
55
  const { key, item } = options;
64
56
  if (key === "select-one") {
@@ -4,16 +4,6 @@ import _sfc_main from "../components/List/ListNormal/index.js";
4
4
  import _sfc_main$2 from "../components/List/ListSystem/index.js";
5
5
  import _sfc_main$1 from "../components/List/ListLocal/index.js";
6
6
  import _sfc_main$3 from "../components/List/ListAi/index.js";
7
- var TabEnum = /* @__PURE__ */ ((TabEnum2) => {
8
- TabEnum2["ALL"] = "all";
9
- TabEnum2["MY"] = "my";
10
- TabEnum2["REMIND"] = "remind";
11
- TabEnum2["LOCAL"] = "local";
12
- TabEnum2["SYSTEM"] = "system";
13
- TabEnum2["AI"] = "ai";
14
- TabEnum2["VIDEO"] = "video";
15
- return TabEnum2;
16
- })(TabEnum || {});
17
7
  const DEFAULT_TABS = ["all", "my", "remind", "local"];
18
8
  const TAB_DICT = {
19
9
  ["all"]: { title: "\u5168\u90E8\u7D20\u6750", component: _sfc_main },
@@ -53,4 +43,4 @@ function useTabFilter(props) {
53
43
  handelChangeTab
54
44
  };
55
45
  }
56
- export { TabEnum, useTabFilter as default };
46
+ export { useTabFilter as default };
@@ -45,21 +45,13 @@ const _sfc_main = vue.defineComponent({
45
45
  const props = __props;
46
46
  const emits = __emit;
47
47
  const { selected, selectedKeys, disableSelect, handleSelect, handleClear } = useResourceSelect.useResourceSelect(props);
48
- const { activeKey, activeComponent, tabKeyList, handelChangeTab } = useTabFilter["default"](props);
48
+ const { activeKey, activeComponent, tabKeyList, handelChangeTab } = useTabFilter(props);
49
49
  const { wrapProps, close, submit } = useCompoLf(props, emits, {
50
50
  onClose: () => {
51
51
  handleClear();
52
52
  }
53
53
  });
54
54
  const isDiv = props.wrap === "div";
55
- vue.watch(
56
- () => props.visible,
57
- (val) => {
58
- if (val)
59
- activeKey.value = useTabFilter.TabEnum.ALL;
60
- },
61
- { immediate: true }
62
- );
63
55
  const handleOptions = (options, handleOptions2) => {
64
56
  const { key, item } = options;
65
57
  if (key === "select-one") {
@@ -1,21 +1,10 @@
1
1
  "use strict";
2
- Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
3
2
  var vue = require("vue");
4
3
  var index$4 = require("../components/List/ListVideo/index.js");
5
4
  var index = require("../components/List/ListNormal/index.js");
6
5
  var index$2 = require("../components/List/ListSystem/index.js");
7
6
  var index$1 = require("../components/List/ListLocal/index.js");
8
7
  var index$3 = require("../components/List/ListAi/index.js");
9
- var TabEnum = /* @__PURE__ */ ((TabEnum2) => {
10
- TabEnum2["ALL"] = "all";
11
- TabEnum2["MY"] = "my";
12
- TabEnum2["REMIND"] = "remind";
13
- TabEnum2["LOCAL"] = "local";
14
- TabEnum2["SYSTEM"] = "system";
15
- TabEnum2["AI"] = "ai";
16
- TabEnum2["VIDEO"] = "video";
17
- return TabEnum2;
18
- })(TabEnum || {});
19
8
  const DEFAULT_TABS = ["all", "my", "remind", "local"];
20
9
  const TAB_DICT = {
21
10
  ["all"]: { title: "\u5168\u90E8\u7D20\u6750", component: index },
@@ -55,5 +44,4 @@ function useTabFilter(props) {
55
44
  handelChangeTab
56
45
  };
57
46
  }
58
- exports.TabEnum = TabEnum;
59
- exports["default"] = useTabFilter;
47
+ module.exports = useTabFilter;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cmstops/pro-compo",
3
- "version": "3.9.1-stable.7",
3
+ "version": "3.9.1-stable.8",
4
4
  "description": "",
5
5
  "keywords": [
6
6
  "vue",