ra-element 0.1.36 → 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 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 | |
@@ -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 | |
@@ -16,3 +16,4 @@ const p = { style: { color: "red" } }, m = /* @__PURE__ */ t({
16
16
  export {
17
17
  m as default
18
18
  };
19
+ //# sourceMappingURL=ExampleItem-DwhALQGq.js.map
@@ -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;;"}
@@ -1,7 +1,7 @@
1
1
  import { PropType } from 'vue';
2
2
  interface SelectOptions {
3
3
  label: string;
4
- value: string;
4
+ value: string | number | boolean;
5
5
  [prop: string]: any;
6
6
  }
7
7
  declare function __VLS_template(): {
@@ -1,12 +1,13 @@
1
- interface optionsItem {
1
+ import { PropType } from 'vue';
2
+ interface OptionsItem {
2
3
  name?: string;
3
4
  key?: string;
4
5
  disabled?: boolean;
5
- children?: optionsItem[];
6
+ children?: OptionsItem[];
6
7
  }
7
8
  declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
8
9
  modelValue: {
9
- type: ArrayConstructor;
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<optionsItem[]>;
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: ArrayConstructor;
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<optionsItem[]>;
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: unknown[];
60
- options: any;
60
+ modelValue: string[];
61
+ options: OptionsItem[];
61
62
  placeholder: string;
62
63
  dialogTitle: string;
63
64
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
@@ -2,6 +2,6 @@ export interface TypeOption {
2
2
  prop: string;
3
3
  label: string;
4
4
  formType: string;
5
- itemRatio: number;
5
+ itemRatio?: number;
6
6
  [prop: string]: any;
7
7
  }
@@ -1,7 +1,7 @@
1
1
  import { PropType } from 'vue';
2
2
  interface SelectOptions {
3
3
  label: string;
4
- value: any;
4
+ value: string | number | boolean;
5
5
  [prop: string]: any;
6
6
  }
7
7
  declare function __VLS_template(): {
@@ -4,13 +4,19 @@ export type tableColumnItemType = {
4
4
  width?: string | number;
5
5
  appendStr?: string;
6
6
  itemType?: string;
7
- opShow?: (row?: any, label?: string, name?: string) => boolean;
7
+ opShow?: (row?: Record<string, any>, label?: string, name?: string) => boolean;
8
8
  format?: string;
9
9
  slotName?: string;
10
- componentName?: any;
10
+ componentName?: string;
11
11
  align?: string;
12
12
  showOverflowTooltip?: boolean;
13
- buttons?: any;
14
- click?: (row?: any) => void;
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: ArrayConstructor;
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: ArrayConstructor;
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: unknown[];
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
- type UploadFileGroup = UploadUserFile & {
3
- fileName: string;
4
- raId: string;
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: any;
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: any;
152
+ listType: "picture" | "text" | "picture-card";
152
153
  limit: number;
153
154
  buttonText: string;
154
155
  dragText: string;
@@ -2,3 +2,4 @@ import { RaDatePicker as e } from "./ra-element.es.js";
2
2
  export {
3
3
  e as default
4
4
  };
5
+ //# sourceMappingURL=index-DE9tcA5I.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index-DE9tcA5I.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
@@ -2,3 +2,4 @@ import { RaRadioGroup as o } from "./ra-element.es.js";
2
2
  export {
3
3
  o as default
4
4
  };
5
+ //# sourceMappingURL=index-DN2aloZb.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index-DN2aloZb.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
@@ -2,3 +2,4 @@ import { RaTreeSelect as a } from "./ra-element.es.js";
2
2
  export {
3
3
  a as default
4
4
  };
5
+ //# sourceMappingURL=index-DPST30-1.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index-DPST30-1.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
@@ -2,3 +2,4 @@ import { RaCheckboxGroup as o } from "./ra-element.es.js";
2
2
  export {
3
3
  o as default
4
4
  };
5
+ //# sourceMappingURL=index-DUdhhr_j.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index-DUdhhr_j.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
@@ -2,3 +2,4 @@ import { RaInput as t } from "./ra-element.es.js";
2
2
  export {
3
3
  t as default
4
4
  };
5
+ //# sourceMappingURL=index-hKxQUnh9.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index-hKxQUnh9.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}