yc-design-vue 1.1.2 → 1.1.3
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/Alert/index.vue2.js +2 -2
- package/es/Calendar/Calendar.vue2.js +2 -2
- package/es/Cascader/Cascader.vue.js +1 -1
- package/es/Cascader/Cascader.vue2.js +3 -0
- package/es/Cascader/CascaderIcon.vue2.js +2 -2
- package/es/Checkbox/Checkbox.vue2.js +2 -2
- package/es/Collapse/CollapseItem.vue2.js +2 -2
- package/es/Drawer/Drawer.vue2.js +2 -2
- package/es/Input/Input.vue2.js +2 -2
- package/es/Input/InputSuffix.vue2.js +2 -2
- package/es/InputTag/index.vue2.js +2 -2
- package/es/Menu/SubMenu.vue2.js +2 -2
- package/es/Message/Message.vue2.js +2 -2
- package/es/Modal/Modal.vue2.js +2 -2
- package/es/Notification/Notification.vue2.js +2 -2
- package/es/PageHeader/index.vue2.js +2 -2
- package/es/Radio/Radio.vue2.js +2 -2
- package/es/Scrollbar/Scrollbar.vue.js +1 -1
- package/es/Scrollbar/Scrollbar.vue2.js +9 -10
- package/es/Select/SelectIcon.vue2.js +2 -2
- package/es/Tabs/TabButton.vue2.js +2 -2
- package/es/Tag/index.vue2.js +2 -2
- package/es/Textarea/index.vue2.js +2 -2
- package/es/TimePicker/TimePicker.vue2.js +2 -2
- package/es/Transfer/TransferPanel.vue2.js +4 -4
- package/es/Trigger/index.vue2.js +2 -2
- package/es/_shared/components/{ExpandTransition.vue2.js → ExpandTransition.vue.js} +1 -1
- package/es/_shared/components/{IconButton.vue.js → IconButton.vue2.js} +1 -1
- package/es/_shared/icons/IconDelete.vue.js +16 -1
- package/es/_shared/icons/IconDelete.vue2.js +1 -16
- package/es/_shared/icons/IconSearch.vue.js +16 -1
- package/es/_shared/icons/IconSearch.vue2.js +1 -16
- package/es/_shared/utils/dom.d.ts +2 -0
- package/es/_shared/utils/dom.js +22 -0
- package/es/style.css +1 -1
- package/lib/Alert/index.vue2.js +1 -1
- package/lib/Calendar/Calendar.vue2.js +1 -1
- package/lib/Cascader/Cascader.vue.js +1 -1
- package/lib/Cascader/Cascader.vue2.js +1 -1
- package/lib/Cascader/CascaderIcon.vue2.js +1 -1
- package/lib/Checkbox/Checkbox.vue2.js +1 -1
- package/lib/Collapse/CollapseItem.vue2.js +1 -1
- package/lib/Drawer/Drawer.vue2.js +1 -1
- package/lib/Input/Input.vue2.js +1 -1
- package/lib/Input/InputSuffix.vue2.js +1 -1
- package/lib/InputTag/index.vue2.js +1 -1
- package/lib/Menu/SubMenu.vue2.js +1 -1
- package/lib/Message/Message.vue2.js +1 -1
- package/lib/Modal/Modal.vue2.js +1 -1
- package/lib/Notification/Notification.vue2.js +1 -1
- package/lib/PageHeader/index.vue2.js +1 -1
- package/lib/Radio/Radio.vue2.js +1 -1
- package/lib/Scrollbar/Scrollbar.vue.js +1 -1
- package/lib/Scrollbar/Scrollbar.vue2.js +1 -1
- package/lib/Select/SelectIcon.vue2.js +1 -1
- package/lib/Tabs/TabButton.vue2.js +1 -1
- package/lib/Tag/index.vue2.js +1 -1
- package/lib/Textarea/index.vue2.js +1 -1
- package/lib/TimePicker/TimePicker.vue2.js +1 -1
- package/lib/Transfer/TransferPanel.vue2.js +1 -1
- package/lib/Trigger/index.vue2.js +1 -1
- package/lib/_shared/components/ExpandTransition.vue.js +1 -0
- package/lib/_shared/components/IconButton.vue2.js +1 -0
- package/lib/_shared/icons/IconDelete.vue.js +1 -1
- package/lib/_shared/icons/IconDelete.vue2.js +1 -1
- package/lib/_shared/icons/IconSearch.vue.js +1 -1
- package/lib/_shared/icons/IconSearch.vue2.js +1 -1
- package/lib/_shared/utils/dom.d.ts +2 -0
- package/lib/_shared/utils/dom.js +1 -1
- package/lib/style.css +1 -1
- package/package.json +1 -1
- package/lib/_shared/components/ExpandTransition.vue2.js +0 -1
- package/lib/_shared/components/IconButton.vue.js +0 -1
package/es/Alert/index.vue2.js
CHANGED
@@ -1,12 +1,12 @@
|
|
1
1
|
import { defineComponent, ref, createBlock, openBlock, Transition, withCtx, createElementBlock, createCommentVNode, normalizeClass, createElementVNode, renderSlot, resolveDynamicComponent, unref, createTextVNode, toDisplayString, createVNode } from "vue";
|
2
2
|
import { TYPE_ICON_MAP } from "../_shared/constants/index.js";
|
3
|
-
import IconButton from "../_shared/components/IconButton.
|
3
|
+
import IconButton from "../_shared/components/IconButton.vue2.js";
|
4
4
|
import "../node_modules/tinycolor2/esm/tinycolor.js";
|
5
5
|
import "../_shared/utils/dom.js";
|
6
6
|
import "../_shared/utils/time.js";
|
7
7
|
import "../Empty/index.js";
|
8
8
|
/* empty css */
|
9
|
-
/* empty css
|
9
|
+
/* empty css */
|
10
10
|
const _hoisted_1 = {
|
11
11
|
key: 0,
|
12
12
|
class: "yc-alert-icon"
|
@@ -7,8 +7,8 @@ import "../Empty/index.js";
|
|
7
7
|
/* empty css */
|
8
8
|
import _sfc_main$1 from "../_shared/icons/IconArrowRight.vue.js";
|
9
9
|
import useControlValue from "../_shared/utils/control.js";
|
10
|
-
import IconButton from "../_shared/components/IconButton.
|
11
|
-
/* empty css
|
10
|
+
import IconButton from "../_shared/components/IconButton.vue2.js";
|
11
|
+
/* empty css */
|
12
12
|
import Button from "../Button/index.js";
|
13
13
|
import "../Radio/index.js";
|
14
14
|
import MonthCalendar from "./CalendarMonth.vue.js";
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import _sfc_main from "./Cascader.vue2.js";
|
2
2
|
/* empty css */
|
3
3
|
import _export_sfc from "../_virtual/_plugin-vue_export-helper.js";
|
4
|
-
const _Cascader = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
4
|
+
const _Cascader = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-546388ae"]]);
|
5
5
|
export {
|
6
6
|
_Cascader as default
|
7
7
|
};
|
@@ -154,6 +154,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
154
154
|
"popup-offset": 4,
|
155
155
|
"popup-container": _ctx.popupContainer,
|
156
156
|
disabled: unref(disabled),
|
157
|
+
"content-style": {
|
158
|
+
background: "transparent"
|
159
|
+
},
|
157
160
|
position: "bl",
|
158
161
|
trigger: "focus",
|
159
162
|
"animation-name": "slide-dynamic-origin",
|
@@ -6,8 +6,8 @@ import "../_shared/utils/dom.js";
|
|
6
6
|
import "../_shared/utils/time.js";
|
7
7
|
import "../Empty/index.js";
|
8
8
|
/* empty css */
|
9
|
-
import IconButton from "../_shared/components/IconButton.
|
10
|
-
/* empty css
|
9
|
+
import IconButton from "../_shared/components/IconButton.vue2.js";
|
10
|
+
/* empty css */
|
11
11
|
import Spin from "../Spin/index.js";
|
12
12
|
const _hoisted_1 = { class: "yc-cascader-suffix-icon" };
|
13
13
|
const _hoisted_2 = {
|
@@ -8,8 +8,8 @@ import "../Empty/index.js";
|
|
8
8
|
import _sfc_main$1 from "../_shared/icons/IconCheckboxChecked.vue.js";
|
9
9
|
import useControlValue from "../_shared/utils/control.js";
|
10
10
|
import useContext from "./hooks/useContext.js";
|
11
|
-
import IconButton from "../_shared/components/IconButton.
|
12
|
-
/* empty css
|
11
|
+
import IconButton from "../_shared/components/IconButton.vue2.js";
|
12
|
+
/* empty css */
|
13
13
|
const _hoisted_1 = ["value", "disabled", "checked"];
|
14
14
|
const _hoisted_2 = { class: "yc-checkbox-icon" };
|
15
15
|
const _hoisted_3 = {
|
@@ -6,8 +6,8 @@ import "../_shared/utils/time.js";
|
|
6
6
|
import "../Empty/index.js";
|
7
7
|
/* empty css */
|
8
8
|
import _sfc_main$1 from "../_shared/icons/IconRight.vue.js";
|
9
|
-
import IconButton from "../_shared/components/IconButton.
|
10
|
-
import ExpandTransition from "../_shared/components/ExpandTransition.
|
9
|
+
import IconButton from "../_shared/components/IconButton.vue2.js";
|
10
|
+
import ExpandTransition from "../_shared/components/ExpandTransition.vue.js";
|
11
11
|
const _hoisted_1 = { class: "yc-collapse-item-header-title text-ellipsis" };
|
12
12
|
const _hoisted_2 = {
|
13
13
|
key: 1,
|
package/es/Drawer/Drawer.vue2.js
CHANGED
@@ -5,8 +5,8 @@ import "../_shared/utils/time.js";
|
|
5
5
|
import { getGlobalConfig } from "../_shared/utils/global-config.js";
|
6
6
|
import useModalClose from "../Modal/hooks/useModalClose.js";
|
7
7
|
import Button from "../Button/index.js";
|
8
|
-
import IconButton from "../_shared/components/IconButton.
|
9
|
-
/* empty css
|
8
|
+
import IconButton from "../_shared/components/IconButton.vue2.js";
|
9
|
+
/* empty css */
|
10
10
|
/* empty css */
|
11
11
|
const _hoisted_1 = {
|
12
12
|
key: 0,
|
package/es/Input/Input.vue2.js
CHANGED
@@ -5,9 +5,9 @@ import "../_shared/utils/time.js";
|
|
5
5
|
import { getGlobalConfig } from "../_shared/utils/global-config.js";
|
6
6
|
import useControlValue from "../_shared/utils/control.js";
|
7
7
|
import useLimitedInput from "./hooks/useLimitedInput.js";
|
8
|
-
import IconButton from "../_shared/components/IconButton.
|
8
|
+
import IconButton from "../_shared/components/IconButton.vue2.js";
|
9
9
|
import _sfc_main$1 from "../_shared/components/PreventFocus.vue.js";
|
10
|
-
/* empty css
|
10
|
+
/* empty css */
|
11
11
|
/* empty css */
|
12
12
|
import InputSuffix from "./InputSuffix.vue.js";
|
13
13
|
const _hoisted_1 = ["value", "type", "disabled", "readonly", "placeholder"];
|
@@ -6,9 +6,9 @@ import "../Empty/index.js";
|
|
6
6
|
/* empty css */
|
7
7
|
import _sfc_main$3 from "../_shared/icons/IconEyeClose.vue2.js";
|
8
8
|
import _sfc_main$2 from "../_shared/icons/IconEyeOpen.vue2.js";
|
9
|
-
import IconButton from "../_shared/components/IconButton.
|
9
|
+
import IconButton from "../_shared/components/IconButton.vue2.js";
|
10
10
|
import _sfc_main$1 from "../_shared/components/PreventFocus.vue.js";
|
11
|
-
/* empty css
|
11
|
+
/* empty css */
|
12
12
|
const _hoisted_1 = {
|
13
13
|
key: 0,
|
14
14
|
class: "yc-input-word-limit"
|
@@ -8,9 +8,9 @@ import "../_shared/utils/time.js";
|
|
8
8
|
import { getGlobalConfig } from "../_shared/utils/global-config.js";
|
9
9
|
import useControlValue from "../_shared/utils/control.js";
|
10
10
|
import Tag from "../Tag/index.js";
|
11
|
-
import IconButton from "../_shared/components/IconButton.
|
11
|
+
import IconButton from "../_shared/components/IconButton.vue2.js";
|
12
12
|
import _sfc_main$1 from "../_shared/components/PreventFocus.vue.js";
|
13
|
-
/* empty css
|
13
|
+
/* empty css */
|
14
14
|
/* empty css */
|
15
15
|
const _hoisted_1 = ["disabled", "readonly", "placeholder"];
|
16
16
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
package/es/Menu/SubMenu.vue2.js
CHANGED
@@ -6,8 +6,8 @@ import "../_shared/utils/dom.js";
|
|
6
6
|
import "../_shared/utils/time.js";
|
7
7
|
import "../Empty/index.js";
|
8
8
|
/* empty css */
|
9
|
-
/* empty css
|
10
|
-
import ExpandTransition from "../_shared/components/ExpandTransition.
|
9
|
+
/* empty css */
|
10
|
+
import ExpandTransition from "../_shared/components/ExpandTransition.vue.js";
|
11
11
|
import "./index.js";
|
12
12
|
import MenuItem from "./MenuItem.vue.js";
|
13
13
|
const _hoisted_1 = { class: "yc-menu-inline" };
|
@@ -6,8 +6,8 @@ import "../_shared/utils/time.js";
|
|
6
6
|
import "../Empty/index.js";
|
7
7
|
/* empty css */
|
8
8
|
import { TYPE_ICON_MAP } from "../_shared/constants/index.js";
|
9
|
-
import IconButton from "../_shared/components/IconButton.
|
10
|
-
/* empty css
|
9
|
+
import IconButton from "../_shared/components/IconButton.vue2.js";
|
10
|
+
/* empty css */
|
11
11
|
import { useTimeoutFn } from "../node_modules/@vueuse/shared/index.js";
|
12
12
|
const _hoisted_1 = {
|
13
13
|
key: 0,
|
package/es/Modal/Modal.vue2.js
CHANGED
@@ -6,8 +6,8 @@ import { getGlobalConfig } from "../_shared/utils/global-config.js";
|
|
6
6
|
import useModalClose from "./hooks/useModalClose.js";
|
7
7
|
import useModalDraggable from "./hooks/useModalDraggable.js";
|
8
8
|
import Button from "../Button/index.js";
|
9
|
-
import IconButton from "../_shared/components/IconButton.
|
10
|
-
/* empty css
|
9
|
+
import IconButton from "../_shared/components/IconButton.vue2.js";
|
10
|
+
/* empty css */
|
11
11
|
/* empty css */
|
12
12
|
const _hoisted_1 = {
|
13
13
|
key: 0,
|
@@ -7,8 +7,8 @@ import "../_shared/utils/time.js";
|
|
7
7
|
import { getSlotFunction } from "../_shared/utils/vue-utils.js";
|
8
8
|
import "../Empty/index.js";
|
9
9
|
/* empty css */
|
10
|
-
import IconButton from "../_shared/components/IconButton.
|
11
|
-
/* empty css
|
10
|
+
import IconButton from "../_shared/components/IconButton.vue2.js";
|
11
|
+
/* empty css */
|
12
12
|
import { useTimeoutFn } from "../node_modules/@vueuse/shared/index.js";
|
13
13
|
const _hoisted_1 = { class: "yc-notification-left" };
|
14
14
|
const _hoisted_2 = {
|
@@ -6,8 +6,8 @@ import "../Empty/index.js";
|
|
6
6
|
/* empty css */
|
7
7
|
import _sfc_main$1 from "../_shared/icons/IconArrowRight.vue.js";
|
8
8
|
import Divider from "../Divider/index.js";
|
9
|
-
import IconButton from "../_shared/components/IconButton.
|
10
|
-
/* empty css
|
9
|
+
import IconButton from "../_shared/components/IconButton.vue2.js";
|
10
|
+
/* empty css */
|
11
11
|
const _hoisted_1 = { class: "yc-page-header" };
|
12
12
|
const _hoisted_2 = { class: "yc-page-header-wrapper" };
|
13
13
|
const _hoisted_3 = {
|
package/es/Radio/Radio.vue2.js
CHANGED
@@ -6,8 +6,8 @@ import "../Empty/index.js";
|
|
6
6
|
/* empty css */
|
7
7
|
import useControlValue from "../_shared/utils/control.js";
|
8
8
|
import useContext from "./hooks/useContext.js";
|
9
|
-
import IconButton from "../_shared/components/IconButton.
|
10
|
-
/* empty css
|
9
|
+
import IconButton from "../_shared/components/IconButton.vue2.js";
|
10
|
+
/* empty css */
|
11
11
|
const _hoisted_1 = ["value", "checked", "disabled"];
|
12
12
|
const _hoisted_2 = {
|
13
13
|
key: 0,
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import _sfc_main from "./Scrollbar.vue2.js";
|
2
2
|
/* empty css */
|
3
3
|
import _export_sfc from "../_virtual/_plugin-vue_export-helper.js";
|
4
|
-
const _Scrollbar = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
4
|
+
const _Scrollbar = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-891ea4c3"]]);
|
5
5
|
export {
|
6
6
|
_Scrollbar as default
|
7
7
|
};
|
@@ -1,5 +1,10 @@
|
|
1
1
|
import { defineComponent, toRefs, ref, computed, createElementBlock, openBlock, normalizeStyle, normalizeClass, unref, createElementVNode, createBlock, createCommentVNode, renderSlot } from "vue";
|
2
2
|
import { useResizeObserver, useElementSize } from "../node_modules/@vueuse/core/index.js";
|
3
|
+
import "../node_modules/tinycolor2/esm/tinycolor.js";
|
4
|
+
import { isVerticallyScrollable, isHorizontallyScrollable } from "../_shared/utils/dom.js";
|
5
|
+
import "../_shared/utils/time.js";
|
6
|
+
import "../Empty/index.js";
|
7
|
+
/* empty css */
|
3
8
|
import ScrollbarTrack from "./ScrollbarTrack.vue.js";
|
4
9
|
import useContext from "./hooks/useContext.js";
|
5
10
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
@@ -99,18 +104,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
99
104
|
const curTop2 = ref(0);
|
100
105
|
const curLeft2 = ref(0);
|
101
106
|
const hasVerticalBar2 = computed(() => {
|
102
|
-
|
103
|
-
|
104
|
-
const overflow = style.overflow;
|
105
|
-
const allowScroll = ["auto", "scroll"];
|
106
|
-
return contentHeight.value > scrollHeight2.value && (allowScroll.includes(overflowY) || allowScroll.includes(overflow));
|
107
|
+
if (!scrollRef.value) return false;
|
108
|
+
return contentHeight.value > scrollHeight2.value && isVerticallyScrollable(scrollRef.value);
|
107
109
|
});
|
108
110
|
const hashorizontalBar2 = computed(() => {
|
109
|
-
|
110
|
-
|
111
|
-
const overflow = style.overflow;
|
112
|
-
const allowScroll = ["auto", "scroll"];
|
113
|
-
return contentWidth.value > scrollWidth2.value && (allowScroll.includes(overflowX) || allowScroll.includes(overflow));
|
111
|
+
if (!scrollRef.value) return false;
|
112
|
+
return contentWidth.value > scrollWidth2.value && isHorizontallyScrollable(scrollRef.value);
|
114
113
|
});
|
115
114
|
const thumbHeight = computed(() => {
|
116
115
|
if (!hasVerticalBar2.value) return 0;
|
@@ -6,8 +6,8 @@ import "../_shared/utils/dom.js";
|
|
6
6
|
import "../_shared/utils/time.js";
|
7
7
|
import "../Empty/index.js";
|
8
8
|
/* empty css */
|
9
|
-
import IconButton from "../_shared/components/IconButton.
|
10
|
-
/* empty css
|
9
|
+
import IconButton from "../_shared/components/IconButton.vue2.js";
|
10
|
+
/* empty css */
|
11
11
|
import Spin from "../Spin/index.js";
|
12
12
|
const _hoisted_1 = { class: "yc-select-suffix-icon" };
|
13
13
|
const _hoisted_2 = {
|
@@ -1,11 +1,11 @@
|
|
1
1
|
import { defineComponent, createBlock, openBlock, unref, mergeProps, withCtx, renderSlot, createCommentVNode } from "vue";
|
2
|
-
import IconButton from "../_shared/components/IconButton.
|
2
|
+
import IconButton from "../_shared/components/IconButton.vue2.js";
|
3
3
|
import "../node_modules/tinycolor2/esm/tinycolor.js";
|
4
4
|
import "../_shared/utils/dom.js";
|
5
5
|
import "../_shared/utils/time.js";
|
6
6
|
import "../Empty/index.js";
|
7
7
|
/* empty css */
|
8
|
-
/* empty css
|
8
|
+
/* empty css */
|
9
9
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
10
10
|
__name: "TabButton",
|
11
11
|
props: {
|
package/es/Tag/index.vue2.js
CHANGED
@@ -6,8 +6,8 @@ import "../_shared/utils/time.js";
|
|
6
6
|
import { getGlobalConfig } from "../_shared/utils/global-config.js";
|
7
7
|
import useControlValue from "../_shared/utils/control.js";
|
8
8
|
import Spin from "../Spin/index.js";
|
9
|
-
import IconButton from "../_shared/components/IconButton.
|
10
|
-
/* empty css
|
9
|
+
import IconButton from "../_shared/components/IconButton.vue2.js";
|
10
|
+
/* empty css */
|
11
11
|
/* empty css */
|
12
12
|
const _hoisted_1 = {
|
13
13
|
key: 0,
|
@@ -1,14 +1,14 @@
|
|
1
1
|
import { defineComponent, toRefs, ref, createElementBlock, openBlock, normalizeClass, unref, createCommentVNode, createElementVNode, createBlock, toDisplayString, normalizeStyle, withCtx, createTextVNode } from "vue";
|
2
2
|
import useTextareaHeight from "./hooks/useTextareaHeight.js";
|
3
3
|
import useLimitedInput from "../Input/hooks/useLimitedInput.js";
|
4
|
-
import IconButton from "../_shared/components/IconButton.
|
4
|
+
import IconButton from "../_shared/components/IconButton.vue2.js";
|
5
5
|
import _sfc_main$1 from "../_shared/components/PreventFocus.vue.js";
|
6
6
|
import "../node_modules/tinycolor2/esm/tinycolor.js";
|
7
7
|
import "../_shared/utils/dom.js";
|
8
8
|
import "../_shared/utils/time.js";
|
9
9
|
import "../Empty/index.js";
|
10
10
|
/* empty css */
|
11
|
-
/* empty css
|
11
|
+
/* empty css */
|
12
12
|
const _hoisted_1 = ["value", "disabled", "readonly", "placeholder"];
|
13
13
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
14
14
|
...{
|
@@ -5,8 +5,8 @@ import { isArray } from "../_shared/utils/is.js";
|
|
5
5
|
import { isValidTimeRange } from "../_shared/utils/time.js";
|
6
6
|
import { getGlobalConfig } from "../_shared/utils/global-config.js";
|
7
7
|
import useContext from "./hooks/useContext.js";
|
8
|
-
import IconButton from "../_shared/components/IconButton.
|
9
|
-
/* empty css
|
8
|
+
import IconButton from "../_shared/components/IconButton.vue2.js";
|
9
|
+
/* empty css */
|
10
10
|
/* empty css */
|
11
11
|
import _sfc_main$1 from "../_shared/icons/IconTime.vue.js";
|
12
12
|
import Trigger from "../Trigger/index.js";
|
@@ -5,14 +5,14 @@ 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";
|
13
13
|
import Input from "../Input/index.js";
|
14
|
-
import IconButton from "../_shared/components/IconButton.
|
15
|
-
/* empty css
|
14
|
+
import IconButton from "../_shared/components/IconButton.vue2.js";
|
15
|
+
/* empty css */
|
16
16
|
const _hoisted_1 = { class: "yc-transfer-view" };
|
17
17
|
const _hoisted_2 = { class: "yc-transfer-view-header" };
|
18
18
|
const _hoisted_3 = { class: "yc-transfer-view-header-title" };
|
package/es/Trigger/index.vue2.js
CHANGED
@@ -8,9 +8,9 @@ import { getGlobalConfig } from "../_shared/utils/global-config.js";
|
|
8
8
|
import useTriggerVisible from "./hooks/useTriggerVisible.js";
|
9
9
|
import useTriggerPosition from "./hooks/useTriggerPosition.js";
|
10
10
|
/* empty css */
|
11
|
-
/* empty css
|
11
|
+
/* empty css */
|
12
12
|
import _sfc_main$1 from "../_shared/components/PreventFocus.vue.js";
|
13
|
-
/* empty css
|
13
|
+
/* empty css */
|
14
14
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
15
15
|
...{
|
16
16
|
name: "Trigger",
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import _sfc_main from "./ExpandTransition.vue3.js";
|
2
|
-
/* empty css
|
2
|
+
/* empty css */
|
3
3
|
import _export_sfc from "../../_virtual/_plugin-vue_export-helper.js";
|
4
4
|
const ExpandTransition = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-6e588238"]]);
|
5
5
|
export {
|
@@ -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,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
|
};
|
@@ -15,3 +15,5 @@ export declare const throttleByRaf: (cb: (...args: any[]) => void) => {
|
|
15
15
|
export declare const debounce: (func: (...args: any) => void, delay: number, immediate?: boolean) => (this: any, ...args: any) => void;
|
16
16
|
export declare const throttle: (fn: (...args: any) => void, delay: number) => (this: any, ...args: any) => void;
|
17
17
|
export declare const valueToPx: (value: string | number | undefined) => string;
|
18
|
+
export declare function isHorizontallyScrollable(element: HTMLElement): boolean;
|
19
|
+
export declare function isVerticallyScrollable(element: HTMLElement): boolean;
|
package/es/_shared/utils/dom.js
CHANGED
@@ -151,13 +151,35 @@ const valueToPx = (value) => {
|
|
151
151
|
}
|
152
152
|
return value;
|
153
153
|
};
|
154
|
+
function isHorizontallyScrollable(element) {
|
155
|
+
const style = window.getComputedStyle(element);
|
156
|
+
const isScrollableOverflow = style.overflowX === "scroll" || style.overflowX === "auto";
|
157
|
+
const isVisible = style.display !== "none" && style.visibility !== "hidden";
|
158
|
+
if (!isVisible) {
|
159
|
+
return false;
|
160
|
+
}
|
161
|
+
const isContentLarger = element.scrollWidth > element.clientWidth;
|
162
|
+
return isScrollableOverflow && isContentLarger;
|
163
|
+
}
|
164
|
+
function isVerticallyScrollable(element) {
|
165
|
+
const style = window.getComputedStyle(element);
|
166
|
+
const isScrollableOverflow = style.overflowY === "scroll" || style.overflowY === "auto";
|
167
|
+
const isVisible = style.display !== "none" && style.visibility !== "hidden";
|
168
|
+
if (!isVisible) {
|
169
|
+
return false;
|
170
|
+
}
|
171
|
+
const isContentLarger = element.scrollHeight > element.clientHeight;
|
172
|
+
return isScrollableOverflow && isContentLarger;
|
173
|
+
}
|
154
174
|
export {
|
155
175
|
debounce,
|
156
176
|
findFirstScrollableParent,
|
157
177
|
getBreakpointValue,
|
158
178
|
getDomText,
|
159
179
|
getElement,
|
180
|
+
isHorizontallyScrollable,
|
160
181
|
isServerRendering,
|
182
|
+
isVerticallyScrollable,
|
161
183
|
mediaQueryHandler,
|
162
184
|
querySelector,
|
163
185
|
sleep,
|