erp-plus 1.0.135 → 1.0.136
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 +1335 -1221
- package/dist/erp-plus.umd.js +33 -33
- package/dist/packages/Card/Card.vue.d.ts +45 -3
- package/dist/packages/InputNumber/InputNumber.vue.d.ts +3 -0
- package/dist/packages/InputTag/InputTag.vue.d.ts +30 -0
- package/dist/packages/InputTag/index.d.ts +4 -0
- package/package.json +1 -1
|
@@ -1,4 +1,20 @@
|
|
|
1
|
-
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
1
|
+
import { PropType, DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
2
|
+
/**
|
|
3
|
+
* 卡片
|
|
4
|
+
*
|
|
5
|
+
* 三种类型(2026-10-23 新增后两种,尺寸按稍小档设计稿 2 倍图反推):
|
|
6
|
+
* - default:老样式,只有标题,右侧不预置任何东西
|
|
7
|
+
* - form :新增/编辑页用,标题在左,右侧操作按钮放在 #btns 插槽(取消/提交…)
|
|
8
|
+
* - detail :详情页用,标题前多一个返回箭头,点箭头 emit('back')
|
|
9
|
+
*
|
|
10
|
+
* 两种新类型的头部几何与老卡片完全一致(头部高度不因按钮变高):
|
|
11
|
+
* - 标题 14(默认档 16)/ 500(稍小档 600),与老卡片同一套档位规则
|
|
12
|
+
* - 头部内边距:默认档上下 16 / 左右 20,稍小档四边 12
|
|
13
|
+
* - 头部下分隔线 1px,颜色 #E5E5EB(与卡片边框统一)
|
|
14
|
+
* - 右侧按钮之间 8px(设计稿实测 8.5)
|
|
15
|
+
* - 返回箭头用 assets 的 20_20_arrow-left.svg,20×20,颜色 #1A1A1A,与标题 8px
|
|
16
|
+
*/
|
|
17
|
+
type CardType = 'default' | 'form' | 'detail';
|
|
2
18
|
declare function __VLS_template(): any;
|
|
3
19
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
4
20
|
declare const __VLS_component: DefineComponent<globalThis.ExtractPropTypes<{
|
|
@@ -6,6 +22,16 @@ declare const __VLS_component: DefineComponent<globalThis.ExtractPropTypes<{
|
|
|
6
22
|
type: StringConstructor;
|
|
7
23
|
default: string;
|
|
8
24
|
};
|
|
25
|
+
/** 卡片类型:default 普通 / form 新增编辑 / detail 详情(带返回箭头) */
|
|
26
|
+
type: {
|
|
27
|
+
type: PropType<CardType>;
|
|
28
|
+
default: string;
|
|
29
|
+
};
|
|
30
|
+
/** 详情类型是否显示返回箭头,默认显示 */
|
|
31
|
+
showBack: {
|
|
32
|
+
type: BooleanConstructor;
|
|
33
|
+
default: boolean;
|
|
34
|
+
};
|
|
9
35
|
headerClass: {
|
|
10
36
|
type: StringConstructor;
|
|
11
37
|
};
|
|
@@ -15,11 +41,23 @@ declare const __VLS_component: DefineComponent<globalThis.ExtractPropTypes<{
|
|
|
15
41
|
footerClass: {
|
|
16
42
|
type: StringConstructor;
|
|
17
43
|
};
|
|
18
|
-
}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}
|
|
44
|
+
}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
45
|
+
back: () => any;
|
|
46
|
+
}, string, PublicProps, Readonly<globalThis.ExtractPropTypes<{
|
|
19
47
|
title: {
|
|
20
48
|
type: StringConstructor;
|
|
21
49
|
default: string;
|
|
22
50
|
};
|
|
51
|
+
/** 卡片类型:default 普通 / form 新增编辑 / detail 详情(带返回箭头) */
|
|
52
|
+
type: {
|
|
53
|
+
type: PropType<CardType>;
|
|
54
|
+
default: string;
|
|
55
|
+
};
|
|
56
|
+
/** 详情类型是否显示返回箭头,默认显示 */
|
|
57
|
+
showBack: {
|
|
58
|
+
type: BooleanConstructor;
|
|
59
|
+
default: boolean;
|
|
60
|
+
};
|
|
23
61
|
headerClass: {
|
|
24
62
|
type: StringConstructor;
|
|
25
63
|
};
|
|
@@ -29,8 +67,12 @@ declare const __VLS_component: DefineComponent<globalThis.ExtractPropTypes<{
|
|
|
29
67
|
footerClass: {
|
|
30
68
|
type: StringConstructor;
|
|
31
69
|
};
|
|
32
|
-
}>> & Readonly<{
|
|
70
|
+
}>> & Readonly<{
|
|
71
|
+
onBack?: (() => any) | undefined;
|
|
72
|
+
}>, {
|
|
73
|
+
type: CardType;
|
|
33
74
|
title: string;
|
|
75
|
+
showBack: boolean;
|
|
34
76
|
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
35
77
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
36
78
|
export default _default;
|
|
@@ -73,6 +73,7 @@ declare const _default: DefineComponent<globalThis.ExtractPropTypes<{
|
|
|
73
73
|
};
|
|
74
74
|
align: {
|
|
75
75
|
type: PropType<align>;
|
|
76
|
+
default: string;
|
|
76
77
|
};
|
|
77
78
|
disabledScientific: {
|
|
78
79
|
type: BooleanConstructor;
|
|
@@ -150,6 +151,7 @@ declare const _default: DefineComponent<globalThis.ExtractPropTypes<{
|
|
|
150
151
|
};
|
|
151
152
|
align: {
|
|
152
153
|
type: PropType<align>;
|
|
154
|
+
default: string;
|
|
153
155
|
};
|
|
154
156
|
disabledScientific: {
|
|
155
157
|
type: BooleanConstructor;
|
|
@@ -162,6 +164,7 @@ declare const _default: DefineComponent<globalThis.ExtractPropTypes<{
|
|
|
162
164
|
readonly: boolean;
|
|
163
165
|
disabled: boolean;
|
|
164
166
|
modelValue: number | null | undefined;
|
|
167
|
+
align: align;
|
|
165
168
|
min: number;
|
|
166
169
|
max: number;
|
|
167
170
|
step: number;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
/** 已添加的标签列表(v-model) */
|
|
4
|
+
modelValue?: string[];
|
|
5
|
+
/** 输入框占位文字 */
|
|
6
|
+
placeholder?: string;
|
|
7
|
+
/** 按钮文字 */
|
|
8
|
+
addText?: string;
|
|
9
|
+
/** 单个标签的最大长度(透传给原生 input) */
|
|
10
|
+
maxlength?: number;
|
|
11
|
+
};
|
|
12
|
+
declare const _default: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
13
|
+
remove: (value: string, index: number, list: string[]) => any;
|
|
14
|
+
change: (list: string[]) => any;
|
|
15
|
+
add: (value: string, list: string[]) => any;
|
|
16
|
+
"update:modelValue": (value: string[]) => any;
|
|
17
|
+
}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
18
|
+
onRemove?: ((value: string, index: number, list: string[]) => any) | undefined;
|
|
19
|
+
onChange?: ((list: string[]) => any) | undefined;
|
|
20
|
+
onAdd?: ((value: string, list: string[]) => any) | undefined;
|
|
21
|
+
"onUpdate:modelValue"?: ((value: string[]) => any) | undefined;
|
|
22
|
+
}>, {
|
|
23
|
+
modelValue: string[];
|
|
24
|
+
placeholder: string;
|
|
25
|
+
maxlength: number;
|
|
26
|
+
addText: string;
|
|
27
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
28
|
+
inputRef: HTMLInputElement;
|
|
29
|
+
}, HTMLDivElement>;
|
|
30
|
+
export default _default;
|