ra-element 0.1.30 → 0.1.37
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-form.md +2 -2
- package/docs/ra-tree-select.md +1 -1
- package/lib/ExampleItem-DwhALQGq.js +1 -0
- package/lib/ExampleItem-DwhALQGq.js.map +1 -0
- package/lib/components/index.d.ts +0 -1
- package/lib/components/ra-checkbox-group/index.vue.d.ts +1 -1
- package/lib/components/ra-dialog-select/index.vue.d.ts +9 -8
- package/lib/components/ra-form/type.d.ts +1 -1
- package/lib/components/ra-radio-group/index.vue.d.ts +1 -1
- package/lib/components/ra-table/type.d.ts +10 -4
- package/lib/components/ra-tree-select/index.vue.d.ts +41 -4
- package/lib/components/ra-upload/index.vue.d.ts +7 -6
- package/lib/index-DE9tcA5I.js +1 -0
- package/lib/index-DE9tcA5I.js.map +1 -0
- package/lib/index-DN2aloZb.js +1 -0
- package/lib/index-DN2aloZb.js.map +1 -0
- package/lib/index-DPST30-1.js +1 -0
- package/lib/index-DPST30-1.js.map +1 -0
- package/lib/index-DUdhhr_j.js +1 -0
- package/lib/index-DUdhhr_j.js.map +1 -0
- package/lib/index-hKxQUnh9.js +1 -0
- package/lib/index-hKxQUnh9.js.map +1 -0
- package/lib/ra-element.css +1 -1
- package/lib/ra-element.es.js +2029 -2042
- package/lib/ra-element.es.js.map +1 -0
- package/lib/ra-element.umd.js +13 -12
- package/lib/ra-element.umd.js.map +1 -0
- package/package.json +1 -6
package/docs/ra-form.md
CHANGED
|
@@ -6,8 +6,8 @@
|
|
|
6
6
|
|
|
7
7
|
| name | type | desc | default | required |
|
|
8
8
|
| ---- | ---- | ---- | ------- | -------- |
|
|
9
|
-
| options | Array | 表单每项独立配置 | [] | |
|
|
9
|
+
| options | Array as PropType<TypeOption[]> | 表单每项独立配置 | [] | |
|
|
10
10
|
| cssStyle | String | 样式属性,1为通用版基础默认样式,如果是传空走默认样式 | '1' | |
|
|
11
11
|
| inline | [Boolean, Number] as PropType<boolean \| number> | 同原el-form,增加可传数字类型,代表一行几个 | false | |
|
|
12
|
-
| modelValue | Object | v-model绑定,如果不使用,options必须配置,最后通过ref的getFormData获取form数据 | | |
|
|
12
|
+
| modelValue | Object as PropType<Record<string, any>> | v-model绑定,如果不使用,options必须配置,最后通过ref的getFormData获取form数据 | | |
|
|
13
13
|
| itemMarginRight | Number | inline时候的每个item的margin-right距离,默认20 | 20 | |
|
package/docs/ra-tree-select.md
CHANGED
|
@@ -4,6 +4,6 @@
|
|
|
4
4
|
|
|
5
5
|
| name | type | desc | default | required |
|
|
6
6
|
| ---- | ---- | ---- | ------- | -------- |
|
|
7
|
-
| options | Array | 每项独立配置 label,value | [] | |
|
|
7
|
+
| options | Array as PropType<TreeSelectOptions[]> | 每项独立配置 label,value | [] | |
|
|
8
8
|
| collapseTags | Boolean | 原属性,默认设置true | true | |
|
|
9
9
|
| clearable | Boolean | 原属性,默认设置true | true | |
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ExampleItem-DwhALQGq.js","sources":["../src/components/ra-table/column-component/ExampleItem.vue"],"sourcesContent":["<template>\n <span style=\"color: red\">{{ row[prop] }}</span>\n</template>\n\n<script setup lang=\"ts\">\ndefineOptions({ name: 'ExampleItem' });\ndefineProps({\n // @doc 表格行的对象数据\n row: { type: Object, default: () => ({}) },\n // @doc 表格列的prop\n prop: { type: String, default: '' },\n //option的所有放入配置可以在这里获取,根据你实际传入的来\n});\n</script>\n\n<style scoped lang=\"less\"></style>\n"],"names":["_openBlock","_createElementBlock","_hoisted_1","_toDisplayString","__props"],"mappings":";;;;;;;;;;;;sBACIA,EAAA,GAAAC,EAA+C,QAA/CC,GAA+CC,EAAnBC,EAAA,IAAIA,EAAA,IAAI,CAAA,GAAA,CAAA;AAAA;;"}
|
|
@@ -18,7 +18,6 @@ import { default as RaToolTip } from './ra-tool-tip/index.vue';
|
|
|
18
18
|
import { default as RaTreeSelect } from './ra-tree-select/index.vue';
|
|
19
19
|
import { default as RaUpload } from './ra-upload/index.vue';
|
|
20
20
|
declare const install: (app: App) => void;
|
|
21
|
-
export { RaElementResolver } from '../resolver';
|
|
22
21
|
export { RaAutoScroll, RaButton, RaCheckboxGroup, RaDatePicker, RaDialog, RaDialogSelect, RaForm, RaHelpTip, RaInput, RaPagination, RaRadioGroup, RaSelect, RaSvg, RaTable, RaTextarea, RaToolTip, RaTreeSelect, RaUpload, };
|
|
23
22
|
export default install;
|
|
24
23
|
declare module 'vue' {
|
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
interface OptionsItem {
|
|
2
3
|
name?: string;
|
|
3
4
|
key?: string;
|
|
4
5
|
disabled?: boolean;
|
|
5
|
-
children?:
|
|
6
|
+
children?: OptionsItem[];
|
|
6
7
|
}
|
|
7
8
|
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
8
9
|
modelValue: {
|
|
9
|
-
type:
|
|
10
|
+
type: PropType<string[]>;
|
|
10
11
|
default: () => never[];
|
|
11
12
|
};
|
|
12
13
|
placeholder: {
|
|
@@ -18,7 +19,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
18
19
|
default: string;
|
|
19
20
|
};
|
|
20
21
|
options: {
|
|
21
|
-
type: PropType<
|
|
22
|
+
type: PropType<OptionsItem[]>;
|
|
22
23
|
default: () => never[];
|
|
23
24
|
};
|
|
24
25
|
width: {
|
|
@@ -31,7 +32,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
31
32
|
"update:modelValue": (...args: any[]) => void;
|
|
32
33
|
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
33
34
|
modelValue: {
|
|
34
|
-
type:
|
|
35
|
+
type: PropType<string[]>;
|
|
35
36
|
default: () => never[];
|
|
36
37
|
};
|
|
37
38
|
placeholder: {
|
|
@@ -43,7 +44,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
43
44
|
default: string;
|
|
44
45
|
};
|
|
45
46
|
options: {
|
|
46
|
-
type: PropType<
|
|
47
|
+
type: PropType<OptionsItem[]>;
|
|
47
48
|
default: () => never[];
|
|
48
49
|
};
|
|
49
50
|
width: {
|
|
@@ -56,8 +57,8 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
56
57
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
57
58
|
}>, {
|
|
58
59
|
width: number;
|
|
59
|
-
modelValue:
|
|
60
|
-
options:
|
|
60
|
+
modelValue: string[];
|
|
61
|
+
options: OptionsItem[];
|
|
61
62
|
placeholder: string;
|
|
62
63
|
dialogTitle: string;
|
|
63
64
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
@@ -4,13 +4,19 @@ export type tableColumnItemType = {
|
|
|
4
4
|
width?: string | number;
|
|
5
5
|
appendStr?: string;
|
|
6
6
|
itemType?: string;
|
|
7
|
-
opShow?: (row?:
|
|
7
|
+
opShow?: (row?: Record<string, any>, label?: string, name?: string) => boolean;
|
|
8
8
|
format?: string;
|
|
9
9
|
slotName?: string;
|
|
10
|
-
componentName?:
|
|
10
|
+
componentName?: string;
|
|
11
11
|
align?: string;
|
|
12
12
|
showOverflowTooltip?: boolean;
|
|
13
|
-
buttons?:
|
|
14
|
-
|
|
13
|
+
buttons?: Array<{
|
|
14
|
+
label?: string;
|
|
15
|
+
name?: string;
|
|
16
|
+
click?: (row: Record<string, any>) => void;
|
|
17
|
+
[propName: string]: any;
|
|
18
|
+
}>;
|
|
19
|
+
click?: (row?: Record<string, any>) => void;
|
|
15
20
|
children?: tableColumnItemType[];
|
|
21
|
+
[propName: string]: any;
|
|
16
22
|
};
|
|
@@ -1,6 +1,13 @@
|
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
interface TreeSelectOptions {
|
|
3
|
+
label: string;
|
|
4
|
+
value: string | number;
|
|
5
|
+
children?: TreeSelectOptions[];
|
|
6
|
+
[propName: string]: any;
|
|
7
|
+
}
|
|
1
8
|
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
2
9
|
options: {
|
|
3
|
-
type:
|
|
10
|
+
type: PropType<TreeSelectOptions[]>;
|
|
4
11
|
default: () => never[];
|
|
5
12
|
};
|
|
6
13
|
collapseTags: {
|
|
@@ -12,10 +19,40 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
12
19
|
default: boolean;
|
|
13
20
|
};
|
|
14
21
|
}>, {
|
|
15
|
-
componentRef: any
|
|
22
|
+
componentRef: import('vue').Ref<import('vue').CreateComponentPublicInstanceWithMixins<Readonly<any>, () => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
|
|
23
|
+
[key: string]: any;
|
|
24
|
+
}>, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, Record<string, any>, import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, {} | {
|
|
25
|
+
[x: string]: any;
|
|
26
|
+
}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
27
|
+
P: {};
|
|
28
|
+
B: {};
|
|
29
|
+
D: {};
|
|
30
|
+
C: {};
|
|
31
|
+
M: {};
|
|
32
|
+
Defaults: {};
|
|
33
|
+
}, Readonly<any>, () => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
|
|
34
|
+
[key: string]: any;
|
|
35
|
+
}>, {}, {}, {}, {} | {
|
|
36
|
+
[x: string]: any;
|
|
37
|
+
}> | null, import('vue').CreateComponentPublicInstanceWithMixins<Readonly<any>, () => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
|
|
38
|
+
[key: string]: any;
|
|
39
|
+
}>, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, Record<string, any>, import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, {} | {
|
|
40
|
+
[x: string]: any;
|
|
41
|
+
}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
42
|
+
P: {};
|
|
43
|
+
B: {};
|
|
44
|
+
D: {};
|
|
45
|
+
C: {};
|
|
46
|
+
M: {};
|
|
47
|
+
Defaults: {};
|
|
48
|
+
}, Readonly<any>, () => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
|
|
49
|
+
[key: string]: any;
|
|
50
|
+
}>, {}, {}, {}, {} | {
|
|
51
|
+
[x: string]: any;
|
|
52
|
+
}> | null>;
|
|
16
53
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
17
54
|
options: {
|
|
18
|
-
type:
|
|
55
|
+
type: PropType<TreeSelectOptions[]>;
|
|
19
56
|
default: () => never[];
|
|
20
57
|
};
|
|
21
58
|
collapseTags: {
|
|
@@ -27,7 +64,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
27
64
|
default: boolean;
|
|
28
65
|
};
|
|
29
66
|
}>> & Readonly<{}>, {
|
|
30
|
-
options:
|
|
67
|
+
options: TreeSelectOptions[];
|
|
31
68
|
clearable: boolean;
|
|
32
69
|
collapseTags: boolean;
|
|
33
70
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { UploadUserFile } from 'element-plus';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
2
|
+
import { PropType } from 'vue';
|
|
3
|
+
interface UploadFileGroup extends UploadUserFile {
|
|
4
|
+
fileName?: string;
|
|
5
|
+
raId?: string;
|
|
6
|
+
}
|
|
6
7
|
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
7
8
|
action: {
|
|
8
9
|
type: StringConstructor;
|
|
@@ -141,14 +142,14 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
141
142
|
}>, {
|
|
142
143
|
disabled: boolean;
|
|
143
144
|
drag: boolean;
|
|
144
|
-
modelValue:
|
|
145
|
+
modelValue: UploadFileGroup[];
|
|
145
146
|
multiple: boolean;
|
|
146
147
|
tipText: string;
|
|
147
148
|
action: string;
|
|
148
149
|
showFileList: boolean;
|
|
149
150
|
accept: string;
|
|
150
151
|
autoUpload: boolean;
|
|
151
|
-
listType:
|
|
152
|
+
listType: "picture" | "text" | "picture-card";
|
|
152
153
|
limit: number;
|
|
153
154
|
buttonText: string;
|
|
154
155
|
dragText: string;
|
package/lib/index-DE9tcA5I.js
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index-DE9tcA5I.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
package/lib/index-DN2aloZb.js
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index-DN2aloZb.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
package/lib/index-DPST30-1.js
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index-DPST30-1.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
package/lib/index-DUdhhr_j.js
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index-DUdhhr_j.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
package/lib/index-hKxQUnh9.js
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index-hKxQUnh9.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|