ra-element 0.0.16 → 0.0.53

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
@@ -10,14 +10,14 @@
10
10
  pnpm
11
11
 
12
12
  ## 发布流程
13
- 1、npm config set registry https://registry.npmjs.org (修改为发版包地址)
14
- 2、npm login
15
- 3、更新package.json中的版本号
16
- 4、npm publish
17
- 5、npm config set registry http://registry.npmmirror.com/ (还原下载包地址)
18
-
19
- (发布后,引用项目使用镜像源安装不一定能立即下载到,就是官网下载可能都需要等一会才会有新版本)
20
-
13
+ 1、npm run build (插件内会自动更新小版本,如果要更新大版本需要手动修改)
14
+ 2、npm config set registry https://registry.npmjs.org (修改为发版包地址)
15
+ 3、npm login
16
+ 4、npm publish
17
+ 5、npm config set registry http://registry.npmmirror.com/ (还原下载包地址)
18
+
19
+ (发布后,引用项目使用镜像源安装不一定能立即下载到,就是官网下载可能都需要等一会才会有新版本)
20
+
21
21
  ## 组件功能
22
22
  基于el-element-plus封装的适用如安的样式组件
23
23
  1、保留了原有组件功能
@@ -0,0 +1,13 @@
1
+ ## slots
2
+
3
+ ## props
4
+
5
+ | name | type | desc | default | required |
6
+ | ---- | ---- | ---- | ------- | -------- |
7
+ | showItems | Number | 显示的项目数量 | 5 | |
8
+ | speed | Number | 滚动速度 (px/s) | 50 | |
9
+ | direction | String | 滚动方向 | 'left' | |
10
+ | pauseOnHover | Boolean | 悬停时是否暂停 | true | |
11
+ | disabled | Boolean | 是否禁用滚动 | false | |
12
+ | itemWidth | Number | 项目宽度(包括margin),如果提供则不自动计算,0表示自动计算项目宽度 | 0 | |
13
+ | itemGap | Number | 元素间距 | 15 | |
package/docs/ra-button.md CHANGED
@@ -7,3 +7,4 @@
7
7
  | name | type | desc | default | required |
8
8
  | ---- | ---- | ---- | ------- | -------- |
9
9
  | click | Function | 新增props属性click:可将方法变为同步,是点击后click方法执行完毕才可再次点击 | undefined | |
10
+ | cssStyle | String | 样式属性,1为通用版基础默认样式 | '' | |
@@ -0,0 +1,8 @@
1
+ ## slots
2
+
3
+ ## props
4
+
5
+ | name | type | desc | default | required |
6
+ | ---- | ---- | ---- | ------- | -------- |
7
+ | options | Array as PropType<SelectOptions[]> | 每项独立配置 label,value | [] | |
8
+ | isButton | Boolean | 是否是el-checkbox-button | false | |
@@ -0,0 +1,5 @@
1
+ ## slots
2
+
3
+ ## props
4
+
5
+ ## events
package/docs/ra-dialog.md CHANGED
@@ -7,3 +7,4 @@
7
7
  | appendToBody | Boolean | 设置原生appendToBody默认设置为ture | true | |
8
8
  | draggable | Boolean | 设置原生draggable默认设置为ture | true | |
9
9
  | destroyOnClose | Boolean | 设置原生destroyOnClose默认设置为ture(vue2 element这个参数是无效的,vue3 element plus待验证) | true | |
