@a2simcode/ui 0.0.58 → 0.0.60
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/components/index.d.ts +1 -0
- package/dist/components/table/index.d.ts +7 -6
- package/dist/components/table/src/interface.d.ts +7 -5
- package/dist/simcode-ui.es.js +659 -656
- package/dist/simcode-ui.umd.js +2 -2
- package/dist/stats.html +1 -1
- package/docs/examples/form/basic.vue +150 -2
- package/package.json +1 -1
|
@@ -91,6 +91,7 @@ export type { SchemaConfig } from './comp/src/interface';
|
|
|
91
91
|
export type { FormSchemaConfig, RuleType } from './form/src/interface';
|
|
92
92
|
export type { PageSchemaConfig } from './page/src/interface';
|
|
93
93
|
export type { ColumnSchemaConfig } from './table/src/interface';
|
|
94
|
+
export type { TableColumnCompConfig } from './table/src/interface';
|
|
94
95
|
export { useLayer } from './dynamic-layer';
|
|
95
96
|
export * from './inject-provide';
|
|
96
97
|
declare const _default: {
|
|
@@ -9,7 +9,7 @@ declare const JTable: {
|
|
|
9
9
|
default: () => never[];
|
|
10
10
|
};
|
|
11
11
|
columns: {
|
|
12
|
-
type: import('vue').PropType<import('
|
|
12
|
+
type: import('vue').PropType<import('.').ColumnSchemaConfig[]>;
|
|
13
13
|
required: true;
|
|
14
14
|
default: () => never[];
|
|
15
15
|
};
|
|
@@ -137,7 +137,7 @@ declare const JTable: {
|
|
|
137
137
|
}, import('vue').PublicProps, {
|
|
138
138
|
id: string;
|
|
139
139
|
modelValue: Record<string, any>[];
|
|
140
|
-
columns: import('
|
|
140
|
+
columns: import('.').ColumnSchemaConfig[];
|
|
141
141
|
records: Record<string, any>[];
|
|
142
142
|
isTree: boolean;
|
|
143
143
|
isShowNumber: boolean;
|
|
@@ -176,7 +176,7 @@ declare const JTable: {
|
|
|
176
176
|
default: () => never[];
|
|
177
177
|
};
|
|
178
178
|
columns: {
|
|
179
|
-
type: import('vue').PropType<import('
|
|
179
|
+
type: import('vue').PropType<import('.').ColumnSchemaConfig[]>;
|
|
180
180
|
required: true;
|
|
181
181
|
default: () => never[];
|
|
182
182
|
};
|
|
@@ -285,7 +285,7 @@ declare const JTable: {
|
|
|
285
285
|
}, {}, {}, {}, {
|
|
286
286
|
id: string;
|
|
287
287
|
modelValue: Record<string, any>[];
|
|
288
|
-
columns: import('
|
|
288
|
+
columns: import('.').ColumnSchemaConfig[];
|
|
289
289
|
records: Record<string, any>[];
|
|
290
290
|
isTree: boolean;
|
|
291
291
|
isShowNumber: boolean;
|
|
@@ -319,7 +319,7 @@ declare const JTable: {
|
|
|
319
319
|
default: () => never[];
|
|
320
320
|
};
|
|
321
321
|
columns: {
|
|
322
|
-
type: import('vue').PropType<import('
|
|
322
|
+
type: import('vue').PropType<import('.').ColumnSchemaConfig[]>;
|
|
323
323
|
required: true;
|
|
324
324
|
default: () => never[];
|
|
325
325
|
};
|
|
@@ -447,7 +447,7 @@ declare const JTable: {
|
|
|
447
447
|
}, string, {
|
|
448
448
|
id: string;
|
|
449
449
|
modelValue: Record<string, any>[];
|
|
450
|
-
columns: import('
|
|
450
|
+
columns: import('.').ColumnSchemaConfig[];
|
|
451
451
|
records: Record<string, any>[];
|
|
452
452
|
isTree: boolean;
|
|
453
453
|
isShowNumber: boolean;
|
|
@@ -471,4 +471,5 @@ declare const JTable: {
|
|
|
471
471
|
install: (app: import('vue').App) => void;
|
|
472
472
|
};
|
|
473
473
|
export * from './src/table.vue';
|
|
474
|
+
export * from './src/interface';
|
|
474
475
|
export default JTable;
|
|
@@ -1,9 +1,5 @@
|
|
|
1
1
|
import { BaseSchemaConfig, BaseCompConfig } from '../../comp/src/interface';
|
|
2
2
|
export interface TableColumnConfig {
|
|
3
|
-
/**
|
|
4
|
-
* @zh 列的标题
|
|
5
|
-
*/
|
|
6
|
-
label: string;
|
|
7
3
|
/**
|
|
8
4
|
* @zh 列的宽度
|
|
9
5
|
*/
|
|
@@ -57,6 +53,7 @@ export interface TableColumnConfig {
|
|
|
57
53
|
*/
|
|
58
54
|
frozen?: 'left' | 'right';
|
|
59
55
|
}
|
|
56
|
+
export type TableColumnCompConfig = TableColumnConfig & BaseCompConfig;
|
|
60
57
|
export interface TableColumnFilter {
|
|
61
58
|
/**
|
|
62
59
|
* @zh 是否是搜索关键字
|
|
@@ -81,7 +78,12 @@ export interface ColumnSchemaConfig extends BaseSchemaConfig {
|
|
|
81
78
|
/**
|
|
82
79
|
* @zh 列配置
|
|
83
80
|
*/
|
|
84
|
-
config:
|
|
81
|
+
config: TableColumnCompConfig & {
|
|
82
|
+
/**
|
|
83
|
+
* @zh 列的标题
|
|
84
|
+
*/
|
|
85
|
+
label: string;
|
|
86
|
+
};
|
|
85
87
|
/**
|
|
86
88
|
* @zh 子集
|
|
87
89
|
*/
|