erp-plus 1.0.141 → 1.0.142
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/erp-plus.css +1 -1
- package/dist/erp-plus.es.js +1966 -1710
- package/dist/erp-plus.umd.js +33 -33
- package/dist/packages/Descriptions/Descriptions.vue.d.ts +71 -7
- package/dist/packages/Descriptions/index.d.ts +1 -0
- package/dist/packages/DictStatus/DictStatus.vue.d.ts +26 -0
- package/dist/packages/DictStatus/index.d.ts +5 -0
- package/dist/packages/RemoteDialogSelect/RemoteDialogSelect.vue.d.ts +615 -0
- package/dist/packages/RemoteDialogSelect/index.d.ts +4 -0
- package/dist/packages/Select/Select.vue.d.ts +6 -6
- package/dist/packages/Tag/Tag.vue.d.ts +2 -2
- package/package.json +1 -1
|
@@ -1,39 +1,103 @@
|
|
|
1
|
-
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
1
|
+
import { h, VNodeChild, DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
2
|
+
import { DictStatusOption } from '../DictStatus/DictStatus.vue';
|
|
2
3
|
export interface DescriptionItem {
|
|
3
4
|
/** 唯一键,缺省用下标 */
|
|
4
5
|
key?: string | number;
|
|
5
6
|
/** 字段名(组件自动补「:」) */
|
|
6
7
|
label: string;
|
|
7
|
-
/**
|
|
8
|
+
/** 字面量模式:显示值;路径模式(传了 data):字段路径(支持 'a.b.c') */
|
|
8
9
|
value?: string | number;
|
|
10
|
+
/** 显示条件;函数形态收到 data */
|
|
11
|
+
visible?: boolean | ((data: Record<string, any>) => boolean);
|
|
12
|
+
/** 自定义渲染,签名与老组件一致:render(h, { row }),row = data;优先级最高(首参即 Vue 的 h 函数) */
|
|
13
|
+
render?: (hh: typeof h, ctx: {
|
|
14
|
+
row: Record<string, any>;
|
|
15
|
+
}) => VNodeChild;
|
|
16
|
+
/** type:'dict' 走 #dict 插槽;type:'file' 走 #file 插槽 */
|
|
17
|
+
type?: 'dict' | 'file';
|
|
18
|
+
/** dict 模式 = 字典类型名(经 #dict 插槽作用域 dicts 透出) */
|
|
19
|
+
filter?: string;
|
|
20
|
+
/** 通用透传插槽:渲染 <slot :name="slotName" :item :row v-bind="scope" />,无默认内容 */
|
|
21
|
+
slotName?: string;
|
|
22
|
+
/** 配合 slotName 追加透传给插槽的参数(v-bind 展开) */
|
|
23
|
+
scope?: Record<string, any>;
|
|
24
|
+
}
|
|
25
|
+
export interface DescriptionGroup {
|
|
26
|
+
/** 分组标题(蓝条 + 文字) */
|
|
27
|
+
title?: string;
|
|
28
|
+
items: DescriptionItem[];
|
|
9
29
|
}
|
|
10
30
|
type __VLS_Props = {
|
|
11
|
-
/**
|
|
31
|
+
/** 单分组标题(仅 title+items 入口用) */
|
|
12
32
|
title?: string;
|
|
33
|
+
/** 单分组描述项(字面量入口) */
|
|
34
|
+
items?: DescriptionItem[];
|
|
35
|
+
/** 多分组(新入口名) */
|
|
36
|
+
groups?: DescriptionGroup[];
|
|
37
|
+
/** 多分组(兼容老 CustomDescription 的入口名,优先于 groups) */
|
|
38
|
+
options?: DescriptionGroup[];
|
|
39
|
+
/** 数据源;传了即开启路径模式:item.value 按字段解析 */
|
|
40
|
+
data?: Record<string, any> | null;
|
|
13
41
|
/** 列数:'auto' 按容器宽度自适应(默认);传数字则固定列数 */
|
|
14
42
|
column?: number | 'auto';
|
|
15
43
|
/** 自适应时的单列最小宽度(px),决定「多宽开始多排一列」 */
|
|
16
44
|
minColumnWidth?: number;
|
|
17
|
-
/**
|
|
18
|
-
|
|
45
|
+
/** 新式单向加载遮罩 */
|
|
46
|
+
loading?: boolean;
|
|
47
|
+
/** loading 遮罩文案 */
|
|
48
|
+
loadingText?: string;
|
|
49
|
+
/** 兼容老 API 的加载遮罩(v-model:showCover) */
|
|
50
|
+
showCover?: boolean;
|
|
51
|
+
/** showCover 遮罩文案 */
|
|
52
|
+
coverText?: string;
|
|
53
|
+
/** 字典名 → 选项映射(应用侧把 useDict 结果按名字汇总传入);
|
|
54
|
+
* #dict 插槽未提供时,type:'dict' 项内置渲染 YwDictStatus */
|
|
55
|
+
dictOptions?: Record<string, DictStatusOption[]>;
|
|
19
56
|
};
|
|
20
57
|
declare function __VLS_template(): {
|
|
21
58
|
attrs: Partial<{}>;
|
|
22
|
-
slots: {
|
|
59
|
+
slots: Partial<Record<string, (_: {
|
|
60
|
+
item: DescriptionItem;
|
|
61
|
+
row: Record<string, any> | null;
|
|
62
|
+
}) => any>> & {
|
|
63
|
+
dict?(_: {
|
|
64
|
+
item: DescriptionItem;
|
|
65
|
+
dicts: string | undefined;
|
|
66
|
+
value: string;
|
|
67
|
+
row: Record<string, any> | null;
|
|
68
|
+
}): any;
|
|
69
|
+
file?(_: {
|
|
70
|
+
item: DescriptionItem;
|
|
71
|
+
row: Record<string, any> | null;
|
|
72
|
+
}): any;
|
|
23
73
|
value?(_: {
|
|
24
74
|
item: DescriptionItem;
|
|
25
75
|
index: number;
|
|
76
|
+
row: Record<string, any> | null;
|
|
26
77
|
}): any;
|
|
78
|
+
other?(_: {}): any;
|
|
27
79
|
};
|
|
28
80
|
refs: {};
|
|
29
81
|
rootEl: HTMLDivElement;
|
|
30
82
|
};
|
|
31
83
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
32
|
-
declare const __VLS_component: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}
|
|
84
|
+
declare const __VLS_component: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
85
|
+
"update:showCover": (value: boolean) => any;
|
|
86
|
+
}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
87
|
+
"onUpdate:showCover"?: ((value: boolean) => any) | undefined;
|
|
88
|
+
}>, {
|
|
89
|
+
data: Record<string, any> | null;
|
|
33
90
|
title: string;
|
|
91
|
+
loading: boolean;
|
|
34
92
|
column: number | "auto";
|
|
93
|
+
loadingText: string;
|
|
94
|
+
options: DescriptionGroup[];
|
|
35
95
|
items: DescriptionItem[];
|
|
96
|
+
showCover: boolean;
|
|
97
|
+
dictOptions: Record<string, DictStatusOption[]>;
|
|
98
|
+
groups: DescriptionGroup[];
|
|
36
99
|
minColumnWidth: number;
|
|
100
|
+
coverText: string;
|
|
37
101
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
38
102
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
39
103
|
export default _default;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
2
|
+
export type DictTagType = 'default' | 'primary' | 'success' | 'info' | 'warning' | 'danger';
|
|
3
|
+
export interface DictStatusOption {
|
|
4
|
+
/** 展示文案 */
|
|
5
|
+
label: string;
|
|
6
|
+
/** 字典值(宽松相等匹配 value) */
|
|
7
|
+
value: string;
|
|
8
|
+
/** 语义色:default 渲染纯文本,其余映射 YwTag 语义色 */
|
|
9
|
+
elTagType?: DictTagType;
|
|
10
|
+
/** 保留字段(老组件也未消费) */
|
|
11
|
+
elTagClass?: string;
|
|
12
|
+
}
|
|
13
|
+
type __VLS_Props = {
|
|
14
|
+
/** 字典选项(应用侧 useDict 结果原样传入) */
|
|
15
|
+
dictOption?: DictStatusOption[];
|
|
16
|
+
/** 字典值 */
|
|
17
|
+
value?: string | number;
|
|
18
|
+
/** 文字色(dot / 纯文本形态生效;filled 由 YwTag 语义色接管) */
|
|
19
|
+
color?: string;
|
|
20
|
+
};
|
|
21
|
+
declare const _default: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
22
|
+
color: string;
|
|
23
|
+
value: string | number;
|
|
24
|
+
dictOption: DictStatusOption[];
|
|
25
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
26
|
+
export default _default;
|