10
+ | cssStyle | String | 样式属性,1为通用版基础默认样式,如果是传空走默认样式 | '1' | |
@@ -0,0 +1,5 @@
1
+ ## slots
2
+
3
+ ## props
4
+
5
+ ## events
@@ -0,0 +1,13 @@
1
+ ## slots
2
+
3
+ ## events
4
+
5
+ ## props
6
+
7
+ | name | type | desc | default | required |
8
+ | ---- | ---- | ---- | ------- | -------- |
9
+ | options | Array | 表单每项独立配置 | [] | |
10
+ | cssStyle | String | 样式属性,1为通用版基础默认样式,如果是传空走默认样式 | '1' | |
11
+ | inline | [Boolean, Number] as PropType<boolean \| number> | 同原el-form,增加可传数字类型,代表一行几个 | false | |
12
+ | modelValue | Object | v-model绑定,如果不使用,options必须配置,最后通过ref的getFormData获取form数据 | | |
13
+ | itemMarginRight | Number | inline时候的每个item的margin-right距离,默认20 | 20 | |
@@ -0,0 +1,3 @@
1
+ ## slots
2
+
3
+ ## props
@@ -0,0 +1 @@
1
+ ## slots
@@ -0,0 +1,11 @@
1
+ ## slots
2
+
3
+ ## props
4
+
5
+ | name | type | desc | default | required |
6
+ | ---- | ---- | ---- | ------- | -------- |
7
+ | baseStyle | String | 通用版基础样式:1为通用版基础样式 | '1' | |
8
+ | currentPage | Number | 当前页数(支持双向绑定) | 1 | |
9
+ | pageSize | Number | 每页数量(支持双向绑定) | 10 | |
10
+
11
+ ## events
@@ -0,0 +1,8 @@
1
+ ## slots
2
+
3
+ ## props
4
+
5
+ | name | type | desc | default | required |
6
+ | ---- | ---- | ---- | ------- | -------- |
7
+ | options | Array as PropType<SelectOptions[]> | 每项独立配置 label,value | [] | |
8
+ | isButton | Boolean | 是否是el-radio-button | false | |
@@ -0,0 +1,10 @@
1
+ ## slots
2
+
3
+ ## props
4
+
5
+ | name | type | desc | default | required |
6
+ | ---- | ---- | ---- | ------- | -------- |
7
+ | options | Array as PropType<SelectOptions[]> | 每项独立配置 label,value | [] | |
8
+ | collapseTags | Boolean | 原属性,默认设置true | true | |
9
+ | clearable | Boolean | 原属性,默认设置true | true | |
10
+ | multiple | Boolean | 原属性,默认设置true | false | |
package/docs/ra-svg.md ADDED
@@ -0,0 +1,3 @@
1
+ ## slots
2
+
3
+ ## props
@@ -0,0 +1,28 @@
1
+ ## slots
2
+
3
+ ## props
4
+
5
+ | name | type | desc | default | required |
6
+ | ---- | ---- | ---- | ------- | -------- |
7
+ | loading | Boolean | table的loading状态 | false | |
8
+ | data | Array | 表格数据,同原组件 | [] | |
9
+ | cssStyle | String | 样式属性,1为通用版基础默认样式,如果是传空走默认样式 | '1' | |
10
+ | border | Boolean | 表格边框:若cssStyle为1,则默认为false | undefined | |
11
+ | stripe | Boolean | 表格斑马线:若cssStyle为1,则默认为true | undefined | |
12
+ | paginationType | String | 分页类型,如果为manually,则使用手动分页,data传入所有数据即可,如果为axios使用后端分页使用axios请求数据 | '' | |
13
+ | layout | String | 分页layout布局,默认为total, prev, pager, next | 'total, prev, pager, next, sizes, jumper' | |
14
+ | enableSelection | Boolean | 启用选择功能 | false | |
15
+ | enableHeaderTitle | String | 启用表格头部相关功能-标题 | '' | |
16
+ | enableFilterColumn | Boolean | 是否开启显示列功能 | false | |
17
+ | defaultColumnKeys | Array | 默认显示列(enableFilterColumn需要设置为true) | | |
18
+ | hasTableTopModule | Boolean | 是否包含右侧功能模块,筛选列,以及导出 | false | |
19
+ | hasFilterColumn | Boolean | 是否包含右侧功能模块,筛选列 | false | |
20
+ | tableExportButton | [String, Boolean, Number] | 是否包含右侧功能模块,导出(字符串可以设定按钮type,布尔直接启用/禁用,数字可以限制多少条以内可以导出) | '' | |
21
+ | tableExportText | String | 导出按钮文字 | '导出清单' | |
22
+ | localExportName | String | 导出文件名称 | '' | |
23
+ | hasIndex | Boolean | 序号 | false | |
24
+ | hasIndexFixed | Boolean | 序号固定 | false | |
25
+ | paginationButtonNumber | Number | 最大页码按钮数量 | 7 | |
26
+ | smallPagination | Boolean | 是否开启小分页 | false | |
27
+
28
+ ## events
@@ -0,0 +1,9 @@
1
+ ## slots
2
+
3
+ ## props
4
+
5
+ | name | type | desc | default | required |
6
+ | ---- | ---- | ---- | ------- | -------- |
7
+ | rows | Number | 默认行数 | 3 | |
8
+ | showWordLimit | Boolean | 限制字数,需要配合maxlength使用 | true | |
9
+ | maxlength | String | 限制字数最大值 | '300' | |
@@ -0,0 +1,3 @@
1
+ ## slots
2
+
3
+ ## props
@@ -0,0 +1,9 @@
1
+ ## slots
2
+
3
+ ## props
4
+
5
+ | name | type | desc | default | required |
6
+ | ---- | ---- | ---- | ------- | -------- |
7
+ | options | Array as PropType<TreeSelectOptions[]> | 每项独立配置 label,value | [] | |
8
+ | collapseTags | Boolean | 原属性,默认设置true | true | |
9
+ | clearable | Boolean | 原属性,默认设置true | true | |
@@ -0,0 +1,31 @@
1
+ ## slots
2
+
3
+ ## props
4
+
5
+ | name | type | desc | default | required |
6
+ | ---- | ---- | ---- | ------- | -------- |
7
+ | action | String | 上传地址 | '' | |
8
+ | fileList | Array as PropType<UploadUserFile[]> | 默认文件列表 | [] | |
9
+ | limit | Number | 最大上传数量 | 5 | |
10
+ | multiple | Boolean | 是否支持多选 | false | |
11
+ | disabled | Boolean | 是否禁用 | false | |
12
+ | accept | String | 接受的文件类型 | '.jpg,.png,.doc,.docx,.xlsx' | |
13
+ | drag | Boolean | 是否启用拖拽上传 | false | |
14
+ | listType | String as PropType<'text' \| 'picture' | 'picture-card'> | 文件列表类型 | 'text' | |
15
+ | buttonText | String | 按钮文本 | '点击上传' | |
16
+ | dragText | String | 拖拽区域文本 | '点击或拖拽文件到这里上传' | |
17
+ | tipText | String | 提示文本 | '' | |
18
+ | autoUpload | Boolean | 是否自动上传 | true | |
19
+ | showFileList | Boolean | 是否显示文件列表 | true | |
20
+ | maxSize | Number | 最大文件大小(MB) | 10 | |
21
+
22
+ ## events
23
+
24
+ | name | desc |
25
+ | ---- | ---- |
26
+ | update:fileList | fileList双向绑定 |
27
+ | success | 上传成功事件 |
28
+ | error | 上传失败事件 |
29
+ | change | 文件改变事件 |
30
+ | remove | 文件移除事件 |
31
+ | exceed | 文件超出限制事件 |
@@ -6,7 +6,7 @@ declare function __VLS_template(): {
6
6
  icon?(_: {}): any;
7
7
  };
