ra-element 0.1.7 → 0.1.11

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
@@ -14,7 +14,7 @@ pnpm
14
14
  2、npm config set registry https://registry.npmjs.org (修改为发版包地址)
15
15
  3、npm login
16
16
  4、npm publish
17
- 5、npm config set registry http://registry.npmmirror.com/ (还原阿里源镜像)
17
+ 5、npm config set registry http://registry.npmmirror.com/ (还原阿里源镜像,如果有代理可以不修改)
18
18
 
19
19
  ## npm代理
20
20
  npm config set proxy http://127.0.0.1:7890
package/docs/ra-table.md CHANGED
@@ -11,19 +11,16 @@
11
11
  | border | Boolean | 表格边框:若cssStyle为1,则默认为false | undefined | |
12
12
  | stripe | Boolean | 表格斑马线:若cssStyle为1,则默认为true | undefined | |
13
13
  | paginationType | String | 分页类型,如果为manually,则使用手动分页,data传入所有数据即可,如果为axios使用后端分页使用axios请求数据 | '' | |
14
+ | total | Number | 总数量,paginationType为axios需要 | 0 | |
14
15
  | layout | String | 分页layout布局,默认为total, prev, pager, next | 'total, prev, pager, next, sizes, jumper' | |
16
+ | enableTopLine | Boolean | 启用表格上方一层div,可以插入各个组件 | false | |
15
17
  | enableSelection | Boolean | 启用选择功能 | false | |
16
- | enableHeaderTitle | String | 启用表格头部相关功能-标题 | '' | |
17
18
  | enableFilterColumn | Boolean | 是否开启显示列功能 | false | |
18
19
  | defaultColumnKeys | Array | 默认显示列(enableFilterColumn需要设置为true) | | |
19
- | hasTableTopModule | Boolean | 是否包含右侧功能模块,筛选列,以及导出 | false | |
20
- | hasFilterColumn | Boolean | 是否包含右侧功能模块,筛选列 | false | |
21
- | tableExportButton | [String, Boolean, Number] | 是否包含右侧功能模块,导出(字符串可以设定按钮type,布尔直接启用/禁用,数字可以限制多少条以内可以导出) | '' | |
22
- | tableExportText | String | 导出按钮文字 | '导出清单' | |
23
- | localExportName | String | 导出文件名称 | '' | |
24
- | hasIndex | Boolean | 序号 | false | |
25
- | hasIndexName | String | 序号别名,默认:序号 | '序号' | |
26
- | hasIndexFixed | Boolean | 序号固定 | false | |
20
+ | exportButtonText | String | 导出按钮默认文字(存在即开启) | '' | |
21
+ | exportNumberLimit | Number | 导出数量限制,0为不限制 | 0 | |
22
+ | indexName | String | 序号别名,默认:序号 | '序号' | |
23
+ | indexFixed | Boolean | 序号固定 | false | |
27
24
  | paginationButtonNumber | Number | 最大页码按钮数量 | 7 | |
28
25
  | smallPagination | Boolean | 是否开启小分页 | false | |
29
26
 
@@ -4,6 +4,6 @@
4
4
 
5
5
  | name | type | desc | default | required |
6
6
  | ---- | ---- | ---- | ------- | -------- |
7
- | options | Array as PropType<TreeSelectOptions[]> | 每项独立配置 label,value | [] | |
7
+ | options | Array | 每项独立配置 label,value | [] | |
8
8
  | collapseTags | Boolean | 原属性,默认设置true | true | |
9
9
  | clearable | Boolean | 原属性,默认设置true | true | |
@@ -1,9 +1,5 @@
1
1
  import { PropType } from 'vue';
2
- interface SelectOptions {
3
- label: string;
4
- value: any;
5
- [prop: string]: any;
6
- }
2
+ import { SelectOptions } from './type.ts';
7
3
  declare function __VLS_template(): {
8
4
  attrs: Partial<{}>;
9
5
  slots: {
@@ -0,0 +1,5 @@
1
+ export type SelectOptions = {
2
+ label: string;
3
+ value: any;
4
+ [prop: string]: any;
5
+ };
@@ -1,11 +1,6 @@
1
- interface TreeSelectOptions {
2
- label: string;
3
- value: string;
4
- [prop: string]: any;
5
- }
6
1
  declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
7
2
  options: {
8
- type: PropType<TreeSelectOptions[]>;
3
+ type: ArrayConstructor;
9
4
  default: () => never[];
10
5
  };
11
6
  collapseTags: {
@@ -20,7 +15,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
20
15
  componentRef: any;
21
16
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
22
17
  options: {
23
- type: PropType<TreeSelectOptions[]>;
18
+ type: ArrayConstructor;
24
19
  default: () => never[];
25
20
  };
26
21
  collapseTags: {
@@ -32,7 +27,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
32
27
  default: boolean;
33
28
  };
34
29
  }>> & Readonly<{}>, {
35
- options: any;
30
+ options: unknown[];
36
31
  clearable: boolean;
37
32
  collapseTags: boolean;
38
33
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
@@ -0,0 +1,5 @@
1
+ export type TreeSelectOptions = {
2
+ label: string;
3
+ value: string;
4
+ [prop: string]: any;
5
+ };