@aspire-ui/element-component-pro 1.0.16 → 1.0.18

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/README.md CHANGED
@@ -14,6 +14,7 @@
14
14
  |------|------|
15
15
  | ProTable | 增强表格,集成搜索、工具栏、分页 |
16
16
  | ProTableForm | 对比表表单:固定行 + 友商动态行,指标列可千分位 |
17
+ | CollapseContainer | Vben 风格折叠容器,适合收纳查询区和内容面板 |
17
18
  | ProForm | Schema 驱动的表单,支持栅格布局 |
18
19
  | FormattedNumberInput | 千分位数字输入(`component: 'formatted-number'` 所用组件,可单独按需引入) |
19
20
  | ProCard | 卡片容器 |
@@ -0,0 +1,101 @@
1
+ interface CollapseContainerProps {
2
+ title?: string;
3
+ loading?: boolean;
4
+ canExpan?: boolean;
5
+ canExpand?: boolean;
6
+ helpMessage?: string | string[];
7
+ triggerWindowResize?: boolean;
8
+ expanded?: boolean;
9
+ defaultExpand?: boolean;
10
+ ghost?: boolean;
11
+ expandButtonText?: string;
12
+ collapseButtonText?: string;
13
+ wrapperProps?: Record<string, unknown>;
14
+ headerClass?: string;
15
+ headerStyle?: Record<string, string | number>;
16
+ contentClass?: string;
17
+ contentStyle?: Record<string, string | number>;
18
+ }
19
+ declare function __VLS_template(): {
20
+ title?(_: {}): any;
21
+ action?(_: {}): any;
22
+ default?(_: {}): any;
23
+ };
24
+ declare const __VLS_component: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<CollapseContainerProps>, {
25
+ loading: boolean;
26
+ canExpan: boolean;
27
+ canExpand: undefined;
28
+ triggerWindowResize: boolean;
29
+ expanded: undefined;
30
+ defaultExpand: boolean;
31
+ ghost: boolean;
32
+ expandButtonText: string;
33
+ collapseButtonText: string;
34
+ wrapperProps: () => {};
35
+ headerClass: string;
36
+ headerStyle: () => {};
37
+ contentClass: string;
38
+ contentStyle: () => {};
39
+ }>, {
40
+ setExpanded: (value: boolean) => void;
41
+ toggleExpand: () => void;
42
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
43
+ "update:expanded": (value: boolean) => void;
44
+ change: (value: boolean) => void;
45
+ collapse: () => void;
46
+ expand: () => void;
47
+ }, string, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<CollapseContainerProps>, {
48
+ loading: boolean;
49
+ canExpan: boolean;
50
+ canExpand: undefined;
51
+ triggerWindowResize: boolean;
52
+ expanded: undefined;
53
+ defaultExpand: boolean;
54
+ ghost: boolean;
55
+ expandButtonText: string;
56
+ collapseButtonText: string;
57
+ wrapperProps: () => {};
58
+ headerClass: string;
59
+ headerStyle: () => {};
60
+ contentClass: string;
61
+ contentStyle: () => {};
62
+ }>>>, {
63
+ loading: boolean;
64
+ canExpan: boolean;
65
+ canExpand: boolean;
66
+ triggerWindowResize: boolean;
67
+ expanded: boolean;
68
+ defaultExpand: boolean;
69
+ ghost: boolean;
70
+ expandButtonText: string;
71
+ collapseButtonText: string;
72
+ wrapperProps: Record<string, unknown>;
73
+ headerClass: string;
74
+ headerStyle: Record<string, string | number>;
75
+ contentClass: string;
76
+ contentStyle: Record<string, string | number>;
77
+ }>;
78
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
79
+ export default _default;
80
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
81
+ type __VLS_TypePropsToRuntimeProps<T> = {
82
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
83
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
84
+ } : {
85
+ type: import('vue').PropType<T[K]>;
86
+ required: true;
87
+ };
88
+ };
89
+ type __VLS_WithDefaults<P, D> = {
90
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
91
+ default: D[K];
92
+ }> : P[K];
93
+ };
94
+ type __VLS_Prettify<T> = {
95
+ [K in keyof T]: T[K];
96
+ } & {};
97
+ type __VLS_WithTemplateSlots<T, S> = T & {
98
+ new (): {
99
+ $scopedSlots: S;
100
+ };
101
+ };
@@ -0,0 +1,4 @@
1
+ import { default as CollapseContainer } from './CollapseContainer.vue';
2
+
3
+ export { CollapseContainer };
4
+ export default CollapseContainer;
@@ -94,11 +94,11 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_WithDefaults<
94
94
  visibleRows: number;
95
95
  };
96
96
  }>>>, {
97
+ data: Record<string, unknown>;
97
98
  size: "medium" | "small";
98
99
  bordered: boolean;
99
100
  column: DescriptionColumn;
100
101
  schema: DescriptionSchema[];
101
- data: Record<string, unknown>;
102
102
  emptyText: string;
103
103
  useCollapse: boolean;
104
104
  collapseOptions: {
@@ -118,7 +118,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_WithDefaults<
118
118
  setFieldsValue: (values: Record<string, unknown>) => Promise<void>;
119
119
  resetFields: () => Promise<void>;
120
120
  validate: (nameList?: string[]) => Promise<unknown>;
121
- validateFields: (nameList? /** 自定义组件映射(组件名 -> 组件),供 schema.component 使用 */: string[]) => Promise<unknown>;
121
+ validateFields: (nameList?: string[]) => Promise<unknown>;
122
122
  submit: () => Promise<void>;
123
123
  scrollToField: (name: string, options?: ScrollToFieldOptions) => Promise<void>;
124
124
  clearValidate: (name?: string | string[]) => void;
@@ -376,9 +376,9 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_WithDefaults<
376
376
  };
377
377
  immediate: boolean;
378
378
  }>>>, {
379
+ loading: boolean;
379
380
  size: "medium" | "small" | "large";
380
381
  bordered: boolean;
381
- loading: boolean;
382
382
  immediate: boolean;
383
383
  rowKey: string;
384
384
  striped: boolean;