yc-design-vue 1.7.9 → 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/Calendar.vue.js +15 -14
- package/es/Calendar/CalendarMonth.vue.d.ts +1 -1
- package/es/Calendar/CalendarMonth.vue.js +11 -1
- package/es/Calendar/CalendarYear.vue.js +20 -16
- package/es/ColorPicker/ColorList.vue.js +4 -2
- package/es/ColorPicker/ColorPanel.vue.js +6 -4
- package/es/ConfigProvider/index.d.ts +3 -0
- package/es/ConfigProvider/index.vue.d.ts +1 -0
- package/es/ConfigProvider/index.vue.js +13 -2
- package/es/ConfigProvider/type.d.ts +1 -0
- package/es/Drawer/Drawer.vue.js +6 -4
- package/es/Drawer/DrawerService.vue.js +2 -2
- package/es/Empty/index.vue.js +11 -4
- package/es/Image/Image.vue.js +4 -2
- package/es/Image/ImagePreviewToolbar.vue.js +13 -29
- package/es/Input/InputSuffix.vue.js +2 -2
- package/es/Layout/hooks/useTheme.js +0 -1
- package/es/Modal/Modal.vue.js +6 -4
- package/es/Modal/ModalService.vue.js +2 -2
- package/es/Pagination/Pagination.vue.js +5 -3
- package/es/Pagination/hooks/useContext.d.ts +5 -0
- package/es/Pagination/hooks/useContext.js +5 -2
- package/es/Popconfirm/index.vue.js +6 -4
- package/es/Typography/TypographyBase.vue.js +5 -4
- package/es/Watermark/index.d.ts +3 -3
- package/es/Watermark/index.vue.d.ts +1 -1
- 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/locale/i18n.d.ts +256 -0
- package/es/_shared/locale/i18n.js +40 -0
- package/es/_shared/locale/lang/ar-eg.d.ts +205 -0
- package/es/_shared/locale/lang/ar-eg.js +153 -0
- package/es/_shared/locale/lang/de-de.d.ts +205 -0
- package/es/_shared/locale/lang/de-de.js +153 -0
- package/es/_shared/locale/lang/en-us.d.ts +253 -0
- package/es/_shared/locale/lang/en-us.js +158 -0
- package/es/_shared/locale/lang/es-es.d.ts +205 -0
- package/es/_shared/locale/lang/es-es.js +153 -0
- package/es/_shared/locale/lang/fr-fr.d.ts +205 -0
- package/es/_shared/locale/lang/fr-fr.js +153 -0
- package/es/_shared/locale/lang/id-id.d.ts +205 -0
- package/es/_shared/locale/lang/id-id.js +153 -0
- package/es/_shared/locale/lang/it-it.d.ts +205 -0
- package/es/_shared/locale/lang/it-it.js +153 -0
- package/es/_shared/locale/lang/ja-jp.d.ts +253 -0
- package/es/_shared/locale/lang/ja-jp.js +201 -0
- package/es/_shared/locale/lang/km-kh.d.ts +205 -0
- package/es/_shared/locale/lang/km-kh.js +153 -0
- package/es/_shared/locale/lang/ko-kr.d.ts +205 -0
- package/es/_shared/locale/lang/ko-kr.js +153 -0
- package/es/_shared/locale/lang/ms-my.d.ts +205 -0
- package/es/_shared/locale/lang/ms-my.js +153 -0
- package/es/_shared/locale/lang/nl-nl.d.ts +253 -0
- package/es/_shared/locale/lang/nl-nl.js +201 -0
- package/es/_shared/locale/lang/pt-pt.d.ts +205 -0
- package/es/_shared/locale/lang/pt-pt.js +153 -0
- package/es/_shared/locale/lang/ru-ru.d.ts +253 -0
- package/es/_shared/locale/lang/ru-ru.js +201 -0
- package/es/_shared/locale/lang/th-th.d.ts +205 -0
- package/es/_shared/locale/lang/th-th.js +153 -0
- package/es/_shared/locale/lang/vi-vn.d.ts +205 -0
- package/es/_shared/locale/lang/vi-vn.js +153 -0
- package/es/_shared/locale/lang/zh-cn.d.ts +253 -0
- package/es/_shared/locale/lang/zh-cn.js +201 -0
- package/es/_shared/locale/lang/zh-tw.d.ts +253 -0
- package/es/_shared/locale/lang/zh-tw.js +201 -0
- package/es/_shared/utils/time.js +1 -1
- package/es/index.js +2 -0
- package/es/node_modules/@intlify/core-base/dist/core-base.js +1129 -0
- package/es/node_modules/@intlify/message-compiler/dist/message-compiler.js +65 -0
- package/es/node_modules/@intlify/shared/dist/shared.js +199 -0
- package/es/node_modules/@intlify/vue-i18n-core/dist/vue-i18n-core.js +1381 -0
- package/es/node_modules/@vue/devtools-api/lib/esm/const.js +6 -0
- package/es/node_modules/@vue/devtools-api/lib/esm/env.js +12 -0
- package/es/node_modules/@vue/devtools-api/lib/esm/index.js +26 -0
- package/es/node_modules/@vue/devtools-api/lib/esm/proxy.js +103 -0
- package/es/node_modules/@vue/devtools-api/lib/esm/time.js +25 -0
- package/es/node_modules/b-validate/es/is.js +27 -0
- package/es/node_modules/b-validate/es/locale/en-US.js +50 -0
- package/es/node_modules/b-validate/es/rules/base.js +86 -0
- package/es/node_modules/b-validate/es/util.js +25 -0
- package/lib/Calendar/Calendar.vue.js +1 -1
- package/lib/Calendar/CalendarMonth.vue.d.ts +1 -1
- package/lib/Calendar/CalendarMonth.vue.js +1 -1
- package/lib/Calendar/CalendarYear.vue.js +1 -1
- package/lib/ColorPicker/ColorList.vue.js +1 -1
- package/lib/ColorPicker/ColorPanel.vue.js +1 -1
- package/lib/ConfigProvider/index.d.ts +3 -0
- package/lib/ConfigProvider/index.vue.d.ts +1 -0
- package/lib/ConfigProvider/index.vue.js +1 -1
- package/lib/ConfigProvider/type.d.ts +1 -0
- package/lib/Drawer/Drawer.vue.js +1 -1
- package/lib/Drawer/DrawerService.vue.js +1 -1
- package/lib/Empty/index.vue.js +1 -1
- package/lib/Image/Image.vue.js +1 -1
- package/lib/Image/ImagePreviewToolbar.vue.js +1 -1
- package/lib/Input/InputSuffix.vue.js +1 -1
- package/lib/Modal/Modal.vue.js +1 -1
- package/lib/Modal/ModalService.vue.js +1 -1
- package/lib/Pagination/Pagination.vue.js +1 -1
- package/lib/Pagination/hooks/useContext.d.ts +5 -0
- package/lib/Pagination/hooks/useContext.js +1 -1
- package/lib/Popconfirm/index.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/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/locale/i18n.d.ts +256 -0
- package/lib/_shared/locale/i18n.js +1 -0
- package/lib/_shared/locale/lang/ar-eg.d.ts +205 -0
- package/lib/_shared/locale/lang/ar-eg.js +1 -0
- package/lib/_shared/locale/lang/de-de.d.ts +205 -0
- package/lib/_shared/locale/lang/de-de.js +1 -0
- package/lib/_shared/locale/lang/en-us.d.ts +253 -0
- package/lib/_shared/locale/lang/en-us.js +1 -0
- package/lib/_shared/locale/lang/es-es.d.ts +205 -0
- package/lib/_shared/locale/lang/es-es.js +1 -0
- package/lib/_shared/locale/lang/fr-fr.d.ts +205 -0
- package/lib/_shared/locale/lang/fr-fr.js +1 -0
- package/lib/_shared/locale/lang/id-id.d.ts +205 -0
- package/lib/_shared/locale/lang/id-id.js +1 -0
- package/lib/_shared/locale/lang/it-it.d.ts +205 -0
- package/lib/_shared/locale/lang/it-it.js +1 -0
- package/lib/_shared/locale/lang/ja-jp.d.ts +253 -0
- package/lib/_shared/locale/lang/ja-jp.js +1 -0
- package/lib/_shared/locale/lang/km-kh.d.ts +205 -0
- package/lib/_shared/locale/lang/km-kh.js +1 -0
- package/lib/_shared/locale/lang/ko-kr.d.ts +205 -0
- package/lib/_shared/locale/lang/ko-kr.js +1 -0
- package/lib/_shared/locale/lang/ms-my.d.ts +205 -0
- package/lib/_shared/locale/lang/ms-my.js +1 -0
- package/lib/_shared/locale/lang/nl-nl.d.ts +253 -0
- package/lib/_shared/locale/lang/nl-nl.js +1 -0
- package/lib/_shared/locale/lang/pt-pt.d.ts +205 -0
- package/lib/_shared/locale/lang/pt-pt.js +1 -0
- package/lib/_shared/locale/lang/ru-ru.d.ts +253 -0
- package/lib/_shared/locale/lang/ru-ru.js +1 -0
- package/lib/_shared/locale/lang/th-th.d.ts +205 -0
- package/lib/_shared/locale/lang/th-th.js +1 -0
- package/lib/_shared/locale/lang/vi-vn.d.ts +205 -0
- package/lib/_shared/locale/lang/vi-vn.js +1 -0
- package/lib/_shared/locale/lang/zh-cn.d.ts +253 -0
- package/lib/_shared/locale/lang/zh-cn.js +1 -0
- package/lib/_shared/locale/lang/zh-tw.d.ts +253 -0
- package/lib/_shared/locale/lang/zh-tw.js +1 -0
- package/lib/_shared/utils/time.js +1 -1
- package/lib/index.js +1 -1
- package/lib/node_modules/@intlify/core-base/dist/core-base.js +1 -0
- package/lib/node_modules/@intlify/message-compiler/dist/message-compiler.js +6 -0
- package/lib/node_modules/@intlify/shared/dist/shared.js +7 -0
- package/lib/node_modules/@intlify/vue-i18n-core/dist/vue-i18n-core.js +1 -0
- package/lib/node_modules/@vue/devtools-api/lib/esm/const.js +1 -0
- package/lib/node_modules/@vue/devtools-api/lib/esm/env.js +1 -0
- package/lib/node_modules/@vue/devtools-api/lib/esm/index.js +1 -0
- package/lib/node_modules/@vue/devtools-api/lib/esm/proxy.js +1 -0
- package/lib/node_modules/@vue/devtools-api/lib/esm/time.js +1 -0
- package/lib/node_modules/b-validate/es/is.js +1 -0
- package/lib/node_modules/b-validate/es/locale/en-US.js +1 -0
- package/lib/node_modules/b-validate/es/rules/base.js +1 -0
- package/lib/node_modules/b-validate/es/util.js +1 -0
- package/package.json +3 -2
@@ -4,6 +4,7 @@ import "../../_shared/utils/dom.js";
|
|
4
4
|
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
|
+
import { useI18n } from "../../node_modules/@intlify/vue-i18n-core/dist/vue-i18n-core.js";
|
7
8
|
const PAGINATION_CONTEXT_KEY = "pagination-context";
|
8
9
|
const useContext = () => {
|
9
10
|
const provide$1 = (props, emits) => {
|
@@ -22,6 +23,7 @@ const useContext = () => {
|
|
22
23
|
total: _total
|
23
24
|
} = toRefs(props);
|
24
25
|
const { size } = getGlobalConfig(props);
|
26
|
+
const { t } = useI18n();
|
25
27
|
const total = useControlValue(
|
26
28
|
autoAdjust.value ? _total : ref(),
|
27
29
|
autoAdjust.value ? 0 : _total.value
|
@@ -82,7 +84,7 @@ const useContext = () => {
|
|
82
84
|
const sizeOptions = computed(() => {
|
83
85
|
return pageSizeOptions.value.map((item) => {
|
84
86
|
return {
|
85
|
-
label: `${item}
|
87
|
+
label: `${item}${t("pagination.countPerPage")}`,
|
86
88
|
value: item
|
87
89
|
};
|
88
90
|
});
|
@@ -104,7 +106,8 @@ const useContext = () => {
|
|
104
106
|
pagesArray,
|
105
107
|
computedCurrent,
|
106
108
|
computedPageSize,
|
107
|
-
sizeOptions
|
109
|
+
sizeOptions,
|
110
|
+
t
|
108
111
|
};
|
109
112
|
};
|
110
113
|
const inject$1 = () => {
|
@@ -9,6 +9,7 @@ import useControlValue from "../_shared/utils/control.js";
|
|
9
9
|
import useOnBeforeClose from "../Modal/hooks/useOnBeforeClose.js";
|
10
10
|
import Trigger from "../Trigger/index.js";
|
11
11
|
import Button from "../Button/index.js";
|
12
|
+
import { useI18n } from "../node_modules/@intlify/vue-i18n-core/dist/vue-i18n-core.js";
|
12
13
|
const _hoisted_1 = { class: "yc-popconfirm-body" };
|
13
14
|
const _hoisted_2 = { class: "yc-popconfirm-icon" };
|
14
15
|
const _hoisted_3 = { class: "yc-popconfirm-content" };
|
@@ -24,8 +25,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
24
25
|
popupVisible: { type: Boolean, default: void 0 },
|
25
26
|
defaultPopupVisible: { type: Boolean, default: false },
|
26
27
|
type: { default: "info" },
|
27
|
-
okText: { default: "
|
28
|
-
cancelText: { default: "
|
28
|
+
okText: { default: "" },
|
29
|
+
cancelText: { default: "" },
|
29
30
|
okLoading: { type: Boolean, default: false },
|
30
31
|
okButtonProps: { default: () => {
|
31
32
|
return {};
|
@@ -54,6 +55,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
54
55
|
const emits = __emit;
|
55
56
|
const { popupVisible, defaultPopupVisible, type } = toRefs(props);
|
56
57
|
const { onBeforeOk, onBeforeCancel } = props;
|
58
|
+
const { t } = useI18n();
|
57
59
|
const asyncLoading = ref(false);
|
58
60
|
const triggerRef = ref();
|
59
61
|
const computedVisible = useControlValue(
|
@@ -132,7 +134,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
132
134
|
createElementVNode("div", _hoisted_4, [
|
133
135
|
createVNode(unref(Button), mergeProps({ size: "mini" }, _ctx.cancelButtonProps, { onClick: handleCancel }), {
|
134
136
|
default: withCtx(() => [
|
135
|
-
createTextVNode(toDisplayString(_ctx.cancelText), 1)
|
137
|
+
createTextVNode(toDisplayString(_ctx.cancelText || unref(t)("popconfirm.cancelText")), 1)
|
136
138
|
]),
|
137
139
|
_: 1
|
138
140
|
}, 16),
|
@@ -142,7 +144,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
142
144
|
loading: _ctx.okLoading || asyncLoading.value
|
143
145
|
}, _ctx.okButtonProps, { onClick: handleOk }), {
|
144
146
|
default: withCtx(() => [
|
145
|
-
createTextVNode(toDisplayString(_ctx.okText), 1)
|
147
|
+
createTextVNode(toDisplayString(_ctx.okText || unref(t)("popconfirm.okText")), 1)
|
146
148
|
]),
|
147
149
|
_: 1
|
148
150
|
}, 16, ["loading"])
|
@@ -11,6 +11,7 @@ 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";
|
13
13
|
import Tooltip from "../Tooltip/index.js";
|
14
|
+
import { useI18n } from "../node_modules/@intlify/vue-i18n-core/dist/vue-i18n-core.js";
|
14
15
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
15
16
|
...{
|
16
17
|
name: "TypographyBase"
|
@@ -57,6 +58,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
57
58
|
underline,
|
58
59
|
bold
|
59
60
|
} = toRefs(props);
|
61
|
+
const { t } = useI18n();
|
60
62
|
const { isSupported, copy } = useClipboard();
|
61
63
|
const isCopied = ref(false);
|
62
64
|
const contentRef = ref();
|
@@ -72,7 +74,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
72
74
|
emits("update:editText", val);
|
73
75
|
emits("change", val);
|
74
76
|
});
|
75
|
-
ref({});
|
76
77
|
const tags = computed(() => {
|
77
78
|
const tags2 = ["mark", "code", "del", "u", "b"];
|
78
79
|
const attrs = [
|
@@ -158,7 +159,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
158
159
|
onClick: handleEdit
|
159
160
|
}, [
|
160
161
|
createVNode(unref(Tooltip), mergeProps({
|
161
|
-
content: "
|
162
|
+
content: unref(t)("typography.edit"),
|
162
163
|
position: "top"
|
163
164
|
}, _ctx.editTooltiProps), {
|
164
165
|
default: withCtx(() => [
|
@@ -167,7 +168,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
167
168
|
])
|
168
169
|
]),
|
169
170
|
_: 1
|
170
|
-
}, 16)
|
171
|
+
}, 16, ["content"])
|
171
172
|
])) : createCommentVNode("", true),
|
172
173
|
unref(copyable) ? (openBlock(), createElementBlock("span", {
|
173
174
|
key: 3,
|
@@ -177,7 +178,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
177
178
|
createVNode(unref(Tooltip), mergeProps({ position: "top" }, _ctx.copyTooltiProps), {
|
178
179
|
content: withCtx(() => [
|
179
180
|
renderSlot(_ctx.$slots, "copy-tooltip", { copied: isCopied.value }, () => [
|
180
|
-
createTextVNode(toDisplayString(
|
181
|
+
createTextVNode(toDisplayString(unref(t)(`typography.${isCopied.value ? "copied" : "copy"}`)), 1)
|
181
182
|
])
|
182
183
|
]),
|
183
184
|
default: withCtx(() => [
|
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,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
|
};
|
@@ -0,0 +1,256 @@
|
|
1
|
+
declare const i18n: import('vue-i18n').I18n<{
|
2
|
+
'zh-CN': {
|
3
|
+
empty: {
|
4
|
+
description: string;
|
5
|
+
};
|
6
|
+
drawer: {
|
7
|
+
okText: string;
|
8
|
+
cancelText: string;
|
9
|
+
};
|
10
|
+
popconfirm: {
|
11
|
+
okText: string;
|
12
|
+
cancelText: string;
|
13
|
+
};
|
14
|
+
modal: {
|
15
|
+
okText: string;
|
16
|
+
cancelText: string;
|
17
|
+
};
|
18
|
+
pagination: {
|
19
|
+
goto: string;
|
20
|
+
page: string;
|
21
|
+
countPerPage: string;
|
22
|
+
total: string;
|
23
|
+
};
|
24
|
+
calendar: {
|
25
|
+
formatYear: string;
|
26
|
+
formatMonth: string;
|
27
|
+
today: string;
|
28
|
+
view: {
|
29
|
+
month: string;
|
30
|
+
year: string;
|
31
|
+
week: string;
|
32
|
+
day: string;
|
33
|
+
};
|
34
|
+
month: {
|
35
|
+
long: {
|
36
|
+
January: string;
|
37
|
+
February: string;
|
38
|
+
March: string;
|
39
|
+
April: string;
|
40
|
+
May: string;
|
41
|
+
June: string;
|
42
|
+
July: string;
|
43
|
+
August: string;
|
44
|
+
September: string;
|
45
|
+
October: string;
|
46
|
+
November: string;
|
47
|
+
December: string;
|
48
|
+
};
|
49
|
+
short: {
|
50
|
+
January: string;
|
51
|
+
February: string;
|
52
|
+
March: string;
|
53
|
+
April: string;
|
54
|
+
May: string;
|
55
|
+
June: string;
|
56
|
+
July: string;
|
57
|
+
August: string;
|
58
|
+
September: string;
|
59
|
+
October: string;
|
60
|
+
November: string;
|
61
|
+
December: string;
|
62
|
+
};
|
63
|
+
};
|
64
|
+
week: {
|
65
|
+
long: {
|
66
|
+
self: string;
|
67
|
+
monday: string;
|
68
|
+
tuesday: string;
|
69
|
+
wednesday: string;
|
70
|
+
thursday: string;
|
71
|
+
friday: string;
|
72
|
+
saturday: string;
|
73
|
+
sunday: string;
|
74
|
+
};
|
75
|
+
short: {
|
76
|
+
self: string;
|
77
|
+
monday: string;
|
78
|
+
tuesday: string;
|
79
|
+
wednesday: string;
|
80
|
+
thursday: string;
|
81
|
+
friday: string;
|
82
|
+
saturday: string;
|
83
|
+
sunday: string;
|
84
|
+
};
|
85
|
+
};
|
86
|
+
};
|
87
|
+
image: {
|
88
|
+
loading: string;
|
89
|
+
};
|
90
|
+
imagePreview: {
|
91
|
+
fullScreen: string;
|
92
|
+
rotateRight: string;
|
93
|
+
rotateLeft: string;
|
94
|
+
zoomIn: string;
|
95
|
+
zoomOut: string;
|
96
|
+
originalSize: string;
|
97
|
+
};
|
98
|
+
typography: {
|
99
|
+
copied: string;
|
100
|
+
copy: string;
|
101
|
+
expand: string;
|
102
|
+
collapse: string;
|
103
|
+
edit: string;
|
104
|
+
};
|
105
|
+
colorPicker: {
|
106
|
+
history: string;
|
107
|
+
preset: string;
|
108
|
+
empty: string;
|
109
|
+
};
|
110
|
+
table: {
|
111
|
+
okText: string;
|
112
|
+
resetText: string;
|
113
|
+
};
|
114
|
+
upload: {
|
115
|
+
start: string;
|
116
|
+
cancel: string;
|
117
|
+
delete: string;
|
118
|
+
retry: string;
|
119
|
+
buttonText: string;
|
120
|
+
preview: string;
|
121
|
+
drag: string;
|
122
|
+
dragHover: string;
|
123
|
+
error: string;
|
124
|
+
};
|
125
|
+
datePicker: {
|
126
|
+
view: {
|
127
|
+
month: string;
|
128
|
+
year: string;
|
129
|
+
week: string;
|
130
|
+
day: string;
|
131
|
+
};
|
132
|
+
month: {
|
133
|
+
long: {
|
134
|
+
January: string;
|
135
|
+
February: string;
|
136
|
+
March: string;
|
137
|
+
April: string;
|
138
|
+
May: string;
|
139
|
+
June: string;
|
140
|
+
July: string;
|
141
|
+
August: string;
|
142
|
+
September: string;
|
143
|
+
October: string;
|
144
|
+
November: string;
|
145
|
+
December: string;
|
146
|
+
};
|
147
|
+
short: {
|
148
|
+
January: string;
|
149
|
+
February: string;
|
150
|
+
March: string;
|
151
|
+
April: string;
|
152
|
+
May: string;
|
153
|
+
June: string;
|
154
|
+
July: string;
|
155
|
+
August: string;
|
156
|
+
September: string;
|
157
|
+
October: string;
|
158
|
+
November: string;
|
159
|
+
December: string;
|
160
|
+
};
|
161
|
+
};
|
162
|
+
week: {
|
163
|
+
long: {
|
164
|
+
self: string;
|
165
|
+
monday: string;
|
166
|
+
tuesday: string;
|
167
|
+
wednesday: string;
|
168
|
+
thursday: string;
|
169
|
+
friday: string;
|
170
|
+
saturday: string;
|
171
|
+
sunday: string;
|
172
|
+
};
|
173
|
+
short: {
|
174
|
+
self: string;
|
175
|
+
monday: string;
|
176
|
+
tuesday: string;
|
177
|
+
wednesday: string;
|
178
|
+
thursday: string;
|
179
|
+
friday: string;
|
180
|
+
saturday: string;
|
181
|
+
sunday: string;
|
182
|
+
};
|
183
|
+
};
|
184
|
+
placeholder: {
|
185
|
+
date: string;
|
186
|
+
week: string;
|
187
|
+
month: string;
|
188
|
+
year: string;
|
189
|
+
quarter: string;
|
190
|
+
time: string;
|
191
|
+
};
|
192
|
+
rangePlaceholder: {
|
193
|
+
date: string[];
|
194
|
+
week: string[];
|
195
|
+
month: string[];
|
196
|
+
year: string[];
|
197
|
+
quarter: string[];
|
198
|
+
time: string[];
|
199
|
+
};
|
200
|
+
selectTime: string;
|
201
|
+
today: string;
|
202
|
+
now: string;
|
203
|
+
ok: string;
|
204
|
+
};
|
205
|
+
form: {
|
206
|
+
validateMessages: {
|
207
|
+
required: string;
|
208
|
+
type: {
|
209
|
+
string: string;
|
210
|
+
number: string;
|
211
|
+
boolean: string;
|
212
|
+
array: string;
|
213
|
+
object: string;
|
214
|
+
url: string;
|
215
|
+
email: string;
|
216
|
+
ip: string;
|
217
|
+
};
|
218
|
+
number: {
|
219
|
+
min: string;
|
220
|
+
max: string;
|
221
|
+
equal: string;
|
222
|
+
range: string;
|
223
|
+
positive: string;
|
224
|
+
negative: string;
|
225
|
+
};
|
226
|
+
array: {
|
227
|
+
length: string;
|
228
|
+
minLength: string;
|
229
|
+
maxLength: string;
|
230
|
+
includes: string;
|
231
|
+
deepEqual: string;
|
232
|
+
empty: string;
|
233
|
+
};
|
234
|
+
string: {
|
235
|
+
minLength: string;
|
236
|
+
maxLength: string;
|
237
|
+
length: string;
|
238
|
+
match: string;
|
239
|
+
uppercase: string;
|
240
|
+
lowercase: string;
|
241
|
+
};
|
242
|
+
object: {
|
243
|
+
deepEqual: string;
|
244
|
+
hasKeys: string;
|
245
|
+
empty: string;
|
246
|
+
};
|
247
|
+
boolean: {
|
248
|
+
true: string;
|
249
|
+
false: string;
|
250
|
+
};
|
251
|
+
};
|
252
|
+
};
|
253
|
+
};
|
254
|
+
}, {}, {}, string>;
|
255
|
+
export declare function loadLanguageAsync(locale: string): Promise<string>;
|
256
|
+
export default i18n;
|
@@ -0,0 +1,40 @@
|
|
1
|
+
import lang from "./lang/zh-cn.js";
|
2
|
+
import { createI18n } from "../../node_modules/@intlify/vue-i18n-core/dist/vue-i18n-core.js";
|
3
|
+
const i18n = createI18n({
|
4
|
+
locale: "zh-CN",
|
5
|
+
fallbackLocale: "zh-CN",
|
6
|
+
messages: {
|
7
|
+
"zh-CN": lang
|
8
|
+
},
|
9
|
+
globalInjection: true,
|
10
|
+
missingWarn: false,
|
11
|
+
fallbackWarn: false
|
12
|
+
});
|
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
|
+
async function loadLanguageAsync(locale) {
|
16
|
+
const loadedLanguages = Object.keys(i18nGlobal.messages.value);
|
17
|
+
if (i18nGlobal.locale.value === locale || loadedLanguages.includes(locale)) {
|
18
|
+
i18nGlobal.locale.value = locale;
|
19
|
+
return locale;
|
20
|
+
}
|
21
|
+
try {
|
22
|
+
const localeName = locale.split("-").map((v) => v.toLocaleLowerCase()).join("-");
|
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
|
+
}
|
32
|
+
} catch (error) {
|
33
|
+
console.error(`无法加载语言文件 ${locale}.ts:`, error);
|
34
|
+
return i18nGlobal.locale.value;
|
35
|
+
}
|
36
|
+
}
|
37
|
+
export {
|
38
|
+
i18n as default,
|
39
|
+
loadLanguageAsync
|
40
|
+
};
|