yc-design-vue 1.8.0 → 1.8.1
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/Calendar/CalendarMonth.vue.d.ts +1 -1
- package/es/ConfigProvider/index.d.ts +3 -3
- package/es/ConfigProvider/index.vue.d.ts +1 -1
- package/es/Input/InputSuffix.vue.js +2 -2
- package/es/Transfer/TransferPanel.vue.js +2 -2
- package/es/Typography/TypographyBase.vue.js +2 -2
- package/es/Watermark/index.d.ts +3 -3
- package/es/Watermark/index.vue.d.ts +1 -1
- package/es/_shared/icons/IconCopy.vue.js +17 -1
- package/es/_shared/icons/IconCopy.vue2.js +1 -17
- package/es/_shared/icons/IconDelete.vue.js +17 -1
- package/es/_shared/icons/IconDelete.vue2.js +1 -17
- package/es/_shared/icons/IconEdit.vue.js +17 -1
- package/es/_shared/icons/IconEdit.vue2.js +1 -17
- package/es/_shared/icons/IconEyeClose.vue.js +21 -1
- package/es/_shared/icons/IconEyeClose.vue2.js +1 -21
- package/es/_shared/icons/IconEyeOpen.vue.js +18 -1
- package/es/_shared/icons/IconEyeOpen.vue2.js +1 -18
- package/es/_shared/icons/IconSearch.vue.js +17 -1
- package/es/_shared/icons/IconSearch.vue2.js +1 -17
- package/es/_shared/locale/i18n.js +10 -5
- package/es/index.js +1 -1
- package/es/node_modules/@intlify/vue-i18n-core/dist/vue-i18n-core.js +3 -3
- package/lib/Calendar/CalendarMonth.vue.d.ts +1 -1
- package/lib/ConfigProvider/index.d.ts +3 -3
- package/lib/ConfigProvider/index.vue.d.ts +1 -1
- package/lib/Input/InputSuffix.vue.js +1 -1
- package/lib/Transfer/TransferPanel.vue.js +1 -1
- package/lib/Typography/TypographyBase.vue.js +1 -1
- package/lib/Watermark/index.d.ts +3 -3
- package/lib/Watermark/index.vue.d.ts +1 -1
- package/lib/_shared/icons/IconCopy.vue.js +1 -1
- package/lib/_shared/icons/IconCopy.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/IconEdit.vue.js +1 -1
- package/lib/_shared/icons/IconEdit.vue2.js +1 -1
- package/lib/_shared/icons/IconEyeClose.vue.js +1 -1
- package/lib/_shared/icons/IconEyeClose.vue2.js +1 -1
- package/lib/_shared/icons/IconEyeOpen.vue.js +1 -1
- package/lib/_shared/icons/IconEyeOpen.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/locale/i18n.js +1 -1
- package/lib/index.js +1 -1
- package/package.json +1 -1
- package/es/_virtual/dynamic-import-helper.js +0 -19
- package/lib/_virtual/dynamic-import-helper.js +0 -1
@@ -23,8 +23,8 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}
|
|
23
23
|
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
24
24
|
"onCell-click"?: ((col: CalendarCellData) => any) | undefined;
|
25
25
|
}>, {
|
26
|
-
small: boolean;
|
27
26
|
calendar: CalendarCellData[][];
|
27
|
+
small: boolean;
|
28
28
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
29
29
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
30
30
|
export default _default;
|
@@ -4,12 +4,12 @@ export type ConfigProviderInstance = InstanceType<typeof _ConfigProvider>;
|
|
4
4
|
export * from './type';
|
5
5
|
declare const ConfigProvider: {
|
6
6
|
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('./type').ConfigProviderProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {
|
7
|
+
locale: "ar-EG" | "de-DE" | "en-US" | "es-ES" | "fr-FR" | "id-ID" | "it-it" | "ja-JP" | "km-KH" | "ko-KR" | "ms-MY" | "nl-NL" | "pt-PT" | "ru-RU" | "th-TH" | "vi-VN" | "zh-CN" | "zh-TW";
|
7
8
|
size: import('..').Size;
|
8
9
|
popupContainer: import('..').PopupContainer;
|
9
10
|
updateAtScroll: boolean;
|
10
11
|
scrollToClose: boolean;
|
11
12
|
zIndex: number;
|
12
|
-
locale: "ar-EG" | "de-DE" | "en-US" | "es-ES" | "fr-FR" | "id-ID" | "it-it" | "ja-JP" | "km-KH" | "ko-KR" | "ms-MY" | "nl-NL" | "pt-PT" | "ru-RU" | "th-TH" | "vi-VN" | "zh-CN" | "zh-TW";
|
13
13
|
}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
14
14
|
P: {};
|
15
15
|
B: {};
|
@@ -18,23 +18,23 @@ declare const ConfigProvider: {
|
|
18
18
|
M: {};
|
19
19
|
Defaults: {};
|
20
20
|
}, Readonly<import('./type').ConfigProviderProps> & Readonly<{}>, {}, {}, {}, {}, {
|
21
|
+
locale: "ar-EG" | "de-DE" | "en-US" | "es-ES" | "fr-FR" | "id-ID" | "it-it" | "ja-JP" | "km-KH" | "ko-KR" | "ms-MY" | "nl-NL" | "pt-PT" | "ru-RU" | "th-TH" | "vi-VN" | "zh-CN" | "zh-TW";
|
21
22
|
size: import('..').Size;
|
22
23
|
popupContainer: import('..').PopupContainer;
|
23
24
|
updateAtScroll: boolean;
|
24
25
|
scrollToClose: boolean;
|
25
26
|
zIndex: number;
|
26
|
-
locale: "ar-EG" | "de-DE" | "en-US" | "es-ES" | "fr-FR" | "id-ID" | "it-it" | "ja-JP" | "km-KH" | "ko-KR" | "ms-MY" | "nl-NL" | "pt-PT" | "ru-RU" | "th-TH" | "vi-VN" | "zh-CN" | "zh-TW";
|
27
27
|
}>;
|
28
28
|
__isFragment?: never;
|
29
29
|
__isTeleport?: never;
|
30
30
|
__isSuspense?: never;
|
31
31
|
} & import('vue').ComponentOptionsBase<Readonly<import('./type').ConfigProviderProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
|
32
|
+
locale: "ar-EG" | "de-DE" | "en-US" | "es-ES" | "fr-FR" | "id-ID" | "it-it" | "ja-JP" | "km-KH" | "ko-KR" | "ms-MY" | "nl-NL" | "pt-PT" | "ru-RU" | "th-TH" | "vi-VN" | "zh-CN" | "zh-TW";
|
32
33
|
size: import('..').Size;
|
33
34
|
popupContainer: import('..').PopupContainer;
|
34
35
|
updateAtScroll: boolean;
|
35
36
|
scrollToClose: boolean;
|
36
37
|
zIndex: number;
|
37
|
-
locale: "ar-EG" | "de-DE" | "en-US" | "es-ES" | "fr-FR" | "id-ID" | "it-it" | "ja-JP" | "km-KH" | "ko-KR" | "ms-MY" | "nl-NL" | "pt-PT" | "ru-RU" | "th-TH" | "vi-VN" | "zh-CN" | "zh-TW";
|
38
38
|
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
39
39
|
$slots: Readonly<import('./type').ConfigconfigSlots> & import('./type').ConfigconfigSlots;
|
40
40
|
}) & {
|
@@ -7,12 +7,12 @@ declare function __VLS_template(): {
|
|
7
7
|
};
|
8
8
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
9
9
|
declare const __VLS_component: import('vue').DefineComponent<ConfigProviderProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ConfigProviderProps> & Readonly<{}>, {
|
10
|
+
locale: "ar-EG" | "de-DE" | "en-US" | "es-ES" | "fr-FR" | "id-ID" | "it-it" | "ja-JP" | "km-KH" | "ko-KR" | "ms-MY" | "nl-NL" | "pt-PT" | "ru-RU" | "th-TH" | "vi-VN" | "zh-CN" | "zh-TW";
|
10
11
|
size: import('..').Size;
|
11
12
|
popupContainer: import('..').PopupContainer;
|
12
13
|
updateAtScroll: boolean;
|
13
14
|
scrollToClose: boolean;
|
14
15
|
zIndex: number;
|
15
|
-
locale: "ar-EG" | "de-DE" | "en-US" | "es-ES" | "fr-FR" | "id-ID" | "it-it" | "ja-JP" | "km-KH" | "ko-KR" | "ms-MY" | "nl-NL" | "pt-PT" | "ru-RU" | "th-TH" | "vi-VN" | "zh-CN" | "zh-TW";
|
16
16
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
17
17
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
18
18
|
export default _default;
|
@@ -4,8 +4,8 @@ import "../_shared/utils/dom.js";
|
|
4
4
|
import "../_shared/utils/time.js";
|
5
5
|
import "../Empty/index.js";
|
6
6
|
/* empty css */
|
7
|
-
import _sfc_main$4 from "../_shared/icons/IconEyeClose.
|
8
|
-
import _sfc_main$3 from "../_shared/icons/IconEyeOpen.
|
7
|
+
import _sfc_main$4 from "../_shared/icons/IconEyeClose.vue.js";
|
8
|
+
import _sfc_main$3 from "../_shared/icons/IconEyeOpen.vue.js";
|
9
9
|
import _sfc_main$2 from "../_shared/components/IconButton.vue.js";
|
10
10
|
/* empty css */
|
11
11
|
import _sfc_main$1 from "../_shared/components/PreventFocus.vue.js";
|
@@ -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$4 from "../_shared/icons/IconClose.vue.js";
|
8
|
-
import _sfc_main$2 from "../_shared/icons/IconDelete.
|
9
|
-
import _sfc_main$3 from "../_shared/icons/IconSearch.
|
8
|
+
import _sfc_main$2 from "../_shared/icons/IconDelete.vue.js";
|
9
|
+
import _sfc_main$3 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";
|
@@ -5,8 +5,8 @@ import { getDomText, sleep } from "../_shared/utils/dom.js";
|
|
5
5
|
import "../_shared/utils/time.js";
|
6
6
|
import "../Empty/index.js";
|
7
7
|
/* empty css */
|
8
|
-
import _sfc_main$3 from "../_shared/icons/IconCopy.
|
9
|
-
import _sfc_main$1 from "../_shared/icons/IconEdit.
|
8
|
+
import _sfc_main$3 from "../_shared/icons/IconCopy.vue.js";
|
9
|
+
import _sfc_main$1 from "../_shared/icons/IconEdit.vue.js";
|
10
10
|
import _sfc_main$2 from "../_shared/icons/IconInfo.vue.js";
|
11
11
|
import useControlValue from "../_shared/utils/control.js";
|
12
12
|
import Input from "../Input/index.js";
|
package/es/Watermark/index.d.ts
CHANGED
@@ -4,6 +4,7 @@ export type WatermarkInstance = InstanceType<typeof _Watermark>;
|
|
4
4
|
export * from './type';
|
5
5
|
declare const Watermark: {
|
6
6
|
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('./type').WatermarkProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {
|
7
|
+
image: string;
|
7
8
|
zIndex: number;
|
8
9
|
width: number;
|
9
10
|
height: number;
|
@@ -11,7 +12,6 @@ declare const Watermark: {
|
|
11
12
|
content: string | string[];
|
12
13
|
alpha: number;
|
13
14
|
rotate: number;
|
14
|
-
image: string;
|
15
15
|
offset: number[];
|
16
16
|
font: import('./type').WatermarkFont;
|
17
17
|
gap: number[];
|
@@ -28,6 +28,7 @@ declare const Watermark: {
|
|
28
28
|
M: {};
|
29
29
|
Defaults: {};
|
30
30
|
}, Readonly<import('./type').WatermarkProps> & Readonly<{}>, {}, {}, {}, {}, {
|
31
|
+
image: string;
|
31
32
|
zIndex: number;
|
32
33
|
width: number;
|
33
34
|
height: number;
|
@@ -35,7 +36,6 @@ declare const Watermark: {
|
|
35
36
|
content: string | string[];
|
36
37
|
alpha: number;
|
37
38
|
rotate: number;
|
38
|
-
image: string;
|
39
39
|
offset: number[];
|
40
40
|
font: import('./type').WatermarkFont;
|
41
41
|
gap: number[];
|
@@ -47,6 +47,7 @@ declare const Watermark: {
|
|
47
47
|
__isTeleport?: never;
|
48
48
|
__isSuspense?: never;
|
49
49
|
} & import('vue').ComponentOptionsBase<Readonly<import('./type').WatermarkProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
|
50
|
+
image: string;
|
50
51
|
zIndex: number;
|
51
52
|
width: number;
|
52
53
|
height: number;
|
@@ -54,7 +55,6 @@ declare const Watermark: {
|
|
54
55
|
content: string | string[];
|
55
56
|
alpha: number;
|
56
57
|
rotate: number;
|
57
|
-
image: string;
|
58
58
|
offset: number[];
|
59
59
|
font: import('./type').WatermarkFont;
|
60
60
|
gap: number[];
|
@@ -9,6 +9,7 @@ declare function __VLS_template(): {
|
|
9
9
|
};
|
10
10
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
11
11
|
declare const __VLS_component: import('vue').DefineComponent<WatermarkProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<WatermarkProps> & Readonly<{}>, {
|
12
|
+
image: string;
|
12
13
|
zIndex: number;
|
13
14
|
width: number;
|
14
15
|
height: number;
|
@@ -16,7 +17,6 @@ declare const __VLS_component: import('vue').DefineComponent<WatermarkProps, {},
|
|
16
17
|
content: string | string[];
|
17
18
|
alpha: number;
|
18
19
|
rotate: number;
|
19
|
-
image: string;
|
20
20
|
offset: number[];
|
21
21
|
font: import('./type').WatermarkFont;
|
22
22
|
gap: number[];
|
@@ -1,4 +1,20 @@
|
|
1
|
-
import
|
1
|
+
import { defineComponent, createBlock, openBlock, normalizeProps, guardReactiveProps, withCtx, createElementVNode } from "vue";
|
2
|
+
import _sfc_main$1 from "../components/Icon.vue3.js";
|
3
|
+
/* empty css */
|
4
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
5
|
+
__name: "IconCopy",
|
6
|
+
setup(__props) {
|
7
|
+
return (_ctx, _cache) => {
|
8
|
+
return openBlock(), createBlock(_sfc_main$1, normalizeProps(guardReactiveProps(_ctx.$attrs)), {
|
9
|
+
default: withCtx(() => _cache[0] || (_cache[0] = [
|
10
|
+
createElementVNode("path", { d: "M20 6h18a2 2 0 0 1 2 2v22M8 16v24c0 1.105.891 2 1.996 2h20.007A1.99 1.99 0 0 0 32 40.008V15.997A1.997 1.997 0 0 0 30 14H10a2 2 0 0 0-2 2Z" }, null, -1)
|
11
|
+
])),
|
12
|
+
_: 1,
|
13
|
+
__: [0]
|
14
|
+
}, 16);
|
15
|
+
};
|
16
|
+
}
|
17
|
+
});
|
2
18
|
export {
|
3
19
|
_sfc_main as default
|
4
20
|
};
|
@@ -1,20 +1,4 @@
|
|
1
|
-
import
|
2
|
-
import _sfc_main$1 from "../components/Icon.vue3.js";
|
3
|
-
/* empty css */
|
4
|
-
const _sfc_main = /* @__PURE__ */ defineComponent({
|
5
|
-
__name: "IconCopy",
|
6
|
-
setup(__props) {
|
7
|
-
return (_ctx, _cache) => {
|
8
|
-
return openBlock(), createBlock(_sfc_main$1, normalizeProps(guardReactiveProps(_ctx.$attrs)), {
|
9
|
-
default: withCtx(() => _cache[0] || (_cache[0] = [
|
10
|
-
createElementVNode("path", { d: "M20 6h18a2 2 0 0 1 2 2v22M8 16v24c0 1.105.891 2 1.996 2h20.007A1.99 1.99 0 0 0 32 40.008V15.997A1.997 1.997 0 0 0 30 14H10a2 2 0 0 0-2 2Z" }, null, -1)
|
11
|
-
])),
|
12
|
-
_: 1,
|
13
|
-
__: [0]
|
14
|
-
}, 16);
|
15
|
-
};
|
16
|
-
}
|
17
|
-
});
|
1
|
+
import _sfc_main from "./IconCopy.vue.js";
|
18
2
|
export {
|
19
3
|
_sfc_main as default
|
20
4
|
};
|
@@ -1,4 +1,20 @@
|
|
1
|
-
import
|
1
|
+
import { defineComponent, createBlock, openBlock, normalizeProps, guardReactiveProps, withCtx, createElementVNode } from "vue";
|
2
|
+
import _sfc_main$1 from "../components/Icon.vue3.js";
|
3
|
+
/* empty css */
|
4
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
5
|
+
__name: "IconDelete",
|
6
|
+
setup(__props) {
|
7
|
+
return (_ctx, _cache) => {
|
8
|
+
return openBlock(), createBlock(_sfc_main$1, normalizeProps(guardReactiveProps(_ctx.$attrs)), {
|
9
|
+
default: withCtx(() => _cache[0] || (_cache[0] = [
|
10
|
+
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)
|
11
|
+
])),
|
12
|
+
_: 1,
|
13
|
+
__: [0]
|
14
|
+
}, 16);
|
15
|
+
};
|
16
|
+
}
|
17
|
+
});
|
2
18
|
export {
|
3
19
|
_sfc_main as default
|
4
20
|
};
|
@@ -1,20 +1,4 @@
|
|
1
|
-
import
|
2
|
-
import _sfc_main$1 from "../components/Icon.vue3.js";
|
3
|
-
/* empty css */
|
4
|
-
const _sfc_main = /* @__PURE__ */ defineComponent({
|
5
|
-
__name: "IconDelete",
|
6
|
-
setup(__props) {
|
7
|
-
return (_ctx, _cache) => {
|
8
|
-
return openBlock(), createBlock(_sfc_main$1, normalizeProps(guardReactiveProps(_ctx.$attrs)), {
|
9
|
-
default: withCtx(() => _cache[0] || (_cache[0] = [
|
10
|
-
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)
|
11
|
-
])),
|
12
|
-
_: 1,
|
13
|
-
__: [0]
|
14
|
-
}, 16);
|
15
|
-
};
|
16
|
-
}
|
17
|
-
});
|
1
|
+
import _sfc_main from "./IconDelete.vue.js";
|
18
2
|
export {
|
19
3
|
_sfc_main as default
|
20
4
|
};
|
@@ -1,4 +1,20 @@
|
|
1
|
-
import
|
1
|
+
import { defineComponent, createBlock, openBlock, normalizeProps, guardReactiveProps, withCtx, createElementVNode } from "vue";
|
2
|
+
import _sfc_main$1 from "../components/Icon.vue3.js";
|
3
|
+
/* empty css */
|
4
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
5
|
+
__name: "IconEdit",
|
6
|
+
setup(__props) {
|
7
|
+
return (_ctx, _cache) => {
|
8
|
+
return openBlock(), createBlock(_sfc_main$1, normalizeProps(guardReactiveProps(_ctx.$attrs)), {
|
9
|
+
default: withCtx(() => _cache[0] || (_cache[0] = [
|
10
|
+
createElementVNode("path", { d: "m30.48 19.038 5.733-5.734a1 1 0 0 0 0-1.414l-5.586-5.586a1 1 0 0 0-1.414 0l-5.734 5.734m7 7L15.763 33.754a1 1 0 0 1-.59.286l-6.048.708a1 1 0 0 1-1.113-1.069l.477-6.31a1 1 0 0 1 .29-.631l14.7-14.7m7 7-7-7M6 42h36" }, null, -1)
|
11
|
+
])),
|
12
|
+
_: 1,
|
13
|
+
__: [0]
|
14
|
+
}, 16);
|
15
|
+
};
|
16
|
+
}
|
17
|
+
});
|
2
18
|
export {
|
3
19
|
_sfc_main as default
|
4
20
|
};
|
@@ -1,20 +1,4 @@
|
|
1
|
-
import
|
2
|
-
import _sfc_main$1 from "../components/Icon.vue3.js";
|
3
|
-
/* empty css */
|
4
|
-
const _sfc_main = /* @__PURE__ */ defineComponent({
|
5
|
-
__name: "IconEdit",
|
6
|
-
setup(__props) {
|
7
|
-
return (_ctx, _cache) => {
|
8
|
-
return openBlock(), createBlock(_sfc_main$1, normalizeProps(guardReactiveProps(_ctx.$attrs)), {
|
9
|
-
default: withCtx(() => _cache[0] || (_cache[0] = [
|
10
|
-
createElementVNode("path", { d: "m30.48 19.038 5.733-5.734a1 1 0 0 0 0-1.414l-5.586-5.586a1 1 0 0 0-1.414 0l-5.734 5.734m7 7L15.763 33.754a1 1 0 0 1-.59.286l-6.048.708a1 1 0 0 1-1.113-1.069l.477-6.31a1 1 0 0 1 .29-.631l14.7-14.7m7 7-7-7M6 42h36" }, null, -1)
|
11
|
-
])),
|
12
|
-
_: 1,
|
13
|
-
__: [0]
|
14
|
-
}, 16);
|
15
|
-
};
|
16
|
-
}
|
17
|
-
});
|
1
|
+
import _sfc_main from "./IconEdit.vue.js";
|
18
2
|
export {
|
19
3
|
_sfc_main as default
|
20
4
|
};
|
@@ -1,4 +1,24 @@
|
|
1
|
-
import
|
1
|
+
import { defineComponent, createBlock, openBlock, normalizeProps, guardReactiveProps, withCtx, createElementVNode } from "vue";
|
2
|
+
import _sfc_main$1 from "../components/Icon.vue3.js";
|
3
|
+
/* empty css */
|
4
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
5
|
+
__name: "IconEyeClose",
|
6
|
+
setup(__props) {
|
7
|
+
return (_ctx, _cache) => {
|
8
|
+
return openBlock(), createBlock(_sfc_main$1, normalizeProps(guardReactiveProps(_ctx.$attrs)), {
|
9
|
+
default: withCtx(() => _cache[0] || (_cache[0] = [
|
10
|
+
createElementVNode("path", {
|
11
|
+
d: "M24 37c6.627 0 12.627-4.333 18-13-5.373-8.667-11.373-13-18-13-6.627 0-12.627 4.333-18 13 5.373 8.667 11.373 13 18 13Z",
|
12
|
+
"clip-rule": "evenodd"
|
13
|
+
}, null, -1),
|
14
|
+
createElementVNode("path", { d: "M29 24a5 5 0 1 1-10 0 5 5 0 0 1 10 0Z" }, null, -1)
|
15
|
+
])),
|
16
|
+
_: 1,
|
17
|
+
__: [0]
|
18
|
+
}, 16);
|
19
|
+
};
|
20
|
+
}
|
21
|
+
});
|
2
22
|
export {
|
3
23
|
_sfc_main as default
|
4
24
|
};
|
@@ -1,24 +1,4 @@
|
|
1
|
-
import
|
2
|
-
import _sfc_main$1 from "../components/Icon.vue3.js";
|
3
|
-
/* empty css */
|
4
|
-
const _sfc_main = /* @__PURE__ */ defineComponent({
|
5
|
-
__name: "IconEyeClose",
|
6
|
-
setup(__props) {
|
7
|
-
return (_ctx, _cache) => {
|
8
|
-
return openBlock(), createBlock(_sfc_main$1, normalizeProps(guardReactiveProps(_ctx.$attrs)), {
|
9
|
-
default: withCtx(() => _cache[0] || (_cache[0] = [
|
10
|
-
createElementVNode("path", {
|
11
|
-
d: "M24 37c6.627 0 12.627-4.333 18-13-5.373-8.667-11.373-13-18-13-6.627 0-12.627 4.333-18 13 5.373 8.667 11.373 13 18 13Z",
|
12
|
-
"clip-rule": "evenodd"
|
13
|
-
}, null, -1),
|
14
|
-
createElementVNode("path", { d: "M29 24a5 5 0 1 1-10 0 5 5 0 0 1 10 0Z" }, null, -1)
|
15
|
-
])),
|
16
|
-
_: 1,
|
17
|
-
__: [0]
|
18
|
-
}, 16);
|
19
|
-
};
|
20
|
-
}
|
21
|
-
});
|
1
|
+
import _sfc_main from "./IconEyeClose.vue.js";
|
22
2
|
export {
|
23
3
|
_sfc_main as default
|
24
4
|
};
|
@@ -1,4 +1,21 @@
|
|
1
|
-
import
|
1
|
+
import { defineComponent, createBlock, openBlock, normalizeProps, guardReactiveProps, withCtx, createElementVNode } from "vue";
|
2
|
+
import _sfc_main$1 from "../components/Icon.vue3.js";
|
3
|
+
/* empty css */
|
4
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
5
|
+
__name: "IconEyeOpen",
|
6
|
+
setup(__props) {
|
7
|
+
return (_ctx, _cache) => {
|
8
|
+
return openBlock(), createBlock(_sfc_main$1, normalizeProps(guardReactiveProps(_ctx.$attrs)), {
|
9
|
+
default: withCtx(() => _cache[0] || (_cache[0] = [
|
10
|
+
createElementVNode("path", { d: "M14 14.5c-2.69 2-5.415 5.33-8 9.5 5.373 8.667 11.373 13 18 13 3.325 0 6.491-1.09 9.5-3.271M17.463 12.5C19 11 21.75 11 24 11c6.627 0 12.627 4.333 18 13-1.766 2.848-3.599 5.228-5.5 7.14" }, null, -1),
|
11
|
+
createElementVNode("path", { d: "M29 24a5 5 0 1 1-10 0 5 5 0 0 1 10 0ZM6.852 7.103l34.294 34.294" }, null, -1)
|
12
|
+
])),
|
13
|
+
_: 1,
|
14
|
+
__: [0]
|
15
|
+
}, 16);
|
16
|
+
};
|
17
|
+
}
|
18
|
+
});
|
2
19
|
export {
|
3
20
|
_sfc_main as default
|
4
21
|
};
|
@@ -1,21 +1,4 @@
|
|
1
|
-
import
|
2
|
-
import _sfc_main$1 from "../components/Icon.vue3.js";
|
3
|
-
/* empty css */
|
4
|
-
const _sfc_main = /* @__PURE__ */ defineComponent({
|
5
|
-
__name: "IconEyeOpen",
|
6
|
-
setup(__props) {
|
7
|
-
return (_ctx, _cache) => {
|
8
|
-
return openBlock(), createBlock(_sfc_main$1, normalizeProps(guardReactiveProps(_ctx.$attrs)), {
|
9
|
-
default: withCtx(() => _cache[0] || (_cache[0] = [
|
10
|
-
createElementVNode("path", { d: "M14 14.5c-2.69 2-5.415 5.33-8 9.5 5.373 8.667 11.373 13 18 13 3.325 0 6.491-1.09 9.5-3.271M17.463 12.5C19 11 21.75 11 24 11c6.627 0 12.627 4.333 18 13-1.766 2.848-3.599 5.228-5.5 7.14" }, null, -1),
|
11
|
-
createElementVNode("path", { d: "M29 24a5 5 0 1 1-10 0 5 5 0 0 1 10 0ZM6.852 7.103l34.294 34.294" }, null, -1)
|
12
|
-
])),
|
13
|
-
_: 1,
|
14
|
-
__: [0]
|
15
|
-
}, 16);
|
16
|
-
};
|
17
|
-
}
|
18
|
-
});
|
1
|
+
import _sfc_main from "./IconEyeOpen.vue.js";
|
19
2
|
export {
|
20
3
|
_sfc_main as default
|
21
4
|
};
|
@@ -1,4 +1,20 @@
|
|
1
|
-
import
|
1
|
+
import { defineComponent, createBlock, openBlock, normalizeProps, guardReactiveProps, withCtx, createElementVNode } from "vue";
|
2
|
+
import _sfc_main$1 from "../components/Icon.vue3.js";
|
3
|
+
/* empty css */
|
4
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
5
|
+
__name: "IconSearch",
|
6
|
+
setup(__props) {
|
7
|
+
return (_ctx, _cache) => {
|
8
|
+
return openBlock(), createBlock(_sfc_main$1, normalizeProps(guardReactiveProps(_ctx.$attrs)), {
|
9
|
+
default: withCtx(() => _cache[0] || (_cache[0] = [
|
10
|
+
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)
|
11
|
+
])),
|
12
|
+
_: 1,
|
13
|
+
__: [0]
|
14
|
+
}, 16);
|
15
|
+
};
|
16
|
+
}
|
17
|
+
});
|
2
18
|
export {
|
3
19
|
_sfc_main as default
|
4
20
|
};
|
@@ -1,20 +1,4 @@
|
|
1
|
-
import
|
2
|
-
import _sfc_main$1 from "../components/Icon.vue3.js";
|
3
|
-
/* empty css */
|
4
|
-
const _sfc_main = /* @__PURE__ */ defineComponent({
|
5
|
-
__name: "IconSearch",
|
6
|
-
setup(__props) {
|
7
|
-
return (_ctx, _cache) => {
|
8
|
-
return openBlock(), createBlock(_sfc_main$1, normalizeProps(guardReactiveProps(_ctx.$attrs)), {
|
9
|
-
default: withCtx(() => _cache[0] || (_cache[0] = [
|
10
|
-
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)
|
11
|
-
])),
|
12
|
-
_: 1,
|
13
|
-
__: [0]
|
14
|
-
}, 16);
|
15
|
-
};
|
16
|
-
}
|
17
|
-
});
|
1
|
+
import _sfc_main from "./IconSearch.vue.js";
|
18
2
|
export {
|
19
3
|
_sfc_main as default
|
20
4
|
};
|
@@ -1,4 +1,3 @@
|
|
1
|
-
import __variableDynamicImportRuntimeHelper from "../../_virtual/dynamic-import-helper.js";
|
2
1
|
import lang from "./lang/zh-cn.js";
|
3
2
|
import { createI18n } from "../../node_modules/@intlify/vue-i18n-core/dist/vue-i18n-core.js";
|
4
3
|
const i18n = createI18n({
|
@@ -12,6 +11,7 @@ const i18n = createI18n({
|
|
12
11
|
fallbackWarn: false
|
13
12
|
});
|
14
13
|
const i18nGlobal = i18n.global;
|
14
|
+
const langModules = /* @__PURE__ */ Object.assign({ "./lang/ar-eg.ts": () => import("./lang/ar-eg.js"), "./lang/de-de.ts": () => import("./lang/de-de.js"), "./lang/en-us.ts": () => import("./lang/en-us.js"), "./lang/es-es.ts": () => import("./lang/es-es.js"), "./lang/fr-fr.ts": () => import("./lang/fr-fr.js"), "./lang/id-id.ts": () => import("./lang/id-id.js"), "./lang/it-it.ts": () => import("./lang/it-it.js"), "./lang/ja-jp.ts": () => import("./lang/ja-jp.js"), "./lang/km-kh.ts": () => import("./lang/km-kh.js"), "./lang/ko-kr.ts": () => import("./lang/ko-kr.js"), "./lang/ms-my.ts": () => import("./lang/ms-my.js"), "./lang/nl-nl.ts": () => import("./lang/nl-nl.js"), "./lang/pt-pt.ts": () => import("./lang/pt-pt.js"), "./lang/ru-ru.ts": () => import("./lang/ru-ru.js"), "./lang/th-th.ts": () => import("./lang/th-th.js"), "./lang/vi-vn.ts": () => import("./lang/vi-vn.js"), "./lang/zh-cn.ts": () => import("./lang/zh-cn.js"), "./lang/zh-tw.ts": () => import("./lang/zh-tw.js") });
|
15
15
|
async function loadLanguageAsync(locale) {
|
16
16
|
const loadedLanguages = Object.keys(i18nGlobal.messages.value);
|
17
17
|
if (i18nGlobal.locale.value === locale || loadedLanguages.includes(locale)) {
|
@@ -20,10 +20,15 @@ async function loadLanguageAsync(locale) {
|
|
20
20
|
}
|
21
21
|
try {
|
22
22
|
const localeName = locale.split("-").map((v) => v.toLocaleLowerCase()).join("-");
|
23
|
-
const
|
24
|
-
|
25
|
-
|
26
|
-
|
23
|
+
const modulePath = `./lang/${localeName}.ts`;
|
24
|
+
if (langModules[modulePath]) {
|
25
|
+
const module = await langModules[modulePath]();
|
26
|
+
i18nGlobal.setLocaleMessage(locale, module.default);
|
27
|
+
i18nGlobal.locale.value = locale;
|
28
|
+
return locale;
|
29
|
+
} else {
|
30
|
+
throw new Error(`无法找到语言文件: ${localeName}.ts`);
|
31
|
+
}
|
27
32
|
} catch (error) {
|
28
33
|
console.error(`无法加载语言文件 ${locale}.ts:`, error);
|
29
34
|
return i18nGlobal.locale.value;
|
package/es/index.js
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
+
import i18n from "./_shared/locale/i18n.js";
|
1
2
|
/* empty css */
|
2
3
|
import Affix from "./Affix/index.js";
|
3
4
|
import Alert from "./Alert/index.js";
|
@@ -66,7 +67,6 @@ import Typography from "./Typography/index.js";
|
|
66
67
|
import Tabs from "./Tabs/index.js";
|
67
68
|
import VerificationCode from "./VerificationCode/index.js";
|
68
69
|
import Watermark from "./Watermark/index.js";
|
69
|
-
import i18n from "./_shared/locale/i18n.js";
|
70
70
|
import _sfc_main from "./Typography/TypographyParagraph.vue.js";
|
71
71
|
/* empty css */
|
72
72
|
import _sfc_main$1 from "./Typography/TypographyTitle.vue.js";
|
@@ -1,6 +1,6 @@
|
|
1
|
-
import { DEFAULT_LOCALE, updateFallbackLocale,
|
2
|
-
import {
|
3
|
-
import {
|
1
|
+
import { DEFAULT_LOCALE, updateFallbackLocale, createCoreContext, clearDateTimeFormat, clearNumberFormat, isMessageAST, AST_NODE_PROPS_KEYS, setAdditionalMeta, getFallbackContext, NOT_RESOLVED, isTranslateFallbackWarn, isTranslateMissingWarn, CORE_ERROR_CODES_EXTEND_POINT, fallbackWithLocaleChain, CORE_WARN_CODES_EXTEND_POINT, setFallbackContext, parseTranslateArgs, translate, MISSING_RESOLVE_VALUE, parseDateTimeArgs, datetime, parseNumberArgs, number, isMessageFunction, DATETIME_FORMAT_OPTIONS_KEYS, NUMBER_FORMAT_OPTIONS_KEYS, setDevToolsHook } from "../../core-base/dist/core-base.js";
|
2
|
+
import { isBoolean, makeSymbol, isPlainObject, createEmitter, isString, isArray, isRegExp, isFunction, inBrowser, create, deepCopy, hasOwn, isObject, assign, isNumber, warn, format, isEmptyObject, getGlobalThis } from "../../shared/dist/shared.js";
|
3
|
+
import { effectScope, ref, shallowRef, computed, watch, isRef, defineComponent, getCurrentInstance, h, Fragment, inject, onMounted, onUnmounted, createVNode, Text } from "vue";
|
4
4
|
import { setupDevtoolsPlugin } from "../../../@vue/devtools-api/lib/esm/index.js";
|
5
5
|
import { createCompileError } from "../../message-compiler/dist/message-compiler.js";
|
6
6
|
/*!
|
@@ -23,8 +23,8 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}
|
|
23
23
|
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
24
24
|
"onCell-click"?: ((col: CalendarCellData) => any) | undefined;
|
25
25
|
}>, {
|
26
|
-
small: boolean;
|
27
26
|
calendar: CalendarCellData[][];
|
27
|
+
small: boolean;
|
28
28
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
29
29
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
30
30
|
export default _default;
|
@@ -4,12 +4,12 @@ export type ConfigProviderInstance = InstanceType<typeof _ConfigProvider>;
|
|
4
4
|
export * from './type';
|
5
5
|
declare const ConfigProvider: {
|
6
6
|
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('./type').ConfigProviderProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {
|
7
|
+
locale: "ar-EG" | "de-DE" | "en-US" | "es-ES" | "fr-FR" | "id-ID" | "it-it" | "ja-JP" | "km-KH" | "ko-KR" | "ms-MY" | "nl-NL" | "pt-PT" | "ru-RU" | "th-TH" | "vi-VN" | "zh-CN" | "zh-TW";
|
7
8
|
size: import('..').Size;
|
8
9
|
popupContainer: import('..').PopupContainer;
|
9
10
|
updateAtScroll: boolean;
|
10
11
|
scrollToClose: boolean;
|
11
12
|
zIndex: number;
|
12
|
-
locale: "ar-EG" | "de-DE" | "en-US" | "es-ES" | "fr-FR" | "id-ID" | "it-it" | "ja-JP" | "km-KH" | "ko-KR" | "ms-MY" | "nl-NL" | "pt-PT" | "ru-RU" | "th-TH" | "vi-VN" | "zh-CN" | "zh-TW";
|
13
13
|
}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
14
14
|
P: {};
|
15
15
|
B: {};
|
@@ -18,23 +18,23 @@ declare const ConfigProvider: {
|
|
18
18
|
M: {};
|
19
19
|
Defaults: {};
|
20
20
|
}, Readonly<import('./type').ConfigProviderProps> & Readonly<{}>, {}, {}, {}, {}, {
|
21
|
+
locale: "ar-EG" | "de-DE" | "en-US" | "es-ES" | "fr-FR" | "id-ID" | "it-it" | "ja-JP" | "km-KH" | "ko-KR" | "ms-MY" | "nl-NL" | "pt-PT" | "ru-RU" | "th-TH" | "vi-VN" | "zh-CN" | "zh-TW";
|
21
22
|
size: import('..').Size;
|
22
23
|
popupContainer: import('..').PopupContainer;
|
23
24
|
updateAtScroll: boolean;
|
24
25
|
scrollToClose: boolean;
|
25
26
|
zIndex: number;
|
26
|
-
locale: "ar-EG" | "de-DE" | "en-US" | "es-ES" | "fr-FR" | "id-ID" | "it-it" | "ja-JP" | "km-KH" | "ko-KR" | "ms-MY" | "nl-NL" | "pt-PT" | "ru-RU" | "th-TH" | "vi-VN" | "zh-CN" | "zh-TW";
|
27
27
|
}>;
|
28
28
|
__isFragment?: never;
|
29
29
|
__isTeleport?: never;
|
30
30
|
__isSuspense?: never;
|
31
31
|
} & import('vue').ComponentOptionsBase<Readonly<import('./type').ConfigProviderProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
|
32
|
+
locale: "ar-EG" | "de-DE" | "en-US" | "es-ES" | "fr-FR" | "id-ID" | "it-it" | "ja-JP" | "km-KH" | "ko-KR" | "ms-MY" | "nl-NL" | "pt-PT" | "ru-RU" | "th-TH" | "vi-VN" | "zh-CN" | "zh-TW";
|
32
33
|
size: import('..').Size;
|
33
34
|
popupContainer: import('..').PopupContainer;
|
34
35
|
updateAtScroll: boolean;
|
35
36
|
scrollToClose: boolean;
|
36
37
|
zIndex: number;
|
37
|
-
locale: "ar-EG" | "de-DE" | "en-US" | "es-ES" | "fr-FR" | "id-ID" | "it-it" | "ja-JP" | "km-KH" | "ko-KR" | "ms-MY" | "nl-NL" | "pt-PT" | "ru-RU" | "th-TH" | "vi-VN" | "zh-CN" | "zh-TW";
|
38
38
|
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
39
39
|
$slots: Readonly<import('./type').ConfigconfigSlots> & import('./type').ConfigconfigSlots;
|
40
40
|
}) & {
|
@@ -7,12 +7,12 @@ declare function __VLS_template(): {
|
|
7
7
|
};
|
8
8
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
9
9
|
declare const __VLS_component: import('vue').DefineComponent<ConfigProviderProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ConfigProviderProps> & Readonly<{}>, {
|
10
|
+
locale: "ar-EG" | "de-DE" | "en-US" | "es-ES" | "fr-FR" | "id-ID" | "it-it" | "ja-JP" | "km-KH" | "ko-KR" | "ms-MY" | "nl-NL" | "pt-PT" | "ru-RU" | "th-TH" | "vi-VN" | "zh-CN" | "zh-TW";
|
10
11
|
size: import('..').Size;
|
11
12
|
popupContainer: import('..').PopupContainer;
|
12
13
|
updateAtScroll: boolean;
|
13
14
|
scrollToClose: boolean;
|
14
15
|
zIndex: number;
|
15
|
-
locale: "ar-EG" | "de-DE" | "en-US" | "es-ES" | "fr-FR" | "id-ID" | "it-it" | "ja-JP" | "km-KH" | "ko-KR" | "ms-MY" | "nl-NL" | "pt-PT" | "ru-RU" | "th-TH" | "vi-VN" | "zh-CN" | "zh-TW";
|
16
16
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
17
17
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
18
18
|
export default _default;
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";const e=require("vue");require("../node_modules/tinycolor2/esm/tinycolor.js"),require("../_shared/utils/dom.js"),require("../_shared/utils/time.js"),require("../Empty/index.js");/* empty css */const o=require("../_shared/icons/IconEyeClose.
|
1
|
+
"use strict";const e=require("vue");require("../node_modules/tinycolor2/esm/tinycolor.js"),require("../_shared/utils/dom.js"),require("../_shared/utils/time.js"),require("../Empty/index.js");/* empty css */const o=require("../_shared/icons/IconEyeClose.vue.js"),t=require("../_shared/icons/IconEyeOpen.vue.js"),i=require("../_shared/components/IconButton.vue.js");;/* empty css */const s=require("../_shared/components/PreventFocus.vue.js");;/* empty css */const n={key:0,class:"yc-input-word-limit"},r=e.defineComponent({__name:"InputSuffix",props:{curLength:{},maxLength:{},showWordLimit:{type:Boolean},computedVisibility:{type:Boolean},isPassword:{type:Boolean},invisibleButton:{type:Boolean}},emits:["clear","visibilityChange"],setup:r=>(r,c)=>(e.openBlock(),e.createBlock(e.unref(s),{class:"yc-input-suffix"},{default:e.withCtx(()=>[r.showWordLimit?(e.openBlock(),e.createElementBlock("div",n,e.toDisplayString(r.curLength)+"/"+e.toDisplayString(r.maxLength),1)):e.createCommentVNode("",!0),r.isPassword&&r.invisibleButton?(e.openBlock(),e.createBlock(e.unref(i),{key:1,size:14,onClick:c[0]||(c[0]=e=>r.$emit("visibilityChange",!r.computedVisibility))},{default:e.withCtx(()=>[r.computedVisibility?(e.openBlock(),e.createBlock(e.unref(t),{key:0})):(e.openBlock(),e.createBlock(e.unref(o),{key:1}))]),_:1})):e.createCommentVNode("",!0),r.$slots.suffix?e.renderSlot(r.$slots,"suffix",{key:2}):e.createCommentVNode("",!0)]),_:3}))});module.exports=r;
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";const e=require("vue");require("../node_modules/tinycolor2/esm/tinycolor.js"),require("../_shared/utils/dom.js"),require("../_shared/utils/time.js");const l=require("../_shared/utils/global-config.js");;/* empty css */const t=require("../_shared/icons/IconClose.vue.js"),a=require("../_shared/icons/IconDelete.
|
1
|
+
"use strict";const e=require("vue");require("../node_modules/tinycolor2/esm/tinycolor.js"),require("../_shared/utils/dom.js"),require("../_shared/utils/time.js");const l=require("../_shared/utils/global-config.js");;/* empty css */const t=require("../_shared/icons/IconClose.vue.js"),a=require("../_shared/icons/IconDelete.vue.js"),r=require("../_shared/icons/IconSearch.vue.js"),n=require("./hooks/useContext.js"),o=require("../Checkbox/index.js"),u=require("../Scrollbar/index.js"),c=require("../Input/index.js"),s=require("../_shared/components/IconButton.vue.js");,/* empty css */;/* empty css */const i={class:"yc-transfer-view"},v={class:"yc-transfer-view-header"},d={class:"yc-transfer-view-header-title"},m={class:"yc-transfer-view-header-count"},f={key:0,class:"yc-transfer-view-search"},p={class:"yc-transfer-view-body"},k={key:1,role:"list",class:"yc-transfer-list"},h=["onClick"],y={class:"yc-transfer-list-item-content text-ellipsis"},g=e.defineComponent({__name:"TransferPanel",props:{type:{}},setup(g){const B=g,{type:C}=e.toRefs(B),{renderEmpty:V}=l.getGlobalConfig(),{computedValue:x,computedSelected:N,targetChecked:_,sourceChecked:b,sourceOptions:j,targetOptions:w,disabled:E,oneWay:S,showSearch:q,showSelectAll:D,simple:I,sourceInputSearchProps:T,targetInputSearchProps:F,slots:P,title:z,emits:L}=n().inject(),O=e.ref(""),A=e.computed(()=>("source"==C.value?j.value:w.value).filter(e=>{var l;return null==(l=e.label)?void 0:l.toLowerCase().includes(O.value.toLowerCase())})),U=e.computed(()=>"source"==C.value?b.value:_.value),G=e.computed(()=>"source"==C.value?T.value:F.value),K=e.computed(()=>"source"==C.value?z.value[0]:z.value[1]),R=e.computed({get:()=>!!U.value.length&&U.value.length==A.value.length,set(e){if(e)N.value=[...new Set([...N.value,...A.value.map(e=>e.value)])];else{const e=Object.fromEntries(A.value.map(e=>[e.value,e]));N.value=N.value.filter(l=>!e[l])}}}),W=e.computed(()=>!!U.value.length&&U.value.length<=A.value.length),$=()=>{!E.value&&x.value.length&&(x.value=[])},H=()=>{var e;return null==(e=P["source"==C.value?"source-title":"target-title"])?void 0:e.call(P,{countTotal:"source"==C.value?j.value.length:w.value.length,countSelected:"source"==C.value?b.value.length:_.value.length,searchValue:O.value,checked:R.value,indeterminate:W.value,onSelectAllChange:e=>{R.value=e},onClear:$})},J=()=>{var e;return null==(e=P[C.value])?void 0:e.call(P,{selectedKeys:U.value,data:A.value,onSelect:e=>{N.value=e}})},M=e=>()=>{var l;return null==(l=P.item)?void 0:l.call(P,e)};return(l,n)=>(e.openBlock(),e.createElementBlock("div",i,[e.createElementVNode("div",v,[e.unref(P)[`${e.unref(C)}-title`]?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(H),{key:0})):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createElementVNode("span",d,[!e.unref(D)||e.unref(I)||e.unref(S)&&"target"==e.unref(C)?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode(e.toDisplayString(K.value),1)],64)):(e.openBlock(),e.createBlock(e.unref(o.default),{key:0,modelValue:R.value,"onUpdate:modelValue":n[0]||(n[0]=e=>R.value=e),indeterminate:W.value,disabled:!A.value.length||e.unref(E)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(K.value),1)]),_:1},8,["modelValue","indeterminate","disabled"]))]),e.createElementVNode("span",m,[e.unref(I)||e.unref(S)&&"target"==e.unref(C)?"target"!=e.unref(C)||e.unref(I)?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(e.unref(s),{key:1,size:14,onClick:$},{default:e.withCtx(()=>[e.createVNode(e.unref(a))]),_:1})):(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(U.value.length)+" / "+e.toDisplayString(A.value.length),1)],64))])],64))]),e.unref(q)?(e.openBlock(),e.createElementBlock("div",f,[e.createVNode(e.unref(c),e.mergeProps({modelValue:O.value,"onUpdate:modelValue":n[1]||(n[1]=e=>O.value=e)},G.value,{onInput:n[2]||(n[2]=l=>e.unref(L)("search",l,e.unref(C)))}),{suffix:e.withCtx(()=>[e.createVNode(e.unref(r))]),_:1},16,["modelValue"])])):e.createCommentVNode("",!0),e.createElementVNode("div",p,[A.value.length?(e.openBlock(),e.createBlock(e.unref(u),{key:0},{default:e.withCtx(()=>[e.unref(P)[e.unref(C)]?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(J),{key:0})):(e.openBlock(),e.createElementBlock("div",k,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(A.value,l=>(e.openBlock(),e.createElementBlock("div",{key:l.value,role:"listitem",class:e.normalizeClass(["yc-transfer-list-item",{"yc-transfer-list-item-disabled":l.disabled||e.unref(E)}]),onClick:e=>(e=>{const{value:l}=e;E.value||e.disabled||(S.value&&"source"!=C.value||I.value)&&(x.value="source"==C.value?[...x.value,l]:x.value.filter(e=>e!=l))})(l)},[e.unref(S)&&(!e.unref(S)||"source"!=e.unref(C))||e.unref(I)?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createElementVNode("span",y,[e.unref(P).item?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(M(l)),{key:0})):e.createCommentVNode("",!0),e.createTextVNode(" "+e.toDisplayString(e.unref(P).item?"":l.label),1)]),"target"!=e.unref(C)||e.unref(I)?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(e.unref(s),{key:0,"hover-size":20},{default:e.withCtx(()=>[e.createVNode(e.unref(t))]),_:1}))],64)):(e.openBlock(),e.createBlock(e.unref(o.default),{key:0,"model-value":U.value.includes(l.value),disabled:l.disabled||e.unref(E),onChange:e=>((e,l)=>{N.value=e?[...N.value,l]:N.value.filter(e=>e!=l),L("select",N.value)})(e,l.value)},{default:e.withCtx(()=>[e.unref(P).item?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(M(l)),{key:0})):e.createCommentVNode("",!0),e.createTextVNode(" "+e.toDisplayString(e.unref(P).item?"":l.label),1)]),_:2},1032,["model-value","disabled","onChange"]))],10,h))),128))]))]),_:1})):e.createCommentVNode("",!0),(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(V)("Transfer"))))])]))}});module.exports=g;
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";const e=require("vue"),t=require("../node_modules/@vueuse/core/index.js");require("../node_modules/tinycolor2/esm/tinycolor.js");const o=require("../_shared/utils/dom.js");require("../_shared/utils/time.js"),require("../Empty/index.js");/* empty css */const l=require("../_shared/icons/IconCopy.
|
1
|
+
"use strict";const e=require("vue"),t=require("../node_modules/@vueuse/core/index.js");require("../node_modules/tinycolor2/esm/tinycolor.js");const o=require("../_shared/utils/dom.js");require("../_shared/utils/time.js"),require("../Empty/index.js");/* empty css */const l=require("../_shared/icons/IconCopy.vue.js"),a=require("../_shared/icons/IconEdit.vue.js"),n=require("../_shared/icons/IconInfo.vue.js"),r=require("../_shared/utils/control.js"),u=require("../Input/index.js"),d=require("../Tooltip/index.js"),p=require("../node_modules/@intlify/vue-i18n-core/dist/vue-i18n-core.js"),i=e.defineComponent({name:"TypographyBase",__name:"TypographyBase",props:{tag:{default:"span"},type:{default:void 0},bold:{type:Boolean,default:!1},disabled:{type:Boolean},mark:{type:Boolean,default:!1},underline:{type:Boolean,default:!1},delete:{type:Boolean,default:!1},code:{type:Boolean,default:!1},editable:{type:Boolean,default:!1},editing:{type:Boolean,default:void 0},defaultEditing:{type:Boolean,default:!1},editText:{default:""},copyable:{type:Boolean,default:!1},copyText:{default:""},copyDelay:{default:3e3},ellipsis:{type:[Boolean,Object],default:!0},editTooltiProps:{default:()=>({})},copyTooltiProps:{default:()=>({})}},emits:["update:editing","update:editText","edit-start","change","copy","edit-end","ellipsis","expand"],setup(i,{emit:s}){const c=i,y=s,{editing:f,defaultEditing:v,editText:m,copyText:g,copyable:h,copyDelay:B,code:k,mark:x,delete:_,underline:T,bold:C}=e.toRefs(c),{t:b}=p.useI18n(),{isSupported:j,copy:q}=t.useClipboard(),V=e.ref(!1),E=e.ref(),N=e.ref(),w=r(f,v.value,e=>{y("update:editing",e)}),I=r(m,"",e=>{y("update:editText",e),y("change",e)}),D=e.computed(()=>{const e=[x.value,k.value,_.value,T.value,C.value];return["mark","code","del","u","b"].filter((t,o)=>e[o])}),P=e.defineComponent({props:{tags:{type:Array,default:()=>[]}},setup:(t,{slots:o})=>()=>{var l;const{tags:a}=e.toRefs(t),n=(t,o)=>o>=a.value.length?t:e.h(a.value[o],null,n(t,o+1));return n(null==(l=o.default)?void 0:l.call(o),0)}}),R=async()=>{var e;w.value=!0,I.value=I.value?I.value:o.getDomText(E),y("edit-start"),await o.sleep(0),null==(e=N.value)||e.focus()},S=()=>{w.value=!1,y("edit-end")},$=async()=>{if(!h.value||!j.value||V.value)return;const e=g.value||o.getDomText(E);q(e),y("copy",e),V.value=!0,await o.sleep(B.value),V.value=!1};return(t,o)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t.tag),{class:e.normalizeClass(["yc-typography",{[`yc-typography-${t.type}`]:t.type,"yc-typography-bold":e.unref(C),"yc-typography-disabled":t.disabled,"yc-typography-underline":e.unref(T),"yc-typography-delete":e.unref(_)}]),ref_key:"contentRef",ref:E},{default:e.withCtx(()=>[e.unref(w)?(e.openBlock(),e.createBlock(e.unref(u),{key:0,modelValue:e.unref(I),"onUpdate:modelValue":o[0]||(o[0]=t=>e.isRef(I)?I.value=t:null),ref_key:"inputRef",ref:N,onBlur:S},null,8,["modelValue"])):(e.openBlock(),e.createBlock(e.unref(P),{key:1,tags:D.value},{default:e.withCtx(()=>[e.renderSlot(t.$slots,"default")]),_:3},8,["tags"])),t.editable&&!e.unref(w)?(e.openBlock(),e.createElementBlock("span",{key:2,class:"yc-typography-operation-edit",onClick:R},[e.createVNode(e.unref(d),e.mergeProps({content:e.unref(b)("typography.edit"),position:"top"},t.editTooltiProps),{default:e.withCtx(()=>[e.createElementVNode("span",null,[e.createVNode(e.unref(a))])]),_:1},16,["content"])])):e.createCommentVNode("",!0),e.unref(h)?(e.openBlock(),e.createElementBlock("span",{key:3,class:"yc-typography-operation-copy",onClick:$},[e.createVNode(e.unref(d),e.mergeProps({position:"top"},t.copyTooltiProps),{content:e.withCtx(()=>[e.renderSlot(t.$slots,"copy-tooltip",{copied:V.value},()=>[e.createTextVNode(e.toDisplayString(e.unref(b)("typography."+(V.value?"copied":"copy"))),1)])]),default:e.withCtx(()=>[e.createElementVNode("span",null,[e.renderSlot(t.$slots,"copy-icon",{copied:V.value},()=>[V.value?(e.openBlock(),e.createBlock(e.unref(n),{key:0,color:"rgb(0, 180, 42)"})):(e.openBlock(),e.createBlock(e.unref(l),{key:1}))])])]),_:3},16)])):e.createCommentVNode("",!0)]),_:3},8,["class"]))}});module.exports=i;
|
package/lib/Watermark/index.d.ts
CHANGED
@@ -4,6 +4,7 @@ export type WatermarkInstance = InstanceType<typeof _Watermark>;
|
|
4
4
|
export * from './type';
|
5
5
|
declare const Watermark: {
|
6
6
|
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('./type').WatermarkProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {
|
7
|
+
image: string;
|
7
8
|
zIndex: number;
|
8
9
|
width: number;
|
9
10
|
height: number;
|
@@ -11,7 +12,6 @@ declare const Watermark: {
|
|
11
12
|
content: string | string[];
|
12
13
|
alpha: number;
|
13
14
|
rotate: number;
|
14
|
-
image: string;
|
15
15
|
offset: number[];
|
16
16
|
font: import('./type').WatermarkFont;
|
17
17
|
gap: number[];
|
@@ -28,6 +28,7 @@ declare const Watermark: {
|
|
28
28
|
M: {};
|
29
29
|
Defaults: {};
|
30
30
|
}, Readonly<import('./type').WatermarkProps> & Readonly<{}>, {}, {}, {}, {}, {
|
31
|
+
image: string;
|
31
32
|
zIndex: number;
|
32
33
|
width: number;
|
33
34
|
height: number;
|
@@ -35,7 +36,6 @@ declare const Watermark: {
|
|
35
36
|
content: string | string[];
|
36
37
|
alpha: number;
|
37
38
|
rotate: number;
|
38
|
-
image: string;
|
39
39
|
offset: number[];
|
40
40
|
font: import('./type').WatermarkFont;
|
41
41
|
gap: number[];
|
@@ -47,6 +47,7 @@ declare const Watermark: {
|
|
47
47
|
__isTeleport?: never;
|
48
48
|
__isSuspense?: never;
|
49
49
|
} & import('vue').ComponentOptionsBase<Readonly<import('./type').WatermarkProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
|
50
|
+
image: string;
|
50
51
|
zIndex: number;
|
51
52
|
width: number;
|
52
53
|
height: number;
|
@@ -54,7 +55,6 @@ declare const Watermark: {
|
|
54
55
|
content: string | string[];
|
55
56
|
alpha: number;
|
56
57
|
rotate: number;
|
57
|
-
image: string;
|
58
58
|
offset: number[];
|
59
59
|
font: import('./type').WatermarkFont;
|
60
60
|
gap: number[];
|
@@ -9,6 +9,7 @@ declare function __VLS_template(): {
|
|
9
9
|
};
|
10
10
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
11
11
|
declare const __VLS_component: import('vue').DefineComponent<WatermarkProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<WatermarkProps> & Readonly<{}>, {
|
12
|
+
image: string;
|
12
13
|
zIndex: number;
|
13
14
|
width: number;
|
14
15
|
height: number;
|
@@ -16,7 +17,6 @@ declare const __VLS_component: import('vue').DefineComponent<WatermarkProps, {},
|
|
16
17
|
content: string | string[];
|
17
18
|
alpha: number;
|
18
19
|
rotate: number;
|
19
|
-
image: string;
|
20
20
|
offset: number[];
|
21
21
|
font: import('./type').WatermarkFont;
|
22
22
|
gap: number[];
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";const e=require("
|
1
|
+
"use strict";const e=require("vue"),o=require("../components/Icon.vue3.js");;/* empty css */const t=e.defineComponent({__name:"IconCopy",setup:t=>(t,n)=>(e.openBlock(),e.createBlock(o,e.normalizeProps(e.guardReactiveProps(t.$attrs)),{default:e.withCtx(()=>n[0]||(n[0]=[e.createElementVNode("path",{d:"M20 6h18a2 2 0 0 1 2 2v22M8 16v24c0 1.105.891 2 1.996 2h20.007A1.99 1.99 0 0 0 32 40.008V15.997A1.997 1.997 0 0 0 30 14H10a2 2 0 0 0-2 2Z"},null,-1)])),_:1,__:[0]},16))});module.exports=t;
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";const e=require("vue
|
1
|
+
"use strict";const e=require("./IconCopy.vue.js");module.exports=e;
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";const e=require("
|
1
|
+
"use strict";const e=require("vue"),o=require("../components/Icon.vue3.js");;/* empty css */const t=e.defineComponent({__name:"IconDelete",setup:t=>(t,n)=>(e.openBlock(),e.createBlock(o,e.normalizeProps(e.guardReactiveProps(t.$attrs)),{default:e.withCtx(()=>n[0]||(n[0]=[e.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)])),_:1,__:[0]},16))});module.exports=t;
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";const e=require("vue
|
1
|
+
"use strict";const e=require("./IconDelete.vue.js");module.exports=e;
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";const e=require("
|
1
|
+
"use strict";const e=require("vue"),o=require("../components/Icon.vue3.js");;/* empty css */const t=e.defineComponent({__name:"IconEdit",setup:t=>(t,n)=>(e.openBlock(),e.createBlock(o,e.normalizeProps(e.guardReactiveProps(t.$attrs)),{default:e.withCtx(()=>n[0]||(n[0]=[e.createElementVNode("path",{d:"m30.48 19.038 5.733-5.734a1 1 0 0 0 0-1.414l-5.586-5.586a1 1 0 0 0-1.414 0l-5.734 5.734m7 7L15.763 33.754a1 1 0 0 1-.59.286l-6.048.708a1 1 0 0 1-1.113-1.069l.477-6.31a1 1 0 0 1 .29-.631l14.7-14.7m7 7-7-7M6 42h36"},null,-1)])),_:1,__:[0]},16))});module.exports=t;
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";const e=require("vue
|
1
|
+
"use strict";const e=require("./IconEdit.vue.js");module.exports=e;
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";const e=require("
|
1
|
+
"use strict";const e=require("vue"),o=require("../components/Icon.vue3.js");;/* empty css */const t=e.defineComponent({__name:"IconEyeClose",setup:t=>(t,n)=>(e.openBlock(),e.createBlock(o,e.normalizeProps(e.guardReactiveProps(t.$attrs)),{default:e.withCtx(()=>n[0]||(n[0]=[e.createElementVNode("path",{d:"M24 37c6.627 0 12.627-4.333 18-13-5.373-8.667-11.373-13-18-13-6.627 0-12.627 4.333-18 13 5.373 8.667 11.373 13 18 13Z","clip-rule":"evenodd"},null,-1),e.createElementVNode("path",{d:"M29 24a5 5 0 1 1-10 0 5 5 0 0 1 10 0Z"},null,-1)])),_:1,__:[0]},16))});module.exports=t;
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";const e=require("vue
|
1
|
+
"use strict";const e=require("./IconEyeClose.vue.js");module.exports=e;
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";const e=require("
|
1
|
+
"use strict";const e=require("vue"),t=require("../components/Icon.vue3.js");;/* empty css */const o=e.defineComponent({__name:"IconEyeOpen",setup:o=>(o,n)=>(e.openBlock(),e.createBlock(t,e.normalizeProps(e.guardReactiveProps(o.$attrs)),{default:e.withCtx(()=>n[0]||(n[0]=[e.createElementVNode("path",{d:"M14 14.5c-2.69 2-5.415 5.33-8 9.5 5.373 8.667 11.373 13 18 13 3.325 0 6.491-1.09 9.5-3.271M17.463 12.5C19 11 21.75 11 24 11c6.627 0 12.627 4.333 18 13-1.766 2.848-3.599 5.228-5.5 7.14"},null,-1),e.createElementVNode("path",{d:"M29 24a5 5 0 1 1-10 0 5 5 0 0 1 10 0ZM6.852 7.103l34.294 34.294"},null,-1)])),_:1,__:[0]},16))});module.exports=o;
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";const e=require("vue
|
1
|
+
"use strict";const e=require("./IconEyeOpen.vue.js");module.exports=e;
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";const e=require("
|
1
|
+
"use strict";const e=require("vue"),o=require("../components/Icon.vue3.js");;/* empty css */const t=e.defineComponent({__name:"IconSearch",setup:t=>(t,n)=>(e.openBlock(),e.createBlock(o,e.normalizeProps(e.guardReactiveProps(t.$attrs)),{default:e.withCtx(()=>n[0]||(n[0]=[e.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)])),_:1,__:[0]},16))});module.exports=t;
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";const e=require("vue
|
1
|
+
"use strict";const e=require("./IconSearch.vue.js");module.exports=e;
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./lang/zh-cn.js"),r=require("../../node_modules/@intlify/vue-i18n-core/dist/vue-i18n-core.js"),s=e=>Object.freeze(Object.defineProperty({__proto__:null,default:e},Symbol.toStringTag,{value:"Module"})),l=r.createI18n({locale:"zh-CN",fallbackLocale:"zh-CN",messages:{"zh-CN":e},globalInjection:!0,missingWarn:!1,fallbackWarn:!1}),n=l.global,t=Object.assign({"./lang/ar-eg.ts":()=>Promise.resolve().then(()=>s(require("./lang/ar-eg.js"))),"./lang/de-de.ts":()=>Promise.resolve().then(()=>s(require("./lang/de-de.js"))),"./lang/en-us.ts":()=>Promise.resolve().then(()=>s(require("./lang/en-us.js"))),"./lang/es-es.ts":()=>Promise.resolve().then(()=>s(require("./lang/es-es.js"))),"./lang/fr-fr.ts":()=>Promise.resolve().then(()=>s(require("./lang/fr-fr.js"))),"./lang/id-id.ts":()=>Promise.resolve().then(()=>s(require("./lang/id-id.js"))),"./lang/it-it.ts":()=>Promise.resolve().then(()=>s(require("./lang/it-it.js"))),"./lang/ja-jp.ts":()=>Promise.resolve().then(()=>s(require("./lang/ja-jp.js"))),"./lang/km-kh.ts":()=>Promise.resolve().then(()=>s(require("./lang/km-kh.js"))),"./lang/ko-kr.ts":()=>Promise.resolve().then(()=>s(require("./lang/ko-kr.js"))),"./lang/ms-my.ts":()=>Promise.resolve().then(()=>s(require("./lang/ms-my.js"))),"./lang/nl-nl.ts":()=>Promise.resolve().then(()=>s(require("./lang/nl-nl.js"))),"./lang/pt-pt.ts":()=>Promise.resolve().then(()=>s(require("./lang/pt-pt.js"))),"./lang/ru-ru.ts":()=>Promise.resolve().then(()=>s(require("./lang/ru-ru.js"))),"./lang/th-th.ts":()=>Promise.resolve().then(()=>s(require("./lang/th-th.js"))),"./lang/vi-vn.ts":()=>Promise.resolve().then(()=>s(require("./lang/vi-vn.js"))),"./lang/zh-cn.ts":()=>Promise.resolve().then(()=>s(require("./lang/zh-cn.js"))),"./lang/zh-tw.ts":()=>Promise.resolve().then(()=>s(require("./lang/zh-tw.js")))});exports.default=l,exports.loadLanguageAsync=async function(e){const r=Object.keys(n.messages.value);if(n.locale.value===e||r.includes(e))return n.locale.value=e,e;try{const r=e.split("-").map(e=>e.toLocaleLowerCase()).join("-"),s=`./lang/${r}.ts`;if(t[s]){const r=await t[s]();return n.setLocaleMessage(e,r.default),n.locale.value=e,e}throw new Error(`无法找到语言文件: ${r}.ts`)}catch(s){return n.locale.value}};
|
package/lib/index.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./_shared/locale/i18n.js");;/* empty css */const r=require("./Affix/index.js"),t=require("./Alert/index.js"),o=require("./Anchor/index.js"),i=require("./AutoComplete/index.js"),u=require("./Avatar/index.js"),s=require("./BackTop/index.js"),a=require("./Badge/index.js"),n=require("./Button/index.js"),p=require("./Breadcrumb/index.js"),d=require("./Card/index.js"),x=require("./Calendar/index.js"),l=require("./Carousel/index.js"),j=require("./Checkbox/index.js"),q=require("./Collapse/index.js"),c=require("./ColorPicker/index.js"),v=require("./Cascader/index.js"),m=require("./Comment/index.js"),g=require("./ConfigProvider/index.js"),f=require("./Descriptions/index.js"),C=require("./Divider/index.js"),y=require("./Drawer/index.js"),T=require("./Dropdown/index.js"),S=require("./Empty/index.js"),I=require("./Grid/index.js"),L=require("./Image/index.js"),h=require("./Input/index.js"),b=require("./InputNumber/index.js"),k=require("./InputTag/index.js"),G=require("./Layout/index.js"),P=require("./Link/index.js"),w=require("./List/index.js"),M=require("./Menu/index.js"),D=require("./Mention/index.js"),A=require("./Modal/index.js"),B=require("./Message/index.js"),R=require("./Notification/index.js"),O=require("./OverflowList/index.js"),H=require("./PageHeader/index.js"),N=require("./Pagination/index.js"),F=require("./Popconfirm/index.js"),z=require("./Popover/index.js"),E=require("./Progress/index.js"),V=require("./Radio/index.js"),W=require("./Rate/index.js"),_=require("./ResizeBox/index.js"),J=require("./Result/index.js"),K=require("./Scrollbar/index.js"),Q=require("./Select/index.js"),U=require("./Skeleton/index.js"),X=require("./Slider/index.js"),Y=require("./Space/index.js"),Z=require("./Split/index.js"),$=require("./Spin/index.js"),ee=require("./Statistic/index.js"),re=require("./Steps/index.js"),te=require("./Switch/index.js"),oe=require("./Tag/index.js"),ie=require("./Timeline/index.js"),ue=require("./Textarea/index.js"),se=require("./TimePicker/index.js"),ae=require("./Tooltip/index.js"),ne=require("./Transfer/index.js"),pe=require("./Trigger/index.js"),de=require("./Typography/index.js"),xe=require("./Tabs/index.js"),le=require("./VerificationCode/index.js"),je=require("./Watermark/index.js"),qe=require("./Typography/TypographyParagraph.vue.js");;/* empty css */const ce=require("./Typography/TypographyTitle.vue.js");;/* empty css */const ve=require("./Typography/TypographyText.vue.js"),me=require("./Timeline/TimelineItem.vue.js");;/* empty css */const ge=require("./Tabs/TabPane.vue.js");;/* empty css */const fe=require("./Menu/SubMenu.vue.js");;/* empty css */const Ce=require("./Steps/Step.vue.js");;/* empty css */const ye=require("./Skeleton/SkeletonShape.vue.js");;/* empty css */const Te=require("./Skeleton/SkeletonLine.vue.js");;/* empty css */const Se=require("./Radio/RadioGroup.vue.js");;/* empty css */const Ie=require("./Select/Optgroup.vue.js");;/* empty css */const Le=require("./Select/Option.vue.js");;/* empty css */const he=require("./Menu/MenuItemGroup.vue.js");;/* empty css */const be=require("./Menu/MenuItem.vue.js");;/* empty css */const ke=require("./List/ListItemMeta.vue.js");;/* empty css */const Ge=require("./List/ListItem.vue.js");;/* empty css */const Pe=require("./Layout/LayoutSider.vue.js");;/* empty css */const we=require("./Layout/LayoutHeader.vue.js");;/* empty css */const Me=require("./Layout/LayoutFooter.vue.js");;/* empty css */const De=require("./Layout/LayoutContent.vue.js");;/* empty css */const Ae=require("./Image/ImagePreviewGroup.vue.js"),Be=require("./Image/ImagePreviewAction.vue.js");;/* empty css */const Re=require("./Image/ImagePreview.vue.js");;/* empty css */const Oe=require("./Grid/GridRow.vue.js");;/* empty css */const He=require("./Grid/GridItem.vue.js"),Ne=require("./Grid/GridCol.vue.js"),Fe=require("./Dropdown/Dsubmenu.vue.js");;/* empty css */const ze=require("./Dropdown/Dgroup.vue.js");;/* empty css */const Ee=require("./Dropdown/Doption.vue.js");;/* empty css */const Ve=require("./Dropdown/DropdownButton.vue.js"),We=require("./Descriptions/DescriptionsItem.vue.js"),_e=require("./Statistic/Countdown.vue.js"),Je=require("./Collapse/CollapseItem.vue.js");;/* empty css */const Ke=require("./Checkbox/CheckboxGroup.vue.js");;/* empty css */const Qe=require("./Carousel/CarouselItem.vue.js");;/* empty css */const Ue=require("./Card/CardMeta.vue.js");;/* empty css */const Xe=require("./Card/CardGrid.vue.js");;/* empty css */const Ye=require("./Breadcrumb/BreadcrumbItem.vue.js");;/* empty css */const Ze=require("./Button/ButtonGroup.vue.js");;/* empty css */const $e=require("./Avatar/AvatarGroup.vue.js");;/* empty css */const er=require("./Anchor/AnchorLink.vue.js");;/* empty css */const rr={Affix:r,Alert:t,Anchor:o.default,AutoComplete:i,Avatar:u.default,BackTop:s,Badge:a,Button:n.default,Breadcrumb:p.default,Card:d.default,Calendar:x,Carousel:l.default,Checkbox:j.default,Collapse:q.default,ColorPicker:c,Cascader:v,Comment:m,ConfigProvider:g,Descriptions:f.default,Divider:C,Drawer:y,Dropdown:T.default,Empty:S,Grid:I.default,Image:L.default,Input:h,InputNumber:b,InputTag:k,Layout:G.default,Link:P,List:w.default,Menu:M.default,Mention:D,Modal:A,Message:B,Notification:R,OverflowList:O,PageHeader:H,Pagination:N,Popconfirm:F,Popover:z,Progress:E,Radio:V.default,Rate:W,ResizeBox:_,Result:J,Scrollbar:K,Select:Q.default,Skeleton:U.default,Slider:X,Space:Y,Split:Z,Statistic:ee.default,Steps:re.default,Spin:$,Switch:te,Tag:oe,Timeline:ie.default,Textarea:ue,TimePicker:se,Tooltip:ae,Transfer:ne,Trigger:pe,Typography:de.default,Tabs:xe.default,VerificationCode:le,Watermark:je},tr={...rr,AnchorLink:er,AvatarGroup:$e,ButtonGroup:Ze,BreadcrumbItem:Ye,CardGrid:Xe,CardMeta:Ue,CarouselItem:Qe,CheckboxGroup:Ke,CollapseItem:Je,Countdown:_e,DescriptionsItem:We,DropdownButton:Ve,Doption:Ee,Dgroup:ze,Dsubmenu:Fe,GridCol:Ne,GridItem:He,GridRow:Oe,ImagePreview:Re,ImagePreviewAction:Be,ImagePreviewGroup:Ae,LayoutContent:De,LayoutFooter:Me,LayoutHeader:we,LayoutSider:Pe,ListItem:Ge,ListItemMeta:ke,MenuItem:be,MenuItemGroup:he,Option:Le,Optgroup:Ie,RadioGroup:Se,SkeletonLine:Te,SkeletonShape:ye,Step:Ce,SubMenu:fe,TabPane:ge,TimelineItem:me,TypographyText:ve,TypographyTitle:ce,TypographyParagraph:qe,install:r=>{r.use(e.default);for(const e of Object.keys(rr))r.use(rr[e])}};exports.Affix=r,exports.Alert=t,exports.Anchor=o.default,exports.AutoComplete=i,exports.Avatar=u.default,exports.BackTop=s,exports.Badge=a,exports.Button=n.default,exports.Breadcrumb=p.default,exports.Card=d.default,exports.Calendar=x,exports.Carousel=l.default,exports.Checkbox=j.default,exports.Collapse=q.default,exports.ColorPicker=c,exports.Cascader=v,exports.Comment=m,exports.ConfigProvider=g,exports.Descriptions=f.default,exports.Divider=C,exports.Drawer=y,exports.Dropdown=T.default,exports.Empty=S,exports.Grid=I.default,exports.Image=L.default,exports.Input=h,exports.InputNumber=b,exports.InputTag=k,exports.Layout=G.default,exports.Link=P,exports.List=w.default,exports.Menu=M.default,exports.Mention=D,exports.Modal=A,exports.Message=B,exports.Notification=R,exports.OverflowList=O,exports.PageHeader=H,exports.Pagination=N,exports.Popconfirm=F,exports.Popover=z,exports.Progress=E,exports.Radio=V.default,exports.Rate=W,exports.ResizeBox=_,exports.Result=J,exports.Scrollbar=K,exports.Select=Q.default,exports.Skeleton=U.default,exports.Slider=X,exports.Space=Y,exports.Split=Z,exports.Spin=$,exports.Statistic=ee.default,exports.Steps=re.default,exports.Switch=te,exports.Tag=oe,exports.Timeline=ie.default,exports.Textarea=ue,exports.TimePicker=se,exports.Tooltip=ae,exports.Transfer=ne,exports.Trigger=pe,exports.Typography=de.default,exports.Tabs=xe.default,exports.VerificationCode=le,exports.Watermark=je,exports.TypographyParagraph=qe,exports.TypographyTitle=ce,exports.TypographyText=ve,exports.TimelineItem=me,exports.TabPane=ge,exports.SubMenu=fe,exports.Step=Ce,exports.SkeletonShape=ye,exports.SkeletonLine=Te,exports.RadioGroup=Se,exports.Optgroup=Ie,exports.Option=Le,exports.MenuItemGroup=he,exports.MenuItem=be,exports.ListItemMeta=ke,exports.ListItem=Ge,exports.LayoutSider=Pe,exports.LayoutHeader=we,exports.LayoutFooter=Me,exports.LayoutContent=De,exports.ImagePreviewGroup=Ae,exports.ImagePreviewAction=Be,exports.ImagePreview=Re,exports.GridRow=Oe,exports.GridItem=He,exports.GridCol=Ne,exports.Dsubmenu=Fe,exports.Dgroup=ze,exports.Doption=Ee,exports.DropdownButton=Ve,exports.DescriptionsItem=We,exports.Countdown=_e,exports.CollapseItem=Je,exports.CheckboxGroup=Ke,exports.CarouselItem=Qe,exports.CardMeta=Ue,exports.CardGrid=Xe,exports.BreadcrumbItem=Ye,exports.ButtonGroup=Ze,exports.AvatarGroup=$e,exports.AnchorLink=er,exports.components=rr,exports.default=tr;
|
package/package.json
CHANGED
@@ -1,19 +0,0 @@
|
|
1
|
-
const __variableDynamicImportRuntimeHelper = (glob, path, segs) => {
|
2
|
-
const v = glob[path];
|
3
|
-
if (v) {
|
4
|
-
return typeof v === "function" ? v() : Promise.resolve(v);
|
5
|
-
}
|
6
|
-
return new Promise((_, reject) => {
|
7
|
-
(typeof queueMicrotask === "function" ? queueMicrotask : setTimeout)(
|
8
|
-
reject.bind(
|
9
|
-
null,
|
10
|
-
new Error(
|
11
|
-
"Unknown variable dynamic import: " + path + (path.split("/").length !== segs ? ". Note that variables only represent file names one level deep." : "")
|
12
|
-
)
|
13
|
-
)
|
14
|
-
);
|
15
|
-
});
|
16
|
-
};
|
17
|
-
export {
|
18
|
-
__variableDynamicImportRuntimeHelper as default
|
19
|
-
};
|
@@ -1 +0,0 @@
|
|
1
|
-
"use strict";module.exports=(e,t,n)=>{const o=e[t];return o?"function"==typeof o?o():Promise.resolve(o):new Promise((e,o)=>{("function"==typeof queueMicrotask?queueMicrotask:setTimeout)(o.bind(null,new Error("Unknown variable dynamic import: "+t+(t.split("/").length!==n?". Note that variables only represent file names one level deep.":""))))})};
|