@flyto/farco 1.0.0
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/dist/index.es.js +19599 -0
- package/dist/index.umd.js +127 -0
- package/dist/style.css +1 -0
- package/dist/types/components/fbutton/fbutton.d.ts +37 -0
- package/dist/types/components/fbutton/fbutton.vue.d.ts +34 -0
- package/dist/types/components/fbutton/index.d.ts +6 -0
- package/dist/types/components/fcheckbox/constants/index.d.ts +11 -0
- package/dist/types/components/fcheckbox/fcheckbox.d.ts +45 -0
- package/dist/types/components/fcheckbox/fcheckbox.vue.d.ts +168 -0
- package/dist/types/components/fcheckbox/index.d.ts +6 -0
- package/dist/types/components/fdate/fdate.d.ts +69 -0
- package/dist/types/components/fdate/fdate.vue.d.ts +45 -0
- package/dist/types/components/fdate/index.d.ts +6 -0
- package/dist/types/components/fform/fform.d.ts +87 -0
- package/dist/types/components/fform/fform.vue.d.ts +124 -0
- package/dist/types/components/fform/index.d.ts +6 -0
- package/dist/types/components/fform-item/fform-item.d.ts +94 -0
- package/dist/types/components/fform-item/fform-item.vue.d.ts +117 -0
- package/dist/types/components/fform-item/index.d.ts +6 -0
- package/dist/types/components/ficon/ficon.d.ts +45 -0
- package/dist/types/components/ficon/ficon.vue.d.ts +59 -0
- package/dist/types/components/ficon/index.d.ts +6 -0
- package/dist/types/components/finput/finput.d.ts +56 -0
- package/dist/types/components/finput/finput.vue.d.ts +83 -0
- package/dist/types/components/finput/index.d.ts +6 -0
- package/dist/types/components/flink/flink.d.ts +28 -0
- package/dist/types/components/flink/flink.vue.d.ts +40 -0
- package/dist/types/components/flink/index.d.ts +6 -0
- package/dist/types/components/fml-input/fml-input.d.ts +76 -0
- package/dist/types/components/fml-input/fml-input.vue.d.ts +627 -0
- package/dist/types/components/fml-input/index.d.ts +6 -0
- package/dist/types/components/fpop-choice/fpop-choice.d.ts +56 -0
- package/dist/types/components/fpop-choice/fpop-choice.vue.d.ts +893 -0
- package/dist/types/components/fpop-choice/index.d.ts +8 -0
- package/dist/types/components/fpop-choice/utils/index.d.ts +19 -0
- package/dist/types/components/fquery-list/fquery-list.d.ts +129 -0
- package/dist/types/components/fquery-list/fquery-list.vue.d.ts +1352 -0
- package/dist/types/components/fquery-list/index.d.ts +7 -0
- package/dist/types/components/fradio/constants/index.d.ts +9 -0
- package/dist/types/components/fradio/fradio.d.ts +52 -0
- package/dist/types/components/fradio/fradio.vue.d.ts +174 -0
- package/dist/types/components/fradio/index.d.ts +6 -0
- package/dist/types/components/frange/frange.d.ts +48 -0
- package/dist/types/components/frange/frange.vue.d.ts +91 -0
- package/dist/types/components/frange/index.d.ts +6 -0
- package/dist/types/components/fsearch/fsearch.d.ts +79 -0
- package/dist/types/components/fsearch/fsearch.vue.d.ts +104 -0
- package/dist/types/components/fsearch/index.d.ts +6 -0
- package/dist/types/components/fselect/constants/index.d.ts +7 -0
- package/dist/types/components/fselect/fselect-option.vue.d.ts +21 -0
- package/dist/types/components/fselect/fselect.d.ts +123 -0
- package/dist/types/components/fselect/fselect.vue.d.ts +182 -0
- package/dist/types/components/fselect/index.d.ts +6 -0
- package/dist/types/components/fskeleton/fskeleton.d.ts +19 -0
- package/dist/types/components/fskeleton/fskeleton.vue.d.ts +15 -0
- package/dist/types/components/fskeleton/index.d.ts +6 -0
- package/dist/types/components/fswitch/fswitch.d.ts +10 -0
- package/dist/types/components/fswitch/fswitch.vue.d.ts +365 -0
- package/dist/types/components/fswitch/index.d.ts +6 -0
- package/dist/types/components/ftable/constants/index.d.ts +17 -0
- package/dist/types/components/ftable/ftable-cols-set.vue.d.ts +6 -0
- package/dist/types/components/ftable/ftable-toolbar.vue.d.ts +55 -0
- package/dist/types/components/ftable/ftable.d.ts +335 -0
- package/dist/types/components/ftable/ftable.vue.d.ts +335 -0
- package/dist/types/components/ftable/index.d.ts +7 -0
- package/dist/types/components/ftable/utils/index.d.ts +16 -0
- package/dist/types/components/ftext/ftext.d.ts +99 -0
- package/dist/types/components/ftext/ftext.vue.d.ts +87 -0
- package/dist/types/components/ftext/index.d.ts +6 -0
- package/dist/types/components/ftextarea/ftextarea.d.ts +41 -0
- package/dist/types/components/ftextarea/ftextarea.vue.d.ts +582 -0
- package/dist/types/components/ftextarea/index.d.ts +6 -0
- package/dist/types/components/index.d.ts +41 -0
- package/dist/types/components.d.ts +34 -0
- package/dist/types/constants/fform.d.ts +9 -0
- package/dist/types/constants/global.d.ts +11 -0
- package/dist/types/index.d.ts +15 -0
- package/dist/types/types/global.d.ts +45 -0
- package/dist/types/types/index.d.ts +2 -0
- package/package.json +55 -0
- package/readme.md +3 -0
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
import { SelectOptionData, SelectOptionGroup, SelectProps } from '@arco-design/web-vue';
|
|
2
|
+
import { ExtractPublicPropTypes, PropType } from 'vue';
|
|
3
|
+
import { FMethodData } from '../../../../../../../../src/types';
|
|
4
|
+
|
|
5
|
+
export type FSelectValue = string | number | boolean | Record<string, any> | (string | number | boolean | Record<string, any>)[];
|
|
6
|
+
export type FSelectOptions = (SelectOptionData | SelectOptionGroup)[];
|
|
7
|
+
export type FSelectOptionKeyNames = {
|
|
8
|
+
label: string;
|
|
9
|
+
value: string;
|
|
10
|
+
groupLabel?: string;
|
|
11
|
+
};
|
|
12
|
+
export declare const fSelectProps: {
|
|
13
|
+
/**
|
|
14
|
+
* 默认值(非受控模式)
|
|
15
|
+
*/
|
|
16
|
+
defaultValue: {
|
|
17
|
+
type: PropType<FSelectValue>;
|
|
18
|
+
default: null;
|
|
19
|
+
};
|
|
20
|
+
/**
|
|
21
|
+
* 选项列表
|
|
22
|
+
* 支持Promise函数,可返回一个远程获取的数据
|
|
23
|
+
*/
|
|
24
|
+
options: {
|
|
25
|
+
type: PropType<FSelectOptions | FMethodData<FSelectOptions>>;
|
|
26
|
+
default: null;
|
|
27
|
+
};
|
|
28
|
+
/**
|
|
29
|
+
* 提供给option组件渲染时值与名称的字段名称
|
|
30
|
+
*/
|
|
31
|
+
optionKeyNames: {
|
|
32
|
+
type: PropType<FSelectOptionKeyNames>;
|
|
33
|
+
default: () => {
|
|
34
|
+
label: string;
|
|
35
|
+
value: string;
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
/**
|
|
39
|
+
* 隐藏默认空值项(默认无选中项)
|
|
40
|
+
*/
|
|
41
|
+
defaultHide: {
|
|
42
|
+
type: BooleanConstructor;
|
|
43
|
+
default: boolean;
|
|
44
|
+
};
|
|
45
|
+
/**
|
|
46
|
+
* 未有选中值时的提示文本
|
|
47
|
+
*/
|
|
48
|
+
placeholder: {
|
|
49
|
+
type: StringConstructor;
|
|
50
|
+
default: string;
|
|
51
|
+
};
|
|
52
|
+
/**
|
|
53
|
+
* 允许清空
|
|
54
|
+
*/
|
|
55
|
+
allowClear: {
|
|
56
|
+
type: BooleanConstructor;
|
|
57
|
+
default: boolean;
|
|
58
|
+
};
|
|
59
|
+
/**
|
|
60
|
+
* 允许搜索
|
|
61
|
+
*/
|
|
62
|
+
allowSearch: {
|
|
63
|
+
type: BooleanConstructor;
|
|
64
|
+
default: boolean;
|
|
65
|
+
};
|
|
66
|
+
/**
|
|
67
|
+
* 多选时,已选择项最大显示数量
|
|
68
|
+
*/
|
|
69
|
+
maxTagCount: {
|
|
70
|
+
type: NumberConstructor;
|
|
71
|
+
default: number;
|
|
72
|
+
};
|
|
73
|
+
/**
|
|
74
|
+
* 空数据时,显示的文本
|
|
75
|
+
*/
|
|
76
|
+
emptyText: {
|
|
77
|
+
type: StringConstructor;
|
|
78
|
+
default: string;
|
|
79
|
+
};
|
|
80
|
+
/**
|
|
81
|
+
* 搜索时的回调
|
|
82
|
+
*/
|
|
83
|
+
onSearch: {
|
|
84
|
+
type: PropType<(value: string) => void>;
|
|
85
|
+
default: null;
|
|
86
|
+
};
|
|
87
|
+
/**
|
|
88
|
+
* 是否多选
|
|
89
|
+
*/
|
|
90
|
+
multiple: {
|
|
91
|
+
type: BooleanConstructor;
|
|
92
|
+
default: boolean;
|
|
93
|
+
};
|
|
94
|
+
/**
|
|
95
|
+
* 如果只有一个选项的情况下,默认选中
|
|
96
|
+
*/
|
|
97
|
+
autoSelectSingle: {
|
|
98
|
+
type: BooleanConstructor;
|
|
99
|
+
default: boolean;
|
|
100
|
+
};
|
|
101
|
+
/**
|
|
102
|
+
* 不管有几个选项,都默认选中第一个
|
|
103
|
+
*/
|
|
104
|
+
autoSelectFirst: {
|
|
105
|
+
type: BooleanConstructor;
|
|
106
|
+
default: boolean;
|
|
107
|
+
};
|
|
108
|
+
/**
|
|
109
|
+
* 搜索输入框聚焦的事件
|
|
110
|
+
*/
|
|
111
|
+
onFocus: {
|
|
112
|
+
type: PropType<(e: FocusEvent) => void>;
|
|
113
|
+
default: null;
|
|
114
|
+
};
|
|
115
|
+
/**
|
|
116
|
+
* 搜索输入框失焦的事件
|
|
117
|
+
*/
|
|
118
|
+
onBlur: {
|
|
119
|
+
type: PropType<(e: FocusEvent) => void>;
|
|
120
|
+
default: null;
|
|
121
|
+
};
|
|
122
|
+
};
|
|
123
|
+
export type FSelectProps = ExtractPublicPropTypes<typeof fSelectProps> & Omit<SelectProps, 'options' | 'loading'>;
|
|
@@ -0,0 +1,182 @@
|
|
|
1
|
+
import { Ref } from 'vue';
|
|
2
|
+
import { AnyObject } from '../../../../../../../../src/types';
|
|
3
|
+
import { FSelectOptions as FSelectOptionsType, FSelectValue } from './fselect';
|
|
4
|
+
|
|
5
|
+
declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
6
|
+
modelValue: import('vue').PropType<FSelectValue>;
|
|
7
|
+
defaultValue: {
|
|
8
|
+
type: import('vue').PropType<FSelectValue>;
|
|
9
|
+
default: null;
|
|
10
|
+
};
|
|
11
|
+
options: {
|
|
12
|
+
type: import('vue').PropType<FSelectOptionsType | import('../../../../../../../../src/types').FMethodData<FSelectOptionsType>>;
|
|
13
|
+
default: null;
|
|
14
|
+
};
|
|
15
|
+
optionKeyNames: {
|
|
16
|
+
type: import('vue').PropType<import('./fselect').FSelectOptionKeyNames>;
|
|
17
|
+
default: () => {
|
|
18
|
+
label: string;
|
|
19
|
+
value: string;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
defaultHide: {
|
|
23
|
+
type: BooleanConstructor;
|
|
24
|
+
default: boolean;
|
|
25
|
+
};
|
|
26
|
+
placeholder: {
|
|
27
|
+
type: StringConstructor;
|
|
28
|
+
default: string;
|
|
29
|
+
};
|
|
30
|
+
allowClear: {
|
|
31
|
+
type: BooleanConstructor;
|
|
32
|
+
default: boolean;
|
|
33
|
+
};
|
|
34
|
+
allowSearch: {
|
|
35
|
+
type: BooleanConstructor;
|
|
36
|
+
default: boolean;
|
|
37
|
+
};
|
|
38
|
+
maxTagCount: {
|
|
39
|
+
type: NumberConstructor;
|
|
40
|
+
default: number;
|
|
41
|
+
};
|
|
42
|
+
emptyText: {
|
|
43
|
+
type: StringConstructor;
|
|
44
|
+
default: string;
|
|
45
|
+
};
|
|
46
|
+
onSearch: {
|
|
47
|
+
type: import('vue').PropType<(value: string) => void>;
|
|
48
|
+
default: null;
|
|
49
|
+
};
|
|
50
|
+
multiple: {
|
|
51
|
+
type: BooleanConstructor;
|
|
52
|
+
default: boolean;
|
|
53
|
+
};
|
|
54
|
+
autoSelectSingle: {
|
|
55
|
+
type: BooleanConstructor;
|
|
56
|
+
default: boolean;
|
|
57
|
+
};
|
|
58
|
+
autoSelectFirst: {
|
|
59
|
+
type: BooleanConstructor;
|
|
60
|
+
default: boolean;
|
|
61
|
+
};
|
|
62
|
+
onFocus: {
|
|
63
|
+
type: import('vue').PropType<(e: FocusEvent) => void>;
|
|
64
|
+
default: null;
|
|
65
|
+
};
|
|
66
|
+
onBlur: {
|
|
67
|
+
type: import('vue').PropType<(e: FocusEvent) => void>;
|
|
68
|
+
default: null;
|
|
69
|
+
};
|
|
70
|
+
}>, {
|
|
71
|
+
/**
|
|
72
|
+
* 值,在非受控模式下,读取组件的值
|
|
73
|
+
*/
|
|
74
|
+
value: import('vue').ModelRef<FSelectValue | undefined, string, FSelectValue | undefined, FSelectValue | undefined>;
|
|
75
|
+
/**
|
|
76
|
+
* 如果options是一个方法,则手动重新调用此方法,从而获取新数据
|
|
77
|
+
* @param params 手动重新指定传出的参数
|
|
78
|
+
*/
|
|
79
|
+
replayMethodOptions(params?: AnyObject<any> | undefined): void;
|
|
80
|
+
/**
|
|
81
|
+
* Arco Select 组件实例
|
|
82
|
+
*/
|
|
83
|
+
ins: Ref<any, any>;
|
|
84
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
85
|
+
popupVisibleChange: (visible: boolean) => void;
|
|
86
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
87
|
+
modelValue: import('vue').PropType<FSelectValue>;
|
|
88
|
+
defaultValue: {
|
|
89
|
+
type: import('vue').PropType<FSelectValue>;
|
|
90
|
+
default: null;
|
|
91
|
+
};
|
|
92
|
+
options: {
|
|
93
|
+
type: import('vue').PropType<FSelectOptionsType | import('../../../../../../../../src/types').FMethodData<FSelectOptionsType>>;
|
|
94
|
+
default: null;
|
|
95
|
+
};
|
|
96
|
+
optionKeyNames: {
|
|
97
|
+
type: import('vue').PropType<import('./fselect').FSelectOptionKeyNames>;
|
|
98
|
+
default: () => {
|
|
99
|
+
label: string;
|
|
100
|
+
value: string;
|
|
101
|
+
};
|
|
102
|
+
};
|
|
103
|
+
defaultHide: {
|
|
104
|
+
type: BooleanConstructor;
|
|
105
|
+
default: boolean;
|
|
106
|
+
};
|
|
107
|
+
placeholder: {
|
|
108
|
+
type: StringConstructor;
|
|
109
|
+
default: string;
|
|
110
|
+
};
|
|
111
|
+
allowClear: {
|
|
112
|
+
type: BooleanConstructor;
|
|
113
|
+
default: boolean;
|
|
114
|
+
};
|
|
115
|
+
allowSearch: {
|
|
116
|
+
type: BooleanConstructor;
|
|
117
|
+
default: boolean;
|
|
118
|
+
};
|
|
119
|
+
maxTagCount: {
|
|
120
|
+
type: NumberConstructor;
|
|
121
|
+
default: number;
|
|
122
|
+
};
|
|
123
|
+
emptyText: {
|
|
124
|
+
type: StringConstructor;
|
|
125
|
+
default: string;
|
|
126
|
+
};
|
|
127
|
+
onSearch: {
|
|
128
|
+
type: import('vue').PropType<(value: string) => void>;
|
|
129
|
+
default: null;
|
|
130
|
+
};
|
|
131
|
+
multiple: {
|
|
132
|
+
type: BooleanConstructor;
|
|
133
|
+
default: boolean;
|
|
134
|
+
};
|
|
135
|
+
autoSelectSingle: {
|
|
136
|
+
type: BooleanConstructor;
|
|
137
|
+
default: boolean;
|
|
138
|
+
};
|
|
139
|
+
autoSelectFirst: {
|
|
140
|
+
type: BooleanConstructor;
|
|
141
|
+
default: boolean;
|
|
142
|
+
};
|
|
143
|
+
onFocus: {
|
|
144
|
+
type: import('vue').PropType<(e: FocusEvent) => void>;
|
|
145
|
+
default: null;
|
|
146
|
+
};
|
|
147
|
+
onBlur: {
|
|
148
|
+
type: import('vue').PropType<(e: FocusEvent) => void>;
|
|
149
|
+
default: null;
|
|
150
|
+
};
|
|
151
|
+
}>> & Readonly<{
|
|
152
|
+
onPopupVisibleChange?: ((visible: boolean) => any) | undefined;
|
|
153
|
+
}>, {
|
|
154
|
+
placeholder: string;
|
|
155
|
+
onBlur: (e: FocusEvent) => void;
|
|
156
|
+
onFocus: (e: FocusEvent) => void;
|
|
157
|
+
options: FSelectOptionsType | import('../../../../../../../../src/types').FMethodData<FSelectOptionsType>;
|
|
158
|
+
defaultValue: FSelectValue;
|
|
159
|
+
optionKeyNames: import('./fselect').FSelectOptionKeyNames;
|
|
160
|
+
allowClear: boolean;
|
|
161
|
+
defaultHide: boolean;
|
|
162
|
+
allowSearch: boolean;
|
|
163
|
+
maxTagCount: number;
|
|
164
|
+
emptyText: string;
|
|
165
|
+
onSearch: (value: string) => void;
|
|
166
|
+
multiple: boolean;
|
|
167
|
+
autoSelectSingle: boolean;
|
|
168
|
+
autoSelectFirst: boolean;
|
|
169
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>, {
|
|
170
|
+
prepend?(_: {
|
|
171
|
+
data: Record<string, any>;
|
|
172
|
+
}): any;
|
|
173
|
+
append?(_: {
|
|
174
|
+
data: Record<string, any>;
|
|
175
|
+
}): any;
|
|
176
|
+
}>;
|
|
177
|
+
export default _default;
|
|
178
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
179
|
+
new (): {
|
|
180
|
+
$slots: S;
|
|
181
|
+
};
|
|
182
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { SkeletonInstance } from '@arco-design/web-vue';
|
|
2
|
+
|
|
3
|
+
export declare const fSkeletonProps: {
|
|
4
|
+
/**
|
|
5
|
+
* 加载状态
|
|
6
|
+
*/
|
|
7
|
+
loading: {
|
|
8
|
+
type: BooleanConstructor;
|
|
9
|
+
required: boolean;
|
|
10
|
+
};
|
|
11
|
+
/**
|
|
12
|
+
* 行数
|
|
13
|
+
*/
|
|
14
|
+
rows: {
|
|
15
|
+
type: NumberConstructor;
|
|
16
|
+
default: number;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
export type FSkeletonProps = SkeletonInstance['$props'];
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<{}, {
|
|
2
|
+
loading: boolean;
|
|
3
|
+
rows: number;
|
|
4
|
+
$props: {
|
|
5
|
+
readonly loading?: boolean | undefined;
|
|
6
|
+
readonly rows?: number | undefined;
|
|
7
|
+
};
|
|
8
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>, {
|
|
9
|
+
skeleton?(_: {}): any;
|
|
10
|
+
default?(_: {}): any;
|
|
11
|
+
}>;
|
|
12
|
+
export default _default;
|
|
13
|
+
type __VLS_WithTemplateSlots<T, S> = T & (new () => {
|
|
14
|
+
$slots: S;
|
|
15
|
+
});
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { SwitchInstance } from '@arco-design/web-vue';
|
|
2
|
+
import { ExtractPublicPropTypes } from 'vue';
|
|
3
|
+
|
|
4
|
+
export declare const fSwitchProps: {
|
|
5
|
+
defaultValue: {
|
|
6
|
+
type: BooleanConstructor;
|
|
7
|
+
default: null;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
export type FSwitchProps = ExtractPublicPropTypes<typeof fSwitchProps> & SwitchInstance['$props'];
|