8
8
  refs: {
9
- buttonRef: unknown;
9
+ componentRef: unknown;
10
10
  };
11
11
  rootEl: any;
12
12
  };
@@ -16,6 +16,10 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
16
16
  type: FunctionConstructor;
17
17
  default: undefined;
18
18
  };
19
+ cssStyle: {
20
+ type: StringConstructor;
21
+ default: string;
22
+ };
19
23
  }>, {
20
24
  component: import('vue').Ref<({
21
25
  $: import('vue').ComponentInternalInstance;
@@ -597,12 +601,17 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
597
601
  type: FunctionConstructor;
598
602
  default: undefined;
599
603
  };
604
+ cssStyle: {
605
+ type: StringConstructor;
606
+ default: string;
607
+ };
600
608
  }>> & Readonly<{
601
609
  onClick?: ((...args: any[]) => any) | undefined;
602
610
  }>, {
603
611
  click: Function;
612
+ cssStyle: string;
604
613
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
605
- buttonRef: unknown;
614
+ componentRef: unknown;
606
615
  }, any>;
607
616
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
608
617
  export default _default;
@@ -9,12 +9,16 @@ declare function __VLS_template(): {
9
9
  'next-year'?(_: {}): any;
10
10
  };
11
11
  refs: {
12
- datePickerRef: unknown;
12
+ componentRef: unknown;
13
13
  };
14
14
  rootEl: any;
15
15
  };
