@liang2uv/fengmao-ui 1.3.20 → 1.4.0
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/lib/date-picker/index.d.ts +6 -3
- package/lib/date-picker/src/index.vue.d.ts +2 -1
- package/lib/fengmao-ui.js +5403 -5152
- package/lib/fengmao-ui.js.gz +0 -0
- package/lib/fengmao-ui.umd.cjs +9 -9
- package/lib/index.d.ts +2 -0
- package/lib/locale/index.d.ts +55 -0
- package/lib/locale/lang/en-US.d.ts +95 -0
- package/lib/locale/lang/zh-CN.d.ts +99 -0
- package/lib/locale/types.d.ts +18 -0
- package/lib/module-form/index.d.ts +6 -0
- package/lib/module-form/src/index.vue.d.ts +3 -0
- package/lib/query-condition/index.d.ts +3 -0
- package/lib/query-condition/src/index.vue.d.ts +2 -0
- package/lib/query-condition-v2/src/index.vue.d.ts +6 -0
- package/lib/select/index.d.ts +3 -0
- package/lib/select/src/index.vue.d.ts +2 -0
- package/lib/select-table/index.d.ts +9 -0
- package/lib/select-table/src/index.vue.d.ts +4 -0
- package/lib/step-wizard/index.d.ts +3 -0
- package/lib/step-wizard/src/index.vue.d.ts +1 -0
- package/lib/style.css +1 -1
- package/lib/style.css.gz +0 -0
- package/lib/table/src/ColumnSet.vue.d.ts +2 -0
- package/package.json +3 -2
package/lib/index.d.ts
CHANGED
|
@@ -14,6 +14,8 @@ import TAdaptivePage from './adaptive-page';
|
|
|
14
14
|
import TDatePicker from './date-picker';
|
|
15
15
|
import TRadio from './radio';
|
|
16
16
|
export { TLayoutPage, TLayoutPageItem, TQueryCondition, TTable, TForm, TSelect, TSelectTable, TDetail, TButton, TStepWizard, TTimerBtn, TModuleForm, TAdaptivePage, TDatePicker, TRadio, };
|
|
17
|
+
export { setLocale, getLocale, t, useLocale, registerLocale } from './locale';
|
|
18
|
+
export type { TuiLocale, TuiMessages, TuiInstallOptions } from './locale/types';
|
|
17
19
|
declare const _default: {
|
|
18
20
|
install: any;
|
|
19
21
|
};
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import type { Ref } from 'vue';
|
|
2
|
+
import type { TuiLocale, TuiMessages } from './types';
|
|
3
|
+
/**
|
|
4
|
+
* 设置组件库语种。
|
|
5
|
+
*
|
|
6
|
+
* @param locale 语种标识,如 'en-US';未内置的语种(如 'vi-VN')回退中文并告警
|
|
7
|
+
* @returns 实际生效的语种
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* // 宿主在 app.use(TuiPlus) 之前调用,跟随构建语种
|
|
11
|
+
* setLocale(BUILD_LOCALE)
|
|
12
|
+
*/
|
|
13
|
+
export declare function setLocale(locale?: string): TuiLocale;
|
|
14
|
+
/**
|
|
15
|
+
* 获取当前语种。
|
|
16
|
+
* @returns 当前生效的语种标识
|
|
17
|
+
*/
|
|
18
|
+
export declare function getLocale(): TuiLocale;
|
|
19
|
+
/**
|
|
20
|
+
* 取文案。
|
|
21
|
+
*
|
|
22
|
+
* 查找顺序:当前语种 → 回退语种(中文)→ key 本身。
|
|
23
|
+
* 支持 `{name}` 占位符插值,语序不同的语言必须靠占位符,不能字符串拼接。
|
|
24
|
+
*
|
|
25
|
+
* 必须在渲染期(模板、computed、watch 回调、事件处理函数)里调用;
|
|
26
|
+
* 不要在模块顶层或 setup 里一次性取出来存成常量,那样语言变了不会更新。
|
|
27
|
+
*
|
|
28
|
+
* @param key 词条路径,如 'common.save'
|
|
29
|
+
* @param params 占位符参数,如 { label: '客户名称' }
|
|
30
|
+
* @returns 翻译结果
|
|
31
|
+
*/
|
|
32
|
+
export declare function t(key: string, params?: Record<string, string | number>): string;
|
|
33
|
+
/**
|
|
34
|
+
* 组件内部使用的组合式入口。
|
|
35
|
+
* 与直接 import { t } 等价,提供 hook 形式是为了让组件写法统一。
|
|
36
|
+
*/
|
|
37
|
+
export declare function useLocale(): {
|
|
38
|
+
t: typeof t;
|
|
39
|
+
locale: Readonly<Ref<TuiLocale>>;
|
|
40
|
+
setLocale: typeof setLocale;
|
|
41
|
+
getLocale: typeof getLocale;
|
|
42
|
+
};
|
|
43
|
+
/**
|
|
44
|
+
* 注册 / 扩展词表。
|
|
45
|
+
*
|
|
46
|
+
* 两个用途:
|
|
47
|
+
* 1. 宿主自行补语种(如后续上越南语,先 registerLocale('vi-VN', {...}) 再 setLocale);
|
|
48
|
+
* 2. 宿主接手某几条文案的翻译(merge=true 只覆盖传入的 key)。
|
|
49
|
+
*
|
|
50
|
+
* @param locale 语种标识,可以是未内置的新语种
|
|
51
|
+
* @param messages 词条对象
|
|
52
|
+
* @param merge 是否与已有词表深合并,默认 true
|
|
53
|
+
*/
|
|
54
|
+
export declare function registerLocale(locale: TuiLocale, messages: TuiMessages, merge?: boolean): void;
|
|
55
|
+
export type { TuiLocale, TuiMessages } from './types';
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 英文词表。
|
|
3
|
+
*
|
|
4
|
+
* 结构与 `zh-CN.ts` 必须完全一致(缺 key 会回退中文,导致中英混排,
|
|
5
|
+
* 所以 `scripts/check-i18n.mjs` 把 key 差异当错误处理)。
|
|
6
|
+
*/
|
|
7
|
+
declare const _default: {
|
|
8
|
+
common: {
|
|
9
|
+
save: string;
|
|
10
|
+
cancel: string;
|
|
11
|
+
confirm: string;
|
|
12
|
+
reset: string;
|
|
13
|
+
search: string;
|
|
14
|
+
setting: string;
|
|
15
|
+
selectAll: string;
|
|
16
|
+
expand: string;
|
|
17
|
+
collapse: string;
|
|
18
|
+
update: string;
|
|
19
|
+
pleaseInput: string;
|
|
20
|
+
pleaseSelect: string;
|
|
21
|
+
pleaseInputPlain: string;
|
|
22
|
+
pleaseSelectPlain: string;
|
|
23
|
+
copySuccess: string;
|
|
24
|
+
copyFail: string;
|
|
25
|
+
};
|
|
26
|
+
datePicker: {
|
|
27
|
+
selectDate: string;
|
|
28
|
+
selectWeek: string;
|
|
29
|
+
weekFormat: string;
|
|
30
|
+
selectMonth: string;
|
|
31
|
+
selectYear: string;
|
|
32
|
+
startDate: string;
|
|
33
|
+
endDate: string;
|
|
34
|
+
startMonth: string;
|
|
35
|
+
endMonth: string;
|
|
36
|
+
selectDateTime: string;
|
|
37
|
+
today: string;
|
|
38
|
+
yesterday: string;
|
|
39
|
+
weekAgo: string;
|
|
40
|
+
lastWeek: string;
|
|
41
|
+
lastMonth: string;
|
|
42
|
+
last3Months: string;
|
|
43
|
+
thisMonth: string;
|
|
44
|
+
yearToDate: string;
|
|
45
|
+
last6Months: string;
|
|
46
|
+
};
|
|
47
|
+
table: {
|
|
48
|
+
columnSetting: string;
|
|
49
|
+
sortAndHide: string;
|
|
50
|
+
dragTip: string;
|
|
51
|
+
pinTop: string;
|
|
52
|
+
pinBottom: string;
|
|
53
|
+
unpin: string;
|
|
54
|
+
widthSetting: string;
|
|
55
|
+
widthTip: string;
|
|
56
|
+
columnName: string;
|
|
57
|
+
originWidth: string;
|
|
58
|
+
widthPx: string;
|
|
59
|
+
notFound: string;
|
|
60
|
+
widthUpdated: string;
|
|
61
|
+
configUpdateFail: string;
|
|
62
|
+
missingApi: string;
|
|
63
|
+
requiredName: string;
|
|
64
|
+
propMissing: string;
|
|
65
|
+
radio: string;
|
|
66
|
+
index: string;
|
|
67
|
+
action: string;
|
|
68
|
+
};
|
|
69
|
+
queryCondition: {
|
|
70
|
+
filterSetting: string;
|
|
71
|
+
visibility: string;
|
|
72
|
+
conditionColumn: string;
|
|
73
|
+
hiddenColumn: string;
|
|
74
|
+
keepOne: string;
|
|
75
|
+
defaultValue: string;
|
|
76
|
+
clearAll: string;
|
|
77
|
+
defaultTip: string;
|
|
78
|
+
noDefaultTip: string;
|
|
79
|
+
};
|
|
80
|
+
selectTable: {
|
|
81
|
+
closeDropdown: string;
|
|
82
|
+
single: string;
|
|
83
|
+
};
|
|
84
|
+
stepWizard: {
|
|
85
|
+
done: string;
|
|
86
|
+
};
|
|
87
|
+
form: {
|
|
88
|
+
widthSizeTooLarge: string;
|
|
89
|
+
};
|
|
90
|
+
timerBtn: {
|
|
91
|
+
getCode: string;
|
|
92
|
+
resend: string;
|
|
93
|
+
};
|
|
94
|
+
};
|
|
95
|
+
export default _default;
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 中文词表(基准)。
|
|
3
|
+
*
|
|
4
|
+
* 约定:
|
|
5
|
+
* 1. key 以本文件为准,新增语种必须保持结构完全一致(`scripts/check-i18n.mjs` 会校验);
|
|
6
|
+
* 2. 带变量的文案一律用 `{name}` 占位,不要写成字符串拼接 ——
|
|
7
|
+
* 中英文语序不同,拼接无法翻译(如「请输入 + 客户名称」vs「Please enter Customer」);
|
|
8
|
+
* 3. 这里只放「组件库自己产出的文案」,Element Plus 内置文案(分页、日期面板等)
|
|
9
|
+
* 由宿主 `ElConfigProvider` 管理,不要往这里搬。
|
|
10
|
+
*/
|
|
11
|
+
declare const _default: {
|
|
12
|
+
common: {
|
|
13
|
+
save: string;
|
|
14
|
+
cancel: string;
|
|
15
|
+
confirm: string;
|
|
16
|
+
reset: string;
|
|
17
|
+
search: string;
|
|
18
|
+
setting: string;
|
|
19
|
+
selectAll: string;
|
|
20
|
+
expand: string;
|
|
21
|
+
collapse: string;
|
|
22
|
+
update: string;
|
|
23
|
+
pleaseInput: string;
|
|
24
|
+
pleaseSelect: string;
|
|
25
|
+
pleaseInputPlain: string;
|
|
26
|
+
pleaseSelectPlain: string;
|
|
27
|
+
copySuccess: string;
|
|
28
|
+
copyFail: string;
|
|
29
|
+
};
|
|
30
|
+
datePicker: {
|
|
31
|
+
selectDate: string;
|
|
32
|
+
selectWeek: string;
|
|
33
|
+
weekFormat: string;
|
|
34
|
+
selectMonth: string;
|
|
35
|
+
selectYear: string;
|
|
36
|
+
startDate: string;
|
|
37
|
+
endDate: string;
|
|
38
|
+
startMonth: string;
|
|
39
|
+
endMonth: string;
|
|
40
|
+
selectDateTime: string;
|
|
41
|
+
today: string;
|
|
42
|
+
yesterday: string;
|
|
43
|
+
weekAgo: string;
|
|
44
|
+
lastWeek: string;
|
|
45
|
+
lastMonth: string;
|
|
46
|
+
last3Months: string;
|
|
47
|
+
thisMonth: string;
|
|
48
|
+
yearToDate: string;
|
|
49
|
+
last6Months: string;
|
|
50
|
+
};
|
|
51
|
+
table: {
|
|
52
|
+
columnSetting: string;
|
|
53
|
+
sortAndHide: string;
|
|
54
|
+
dragTip: string;
|
|
55
|
+
pinTop: string;
|
|
56
|
+
pinBottom: string;
|
|
57
|
+
unpin: string;
|
|
58
|
+
widthSetting: string;
|
|
59
|
+
widthTip: string;
|
|
60
|
+
columnName: string;
|
|
61
|
+
originWidth: string;
|
|
62
|
+
widthPx: string;
|
|
63
|
+
notFound: string;
|
|
64
|
+
widthUpdated: string;
|
|
65
|
+
configUpdateFail: string;
|
|
66
|
+
missingApi: string;
|
|
67
|
+
requiredName: string;
|
|
68
|
+
propMissing: string;
|
|
69
|
+
radio: string;
|
|
70
|
+
index: string;
|
|
71
|
+
action: string;
|
|
72
|
+
};
|
|
73
|
+
queryCondition: {
|
|
74
|
+
filterSetting: string;
|
|
75
|
+
visibility: string;
|
|
76
|
+
conditionColumn: string;
|
|
77
|
+
hiddenColumn: string;
|
|
78
|
+
keepOne: string;
|
|
79
|
+
defaultValue: string;
|
|
80
|
+
clearAll: string;
|
|
81
|
+
defaultTip: string;
|
|
82
|
+
noDefaultTip: string;
|
|
83
|
+
};
|
|
84
|
+
selectTable: {
|
|
85
|
+
closeDropdown: string;
|
|
86
|
+
single: string;
|
|
87
|
+
};
|
|
88
|
+
stepWizard: {
|
|
89
|
+
done: string;
|
|
90
|
+
};
|
|
91
|
+
form: {
|
|
92
|
+
widthSizeTooLarge: string;
|
|
93
|
+
};
|
|
94
|
+
timerBtn: {
|
|
95
|
+
getCode: string;
|
|
96
|
+
resend: string;
|
|
97
|
+
};
|
|
98
|
+
};
|
|
99
|
+
export default _default;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 语种标识。
|
|
3
|
+
* 当前只内置中文、英文;`vi-VN` 等未内置的语种会在 setLocale 时回退到中文。
|
|
4
|
+
*/
|
|
5
|
+
export type TuiLocale = 'zh-CN' | 'en-US';
|
|
6
|
+
/**
|
|
7
|
+
* 词条对象。
|
|
8
|
+
* 允许按业务域嵌套(如 table.columnSetting),叶子节点必须是字符串,
|
|
9
|
+
* 这样 t() 用 `a.b.c` 路径取值就够了,不必引入额外的格式化能力。
|
|
10
|
+
*/
|
|
11
|
+
export interface TuiMessages {
|
|
12
|
+
[key: string]: string | TuiMessages;
|
|
13
|
+
}
|
|
14
|
+
/** 安装参数:`app.use(TuiPlus, { locale: 'en-US' })` */
|
|
15
|
+
export interface TuiInstallOptions {
|
|
16
|
+
/** 组件库初始语种,不传则保持默认中文 */
|
|
17
|
+
locale?: string;
|
|
18
|
+
}
|
|
@@ -117,6 +117,7 @@ declare const TModuleForm: ({
|
|
|
117
117
|
onTabsChange?: ((...args: any[]) => any) | undefined;
|
|
118
118
|
}, {
|
|
119
119
|
props: any;
|
|
120
|
+
displayBtnTxt: import("vue").ComputedRef<any>;
|
|
120
121
|
attrs: any;
|
|
121
122
|
slots: Readonly<{
|
|
122
123
|
[name: string]: import("vue").Slot<any> | undefined;
|
|
@@ -198,6 +199,7 @@ declare const TModuleForm: ({
|
|
|
198
199
|
formOpts: Record<string, any>;
|
|
199
200
|
titleBold: boolean;
|
|
200
201
|
}, {}>;
|
|
202
|
+
readonly t: typeof import("..").t;
|
|
201
203
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("validateError" | "back" | "tabsChange")[], string, {
|
|
202
204
|
handleType: "edit" | "desc";
|
|
203
205
|
titleSlot: boolean;
|
|
@@ -267,6 +269,7 @@ declare const TModuleForm: ({
|
|
|
267
269
|
onTabsChange?: ((...args: any[]) => any) | undefined;
|
|
268
270
|
} & import("vue").ShallowUnwrapRef<{
|
|
269
271
|
props: any;
|
|
272
|
+
displayBtnTxt: import("vue").ComputedRef<any>;
|
|
270
273
|
attrs: any;
|
|
271
274
|
slots: Readonly<{
|
|
272
275
|
[name: string]: import("vue").Slot<any> | undefined;
|
|
@@ -348,6 +351,7 @@ declare const TModuleForm: ({
|
|
|
348
351
|
formOpts: Record<string, any>;
|
|
349
352
|
titleBold: boolean;
|
|
350
353
|
}, {}>;
|
|
354
|
+
readonly t: typeof import("..").t;
|
|
351
355
|
}> & {} & import("vue").ComponentCustomProperties & {};
|
|
352
356
|
__isFragment?: undefined;
|
|
353
357
|
__isTeleport?: undefined;
|
|
@@ -393,6 +397,7 @@ declare const TModuleForm: ({
|
|
|
393
397
|
onTabsChange?: ((...args: any[]) => any) | undefined;
|
|
394
398
|
}, {
|
|
395
399
|
props: any;
|
|
400
|
+
displayBtnTxt: import("vue").ComputedRef<any>;
|
|
396
401
|
attrs: any;
|
|
397
402
|
slots: Readonly<{
|
|
398
403
|
[name: string]: import("vue").Slot<any> | undefined;
|
|
@@ -474,6 +479,7 @@ declare const TModuleForm: ({
|
|
|
474
479
|
formOpts: Record<string, any>;
|
|
475
480
|
titleBold: boolean;
|
|
476
481
|
}, {}>;
|
|
482
|
+
readonly t: typeof import("..").t;
|
|
477
483
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("validateError" | "back" | "tabsChange")[], "validateError" | "back" | "tabsChange", {
|
|
478
484
|
handleType: "edit" | "desc";
|
|
479
485
|
titleSlot: boolean;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { PropType } from 'vue';
|
|
2
|
+
import { t } from '../../locale';
|
|
2
3
|
declare const _sfc_main: import("vue").DefineComponent<{
|
|
3
4
|
handleType: {
|
|
4
5
|
type: PropType<"edit" | "desc">;
|
|
@@ -36,6 +37,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
36
37
|
submit: FunctionConstructor;
|
|
37
38
|
}, {
|
|
38
39
|
props: any;
|
|
40
|
+
displayBtnTxt: import("vue").ComputedRef<any>;
|
|
39
41
|
attrs: any;
|
|
40
42
|
slots: Readonly<{
|
|
41
43
|
[name: string]: import("vue").Slot<any> | undefined;
|
|
@@ -117,6 +119,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
117
119
|
formOpts: Record<string, any>;
|
|
118
120
|
titleBold: boolean;
|
|
119
121
|
}, {}>;
|
|
122
|
+
readonly t: typeof t;
|
|
120
123
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("validateError" | "back" | "tabsChange")[], "validateError" | "back" | "tabsChange", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
121
124
|
handleType: {
|
|
122
125
|
type: PropType<"edit" | "desc">;
|
|
@@ -189,6 +189,7 @@ declare const TQueryCondition: ({
|
|
|
189
189
|
render: FunctionConstructor;
|
|
190
190
|
form: ObjectConstructor;
|
|
191
191
|
}>>, {}, {}>;
|
|
192
|
+
readonly t: typeof import("..").t;
|
|
192
193
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("handleEvent" | "submit" | "reset")[], string, {
|
|
193
194
|
reset: boolean;
|
|
194
195
|
opts: Record<string, any>;
|
|
@@ -333,6 +334,7 @@ declare const TQueryCondition: ({
|
|
|
333
334
|
render: FunctionConstructor;
|
|
334
335
|
form: ObjectConstructor;
|
|
335
336
|
}>>, {}, {}>;
|
|
337
|
+
readonly t: typeof import("..").t;
|
|
336
338
|
}> & {} & import("vue").ComponentCustomProperties & {};
|
|
337
339
|
__isFragment?: undefined;
|
|
338
340
|
__isTeleport?: undefined;
|
|
@@ -451,6 +453,7 @@ declare const TQueryCondition: ({
|
|
|
451
453
|
render: FunctionConstructor;
|
|
452
454
|
form: ObjectConstructor;
|
|
453
455
|
}>>, {}, {}>;
|
|
456
|
+
readonly t: typeof import("..").t;
|
|
454
457
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("handleEvent" | "submit" | "reset")[], "handleEvent" | "submit" | "reset", {
|
|
455
458
|
reset: boolean;
|
|
456
459
|
opts: Record<string, any>;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { t } from '../../locale';
|
|
1
2
|
declare const _sfc_main: import("vue").DefineComponent<{
|
|
2
3
|
opts: {
|
|
3
4
|
type: ObjectConstructor;
|
|
@@ -108,6 +109,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
108
109
|
render: FunctionConstructor;
|
|
109
110
|
form: ObjectConstructor;
|
|
110
111
|
}>>, {}, {}>;
|
|
112
|
+
readonly t: typeof t;
|
|
111
113
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("handleEvent" | "submit" | "reset")[], "handleEvent" | "submit" | "reset", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
112
114
|
opts: {
|
|
113
115
|
type: ObjectConstructor;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { t } from '../../locale';
|
|
1
2
|
interface Option {
|
|
2
3
|
key: string;
|
|
3
4
|
label: string;
|
|
@@ -83,6 +84,8 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
83
84
|
form: {};
|
|
84
85
|
};
|
|
85
86
|
open: import("vue").Ref<boolean>;
|
|
87
|
+
isLabelTop: import("vue").ComputedRef<boolean>;
|
|
88
|
+
labelPosition: import("vue").ComputedRef<"right" | "top">;
|
|
86
89
|
queryAttrs: import("vue").ComputedRef<{
|
|
87
90
|
type: string;
|
|
88
91
|
size: string;
|
|
@@ -98,6 +101,8 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
98
101
|
defaultLabelWidth: import("vue").ComputedRef<"80px" | "90px" | "105px" | "110px" | "150px" | "120px">;
|
|
99
102
|
cellLength: any;
|
|
100
103
|
gridAreas: import("vue").ComputedRef<any>;
|
|
104
|
+
colGap: import("vue").ComputedRef<2 | 16>;
|
|
105
|
+
gridColumns: import("vue").ComputedRef<string>;
|
|
101
106
|
queryCacheFormOpts: import("vue").ComputedRef<{
|
|
102
107
|
label: string;
|
|
103
108
|
field: string;
|
|
@@ -142,6 +147,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
142
147
|
render: FunctionConstructor;
|
|
143
148
|
form: ObjectConstructor;
|
|
144
149
|
}>>, {}, {}>;
|
|
150
|
+
readonly t: typeof t;
|
|
145
151
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("handleEvent" | "submit" | "reset" | "update:modelValue")[], "handleEvent" | "submit" | "reset" | "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
146
152
|
opts: {
|
|
147
153
|
type: ObjectConstructor;
|
package/lib/select/index.d.ts
CHANGED
|
@@ -127,6 +127,7 @@ declare const TSelect: ({
|
|
|
127
127
|
selectChecked: import("vue").WritableComputedRef<any>;
|
|
128
128
|
selectAll: (val: any) => void;
|
|
129
129
|
customLabelHandler: (item: any) => any;
|
|
130
|
+
readonly t: typeof import("..").t;
|
|
130
131
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:modelValue"[], string, {
|
|
131
132
|
isShowPagination: boolean;
|
|
132
133
|
multiple: boolean;
|
|
@@ -210,6 +211,7 @@ declare const TSelect: ({
|
|
|
210
211
|
selectChecked: import("vue").WritableComputedRef<any>;
|
|
211
212
|
selectAll: (val: any) => void;
|
|
212
213
|
customLabelHandler: (item: any) => any;
|
|
214
|
+
readonly t: typeof import("..").t;
|
|
213
215
|
}> & {} & import("vue").ComponentCustomProperties & {};
|
|
214
216
|
__isFragment?: undefined;
|
|
215
217
|
__isTeleport?: undefined;
|
|
@@ -269,6 +271,7 @@ declare const TSelect: ({
|
|
|
269
271
|
selectChecked: import("vue").WritableComputedRef<any>;
|
|
270
272
|
selectAll: (val: any) => void;
|
|
271
273
|
customLabelHandler: (item: any) => any;
|
|
274
|
+
readonly t: typeof import("..").t;
|
|
272
275
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", {
|
|
273
276
|
isShowPagination: boolean;
|
|
274
277
|
multiple: boolean;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { t } from '../../locale';
|
|
1
2
|
declare const _sfc_main: import("vue").DefineComponent<{
|
|
2
3
|
modelValue: {
|
|
3
4
|
type: (StringConstructor | ArrayConstructor | NumberConstructor)[];
|
|
@@ -51,6 +52,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
51
52
|
selectChecked: import("vue").WritableComputedRef<any>;
|
|
52
53
|
selectAll: (val: any) => void;
|
|
53
54
|
customLabelHandler: (item: any) => any;
|
|
55
|
+
readonly t: typeof t;
|
|
54
56
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
55
57
|
modelValue: {
|
|
56
58
|
type: (StringConstructor | ArrayConstructor | NumberConstructor)[];
|
|
@@ -163,6 +163,7 @@ declare const TSelectTable: ({
|
|
|
163
163
|
onSelectionChange?: ((...args: any[]) => any) | undefined;
|
|
164
164
|
}, {
|
|
165
165
|
props: any;
|
|
166
|
+
radioLabel: import("vue").ComputedRef<string>;
|
|
166
167
|
selectAttr: import("vue").ComputedRef<{
|
|
167
168
|
clearable: boolean;
|
|
168
169
|
}>;
|
|
@@ -314,6 +315,7 @@ declare const TSelectTable: ({
|
|
|
314
315
|
render: FunctionConstructor;
|
|
315
316
|
form: ObjectConstructor;
|
|
316
317
|
}>>, {}, {}>;
|
|
318
|
+
readonly t: typeof import("..").t;
|
|
317
319
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("handleEvent" | "submit" | "reset")[], "handleEvent" | "submit" | "reset", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
318
320
|
opts: {
|
|
319
321
|
type: ObjectConstructor;
|
|
@@ -392,6 +394,7 @@ declare const TSelectTable: ({
|
|
|
392
394
|
}>>, {
|
|
393
395
|
column: Record<string, any>;
|
|
394
396
|
}, {}>;
|
|
397
|
+
readonly t: typeof import("..").t;
|
|
395
398
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("page-change" | "radioChange" | "selectionChange")[], string, {
|
|
396
399
|
table: Record<string, any>;
|
|
397
400
|
columns: any;
|
|
@@ -509,6 +512,7 @@ declare const TSelectTable: ({
|
|
|
509
512
|
onSelectionChange?: ((...args: any[]) => any) | undefined;
|
|
510
513
|
} & import("vue").ShallowUnwrapRef<{
|
|
511
514
|
props: any;
|
|
515
|
+
radioLabel: import("vue").ComputedRef<string>;
|
|
512
516
|
selectAttr: import("vue").ComputedRef<{
|
|
513
517
|
clearable: boolean;
|
|
514
518
|
}>;
|
|
@@ -660,6 +664,7 @@ declare const TSelectTable: ({
|
|
|
660
664
|
render: FunctionConstructor;
|
|
661
665
|
form: ObjectConstructor;
|
|
662
666
|
}>>, {}, {}>;
|
|
667
|
+
readonly t: typeof import("..").t;
|
|
663
668
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("handleEvent" | "submit" | "reset")[], "handleEvent" | "submit" | "reset", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
664
669
|
opts: {
|
|
665
670
|
type: ObjectConstructor;
|
|
@@ -738,6 +743,7 @@ declare const TSelectTable: ({
|
|
|
738
743
|
}>>, {
|
|
739
744
|
column: Record<string, any>;
|
|
740
745
|
}, {}>;
|
|
746
|
+
readonly t: typeof import("..").t;
|
|
741
747
|
}> & {} & import("vue").ComponentCustomProperties & {};
|
|
742
748
|
__isFragment?: undefined;
|
|
743
749
|
__isTeleport?: undefined;
|
|
@@ -823,6 +829,7 @@ declare const TSelectTable: ({
|
|
|
823
829
|
onSelectionChange?: ((...args: any[]) => any) | undefined;
|
|
824
830
|
}, {
|
|
825
831
|
props: any;
|
|
832
|
+
radioLabel: import("vue").ComputedRef<string>;
|
|
826
833
|
selectAttr: import("vue").ComputedRef<{
|
|
827
834
|
clearable: boolean;
|
|
828
835
|
}>;
|
|
@@ -974,6 +981,7 @@ declare const TSelectTable: ({
|
|
|
974
981
|
render: FunctionConstructor;
|
|
975
982
|
form: ObjectConstructor;
|
|
976
983
|
}>>, {}, {}>;
|
|
984
|
+
readonly t: typeof import("..").t;
|
|
977
985
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("handleEvent" | "submit" | "reset")[], "handleEvent" | "submit" | "reset", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
978
986
|
opts: {
|
|
979
987
|
type: ObjectConstructor;
|
|
@@ -1052,6 +1060,7 @@ declare const TSelectTable: ({
|
|
|
1052
1060
|
}>>, {
|
|
1053
1061
|
column: Record<string, any>;
|
|
1054
1062
|
}, {}>;
|
|
1063
|
+
readonly t: typeof import("..").t;
|
|
1055
1064
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("page-change" | "radioChange" | "selectionChange")[], "page-change" | "radioChange" | "selectionChange", {
|
|
1056
1065
|
table: Record<string, any>;
|
|
1057
1066
|
columns: any;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { t } from '../../locale';
|
|
1
2
|
declare const _sfc_main: import("vue").DefineComponent<{
|
|
2
3
|
value: {
|
|
3
4
|
type: (StringConstructor | ArrayConstructor | NumberConstructor)[];
|
|
@@ -75,6 +76,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
75
76
|
};
|
|
76
77
|
}, {
|
|
77
78
|
props: any;
|
|
79
|
+
radioLabel: import("vue").ComputedRef<string>;
|
|
78
80
|
selectAttr: import("vue").ComputedRef<{
|
|
79
81
|
clearable: boolean;
|
|
80
82
|
}>;
|
|
@@ -226,6 +228,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
226
228
|
render: FunctionConstructor;
|
|
227
229
|
form: ObjectConstructor;
|
|
228
230
|
}>>, {}, {}>;
|
|
231
|
+
readonly t: typeof t;
|
|
229
232
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("handleEvent" | "submit" | "reset")[], "handleEvent" | "submit" | "reset", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
230
233
|
opts: {
|
|
231
234
|
type: ObjectConstructor;
|
|
@@ -304,6 +307,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
304
307
|
}>>, {
|
|
305
308
|
column: Record<string, any>;
|
|
306
309
|
}, {}>;
|
|
310
|
+
readonly t: typeof t;
|
|
307
311
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("page-change" | "radioChange" | "selectionChange")[], "page-change" | "radioChange" | "selectionChange", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
308
312
|
value: {
|
|
309
313
|
type: (StringConstructor | ArrayConstructor | NumberConstructor)[];
|
|
@@ -94,6 +94,7 @@ declare const TStepWizard: ({
|
|
|
94
94
|
onComplete?: ((...args: any[]) => any) | undefined;
|
|
95
95
|
}, {
|
|
96
96
|
props: any;
|
|
97
|
+
lastBtnText: import("vue").ComputedRef<string>;
|
|
97
98
|
stepContent: () => any;
|
|
98
99
|
emits: (event: "complete", ...args: any[]) => void;
|
|
99
100
|
complete: () => void;
|
|
@@ -153,6 +154,7 @@ declare const TStepWizard: ({
|
|
|
153
154
|
onComplete?: ((...args: any[]) => any) | undefined;
|
|
154
155
|
} & import("vue").ShallowUnwrapRef<{
|
|
155
156
|
props: any;
|
|
157
|
+
lastBtnText: import("vue").ComputedRef<string>;
|
|
156
158
|
stepContent: () => any;
|
|
157
159
|
emits: (event: "complete", ...args: any[]) => void;
|
|
158
160
|
complete: () => void;
|
|
@@ -190,6 +192,7 @@ declare const TStepWizard: ({
|
|
|
190
192
|
onComplete?: ((...args: any[]) => any) | undefined;
|
|
191
193
|
}, {
|
|
192
194
|
props: any;
|
|
195
|
+
lastBtnText: import("vue").ComputedRef<string>;
|
|
193
196
|
stepContent: () => any;
|
|
194
197
|
emits: (event: "complete", ...args: any[]) => void;
|
|
195
198
|
complete: () => void;
|