rayyy-vue-table-components 1.3.28 → 1.3.29
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/dist/index.es.js +3562 -3559
- package/dist/index.umd.js +18 -18
- package/dist/rayyy-vue-table-components.css +1 -1
- package/dist/src/components/items/SearchBar.vue.d.ts +0 -2
- package/dist/src/locales/en-US.json.d.ts +39 -0
- package/dist/src/locales/zh-TW.json.d.ts +39 -0
- package/dist/src/plugins/i18n.d.ts +7 -4
- package/package.json +1 -1
- package/src/components/items/BaseDialog.vue +5 -2
- package/src/components/items/SearchBar.vue +0 -4
|
@@ -14,11 +14,9 @@ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
|
14
14
|
declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
15
15
|
"keydown:enter": (data: string) => any;
|
|
16
16
|
"update:clear": () => any;
|
|
17
|
-
"update:resetFilter": () => any;
|
|
18
17
|
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
19
18
|
"onKeydown:enter"?: ((data: string) => any) | undefined;
|
|
20
19
|
"onUpdate:clear"?: (() => any) | undefined;
|
|
21
|
-
"onUpdate:resetFilter"?: (() => any) | undefined;
|
|
22
20
|
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
23
21
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
24
22
|
export default _default;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
"common.select": "Please select",
|
|
3
|
+
"common.confirm": "Confirm",
|
|
4
|
+
"common.cancel": "Cancel",
|
|
5
|
+
"dialog.confirmRemoveUser": "Are you sure you want to remove this user?",
|
|
6
|
+
"common.warning": "Warning",
|
|
7
|
+
"search.placeholder": "Please enter keywords to search the list",
|
|
8
|
+
"common.execute": "Execute",
|
|
9
|
+
"common.reset": "Reset",
|
|
10
|
+
"common.loading": "Data loading",
|
|
11
|
+
"common.view": "View",
|
|
12
|
+
"common.edit": "Edit",
|
|
13
|
+
"common.column": "Column",
|
|
14
|
+
"common.back": " Back",
|
|
15
|
+
"demo.componentDemo": "Component Demo",
|
|
16
|
+
"button.title": "Button",
|
|
17
|
+
"button.primary ": "Primary",
|
|
18
|
+
"button.default": "Default",
|
|
19
|
+
"button.danger": "Danger",
|
|
20
|
+
"button.success": "Success",
|
|
21
|
+
"button.warning": "Warning",
|
|
22
|
+
"button.info": "Info",
|
|
23
|
+
"button.style": "Style",
|
|
24
|
+
"button.size": "Size",
|
|
25
|
+
"button.small": "Small",
|
|
26
|
+
"button.medium": "Medium",
|
|
27
|
+
"button.large ": "Large",
|
|
28
|
+
"status.title": "Status",
|
|
29
|
+
"status.normal ": "Normal",
|
|
30
|
+
"status.loading": "Loading",
|
|
31
|
+
"status.disabled": "Disabled",
|
|
32
|
+
"button.withIcon ": "With Icon",
|
|
33
|
+
"button.add": "Add",
|
|
34
|
+
"button.delete": "Delete",
|
|
35
|
+
"common.save": "Save",
|
|
36
|
+
"common.discard": "Discard"
|
|
37
|
+
};
|
|
38
|
+
|
|
39
|
+
export default _default;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
"common.select": "請選擇",
|
|
3
|
+
"common.confirm": "確定",
|
|
4
|
+
"common.cancel": "取消",
|
|
5
|
+
"dialog.confirmRemoveUser": "請問是否確認移除該使用者",
|
|
6
|
+
"common.warning": "警告",
|
|
7
|
+
"search.placeholder": "請輸入關鍵字搜尋列表",
|
|
8
|
+
"common.execute": "執行",
|
|
9
|
+
"common.reset": "重設",
|
|
10
|
+
"common.loading": "數據加載中",
|
|
11
|
+
"common.view": "查看",
|
|
12
|
+
"common.edit": "編輯",
|
|
13
|
+
"common.column": "欄",
|
|
14
|
+
"common.back": "回到前一頁",
|
|
15
|
+
"demo.componentDemo": "組件示範",
|
|
16
|
+
"button.title": "按鈕",
|
|
17
|
+
"button.primary ": "主要",
|
|
18
|
+
"button.default": "默認",
|
|
19
|
+
"button.danger": "危險",
|
|
20
|
+
"button.success": "成功",
|
|
21
|
+
"button.warning": "警告",
|
|
22
|
+
"button.info": "信息",
|
|
23
|
+
"button.style": "樣式",
|
|
24
|
+
"button.size": "尺寸",
|
|
25
|
+
"button.small": "小",
|
|
26
|
+
"button.medium": "中",
|
|
27
|
+
"button.large ": "大",
|
|
28
|
+
"status.title": "狀態",
|
|
29
|
+
"status.normal ": "正常",
|
|
30
|
+
"status.loading": "載入中",
|
|
31
|
+
"status.disabled": "禁用",
|
|
32
|
+
"button.withIcon ": "帶圖標的",
|
|
33
|
+
"button.add": "添加",
|
|
34
|
+
"button.delete": "刪除",
|
|
35
|
+
"common.save": "儲存",
|
|
36
|
+
"common.discard": "捨棄"
|
|
37
|
+
};
|
|
38
|
+
|
|
39
|
+
export default _default;
|
|
@@ -82,13 +82,14 @@ export declare const localeConfig: {
|
|
|
82
82
|
};
|
|
83
83
|
};
|
|
84
84
|
export interface I18nPluginOptions {
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
autoInit?: boolean;
|
|
85
|
+
componentLocale?: 'zh-TW' | 'en-US';
|
|
86
|
+
externalLocale?: string;
|
|
87
|
+
syncWithExternal?: boolean;
|
|
89
88
|
messages?: Record<string, Record<string, any>>;
|
|
90
89
|
mergeMessages?: boolean;
|
|
91
90
|
mergeStrategy?: 'override' | 'merge' | 'component';
|
|
91
|
+
useIndependentInstance?: boolean;
|
|
92
|
+
namespace?: string;
|
|
92
93
|
}
|
|
93
94
|
export declare const i18n: import('vue-i18n').I18n<{
|
|
94
95
|
'zh-TW': {
|
|
@@ -252,6 +253,7 @@ export declare const availableLocales: {
|
|
|
252
253
|
label: string;
|
|
253
254
|
}[];
|
|
254
255
|
export declare const getLanguageName: (locale: string) => string;
|
|
256
|
+
export declare const syncWithExternalLocale: (externalLocale: string) => "zh-TW" | "en-US";
|
|
255
257
|
export declare const initLocale: () => void;
|
|
256
258
|
export declare function install(app: App, options?: I18nPluginOptions): void;
|
|
257
259
|
declare const _default: {
|
|
@@ -501,5 +503,6 @@ declare const _default: {
|
|
|
501
503
|
};
|
|
502
504
|
};
|
|
503
505
|
};
|
|
506
|
+
syncWithExternalLocale: (externalLocale: string) => "zh-TW" | "en-US";
|
|
504
507
|
};
|
|
505
508
|
export default _default;
|
package/package.json
CHANGED
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
2
|
import { computed } from 'vue'
|
|
3
3
|
import { useWindowSize } from '@vueuse/core'
|
|
4
|
+
import { useI18n } from 'vue-i18n'
|
|
4
5
|
import BaseBtn from './BaseBtn.vue'
|
|
5
6
|
|
|
7
|
+
const { t } = useI18n()
|
|
8
|
+
|
|
6
9
|
const props = defineProps<{
|
|
7
10
|
modelValue: boolean
|
|
8
11
|
title?: string
|
|
@@ -81,13 +84,13 @@ const handleSubmit = () => {
|
|
|
81
84
|
<footer>
|
|
82
85
|
<slot name="customFooter">
|
|
83
86
|
<base-btn
|
|
84
|
-
:text="
|
|
87
|
+
:text="t('common.confirm')"
|
|
85
88
|
type="primary"
|
|
86
89
|
is-fill
|
|
87
90
|
@click="handleSubmit"
|
|
88
91
|
:loading="submitLoading"
|
|
89
92
|
/>
|
|
90
|
-
<base-btn :text="
|
|
93
|
+
<base-btn :text="t('common.cancel')" type="primary" @click="handleCancel" />
|
|
91
94
|
</slot>
|
|
92
95
|
</footer>
|
|
93
96
|
</template>
|
|
@@ -12,7 +12,6 @@ defineProps<{
|
|
|
12
12
|
const emits = defineEmits<{
|
|
13
13
|
(e: 'keydown:enter', data: string): void
|
|
14
14
|
(e: 'update:clear'): void
|
|
15
|
-
(e: 'update:resetFilter'): void
|
|
16
15
|
}>()
|
|
17
16
|
|
|
18
17
|
// 獲取所有非 props 屬性
|
|
@@ -26,9 +25,6 @@ const doSearch = () => {
|
|
|
26
25
|
const clearableClick = () => {
|
|
27
26
|
emits('update:clear')
|
|
28
27
|
}
|
|
29
|
-
const resetFilter = () => {
|
|
30
|
-
emits('update:resetFilter')
|
|
31
|
-
}
|
|
32
28
|
</script>
|
|
33
29
|
|
|
34
30
|
<template>
|