erp-plus 1.0.168 → 1.0.170
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/App.vue.d.ts +1 -0
- package/dist/erp-plus.css +1 -1
- package/dist/erp-plus.es.js +2753 -2536
- package/dist/erp-plus.umd.js +33 -33
- package/dist/packages/Dialog/dialogCloseCleanup.d.ts +20 -0
- package/dist/packages/InputNumber/InputNumber.vue.d.ts +4 -2
- package/dist/packages/RemoteDialogSelect/RemoteDialogSelect.vue.d.ts +3 -3
- package/dist/packages/Select/Select.vue.d.ts +1 -1
- package/dist/packages/Select/TreeSelect.vue.d.ts +1 -1
- package/dist/packages/Table/Table.vue.d.ts +6 -4
- package/dist/packages/Table/TableColumn.vue.d.ts +4 -0
- package/dist/packages/Tag/Tag.vue.d.ts +1 -1
- package/dist/packages/VirtualTable/VirtualTable.vue.d.ts +465 -38
- package/dist/packages/VirtualTable/buildColumns.d.ts +4 -0
- package/dist/packages/VirtualTable/tier.d.ts +8 -11
- package/dist/packages/VirtualTable/types.d.ts +7 -0
- package/package.json +1 -1
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { InjectionKey } from 'vue';
|
|
2
|
+
/**
|
|
3
|
+
* 弹窗关闭清理注册口(provide/inject,库内部机制,不对外导出)。
|
|
4
|
+
*
|
|
5
|
+
* 背景:yw-dialog 默认不销毁内容(destroyOnClose = false),弹层里的 yw-table /
|
|
6
|
+
* yw-vt 等组件会跨「关闭 → 再打开」存活。表格的行选中高亮是组件自己维护的瞬时
|
|
7
|
+
* 交互状态(DOM 属性 / 响应式 rowKey),弹窗关闭不会自动清掉 → 重开后旧行仍带着
|
|
8
|
+
* 选中蓝。重开时即使拉了新数据也救不回来——EP 会按 row-key 复用 <tr>,手工打的
|
|
9
|
+
* 标记跟着 DOM 一起留下。
|
|
10
|
+
*
|
|
11
|
+
* 机制:Dialog 在 setup 里 provide 本接口;内层组件注入后在 setup 里把自己的
|
|
12
|
+
* 清理回调登记进来;弹窗每次开始关闭(el-dialog 的 close 事件)时统一执行。
|
|
13
|
+
* 挂在 close 而不是 closed:closed 在动画结束后才触发,若用户关掉后立刻重开,
|
|
14
|
+
* 会在重开后才清理,可能误清掉用户刚点的新选中态。
|
|
15
|
+
*/
|
|
16
|
+
export interface DialogCloseCleanup {
|
|
17
|
+
/** 登记一个弹窗关闭时执行的清理回调,返回注销函数(组件卸载时调用) */
|
|
18
|
+
register: (fn: () => void) => () => void;
|
|
19
|
+
}
|
|
20
|
+
export declare const DIALOG_CLOSE_CLEANUP_KEY: InjectionKey<DialogCloseCleanup>;
|
|
@@ -85,7 +85,8 @@ declare const _default: DefineComponent<globalThis.ExtractPropTypes<{
|
|
|
85
85
|
* 是否四舍五入(配合 precision 使用),默认 false。
|
|
86
86
|
* - true:precision 原样透传,超位小数四舍五入(EP 原生行为)
|
|
87
87
|
* - false(默认):precision 不透传给 EP(EP 对 precision 固定四舍五入),
|
|
88
|
-
*
|
|
88
|
+
* 精度由本组件接管——precision=0 时小数点直接输不进去;precision>0 时键入
|
|
89
|
+
* 小数位被限制在 precision 位(超位数字输不进去),
|
|
89
90
|
* 粘贴/外部赋值的超位部分按字符串截断(不做四舍五入)。
|
|
90
91
|
*/
|
|
91
92
|
round: {
|
|
@@ -174,7 +175,8 @@ declare const _default: DefineComponent<globalThis.ExtractPropTypes<{
|
|
|
174
175
|
* 是否四舍五入(配合 precision 使用),默认 false。
|
|
175
176
|
* - true:precision 原样透传,超位小数四舍五入(EP 原生行为)
|
|
176
177
|
* - false(默认):precision 不透传给 EP(EP 对 precision 固定四舍五入),
|
|
177
|
-
*
|
|
178
|
+
* 精度由本组件接管——precision=0 时小数点直接输不进去;precision>0 时键入
|
|
179
|
+
* 小数位被限制在 precision 位(超位数字输不进去),
|
|
178
180
|
* 粘贴/外部赋值的超位部分按字符串截断(不做四舍五入)。
|
|
179
181
|
*/
|
|
180
182
|
round: {
|
|
@@ -116,8 +116,8 @@ declare const _default: DefineComponent<globalThis.ExtractPropTypes<{
|
|
|
116
116
|
value: string;
|
|
117
117
|
label: string;
|
|
118
118
|
};
|
|
119
|
-
clearable: boolean;
|
|
120
119
|
multiple: boolean;
|
|
120
|
+
clearable: boolean;
|
|
121
121
|
existData: boolean;
|
|
122
122
|
}, {}, {}, {}, string, ComponentProvideOptions, true, {
|
|
123
123
|
selectRef: CreateComponentPublicInstanceWithMixins<Readonly<globalThis.ExtractPropTypes<{
|
|
@@ -340,6 +340,7 @@ declare const _default: DefineComponent<globalThis.ExtractPropTypes<{
|
|
|
340
340
|
popperClass: string;
|
|
341
341
|
placement: "left" | "right" | "top" | "top-start" | "top-end" | "bottom" | "bottom-start" | "bottom-end" | "left-start" | "left-end" | "right-start" | "right-end" | undefined;
|
|
342
342
|
valueKey: string;
|
|
343
|
+
multiple: boolean;
|
|
343
344
|
validateEvent: boolean;
|
|
344
345
|
suffixIcon: string | Function | Record<string, any>;
|
|
345
346
|
autocomplete: string;
|
|
@@ -352,7 +353,6 @@ declare const _default: DefineComponent<globalThis.ExtractPropTypes<{
|
|
|
352
353
|
noMatchText: string;
|
|
353
354
|
noDataText: string;
|
|
354
355
|
remoteMethod: (query: string) => void;
|
|
355
|
-
multiple: boolean;
|
|
356
356
|
multipleLimit: number;
|
|
357
357
|
defaultFirstOption: boolean;
|
|
358
358
|
reserveKeyword: boolean;
|
|
@@ -584,6 +584,7 @@ declare const _default: DefineComponent<globalThis.ExtractPropTypes<{
|
|
|
584
584
|
popperClass: string;
|
|
585
585
|
placement: "left" | "right" | "top" | "top-start" | "top-end" | "bottom" | "bottom-start" | "bottom-end" | "left-start" | "left-end" | "right-start" | "right-end" | undefined;
|
|
586
586
|
valueKey: string;
|
|
587
|
+
multiple: boolean;
|
|
587
588
|
validateEvent: boolean;
|
|
588
589
|
suffixIcon: string | Function | Record<string, any>;
|
|
589
590
|
autocomplete: string;
|
|
@@ -596,7 +597,6 @@ declare const _default: DefineComponent<globalThis.ExtractPropTypes<{
|
|
|
596
597
|
noMatchText: string;
|
|
597
598
|
noDataText: string;
|
|
598
599
|
remoteMethod: (query: string) => void;
|
|
599
|
-
multiple: boolean;
|
|
600
600
|
multipleLimit: number;
|
|
601
601
|
defaultFirstOption: boolean;
|
|
602
602
|
reserveKeyword: boolean;
|
|
@@ -407,6 +407,7 @@ declare const _default: DefineComponent<globalThis.ExtractPropTypes<{
|
|
|
407
407
|
popperClass: string;
|
|
408
408
|
placement: placementType;
|
|
409
409
|
valueKey: string;
|
|
410
|
+
multiple: boolean;
|
|
410
411
|
validateEvent: boolean;
|
|
411
412
|
suffixIcon: string | Function | Record<string, any>;
|
|
412
413
|
autocomplete: string;
|
|
@@ -419,7 +420,6 @@ declare const _default: DefineComponent<globalThis.ExtractPropTypes<{
|
|
|
419
420
|
noMatchText: string;
|
|
420
421
|
noDataText: string;
|
|
421
422
|
remoteMethod: (query: string) => void;
|
|
422
|
-
multiple: boolean;
|
|
423
423
|
multipleLimit: number;
|
|
424
424
|
defaultFirstOption: boolean;
|
|
425
425
|
reserveKeyword: boolean;
|
|
@@ -65,11 +65,11 @@ declare const _default: DefineComponent<__VLS_Props, {
|
|
|
65
65
|
teleported: boolean;
|
|
66
66
|
defaultExpandAll: boolean;
|
|
67
67
|
indent: number;
|
|
68
|
+
multiple: boolean;
|
|
68
69
|
nodeKey: string;
|
|
69
70
|
defaultExpandedKeys: Array<string | number>;
|
|
70
71
|
clearable: boolean;
|
|
71
72
|
filterable: boolean;
|
|
72
|
-
multiple: boolean;
|
|
73
73
|
collapseTags: boolean;
|
|
74
74
|
collapseTagsTooltip: boolean;
|
|
75
75
|
maxCollapseTags: number;
|
|
@@ -766,7 +766,7 @@ declare function __VLS_template(): {
|
|
|
766
766
|
namespace: ComputedRef<string>;
|
|
767
767
|
b: (blockSuffix?: string) => string;
|
|
768
768
|
e: (element?: string) => string;
|
|
769
|
-
m: (modifier
|
|
769
|
+
m: (modifier? /** arrayValueKey 的别名,便于非数组场景复用 */: string) => string;
|
|
770
770
|
be: (blockSuffix?: string, element?: string) => string;
|
|
771
771
|
em: (element?: string, modifier?: string) => string;
|
|
772
772
|
bm: (blockSuffix?: string, modifier?: string) => string;
|
|
@@ -1504,7 +1504,7 @@ declare function __VLS_template(): {
|
|
|
1504
1504
|
namespace: ComputedRef<string>;
|
|
1505
1505
|
b: (blockSuffix?: string) => string;
|
|
1506
1506
|
e: (element?: string) => string;
|
|
1507
|
-
m: (modifier
|
|
1507
|
+
m: (modifier? /** arrayValueKey 的别名,便于非数组场景复用 */: string) => string;
|
|
1508
1508
|
be: (blockSuffix?: string, element?: string) => string;
|
|
1509
1509
|
em: (element?: string, modifier?: string) => string;
|
|
1510
1510
|
bm: (blockSuffix?: string, modifier?: string) => string;
|
|
@@ -1613,6 +1613,8 @@ declare const __VLS_component: DefineComponent<TableProps, {
|
|
|
1613
1613
|
validateCell: (rowIndex: number, prop: string) => boolean;
|
|
1614
1614
|
toggleRowExpansion: (row: any, expanded?: boolean) => void;
|
|
1615
1615
|
setCurrentRow: (row: any) => void;
|
|
1616
|
+
/** 手动清掉行选中高亮(非弹窗场景需要时用;弹窗内组件已自动清理) */
|
|
1617
|
+
clearCurrentRow: () => void;
|
|
1616
1618
|
clearSelection: () => void;
|
|
1617
1619
|
tableRef: globalThis.Ref<any, any>;
|
|
1618
1620
|
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
@@ -2313,7 +2315,7 @@ declare const __VLS_component: DefineComponent<TableProps, {
|
|
|
2313
2315
|
namespace: ComputedRef<string>;
|
|
2314
2316
|
b: (blockSuffix?: string) => string;
|
|
2315
2317
|
e: (element?: string) => string;
|
|
2316
|
-
m: (modifier
|
|
2318
|
+
m: (modifier? /** arrayValueKey 的别名,便于非数组场景复用 */: string) => string;
|
|
2317
2319
|
be: (blockSuffix?: string, element?: string) => string;
|
|
2318
2320
|
em: (element?: string, modifier?: string) => string;
|
|
2319
2321
|
bm: (blockSuffix?: string, modifier?: string) => string;
|
|
@@ -3051,7 +3053,7 @@ declare const __VLS_component: DefineComponent<TableProps, {
|
|
|
3051
3053
|
namespace: ComputedRef<string>;
|
|
3052
3054
|
b: (blockSuffix?: string) => string;
|
|
3053
3055
|
e: (element?: string) => string;
|
|
3054
|
-
m: (modifier
|
|
3056
|
+
m: (modifier? /** arrayValueKey 的别名,便于非数组场景复用 */: string) => string;
|
|
3055
3057
|
be: (blockSuffix?: string, element?: string) => string;
|
|
3056
3058
|
em: (element?: string, modifier?: string) => string;
|
|
3057
3059
|
bm: (blockSuffix?: string, modifier?: string) => string;
|
|
@@ -12,6 +12,10 @@ type __VLS_Props = {
|
|
|
12
12
|
getErrorMsg: (index: number, prop: string) => string | undefined;
|
|
13
13
|
/** 错误气泡 z-index:表格在弹窗内 = 所属 .el-overlay z + 1;不在弹层内 = 1500(低于所有 EP 弹层)。 */
|
|
14
14
|
errorTipZIndex?: number;
|
|
15
|
+
/** 表格体正在滚动(由 Table 传入):只约束 hover 溢出 tooltip(teleported popper 滚动时
|
|
16
|
+
* 不跟随,钉死在旧位置)。校验错误已改随行 DOM 文本层(yw-table-error-text),
|
|
17
|
+
* 天然跟随滚动,不受此开关影响。 */
|
|
18
|
+
isScrolling?: boolean;
|
|
15
19
|
checkedState: (row: any) => string;
|
|
16
20
|
checkedStateSingle: (row: any) => string;
|
|
17
21
|
checkedAllState: () => string;
|
|
@@ -29,8 +29,8 @@ declare const __VLS_component: DefineComponent<__VLS_Props, {}, {}, {}, {}, Comp
|
|
|
29
29
|
type: TagType;
|
|
30
30
|
label: string;
|
|
31
31
|
square: boolean;
|
|
32
|
-
variant: TagVariant;
|
|
33
32
|
dense: boolean;
|
|
33
|
+
variant: TagVariant;
|
|
34
34
|
shape: TagShape;
|
|
35
35
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLSpanElement>;
|
|
36
36
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|