16
16
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
17
17
  declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
18
+ modelValue: {
19
+ type: (StringConstructor | ArrayConstructor)[];
20
+ default: () => string[];
21
+ };
18
22
  type: {
19
23
  type: () => "year" | "years" | "month" | "months" | "date" | "dates" | "datetime" | "week" | "datetimerange" | "daterange" | "monthrange" | "yearrange";
20
24
  default: string;
@@ -1008,7 +1012,13 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
1008
1012
  readonly unlinkPanels: boolean;
1009
1013
  readonly isRange: boolean;
1010
1014
  }> | null>;
1011
- }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
1015
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
1016
+ "update:modelValue": (value: any) => any;
1017
+ }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
1018
+ modelValue: {
1019
+ type: (StringConstructor | ArrayConstructor)[];
1020
+ default: () => string[];
1021
+ };
1012
1022
  type: {
1013
1023
  type: () => "year" | "years" | "month" | "months" | "date" | "dates" | "datetime" | "week" | "datetimerange" | "daterange" | "monthrange" | "yearrange";
1014
1024
  default: string;
@@ -1050,10 +1060,13 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
1050
1060
  readonly [Symbol.species]: ArrayConstructor;
1051
1061
  };
1052
1062
  };
1053
- }>> & Readonly<{}>, {
1063
+ }>> & Readonly<{
1064
+ "onUpdate:modelValue"?: ((value: any) => any) | undefined;
1065
+ }>, {
1054
1066
  type: "date" | "year" | "years" | "month" | "months" | "dates" | "week" | "datetime" | "datetimerange" | "daterange" | "monthrange" | "yearrange";
1067
+ modelValue: string | unknown[];
1055
1068
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
1056
- datePickerRef: unknown;
1069
+ componentRef: unknown;
1057
1070
  }, any>;
1058
1071
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
1059
1072
  export default _default;
@@ -6,7 +6,7 @@ declare function __VLS_template(): {
6
6
  footer?(_: {}): any;
7
7
  };
8
8
  refs: {
9
- dialogRef: unknown;
9
+ componentRef: unknown;
10
10
  };
11
11
  rootEl: any;
12
12
  };
@@ -24,6 +24,10 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
24
24
  type: BooleanConstructor;
25
25
  default: boolean;
26
26
  };
27
+ cssStyle: {
28
+ type: StringConstructor;
29
+ default: string;
30
+ };
27
31
  }>, {
28
32
  component: import('vue').Ref<({
29
33
  $: import('vue').ComponentInternalInstance;
@@ -933,12 +937,17 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
933
937
  type: BooleanConstructor;
934
938
  default: boolean;
935
939
  };
940
+ cssStyle: {
941
+ type: StringConstructor;
942
+ default: string;
943
+ };
936
944
  }>> & Readonly<{}>, {
945
+ cssStyle: string;
937
946
  appendToBody: boolean;
938
947
  destroyOnClose: boolean;
939
948
  draggable: boolean;
940
949
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
941
- dialogRef: unknown;
950
+ componentRef: unknown;
942
951
  }, any>;
943
952
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
944
953
  export default _default;