erp-plus 1.0.134 → 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.
@@ -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, {}, string, PublicProps, Readonly<globalThis.ExtractPropTypes<{
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;
@@ -9,6 +9,7 @@ type __VLS_Props = {
9
9
  }>;
10
10
  min?: number;
11
11
  max?: number;
12
+ indeterminate?: boolean;
12
13
  };
13
14
  declare const _default: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
14
15
  change: (value: string | number | boolean | (string | number | boolean)[]) => any;
@@ -16,5 +17,8 @@ declare const _default: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOp
16
17
  }, string, PublicProps, Readonly<__VLS_Props> & Readonly<{
17
18
  onChange?: ((value: string | number | boolean | (string | number | boolean)[]) => any) | undefined;
18
19
  "onUpdate:modelValue"?: ((value: string | number | boolean | (string | number | boolean)[]) => any) | undefined;
19
- }>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
20
+ }>, {
21
+ disabled: boolean;
22
+ indeterminate: boolean;
23
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
20
24
  export default _default;
@@ -0,0 +1,44 @@
1
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
2
+ export interface DescriptionItem {
3
+ /** 唯一键,缺省用下标 */
4
+ key?: string | number;
5
+ /** 字段名(组件自动补「:」) */
6
+ label: string;
7
+ /** 字段值;用 #value 插槽时不传 */
8
+ value?: string | number;
9
+ }
10
+ type __VLS_Props = {
11
+ /** 分组标题(左侧带蓝色竖条);不传则不渲染标题区 */
12
+ title?: string;
13
+ /** 列数:'auto' 按容器宽度自适应(默认);传数字则固定列数 */
14
+ column?: number | 'auto';
15
+ /** 自适应时的单列最小宽度(px),决定「多宽开始多排一列」 */
16
+ minColumnWidth?: number;
17
+ /** 描述项 */
18
+ items?: DescriptionItem[];
19
+ };
20
+ declare function __VLS_template(): {
21
+ attrs: Partial<{}>;
22
+ slots: {
23
+ value?(_: {
24
+ item: DescriptionItem;
25
+ index: number;
26
+ }): any;
27
+ };
28
+ refs: {};
29
+ rootEl: HTMLDivElement;
30
+ };
31
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
32
+ declare const __VLS_component: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
33
+ title: string;
34
+ column: number | "auto";
35
+ items: DescriptionItem[];
36
+ minColumnWidth: number;
37
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
38
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
39
+ export default _default;
40
+ type __VLS_WithTemplateSlots<T, S> = T & {
41
+ new (): {
42
+ $slots: S;
43
+ };
44
+ };
@@ -0,0 +1,4 @@
1
+ import { Plugin } from 'vue';
2
+ import { default as Descriptions } from './Descriptions.vue';
3
+ declare const _default: typeof Descriptions & Plugin;
4
+ 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;
@@ -0,0 +1,4 @@
1
+ import { Plugin } from 'vue';
2
+ import { default as InputTag } from './InputTag.vue';
3
+ declare const _default: typeof InputTag & Plugin;
4
+ export default _default;
@@ -0,0 +1,183 @@
1
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions, ComponentInternalInstance, VNodeProps, AllowedComponentProps, ComponentCustomProps, ComponentOptionsBase, VNode, RendererNode, RendererElement, GlobalComponents, GlobalDirectives, DebuggerEvent, nextTick, WatchOptions, WatchStopHandle, ShallowUnwrapRef, ComponentCustomProperties } from 'vue';
2
+ import { OnCleanup } from '@vue/reactivity';
3
+ type TreeSelectValue = string | number | Array<string | number>;
4
+ type __VLS_Props = {
5
+ /** 选中值:单选为 label 对应的 node-key;多选为数组 */
6
+ modelValue?: TreeSelectValue;
7
+ /** 树数据 */
8
+ data?: Record<string, any>[];
9
+ /** 节点唯一标识字段(对应 el-tree 的 node-key) */
10
+ nodeKey?: string;
11
+ /** 字段映射:label / children / disabled */
12
+ config?: {
13
+ label?: string;
14
+ children?: string;
15
+ disabled?: string;
16
+ };
17
+ /** 是否多选(多选时显示复选框,父子联动) */
18
+ multiple?: boolean;
19
+ disabled?: boolean;
20
+ /** 是否可清空(默认 true,与 yw-select 一致) */
21
+ clearable?: boolean;
22
+ filterable?: boolean;
23
+ placeholder?: string;
24
+ /** 展开全部节点 */
25
+ defaultExpandAll?: boolean;
26
+ /** 默认展开的节点 key */
27
+ defaultExpandedKeys?: Array<string | number>;
28
+ /** 面板是否挂到 body(默认 true) */
29
+ teleported?: boolean;
30
+ /** 多选:折叠标签(超出部分显示 +N) */
31
+ collapseTags?: boolean;
32
+ /** 多选:hover「+N」浮出全部已选(与 yw-select 默认一致) */
33
+ collapseTagsTooltip?: boolean;
34
+ /** 多选:最多显示几个标签后折叠 */
35
+ maxCollapseTags?: number;
36
+ /** 每一级的缩进(设计稿 16px) */
37
+ indent?: number;
38
+ /** 标签类型,与 yw-select 的默认一致 */
39
+ tagType?: 'success' | 'info' | 'warning' | 'danger' | 'primary';
40
+ size?: 'large' | 'default' | 'small';
41
+ };
42
+ declare const _default: DefineComponent<__VLS_Props, {
43
+ /** 让输入框获得焦点并展开面板 */
44
+ focus: () => any;
45
+ /** 收起面板 */
46
+ blur: () => any;
47
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
48
+ change: (...args: any[]) => void;
49
+ clear: (...args: any[]) => void;
50
+ "update:modelValue": (...args: any[]) => void;
51
+ "visible-change": (...args: any[]) => void;
52
+ "remove-tag": (...args: any[]) => void;
53
+ }, string, PublicProps, Readonly<__VLS_Props> & Readonly<{
54
+ onChange?: ((...args: any[]) => any) | undefined;
55
+ onClear?: ((...args: any[]) => any) | undefined;
56
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
57
+ "onVisible-change"?: ((...args: any[]) => any) | undefined;
58
+ "onRemove-tag"?: ((...args: any[]) => any) | undefined;
59
+ }>, {
60
+ size: "large" | "default" | "small";
61
+ data: Record<string, any>[];
62
+ disabled: boolean;
63
+ modelValue: TreeSelectValue;
64
+ placeholder: string;
65
+ teleported: boolean;
66
+ defaultExpandAll: boolean;
67
+ indent: number;
68
+ nodeKey: string;
69
+ defaultExpandedKeys: Array<string | number>;
70
+ clearable: boolean;
71
+ filterable: boolean;
72
+ multiple: boolean;
73
+ collapseTags: boolean;
74
+ collapseTagsTooltip: boolean;
75
+ maxCollapseTags: number;
76
+ tagType: "success" | "info" | "warning" | "danger" | "primary";
77
+ config: {
78
+ label?: string;
79
+ children?: string;
80
+ disabled?: string;
81
+ };
82
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {
83
+ treeSelectRef: ({
84
+ $: ComponentInternalInstance;
85
+ $data: {};
86
+ $props: Partial<{} | {
87
+ [x: string]: any;
88
+ }> & Omit<{
89
+ readonly [x: string]: any;
90
+ } & VNodeProps & AllowedComponentProps & ComponentCustomProps, never>;
91
+ $attrs: {
92
+ [x: string]: unknown;
93
+ };
94
+ $refs: {
95
+ [x: string]: unknown;
96
+ };
97
+ $slots: Readonly<{
98
+ [name: string]: globalThis.Slot | undefined;
99
+ }>;
100
+ $root: ComponentPublicInstance | null;
101
+ $parent: ComponentPublicInstance | null;
102
+ $host: Element | null;
103
+ $emit: (event: string, ...args: any[]) => void;
104
+ $el: any;
105
+ $options: ComponentOptionsBase<Readonly<any>, () => VNode<RendererNode, RendererElement, {
106
+ [key: string]: any;
107
+ }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, Record<string, any>, string, {} | {
108
+ [x: string]: any;
109
+ }, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & {
110
+ beforeCreate?: (() => void) | (() => void)[];
111
+ created?: (() => void) | (() => void)[];
112
+ beforeMount?: (() => void) | (() => void)[];
113
+ mounted?: (() => void) | (() => void)[];
114
+ beforeUpdate?: (() => void) | (() => void)[];
115
+ updated?: (() => void) | (() => void)[];
116
+ activated?: (() => void) | (() => void)[];
117
+ deactivated?: (() => void) | (() => void)[];
118
+ beforeDestroy?: (() => void) | (() => void)[];
119
+ beforeUnmount?: (() => void) | (() => void)[];
120
+ destroyed?: (() => void) | (() => void)[];
121
+ unmounted?: (() => void) | (() => void)[];
122
+ renderTracked?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
123
+ renderTriggered?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
124
+ errorCaptured?: ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void)[];
125
+ };
126
+ $forceUpdate: () => void;
127
+ $nextTick: nextTick;
128
+ $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, OnCleanup]) => any : (...args: [any, any, OnCleanup]) => any, options?: WatchOptions): WatchStopHandle;
129
+ } & Readonly<{}> & Omit<Readonly<any>, never> & ShallowUnwrapRef<() => VNode<RendererNode, RendererElement, {
130
+ [key: string]: any;
131
+ }>> & {} & ComponentCustomProperties & {}) | ({
132
+ $: ComponentInternalInstance;
133
+ $data: {};
134
+ $props: Partial<{} | {
135
+ [x: string]: any;
136
+ }> & Omit<{
137
+ readonly [x: string]: any;
138
+ } & VNodeProps & AllowedComponentProps & ComponentCustomProps, never>;
139
+ $attrs: {
140
+ [x: string]: unknown;
141
+ };
142
+ $refs: {
143
+ [x: string]: unknown;
144
+ };
145
+ $slots: Readonly<{
146
+ [name: string]: globalThis.Slot | undefined;
147
+ }>;
148
+ $root: ComponentPublicInstance | null;
149
+ $parent: ComponentPublicInstance | null;
150
+ $host: Element | null;
151
+ $emit: (event: string, ...args: any[]) => void;
152
+ $el: any;
153
+ $options: ComponentOptionsBase<Readonly<any>, () => VNode<RendererNode, RendererElement, {
154
+ [key: string]: any;
155
+ }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, Record<string, any>, string, {} | {
156
+ [x: string]: any;
157
+ }, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & {
158
+ beforeCreate?: (() => void) | (() => void)[];
159
+ created?: (() => void) | (() => void)[];
160
+ beforeMount?: (() => void) | (() => void)[];
161
+ mounted?: (() => void) | (() => void)[];
162
+ beforeUpdate?: (() => void) | (() => void)[];
163
+ updated?: (() => void) | (() => void)[];
164
+ activated?: (() => void) | (() => void)[];
165
+ deactivated?: (() => void) | (() => void)[];
166
+ beforeDestroy?: (() => void) | (() => void)[];
167
+ beforeUnmount?: (() => void) | (() => void)[];
168
+ destroyed?: (() => void) | (() => void)[];
169
+ unmounted?: (() => void) | (() => void)[];
170
+ renderTracked?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
171
+ renderTriggered?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
172
+ errorCaptured?: ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void)[];
173
+ };
174
+ $forceUpdate: () => void;
175
+ $nextTick: nextTick;
176
+ $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, OnCleanup]) => any : (...args: [any, any, OnCleanup]) => any, options?: WatchOptions): WatchStopHandle;
177
+ } & Readonly<{
178
+ [x: string]: any;
179
+ }> & Omit<Readonly<any>, never> & ShallowUnwrapRef<() => VNode<RendererNode, RendererElement, {
180
+ [key: string]: any;
181
+ }>> & {} & ComponentCustomProperties & {}) | null;
182
+ }, any>;
183
+ export default _default;
@@ -1,4 +1,6 @@
1
1
  import { Plugin } from 'vue';
