rayyy-vue-table-components 1.3.17 → 1.3.18

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.
@@ -8,6 +8,7 @@ import { default as TitleTable } from './components/tables/TitleTable.vue';
8
8
  import { default as SearchBar } from './components/items/SearchBar.vue';
9
9
  export * from './types';
10
10
  export * from './utils/tableHelper';
11
+ export { getElementPlusConfig, defaultElementPlusConfig, localeOptions, zhTw, zhCn, en, ja, ko } from './utils/locale';
11
12
  export { BaseTable, BaseBtn, BaseInput, BaseDialog, SortTable, TitleTable, SearchBar };
12
13
  export type { BaseTableProps, BaseTableEmits, BaseTableInstance, BaseBtnProps, BaseBtnEmits, BaseBtnInstance, BaseDialogProps, BaseDialogEmits, BaseDialogInstance, PluginOptions, VueTableComponentsPlugin, } from './types/components';
13
14
  export * from './components';
@@ -908,6 +908,23 @@ export interface PluginOptions {
908
908
  prefix?: string
909
909
  }
910
910
 
911
+ // ==================== 語言配置類型 ====================
912
+
913
+ /** 支援的語言代碼 */
914
+ export type SupportedLocale = 'zh-tw' | 'zh-cn' | 'en' | 'ja' | 'ko'
915
+
916
+ /** Element Plus 語言配置選項 */
917
+ export interface ElementPlusLocaleConfig {
918
+ /** 語言代碼 */
919
+ locale: SupportedLocale
920
+ }
921
+
922
+ /** 語言配置選項 */
923
+ export interface LocaleOptions {
924
+ /** 語言代碼 */
925
+ [key: string]: unknown
926
+ }
927
+
911
928
  /** 插件實例類型 */
912
929
  export interface VueTableComponentsPlugin {
913
930
  /** 安裝方法 */