@flyto/farco 1.1.2 → 1.1.4

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.
@@ -27,7 +27,7 @@ export declare const fCheckboxProps: {
27
27
  * 支持Promise函数,可返回一个远程获取的数据
28
28
  */
29
29
  options: {
30
- requried: boolean;
30
+ required: boolean;
31
31
  type: PropType<FCheckboxOptions | FMethodData<FCheckboxOptions>>;
32
32
  default: null;
33
33
  };
@@ -8,7 +8,7 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<im
8
8
  default: null;
9
9
  };
10
10
  options: {
11
- requried: boolean;
11
+ required: boolean;
12
12
  type: import('vue').PropType<FCheckboxOptions | import('../../../../../../../../../src/types').FMethodData<FCheckboxOptions>>;
13
13
  default: null;
14
14
  };
@@ -40,7 +40,7 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<im
40
40
  default: null;
41
41
  };
42
42
  options: {
43
- requried: boolean;
43
+ required: boolean;
44
44
  type: import('vue').PropType<FCheckboxOptions | import('../../../../../../../../../src/types').FMethodData<FCheckboxOptions>>;
45
45
  default: null;
46
46
  };
@@ -58,6 +58,14 @@ export declare const fQueryListProps: {
58
58
  type: PropType<FButtonProps>;
59
59
  default: () => {};
60
60
  };
61
+ /**
62
+ * 查询按钮是否展示 loading 状态(跟随 FTable 数据加载状态)
63
+ * 开启后,点击查询按钮到数据加载完成期间,按钮将处于 loading 状态,防止重复点击
64
+ */
65
+ queryBtnLoading: {
66
+ type: BooleanConstructor;
67
+ default: boolean;
68
+ };
61
69
  /**
62
70
  * 查询之前的回调事件
63
71
  * 支持Promise,如果返回false或者throw则会阻止后续查询
@@ -10,6 +10,7 @@ declare const _default: <TData extends AnyObject<any> = AnyObject<any>, TClos ex
10
10
  filterCollapseStatus?: boolean | undefined;
11
11
  queryBtnText?: string | undefined;
12
12
  queryBtnProps?: import('../fbutton').FButtonProps | undefined;
13
+ queryBtnLoading?: boolean | undefined;
13
14
  onBeforeQuery?: (() => boolean | Promise<boolean>) | undefined;
14
15
  resetBtnText?: string | undefined;
15
16
  resetBtnProps?: import('../fbutton').FButtonProps | undefined;
@@ -457,6 +458,7 @@ declare const _default: <TData extends AnyObject<any> = AnyObject<any>, TClos ex
457
458
  filterCollapseStatus?: boolean | undefined;
458
459
  queryBtnText?: string | undefined;
459
460
  queryBtnProps?: import('../fbutton').FButtonProps | undefined;
461
+ queryBtnLoading?: boolean | undefined;
460
462
  onBeforeQuery?: (() => boolean | Promise<boolean>) | undefined;
461
463
  resetBtnText?: string | undefined;
462
464
  resetBtnProps?: import('../fbutton').FButtonProps | undefined;
@@ -908,6 +910,7 @@ declare const _default: <TData extends AnyObject<any> = AnyObject<any>, TClos ex
908
910
  filterCollapseStatus?: boolean | undefined;
909
911
  queryBtnText?: string | undefined;
910
912
  queryBtnProps?: import('../fbutton').FButtonProps | undefined;
913
+ queryBtnLoading?: boolean | undefined;
911
914
  onBeforeQuery?: (() => boolean | Promise<boolean>) | undefined;
912
915
  resetBtnText?: string | undefined;
913
916
  resetBtnProps?: import('../fbutton').FButtonProps | undefined;
@@ -27,7 +27,7 @@ export declare const fRadioProps: {
27
27
  * 支持Promise函数,可返回一个远程获取的数据
28
28
  */
29
29
  options: {
30
- requried: boolean;
30
+ required: boolean;
31
31
  type: PropType<FRadioOptions | FMethodData<FRadioOptions>>;
32
32
  default: null;
33
33
  };
@@ -8,7 +8,7 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<im
8
8
  default: null;
9
9
  };
10
10
  options: {
11
- requried: boolean;
11
+ required: boolean;
12
12
  type: import('vue').PropType<FRadioOptions | import('../../../../../../../../../src/types').FMethodData<FRadioOptions>>;
13
13
  default: null;
14
14
  };
@@ -44,7 +44,7 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<im
44
44
  default: null;
45
45
  };
46
46
  options: {
47
- requried: boolean;
47
+ required: boolean;
48
48
  type: import('vue').PropType<FRadioOptions | import('../../../../../../../../../src/types').FMethodData<FRadioOptions>>;
49
49
  default: null;
50
50
  };