2
2
  import { default as Select } from './Select.vue';
3
+ import { default as TreeSelect } from './TreeSelect.vue';
4
+ export { Select, TreeSelect };
3
5
  declare const _default: typeof Select & Plugin;
4
6
  export default _default;
@@ -0,0 +1,16 @@
1
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
2
+ /**
3
+ * 步骤条(只负责展示,不接收点击)
4
+ * modelValue = 「进行中」那一步的下标(0 起);等于 options.length 表示全部完成。
5
+ */
6
+ type __VLS_Props = {
7
+ modelValue?: number;
8
+ options: Array<{
9
+ label: string;
10
+ description?: string;
11
+ }>;
12
+ };
13
+ declare const _default: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
14
+ modelValue: number;
15
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
16
+ export default _default;
@@ -0,0 +1,4 @@
1
+ import { Plugin } from 'vue';
2
+ import { default as Steps } from './Steps.vue';
3
+ declare const _default: typeof Steps & Plugin;
4
+ export default _default;
@@ -0,0 +1,36 @@
1
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
2
+ type __VLS_Props = {
3
+ /** 是否打开 */
4
+ modelValue?: boolean;
5
+ /** 禁用 */
6
+ disabled?: boolean;
7
+ /** 文字(也可以直接用默认插槽) */
8
+ label?: string;
9
+ };
10
+ declare function __VLS_template(): {
11
+ attrs: Partial<{}>;
12
+ slots: {
13
+ default?(_: {}): any;
14
+ };
15
+ refs: {};
16
+ rootEl: HTMLLabelElement;
17
+ };
18
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
19
+ declare const __VLS_component: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
20
+ change: (value: boolean) => any;
21
+ "update:modelValue": (value: boolean) => any;
22
+ }, string, PublicProps, Readonly<__VLS_Props> & Readonly<{
23
+ onChange?: ((value: boolean) => any) | undefined;
24
+ "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
25
+ }>, {
26
+ label: string;
27
+ disabled: boolean;
28
+ modelValue: boolean;
29
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLLabelElement>;
30
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
31
+ export default _default;
32
+ type __VLS_WithTemplateSlots<T, S> = T & {
33
+ new (): {
34
+ $slots: S;
35
+ };
36
+ };
@@ -0,0 +1,4 @@
1
+ import { Plugin } from 'vue';
2
+ import { default as Switch } from './Switch.vue';
3
+ declare const _default: typeof Switch & Plugin;
4
+ export default _default;
@@ -0,0 +1,19 @@
1
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
2
+ type __VLS_Props = {
3
+ modelValue?: string | number | boolean;
4
+ options: Array<{
5
+ label: string;
6
+ value: string | number | boolean;
7
+ disabled?: boolean;
8
+ }>;
9
+ };
10
+ declare const _default: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
11
+ change: (value: string | number | boolean) => any;
12
+ "update:modelValue": (value: string | number | boolean) => any;
13
+ }, string, PublicProps, Readonly<__VLS_Props> & Readonly<{
14
+ onChange?: ((value: string | number | boolean) => any) | undefined;
15
+ "onUpdate:modelValue"?: ((value: string | number | boolean) => any) | undefined;
16
+ }>, {
17
+ modelValue: string | number | boolean;
18
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
19
+ export default _default;
@@ -0,0 +1,19 @@
1
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
2
+ type __VLS_Props = {
3
+ modelValue?: string | number | boolean;
4
+ options: Array<{
5
+ label: string;
6
+ value: string | number | boolean;
7
+ disabled?: boolean;
8
+ }>;
9
+ };
10
+ declare const _default: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
11
+ change: (value: string | number | boolean) => any;
12
+ "update:modelValue": (value: string | number | boolean) => any;
13
+ }, string, PublicProps, Readonly<__VLS_Props> & Readonly<{
14
+ onChange?: ((value: string | number | boolean) => any) | undefined;
15
+ "onUpdate:modelValue"?: ((value: string | number | boolean) => any) | undefined;
16
+ }>, {
17
+ modelValue: string | number | boolean;
18
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
19
+ export default _default;
@@ -0,0 +1,12 @@
1
+ import { Plugin } from 'vue';
2
+ import { default as Tabs } from './Tabs.vue';
3
+ import { default as GridTabs } from './GridTabs.vue';
4
+ /**
5
+ * 一个文件夹里有两个组件,而 src/index.ts 的 glob 只取 `index` 的 default 导出,
6
+ * 所以这里:① 每个组件各自带 install(可单独注册 / 按需引入);
7
+ * ② default 导出一个插件,一次把两个组件都注册上。
8
+ */
9
+ export declare const YwTabs: typeof Tabs & Plugin;
10
+ export declare const YwGridTabs: typeof GridTabs & Plugin;
11
+ declare const TabsPlugin: Plugin;
12
+ export default TabsPlugin;
@@ -0,0 +1,42 @@
1
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
2
+ type TagType = 'info' | 'success' | 'primary' | 'warning' | 'danger' | 'gold' | 'dark';
3
+ type TagVariant = 'filled' | 'dot' | 'outline' | 'solid';
4
+ type TagShape = 'rect' | 'flag';
5
+ type __VLS_Props = {
6
+ /** 语义色:info 灰 / success 绿 / primary 蓝 / warning 橙 / danger 红 / gold 黄 / dark 深棕黑 */
7
+ type?: TagType;
8
+ /** 形态:filled 浅底色块(默认)/ dot 圆点 / outline 描边 / solid 实底 */
9
+ variant?: TagVariant;
10
+ /** 紧凑:实底的左右内边距取 4(默认 8),两字业务标记用(实物 / 增值 / 套餐 …) */
11
+ dense?: boolean;
12
+ /** 固定正方形:宽 = 高(单字徽标用,如「串」「退」) */
13
+ square?: boolean;
14
+ /** 形状:rect 直角圆角(默认)/ flag 斜角(右上、左下 8px 大圆角) */
15
+ shape?: TagShape;
16
+ /** 文字(也可以直接用默认插槽) */
17
+ label?: string;
18
+ };
19
+ declare function __VLS_template(): {
20
+ attrs: Partial<{}>;
21
+ slots: {
22
+ default?(_: {}): any;
23
+ };
24
+ refs: {};
25
+ rootEl: HTMLSpanElement;
26
+ };
27
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
28
+ declare const __VLS_component: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
29
+ type: TagType;
30
+ label: string;
31
+ square: boolean;
32
+ shape: TagShape;
33
+ variant: TagVariant;
34
+ dense: boolean;
35
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLSpanElement>;
36
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
37
+ export default _default;
38
+ type __VLS_WithTemplateSlots<T, S> = T & {
39
+ new (): {
40
+ $slots: S;
41
+ };
42
+ };
@@ -0,0 +1,4 @@
1
+ import { Plugin } from 'vue';
2
+ import { default as Tag } from './Tag.vue';
3
+ declare const _default: typeof Tag & Plugin;
4
+ export default _default;
@@ -0,0 +1,50 @@
1
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
2
+ export type TimelineStatus = 'done' | 'current' | 'waiting' | 'rejected';
3
+ export interface TimelineItem {
4
+ /** 唯一键,缺省用下标 */
5
+ key?: string | number;
6
+ /** 标题(如「商家提交申请」) */
7
+ title: string;
8
+ /** 状态:done 完成 / current 进行中 / waiting 等待中 / rejected 已拒绝,缺省 waiting */
9
+ status?: TimelineStatus;
10
+ /** 时间;等待态可直接放「等待中...」这类状态文案 */
11
+ time?: string;
12
+ /** 审批人,渲染为「审批人:xxx」;不要就不传 */
13
+ approver?: string;
14
+ /** 审批意见,渲染为「审批意见:xxx」;不要就不传 */
15
+ opinion?: string;
16
+ /** 其它自定义说明行(每项一行灰字),审批人与审批意见之外的补充 */
17
+ extra?: string[];
18
+ /** 异常原因,红色文字(如「拒绝原因:…」) */
19
+ reason?: string;
20
+ /** 自定义节点图标:src/assets 下的图标名(不带 .svg) */
21
+ icon?: string;
22
+ /** 自定义节点图标颜色(任意 CSS 颜色),缺省按状态取 token */
23
+ color?: string;
24
+ }
25
+ type __VLS_Props = {
26
+ /** 时间轴条目(自上而下) */
27
+ items?: TimelineItem[];
28
+ };
29
+ declare function __VLS_template(): {
30
+ attrs: Partial<{}>;
31
+ slots: {
32
+ node?(_: {
33
+ item: TimelineItem;
34
+ index: number;
35
+ }): any;
36
+ };
37
+ refs: {};
38
+ rootEl: HTMLOListElement;
39
+ };
40
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
41
+ declare const __VLS_component: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
42
+ items: TimelineItem[];
43
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLOListElement>;
44
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
45
+ export default _default;
46
+ type __VLS_WithTemplateSlots<T, S> = T & {
47
+ new (): {
48
+ $slots: S;
49
+ };
50
+ };
@@ -0,0 +1,4 @@
1
+ import { Plugin } from 'vue';
2
+ import { default as Timeline } from './Timeline.vue';
3
+ declare const _default: typeof Timeline & Plugin;
4
+ export default _default;
@@ -0,0 +1,33 @@
1
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
2
+ /**
3
+ * 标题(左侧蓝色竖条 + 文字)
4
+ *
5
+ * 从 Descriptions 的分组标题里拆出来的独立组件,样式与那里完全一致:
6
+ * - 蓝条 4×12(两档相同),圆角 2px(= 宽度一半,两端半圆)
7
+ * - 蓝条到文字 8px
8
+ * - 文字 500、#1A1A1A;字号默认档 14 / 稍小档 12
9
+ * - 组件不带外边距,与下方内容的间距由使用方给
10
+ */
11
+ type __VLS_Props = {
12
+ /** 标题文字(也可以直接用默认插槽) */
13
+ label?: string;
14
+ };
15
+ declare function __VLS_template(): {
16
+ attrs: Partial<{}>;
17
+ slots: {
18
+ default?(_: {}): any;
19
+ };
20
+ refs: {};
21
+ rootEl: HTMLDivElement;
22
+ };
23
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
24
+ declare const __VLS_component: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
25
+ label: string;
26
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
27
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
28
+ export default _default;
29
+ type __VLS_WithTemplateSlots<T, S> = T & {
30
+ new (): {
31
+ $slots: S;
32
+ };
33
+ };