yc-design-vue 1.5.2 → 1.5.4
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/es/Collapse/CollapseItem.vue.js +1 -1
- package/es/Collapse/CollapseItem.vue2.js +2 -1
- package/es/Menu/hooks/useContext.js +4 -2
- package/es/Progress/ProgressCircle.vue2.js +1 -1
- package/es/Transfer/TransferPanel.vue2.js +2 -2
- package/es/_shared/icons/IconDelete.vue.js +16 -1
- package/es/_shared/icons/IconDelete.vue2.js +1 -16
- package/es/_shared/icons/IconExclamation.vue.js +27 -1
- package/es/_shared/icons/IconExclamation.vue2.js +1 -27
- package/es/_shared/icons/IconSearch.vue.js +16 -1
- package/es/_shared/icons/IconSearch.vue2.js +1 -16
- package/es/style.css +1 -1
- package/lib/Collapse/CollapseItem.vue.js +1 -1
- package/lib/Collapse/CollapseItem.vue2.js +1 -1
- package/lib/Menu/hooks/useContext.js +1 -1
- package/lib/Progress/ProgressCircle.vue2.js +1 -1
- package/lib/Transfer/TransferPanel.vue2.js +1 -1
- package/lib/_shared/icons/IconDelete.vue.js +1 -1
- package/lib/_shared/icons/IconDelete.vue2.js +1 -1
- package/lib/_shared/icons/IconExclamation.vue.js +1 -1
- package/lib/_shared/icons/IconExclamation.vue2.js +1 -1
- package/lib/_shared/icons/IconSearch.vue.js +1 -1
- package/lib/_shared/icons/IconSearch.vue2.js +1 -1
- package/lib/style.css +1 -1
- package/package.json +1 -1
@@ -1,7 +1,7 @@
|
|
1
1
|
import _sfc_main from "./CollapseItem.vue2.js";
|
2
2
|
/* empty css */
|
3
3
|
import _export_sfc from "../_virtual/_plugin-vue_export-helper.js";
|
4
|
-
const CollapseItem = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
4
|
+
const CollapseItem = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-8ea4c121"]]);
|
5
5
|
export {
|
6
6
|
CollapseItem as default
|
7
7
|
};
|
@@ -62,7 +62,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
62
62
|
"yc-collapse-item",
|
63
63
|
`yc-collapse-item-expand-icon-${unref(expandIconPosition)}`,
|
64
64
|
{
|
65
|
-
"yc-collapse-item-disabled": unref(disabled)
|
65
|
+
"yc-collapse-item-disabled": unref(disabled),
|
66
|
+
"yc-collapse-item-open": unref(computedActiveKey).includes(unref(path))
|
66
67
|
}
|
67
68
|
])
|
68
69
|
}, [
|
@@ -139,7 +139,7 @@ const useMenuContext = () => {
|
|
139
139
|
theme: _theme,
|
140
140
|
popupMaxHeight: _popupMaxHeight
|
141
141
|
} = toRefs(props);
|
142
|
-
const { theme:
|
142
|
+
const { theme: siderTheme, collapsed: injectCollapsed } = useSiderContext().inject();
|
143
143
|
const computedSelectedKeys = useControlValue(
|
144
144
|
selectedKeys,
|
145
145
|
defaultSelectedKeys.value,
|
@@ -181,7 +181,9 @@ const useMenuContext = () => {
|
|
181
181
|
const menuItemWidths = ref([]);
|
182
182
|
const menuTree = computed(() => buildMenuTree(menuTreeNodes.value));
|
183
183
|
const max = ref(1e6);
|
184
|
-
const theme = computed(() =>
|
184
|
+
const theme = computed(() => {
|
185
|
+
return _theme.value || siderTheme.value || sysTheme.value;
|
186
|
+
});
|
185
187
|
if (mode.value == "horizontal") {
|
186
188
|
useResizeObserver(
|
187
189
|
menuRef,
|
@@ -6,7 +6,7 @@ import "../_shared/utils/time.js";
|
|
6
6
|
import "../Empty/index.js";
|
7
7
|
/* empty css */
|
8
8
|
import _sfc_main$1 from "../_shared/icons/IconCheck.vue.js";
|
9
|
-
import _sfc_main$2 from "../_shared/icons/IconExclamation.
|
9
|
+
import _sfc_main$2 from "../_shared/icons/IconExclamation.vue.js";
|
10
10
|
import { TYPE_ICON_COLOR_MAP } from "../_shared/constants/index.js";
|
11
11
|
const _hoisted_1 = ["aria-valuenow"];
|
12
12
|
const _hoisted_2 = ["viewBox"];
|
@@ -5,8 +5,8 @@ import "../_shared/utils/time.js";
|
|
5
5
|
import { getGlobalConfig } from "../_shared/utils/global-config.js";
|
6
6
|
/* empty css */
|
7
7
|
import _sfc_main$3 from "../_shared/icons/IconClose.vue.js";
|
8
|
-
import _sfc_main$1 from "../_shared/icons/IconDelete.
|
9
|
-
import _sfc_main$2 from "../_shared/icons/IconSearch.
|
8
|
+
import _sfc_main$1 from "../_shared/icons/IconDelete.vue.js";
|
9
|
+
import _sfc_main$2 from "../_shared/icons/IconSearch.vue.js";
|
10
10
|
import useContext from "./hooks/useContext.js";
|
11
11
|
import Checkbox from "../Checkbox/index.js";
|
12
12
|
import Scrollbar from "../Scrollbar/index.js";
|
@@ -1,4 +1,19 @@
|
|
1
|
-
import
|
1
|
+
import { defineComponent, createBlock, openBlock, normalizeProps, guardReactiveProps, withCtx, createElementVNode } from "vue";
|
2
|
+
import YcIcon from "../components/Icon.vue2.js";
|
3
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
4
|
+
__name: "IconDelete",
|
5
|
+
setup(__props) {
|
6
|
+
return (_ctx, _cache) => {
|
7
|
+
return openBlock(), createBlock(YcIcon, normalizeProps(guardReactiveProps(_ctx.$attrs)), {
|
8
|
+
default: withCtx(() => _cache[0] || (_cache[0] = [
|
9
|
+
createElementVNode("path", { d: "M5 11h5.5m0 0v29a1 1 0 0 0 1 1h25a1 1 0 0 0 1-1V11m-27 0H16m21.5 0H43m-5.5 0H32m-16 0V7h16v4m-16 0h16M20 18v15m8-15v15" }, null, -1)
|
10
|
+
])),
|
11
|
+
_: 1,
|
12
|
+
__: [0]
|
13
|
+
}, 16);
|
14
|
+
};
|
15
|
+
}
|
16
|
+
});
|
2
17
|
export {
|
3
18
|
_sfc_main as default
|
4
19
|
};
|
@@ -1,19 +1,4 @@
|
|
1
|
-
import
|
2
|
-
import YcIcon from "../components/Icon.vue2.js";
|
3
|
-
const _sfc_main = /* @__PURE__ */ defineComponent({
|
4
|
-
__name: "IconDelete",
|
5
|
-
setup(__props) {
|
6
|
-
return (_ctx, _cache) => {
|
7
|
-
return openBlock(), createBlock(YcIcon, normalizeProps(guardReactiveProps(_ctx.$attrs)), {
|
8
|
-
default: withCtx(() => _cache[0] || (_cache[0] = [
|
9
|
-
createElementVNode("path", { d: "M5 11h5.5m0 0v29a1 1 0 0 0 1 1h25a1 1 0 0 0 1-1V11m-27 0H16m21.5 0H43m-5.5 0H32m-16 0V7h16v4m-16 0h16M20 18v15m8-15v15" }, null, -1)
|
10
|
-
])),
|
11
|
-
_: 1,
|
12
|
-
__: [0]
|
13
|
-
}, 16);
|
14
|
-
};
|
15
|
-
}
|
16
|
-
});
|
1
|
+
import _sfc_main from "./IconDelete.vue.js";
|
17
2
|
export {
|
18
3
|
_sfc_main as default
|
19
4
|
};
|
@@ -1,4 +1,30 @@
|
|
1
|
-
import
|
1
|
+
import { defineComponent, createBlock, openBlock, normalizeProps, guardReactiveProps, withCtx, createElementVNode } from "vue";
|
2
|
+
import YcIcon from "../components/Icon.vue2.js";
|
3
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
4
|
+
__name: "IconExclamation",
|
5
|
+
setup(__props) {
|
6
|
+
return (_ctx, _cache) => {
|
7
|
+
return openBlock(), createBlock(YcIcon, normalizeProps(guardReactiveProps(_ctx.$attrs)), {
|
8
|
+
default: withCtx(() => _cache[0] || (_cache[0] = [
|
9
|
+
createElementVNode("path", { d: "M23 9h2v21h-2z" }, null, -1),
|
10
|
+
createElementVNode("path", {
|
11
|
+
fill: "currentColor",
|
12
|
+
stroke: "none",
|
13
|
+
d: "M23 9h2v21h-2z"
|
14
|
+
}, null, -1),
|
15
|
+
createElementVNode("path", { d: "M23 37h2v2h-2z" }, null, -1),
|
16
|
+
createElementVNode("path", {
|
17
|
+
fill: "currentColor",
|
18
|
+
stroke: "none",
|
19
|
+
d: "M23 37h2v2h-2z"
|
20
|
+
}, null, -1)
|
21
|
+
])),
|
22
|
+
_: 1,
|
23
|
+
__: [0]
|
24
|
+
}, 16);
|
25
|
+
};
|
26
|
+
}
|
27
|
+
});
|
2
28
|
export {
|
3
29
|
_sfc_main as default
|
4
30
|
};
|
@@ -1,30 +1,4 @@
|
|
1
|
-
import
|
2
|
-
import YcIcon from "../components/Icon.vue2.js";
|
3
|
-
const _sfc_main = /* @__PURE__ */ defineComponent({
|
4
|
-
__name: "IconExclamation",
|
5
|
-
setup(__props) {
|
6
|
-
return (_ctx, _cache) => {
|
7
|
-
return openBlock(), createBlock(YcIcon, normalizeProps(guardReactiveProps(_ctx.$attrs)), {
|
8
|
-
default: withCtx(() => _cache[0] || (_cache[0] = [
|
9
|
-
createElementVNode("path", { d: "M23 9h2v21h-2z" }, null, -1),
|
10
|
-
createElementVNode("path", {
|
11
|
-
fill: "currentColor",
|
12
|
-
stroke: "none",
|
13
|
-
d: "M23 9h2v21h-2z"
|
14
|
-
}, null, -1),
|
15
|
-
createElementVNode("path", { d: "M23 37h2v2h-2z" }, null, -1),
|
16
|
-
createElementVNode("path", {
|
17
|
-
fill: "currentColor",
|
18
|
-
stroke: "none",
|
19
|
-
d: "M23 37h2v2h-2z"
|
20
|
-
}, null, -1)
|
21
|
-
])),
|
22
|
-
_: 1,
|
23
|
-
__: [0]
|
24
|
-
}, 16);
|
25
|
-
};
|
26
|
-
}
|
27
|
-
});
|
1
|
+
import _sfc_main from "./IconExclamation.vue.js";
|
28
2
|
export {
|
29
3
|
_sfc_main as default
|
30
4
|
};
|
@@ -1,4 +1,19 @@
|
|
1
|
-
import
|
1
|
+
import { defineComponent, createBlock, openBlock, normalizeProps, guardReactiveProps, withCtx, createElementVNode } from "vue";
|
2
|
+
import YcIcon from "../components/Icon.vue2.js";
|
3
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
4
|
+
__name: "IconSearch",
|
5
|
+
setup(__props) {
|
6
|
+
return (_ctx, _cache) => {
|
7
|
+
return openBlock(), createBlock(YcIcon, normalizeProps(guardReactiveProps(_ctx.$attrs)), {
|
8
|
+
default: withCtx(() => _cache[0] || (_cache[0] = [
|
9
|
+
createElementVNode("path", { d: "M33.072 33.071c6.248-6.248 6.248-16.379 0-22.627-6.249-6.249-16.38-6.249-22.628 0-6.248 6.248-6.248 16.379 0 22.627 6.248 6.248 16.38 6.248 22.628 0Zm0 0 8.485 8.485" }, null, -1)
|
10
|
+
])),
|
11
|
+
_: 1,
|
12
|
+
__: [0]
|
13
|
+
}, 16);
|
14
|
+
};
|
15
|
+
}
|
16
|
+
});
|
2
17
|
export {
|
3
18
|
_sfc_main as default
|
4
19
|
};
|
@@ -1,19 +1,4 @@
|
|
1
|
-
import
|
2
|
-
import YcIcon from "../components/Icon.vue2.js";
|
3
|
-
const _sfc_main = /* @__PURE__ */ defineComponent({
|
4
|
-
__name: "IconSearch",
|
5
|
-
setup(__props) {
|
6
|
-
return (_ctx, _cache) => {
|
7
|
-
return openBlock(), createBlock(YcIcon, normalizeProps(guardReactiveProps(_ctx.$attrs)), {
|
8
|
-
default: withCtx(() => _cache[0] || (_cache[0] = [
|
9
|
-
createElementVNode("path", { d: "M33.072 33.071c6.248-6.248 6.248-16.379 0-22.627-6.249-6.249-16.38-6.249-22.628 0-6.248 6.248-6.248 16.379 0 22.627 6.248 6.248 16.38 6.248 22.628 0Zm0 0 8.485 8.485" }, null, -1)
|
10
|
-
])),
|
11
|
-
_: 1,
|
12
|
-
__: [0]
|
13
|
-
}, 16);
|
14
|
-
};
|
15
|
-
}
|
16
|
-
});
|
1
|
+
import _sfc_main from "./IconSearch.vue.js";
|
17
2
|
export {
|
18
3
|
_sfc_main as default
|
19
4
|
};
|