erp-plus 1.0.141 → 1.0.143
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 +2373 -1754
- package/dist/erp-plus.umd.js +33 -33
- package/dist/packages/Button/Button.vue.d.ts +71 -2
- package/dist/packages/DatePicker/DatePicker.vue.d.ts +3 -3
- package/dist/packages/Descriptions/Descriptions.vue.d.ts +72 -8
- package/dist/packages/Descriptions/index.d.ts +1 -0
- package/dist/packages/Dialog/Dialog.vue.d.ts +1 -1
- package/dist/packages/DictStatus/DictStatus.vue.d.ts +26 -0
- package/dist/packages/DictStatus/index.d.ts +5 -0
- package/dist/packages/Drawer/Drawer.vue.d.ts +68 -0
- package/dist/packages/Drawer/index.d.ts +4 -0
- package/dist/packages/Input/Input.vue.d.ts +1 -1
- 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 +9 -9
- package/dist/packages/Select/TreeSelect.vue.d.ts +2 -2
- package/dist/packages/Tag/Tag.vue.d.ts +1 -1
- package/dist/packages/Text/Text.vue.d.ts +45 -0
- package/dist/packages/Text/index.d.ts +4 -0
- package/dist/packages/Title/Title.vue.d.ts +72 -5
- package/dist/packages/Title/index.d.ts +1 -0
- package/package.json +1 -1
|
@@ -47,14 +47,14 @@ declare const _default: DefineComponent<__VLS_Props, {
|
|
|
47
47
|
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
48
48
|
change: (...args: any[]) => void;
|
|
49
49
|
clear: (...args: any[]) => void;
|
|
50
|
-
"update:modelValue": (...args: any[]) => void;
|
|
51
50
|
"visible-change": (...args: any[]) => void;
|
|
51
|
+
"update:modelValue": (...args: any[]) => void;
|
|
52
52
|
"remove-tag": (...args: any[]) => void;
|
|
53
53
|
}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
54
54
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
55
55
|
onClear?: ((...args: any[]) => any) | undefined;
|
|
56
|
-
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
57
56
|
"onVisible-change"?: ((...args: any[]) => any) | undefined;
|
|
57
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
58
58
|
"onRemove-tag"?: ((...args: any[]) => any) | undefined;
|
|
59
59
|
}>, {
|
|
60
60
|
size: "large" | "default" | "small";
|
|
@@ -29,9 +29,9 @@ declare const __VLS_component: DefineComponent<__VLS_Props, {}, {}, {}, {}, Comp
|
|
|
29
29
|
type: TagType;
|
|
30
30
|
label: string;
|
|
31
31
|
square: boolean;
|
|
32
|
-
shape: TagShape;
|
|
33
32
|
variant: TagVariant;
|
|
34
33
|
dense: boolean;
|
|
34
|
+
shape: TagShape;
|
|
35
35
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLSpanElement>;
|
|
36
36
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
37
37
|
export default _default;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
2
|
+
/**
|
|
3
|
+
* 纯文本(跟随档位字号)
|
|
4
|
+
*
|
|
5
|
+
* 用途:说明 / 提示 / 辅助文案这类不需要任何盒子样式的文字。
|
|
6
|
+
* 存在的意义就是**字号自动跟随档位**:默认档 14px、稍小档 12px
|
|
7
|
+
* (字号只在档位文件里下发,组件内不写死,避免和 default.scss / size.scss 打架)。
|
|
8
|
+
*
|
|
9
|
+
* 颜色默认三级灰 $zz-text-thirdary(#838599,按 UED 截图取色),可用 color 覆盖。
|
|
10
|
+
* 行高不预设,跟随上下文(放在表单、Description、卡片里都与周围一致);
|
|
11
|
+
* 需要固定行高时在外层给 line-height 即可。
|
|
12
|
+
*
|
|
13
|
+
* <yw-text text="按清单行数自动生成,不可编辑" />
|
|
14
|
+
* <yw-text color="#1A1A1A">自定义颜色</yw-text>
|
|
15
|
+
* <yw-text truncate text="超长单行文本会显示省略号" />
|
|
16
|
+
*/
|
|
17
|
+
type __VLS_Props = {
|
|
18
|
+
/** 文本内容(也可以直接用默认插槽) */
|
|
19
|
+
text?: string;
|
|
20
|
+
/** 文字颜色,默认 $zz-text-thirdary(#838599) */
|
|
21
|
+
color?: string;
|
|
22
|
+
/** 单行超出省略(需要父容器有宽度约束) */
|
|
23
|
+
truncate?: boolean;
|
|
24
|
+
};
|
|
25
|
+
declare function __VLS_template(): {
|
|
26
|
+
attrs: Partial<{}>;
|
|
27
|
+
slots: {
|
|
28
|
+
default?(_: {}): any;
|
|
29
|
+
};
|
|
30
|
+
refs: {};
|
|
31
|
+
rootEl: HTMLSpanElement;
|
|
32
|
+
};
|
|
33
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
34
|
+
declare const __VLS_component: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
35
|
+
color: string;
|
|
36
|
+
text: string;
|
|
37
|
+
truncate: boolean;
|
|
38
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLSpanElement>;
|
|
39
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
40
|
+
export default _default;
|
|
41
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
42
|
+
new (): {
|
|
43
|
+
$slots: S;
|
|
44
|
+
};
|
|
45
|
+
};
|
|
@@ -1,28 +1,95 @@
|
|
|
1
1
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
2
2
|
/**
|
|
3
|
-
* 标题(左侧蓝色竖条 +
|
|
3
|
+
* 标题(左侧蓝色竖条 + 文字),支持两种形态:
|
|
4
4
|
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
5
|
+
* 1. 普通标题:<yw-title label="申请信息" />
|
|
6
|
+
* 2. 统计式:多段「标签 + 数值」,段间 1px 竖线,可挂链接按钮、行尾说明
|
|
7
|
+
* <yw-title
|
|
8
|
+
* :items="[
|
|
9
|
+
* { label: '收款合计:', value: '80,000.00' },
|
|
10
|
+
* { label: '付款合计:', value: '8,000.00', link: { text: '明细', key: 'pay' } }
|
|
11
|
+
* ]"
|
|
12
|
+
* :links="[{ text: '查看全部', key: 'all' }]"
|
|
13
|
+
* note="非实时数据,数据统计延迟约 5-10 分钟"
|
|
14
|
+
* @link-click="(link) => ..."
|
|
15
|
+
* />
|
|
16
|
+
*
|
|
17
|
+
* 规格(两档):
|
|
18
|
+
* - 蓝条 4×12、圆角 2px,到文字 8px
|
|
8
19
|
* - 文字 500、#1A1A1A;字号默认档 14 / 稍小档 12
|
|
20
|
+
* - 段间竖线 1px 宽 × 1em 高、#1A1A1A,两侧各 12px
|
|
21
|
+
* - 数值 #F53F3F;说明文字 #838599 / 字重 400
|
|
9
22
|
* - 组件不带外边距,与下方内容的间距由使用方给
|
|
23
|
+
*
|
|
24
|
+
* 2026-10-30 变更:竖线 2px → 1px;新增段内 / 行尾链接按钮;所有可见字段均可由外部传入
|
|
25
|
+
* (label / items[].label / items[].value / items[].valueColor / items[].link / links / note / showBar),
|
|
26
|
+
* 需要完全自定义时用 #item、#actions、#note 插槽。
|
|
10
27
|
*/
|
|
28
|
+
type LinkType = 'default' | 'primary' | 'success' | 'warning' | 'danger' | 'info' | 'text';
|
|
29
|
+
/** 链接按钮(内部用 yw-button 的 link 形态实现,颜色/悬浮态跟随设计规范) */
|
|
30
|
+
export interface TitleLink {
|
|
31
|
+
/** 链接文字 */
|
|
32
|
+
text: string;
|
|
33
|
+
/** 业务标识,点击事件里带回来,便于一个回调里分支处理 */
|
|
34
|
+
key?: string | number;
|
|
35
|
+
/** 颜色类型,默认 primary(蓝色);default 为 #1A1A1A */
|
|
36
|
+
type?: LinkType;
|
|
37
|
+
/** 是否禁用 */
|
|
38
|
+
disabled?: boolean;
|
|
39
|
+
/** yw-button 的 icon 名(如 Plus / Edit),一般不用 */
|
|
40
|
+
icon?: string;
|
|
41
|
+
/** 自定义文字色,传了会覆盖 type 的颜色 */
|
|
42
|
+
color?: string;
|
|
43
|
+
/** 单个链接的点击回调;不传则统一走 @link-click */
|
|
44
|
+
onClick?: (e: MouseEvent) => void;
|
|
45
|
+
}
|
|
46
|
+
export interface TitleItem {
|
|
47
|
+
/** 段标签,例如「收款合计:」(冒号由调用方带上) */
|
|
48
|
+
label: string;
|
|
49
|
+
/** 段数值,例如「80,000.00」;不传则只渲染标签 */
|
|
50
|
+
value?: string | number;
|
|
51
|
+
/** 数值颜色,传了覆盖默认的危险色(例如负数红 / 正数绿) */
|
|
52
|
+
valueColor?: string;
|
|
53
|
+
/** 段尾链接按钮 */
|
|
54
|
+
link?: TitleLink;
|
|
55
|
+
}
|
|
11
56
|
type __VLS_Props = {
|
|
12
57
|
/** 标题文字(也可以直接用默认插槽) */
|
|
13
58
|
label?: string;
|
|
59
|
+
/** 统计段列表;传了就用统计式排版,忽略 label / 默认插槽 */
|
|
60
|
+
items?: TitleItem[];
|
|
61
|
+
/** 行尾说明文字(灰字),例如「非实时数据,数据统计延迟约 5-10 分钟」 */
|
|
62
|
+
note?: string;
|
|
63
|
+
/** 行尾链接按钮组(在说明文字之后,多个之间 8px) */
|
|
64
|
+
links?: TitleLink[];
|
|
65
|
+
/** 是否显示左侧蓝条,默认 true */
|
|
66
|
+
showBar?: boolean;
|
|
14
67
|
};
|
|
15
68
|
declare function __VLS_template(): {
|
|
16
69
|
attrs: Partial<{}>;
|
|
17
70
|
slots: {
|
|
71
|
+
item?(_: {
|
|
72
|
+
item: TitleItem;
|
|
73
|
+
index: number;
|
|
74
|
+
}): any;
|
|
18
75
|
default?(_: {}): any;
|
|
76
|
+
note?(_: {}): any;
|
|
77
|
+
actions?(_: {}): any;
|
|
19
78
|
};
|
|
20
79
|
refs: {};
|
|
21
80
|
rootEl: HTMLDivElement;
|
|
22
81
|
};
|
|
23
82
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
24
|
-
declare const __VLS_component: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}
|
|
83
|
+
declare const __VLS_component: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
84
|
+
"link-click": (link: TitleLink, index: number) => any;
|
|
85
|
+
}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
86
|
+
"onLink-click"?: ((link: TitleLink, index: number) => any) | undefined;
|
|
87
|
+
}>, {
|
|
25
88
|
label: string;
|
|
89
|
+
items: TitleItem[];
|
|
90
|
+
note: string;
|
|
91
|
+
links: TitleLink[];
|
|
92
|
+
showBar: boolean;
|
|
26
93
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
27
94
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
28
95
|
export default _default;
|