@@ -27,7 +27,7 @@ export declare const fRangeProps: {
27
27
  * 中间分割显示字符
28
28
  */
29
29
  separator: {
30
- tpye: StringConstructor;
30
+ type: StringConstructor;
31
31
  default: string;
32
32
  };
33
33
  /**
@@ -15,7 +15,7 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<im
15
15
  default: () => string[];
16
16
  };
17
17
  separator: {
18
- tpye: StringConstructor;
18
+ type: StringConstructor;
19
19
  default: string;
20
20
  };
21
21
  allowClear: {
@@ -59,7 +59,7 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<im
59
59
  default: () => string[];
60
60
  };
61
61
  separator: {
62
- tpye: StringConstructor;
62
+ type: StringConstructor;
63
63
  default: string;
64
64
  };
65
65
  allowClear: {
@@ -218,7 +218,7 @@ export declare const fTableProps: {
218
218
  type: PropType<FTableMerge<Record<string, any>>>;
219
219
  default: () => {
220
220
  row: never[];
221
- rowGroup: never[];
221
+ rowGroupBy: never[];
222
222
  };
223
223
  };
224
224
  /**
@@ -3,6 +3,7 @@ import { App } from 'vue';
3
3
  import { FInstallOptions } from './types';
4
4
 
5
5
  export * from './components/index';
6
+ export { utils } from './utils';
6
7
  declare function installFn(app: App, opts?: FInstallOptions): App;
7
8
  export declare const install: typeof installFn;
8
9
  declare const _default: {
@@ -0,0 +1,136 @@
1
+ /** 后端返回数据的基础字段 */
2
+ interface ServerEntityBase {
3
+ /**
4
+ * 创建人系统编号
5
+ */
6
+ InUserSysNo: number;
7
+ /**
8
+ * 创建人
9
+ */
10
+ InUserName: string;
11
+ /**
12
+ * 创建时间
13
+ */
14
+ InDate: string;
15
+ /**
16
+ * 创建时间(格式化)
17
+ */
18
+ InDateStr: string;
19
+ /**
20
+ * 修改人系统编号
21
+ */
22
+ EditUserSysNo?: number | null;
23
+ /**
24
+ * 修改人
25
+ */
26
+ EditUserName?: string | null;
27
+ /**
28
+ * 修改时间
29
+ */
30
+ EditDate?: string | null;
31
+ /**
32
+ * 修改时间(格式化)
33
+ */
34
+ EditDateStr?: string;
35
+ }
36
+ /** 服务端返回的菜单及权限 */
37
+ export interface AuthFunction extends ServerEntityBase {
38
+ /**
39
+ * 系统编号
40
+ */
41
+ SysNo: number;
42
+ /**
43
+ * 应用系统
44
+ */
45
+ AppID: string;
46
+ /**
47
+ * 菜单树编号
48
+ */
49
+ TreeCode: string;
50
+ /**
51
+ * 菜单Key
52
+ */
53
+ FunctionKey: string;
54
+ /**
55
+ * 菜单名称
56
+ */
57
+ FunctionName: string;
58
+ /**
59
+ * 是否为菜单
60
+ * 0:不是菜单
61
+ * 1:是菜单
62
+ */
63
+ IsMenu: 0 | 1;
64
+ /**
65
+ * 菜单页面url
66
+ */
67
+ MenuUrl: string | null;
68
+ /**
69
+ * 菜单图标
70
+ */
71
+ MenuIcon: string | null;
72
+ /**
73
+ * 是否启用
74
+ * 0:禁用
75
+ * 1:启用
76
+ */
77
+ CommonStatus: number;
78
+ /**
79
+ * 是否启用 - 转文本描述
80
+ */
81
+ CommonStatusStr: string;
82
+ /**
83
+ * 适用类型
84
+ *
85
+ * 用于某些特殊需求,比如SELLER PORTAL中该菜单适用哪种商家来源,1=只适用来源于客户ERP,2=只适用来源于飞驼OMS,0表示都适用不限制
86
+ */
87
+ ApplicableType: number;
88
+ /**
89
+ * 备注
90
+ */
91
+ Note: string;
92
+ /**
93
+ * 在角色分配权限时,标记是否选中
94
+ */
95
+ _IsSelected: boolean;
96
+ }
97
+ /** arco框架的应用菜单 */
98
+ export interface ArcoAppMenu {
99
+ /**
100
+ * 系统编号
101
+ */
102
+ sysno: number;
103
+ /**
104
+ * 菜单树编号
105
+ */
106
+ treeCode: string;
107
+ /**
108
+ * 菜单key
109
+ */
110
+ key: string;
111
+ /**
112
+ * 菜单名称
113
+ */
114
+ title: string;
115
+ /**
116
+ * 菜单图标
117
+ */
118
+ icon: string;
119
+ /**
120
+ * 菜单页面路径地址
121
+ */
122
+ path: string;
123
+ /**
124
+ * 子菜单列表
125
+ */
126
+ children?: ArcoAppMenu[];
127
+ }
128
+ /**
129
+ * 格式化服务端返回权限菜单数据 -- 仅支持arco框架的项目
130
+ *
131
+ * !!!目前只支持固定格式返回,暂无自定义处理能力!!!
132
+ * @param list 需要处理的权限数据
133
+ * @returns 格式化后的菜单列表
134
+ */
135
+ export declare function formatListToMenus(list: AuthFunction[]): ArcoAppMenu[];
136
+ export {};
@@ -0,0 +1,5 @@
1
+ /// <reference path="./components.d.ts" />
2
+ import * as businessFormat from './business-format';
3
+ export declare const utils: {
4
+ formatListToMenus(list: businessFormat.AuthFunction[]): businessFormat.ArcoAppMenu[];
5
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flyto/farco",
3
- "version": "1.1.2",
3
+ "version": "1.1.4",
4
4
  "main": "dist/index.umd.js",
5
5
  "module": "dist/index.es.js",
6
6
  "types": "dist/types/index.d.ts",
package/readme.md DELETED
@@ -1,3 +0,0 @@
1
- 基于 arco 二次封装的组件
2
-
3
- 更多描述:待完善