ra-element 0.1.96 → 0.1.99
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/docs/ra-date-picker.md +4 -4
- package/docs/ra-form.md +0 -1
- package/docs/ra-select.md +2 -2
- package/docs/ra-tree-select.md +7 -1
- package/docs/ra-upload.md +3 -1
- package/lib/components/ra-date-picker/index.vue.d.ts +9 -6
- package/lib/components/ra-form/index.vue.d.ts +8 -8
- package/lib/components/ra-table/component/top-module.vue.d.ts +6 -8
- package/lib/components/ra-tree-select/index.vue.d.ts +630 -55
- package/lib/components/ra-upload/index.vue.d.ts +400 -1
- package/lib/ra-element.css +1 -1
- package/lib/ra-element.es.js +1345 -1296
- package/lib/ra-element.es.js.map +1 -1
- package/lib/ra-element.umd.js +1 -1
- package/lib/ra-element.umd.js.map +1 -1
- package/package.json +1 -1
- package/lib/components/ra-select/type.d.ts +0 -5
- package/lib/components/ra-tree-select/type.d.ts +0 -5
package/docs/ra-date-picker.md
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
| name | type | desc | default | required |
|
|
6
6
|
| ---- | ---- | ---- | ------- | -------- |
|
|
7
|
-
| type | String as () => 'year' \| 'years' | 'month' | 'months' | 'date' | 'dates' | 'datetime' | 'week' | 'datetimerange' | 'daterange' | 'monthrange' | 'yearrange' | 默认为
|
|
8
|
-
| valueFormat | String | 可不传,会根据
|
|
9
|
-
| shortcuts | Array<{ text: string; value: Date \| (() => [Date, Date]) }> | 可不传,会根据
|
|
10
|
-
| cssStyle | String | 样式属性,1
|
|
7
|
+
| type | String as () => 'year' \| 'years' | 'month' | 'months' | 'date' | 'dates' | 'datetime' | 'week' | 'datetimerange' | 'daterange' | 'monthrange' | 'yearrange' | 默认为daterange,并且daterange为自动启动快速选择器 | 'daterange' | |
|
|
8
|
+
| valueFormat | String | 可不传,会根据type自动生成字符串时间格式,如果传了按照传的来 | | |
|
|
9
|
+
| shortcuts | Array<{ text: string; value: Date \| (() => [Date, Date]) }> | 可不传,会根据type自动生成快速选择器,如果传了按照传的来 | | |
|
|
10
|
+
| cssStyle | String | 样式属性,1为通用版基础默认样式,如果是传空走默认样式 | '1' | |
|
package/docs/ra-form.md
CHANGED
|
@@ -10,5 +10,4 @@
|
|
|
10
10
|
| cssStyle | String | 样式属性,1为通用版基础默认样式,如果是传空走默认样式 | '1' | |
|
|
11
11
|
| inline | Boolean | 同原el-form,增加可传数字类型,代表一行几个 | false | |
|
|
12
12
|
| inlineNumber | Number | 设定会修改inline为ture,代表一行几个 | 0 | |
|
|
13
|
-
| modelValue | Object as PropType<Record<string, any>> | v-model绑定,如果不使用,options必须配置,最后通过ref的getFormData获取form数据 | | |
|
|
14
13
|
| itemMarginRight | Number | inline时候的每个item的margin-right距离,默认20 | 20 | |
|
package/docs/ra-select.md
CHANGED
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
|
|
5
5
|
| name | type | desc | default | required |
|
|
6
6
|
| ---- | ---- | ---- | ------- | -------- |
|
|
7
|
-
| options | Array
|
|
8
|
-
| props | Object |
|
|
7
|
+
| options | Array | 每项独立配置 label,value | [] | |
|
|
8
|
+
| props | Object | 原属性,保证label,value,options,disabled属性可以被替换 | { label: 'label', value: 'value', options: 'options', disabled: 'disabled' } | |
|
|
9
9
|
| collapseTags | Boolean | 原属性,默认设置true | true | |
|
|
10
10
|
| clearable | Boolean | 原属性,默认设置true | true | |
|
|
11
11
|
| multiple | Boolean | 原属性,默认设置true | false | |
|
package/docs/ra-tree-select.md
CHANGED
|
@@ -4,6 +4,12 @@
|
|
|
4
4
|
|
|
5
5
|
| name | type | desc | default | required |
|
|
6
6
|
| ---- | ---- | ---- | ------- | -------- |
|
|
7
|
-
| options | Array
|
|
7
|
+
| options | Array | 每项独立配置 label,value | [] | |
|
|
8
|
+
| props | Object | 原属性,保证label,value,isLeaf,children,disabled属性可以被替换 | { label: 'label', value: 'value', isLeaf: 'isLeaf', children: 'children', disabled: 'disabled' } | |
|
|
8
9
|
| collapseTags | Boolean | 原属性,默认设置true | true | |
|
|
9
10
|
| clearable | Boolean | 原属性,默认设置true | true | |
|
|
11
|
+
| multiple | Boolean | 原属性,默认设置true | false | |
|
|
12
|
+
| checkStrictly | Boolean | 是否父子节点关联,默认设置false | false | |
|
|
13
|
+
| selectLevel | String | 多选是是否启动层级判断,默认是false | '0' | |
|
|
14
|
+
|
|
15
|
+
## events
|
package/docs/ra-upload.md
CHANGED
|
@@ -12,12 +12,14 @@
|
|
|
12
12
|
| accept | String | 接受的文件类型 | '.jpg,.png,.doc,.docx,.xlsx' | |
|
|
13
13
|
| drag | Boolean | 是否启用拖拽上传 | false | |
|
|
14
14
|
| listType | String as PropType<'text' \| 'picture' | 'picture-card'> | 文件列表类型 | 'text' | |
|
|
15
|
+
| buttonType | String | 按钮类型 | 'primary' | |
|
|
15
16
|
| buttonText | String | 按钮文本 | '点击上传' | |
|
|
16
17
|
| dragText | String | 拖拽区域文本 | '点击或拖拽文件到这里上传' | |
|
|
17
18
|
| tipText | String | 提示文本 | '' | |
|
|
18
19
|
| autoUpload | Boolean | 是否自动上传 | false | |
|
|
19
20
|
| showFileList | Boolean | 是否显示文件列表 | true | |
|
|
20
|
-
|
|
|
21
|
+
| showMaxSize | Boolean | 是否显示文件大小信息 | true | |
|
|
22
|
+
| maxSize | Number | 单个文件大小(MB) | 10 | |
|
|
21
23
|
| showDownload | Boolean | 展示下载按钮 | false | |
|
|
22
24
|
|
|
23
25
|
## events
|
|
@@ -494,6 +494,10 @@ declare function __VLS_template(): {
|
|
|
494
494
|
};
|
|
495
495
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
496
496
|
declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
497
|
+
modelValue: {
|
|
498
|
+
type: (StringConstructor | ArrayConstructor)[];
|
|
499
|
+
default: () => string[];
|
|
500
|
+
};
|
|
497
501
|
type: {
|
|
498
502
|
type: () => "year" | "years" | "month" | "months" | "date" | "dates" | "datetime" | "week" | "datetimerange" | "daterange" | "monthrange" | "yearrange";
|
|
499
503
|
default: string;
|
|
@@ -539,12 +543,13 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
539
543
|
type: StringConstructor;
|
|
540
544
|
default: string;
|
|
541
545
|
};
|
|
542
|
-
modelValue: {
|
|
543
|
-
type: import('vue').PropType<any>;
|
|
544
|
-
};
|
|
545
546
|
}>, any, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
546
547
|
"update:modelValue": (value: any) => any;
|
|
547
548
|
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
549
|
+
modelValue: {
|
|
550
|
+
type: (StringConstructor | ArrayConstructor)[];
|
|
551
|
+
default: () => string[];
|
|
552
|
+
};
|
|
548
553
|
type: {
|
|
549
554
|
type: () => "year" | "years" | "month" | "months" | "date" | "dates" | "datetime" | "week" | "datetimerange" | "daterange" | "monthrange" | "yearrange";
|
|
550
555
|
default: string;
|
|
@@ -590,14 +595,12 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
590
595
|
type: StringConstructor;
|
|
591
596
|
default: string;
|
|
592
597
|
};
|
|
593
|
-
modelValue: {
|
|
594
|
-
type: import('vue').PropType<any>;
|
|
595
|
-
};
|
|
596
598
|
}>> & Readonly<{
|
|
597
599
|
"onUpdate:modelValue"?: ((value: any) => any) | undefined;
|
|
598
600
|
}>, {
|
|
599
601
|
type: "year" | "years" | "month" | "months" | "date" | "dates" | "datetime" | "week" | "datetimerange" | "daterange" | "monthrange" | "yearrange";
|
|
600
602
|
cssStyle: string;
|
|
603
|
+
modelValue: string | unknown[];
|
|
601
604
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
|
|
602
605
|
componentRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('vue').ExtractPropTypes<{
|
|
603
606
|
readonly type: import('element-plus/es/utils/index.mjs').EpPropFinalized<(new (...args: any[]) => "year" | "months" | "years" | "month" | "date" | "dates" | "week" | "datetime" | "datetimerange" | "daterange" | "monthrange" | "yearrange") | (() => import('element-plus').DatePickerType) | ((new (...args: any[]) => "year" | "months" | "years" | "month" | "date" | "dates" | "week" | "datetime" | "datetimerange" | "daterange" | "monthrange" | "yearrange") | (() => import('element-plus').DatePickerType))[], unknown, unknown, "date", boolean>;
|
|
@@ -248,16 +248,16 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
248
248
|
type: NumberConstructor;
|
|
249
249
|
default: number;
|
|
250
250
|
};
|
|
251
|
-
modelValue: {
|
|
252
|
-
type: PropType<Record<string, any>>;
|
|
253
|
-
};
|
|
254
251
|
itemMarginRight: {
|
|
255
252
|
type: NumberConstructor;
|
|
256
253
|
default: number;
|
|
257
254
|
};
|
|
255
|
+
modelValue: {
|
|
256
|
+
type: PropType<any>;
|
|
257
|
+
};
|
|
258
258
|
}>, any, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
259
|
-
"update:modelValue": (...args: any[]) => void;
|
|
260
259
|
itemChange: (...args: any[]) => void;
|
|
260
|
+
"update:modelValue": (value: any) => void;
|
|
261
261
|
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
262
262
|
options: {
|
|
263
263
|
type: PropType<TypeOption[]>;
|
|
@@ -275,15 +275,15 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
275
275
|
type: NumberConstructor;
|
|
276
276
|
default: number;
|
|
277
277
|
};
|
|
278
|
-
modelValue: {
|
|
279
|
-
type: PropType<Record<string, any>>;
|
|
280
|
-
};
|
|
281
278
|
itemMarginRight: {
|
|
282
279
|
type: NumberConstructor;
|
|
283
280
|
default: number;
|
|
284
281
|
};
|
|
282
|
+
modelValue: {
|
|
283
|
+
type: PropType<any>;
|
|
284
|
+
};
|
|
285
285
|
}>> & Readonly<{
|
|
286
|
-
"onUpdate:modelValue"?: ((
|
|
286
|
+
"onUpdate:modelValue"?: ((value: any) => any) | undefined;
|
|
287
287
|
onItemChange?: ((...args: any[]) => any) | undefined;
|
|
288
288
|
}>, {
|
|
289
289
|
inline: boolean;
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import { PropType } from 'vue';
|
|
2
|
-
import { TreeSelectOptions } from '../../ra-tree-select/type';
|
|
3
1
|
declare function __VLS_template(): {
|
|
4
2
|
attrs: Partial<{}>;
|
|
5
3
|
slots: {
|
|
@@ -30,11 +28,11 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
30
28
|
default: number;
|
|
31
29
|
};
|
|
32
30
|
selectOptions: {
|
|
33
|
-
type:
|
|
31
|
+
type: ArrayConstructor;
|
|
34
32
|
default: () => never[];
|
|
35
33
|
};
|
|
36
34
|
modelValue: {
|
|
37
|
-
type:
|
|
35
|
+
type: ArrayConstructor;
|
|
38
36
|
default: () => never[];
|
|
39
37
|
};
|
|
40
38
|
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
@@ -58,23 +56,23 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
58
56
|
default: number;
|
|
59
57
|
};
|
|
60
58
|
selectOptions: {
|
|
61
|
-
type:
|
|
59
|
+
type: ArrayConstructor;
|
|
62
60
|
default: () => never[];
|
|
63
61
|
};
|
|
64
62
|
modelValue: {
|
|
65
|
-
type:
|
|
63
|
+
type: ArrayConstructor;
|
|
66
64
|
default: () => never[];
|
|
67
65
|
};
|
|
68
66
|
}>> & Readonly<{
|
|
69
67
|
"onUpdate:modelValue"?: ((value: any[]) => any) | undefined;
|
|
70
68
|
onExportTable?: (() => any) | undefined;
|
|
71
69
|
}>, {
|
|
72
|
-
modelValue:
|
|
70
|
+
modelValue: unknown[];
|
|
73
71
|
enableFilterColumn: boolean;
|
|
74
72
|
exportButtonText: string;
|
|
75
73
|
exportNumberLimit: number;
|
|
76
74
|
pageTotal: number;
|
|
77
|
-
selectOptions:
|
|
75
|
+
selectOptions: unknown[];
|
|
78
76
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
79
77
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
80
78
|
export default _default;
|