@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,99 @@
|
|
|
1
|
+
import { AnyObject } from '../../../../../../../../src/types';
|
|
2
|
+
import { TypographyTextInstance } from '@arco-design/web-vue';
|
|
3
|
+
import { ExtractPublicPropTypes, PropType, VNodeChild } from 'vue';
|
|
4
|
+
|
|
5
|
+
type FTextEllipsConfigBase = {
|
|
6
|
+
/**
|
|
7
|
+
* 缩略的行数
|
|
8
|
+
*/
|
|
9
|
+
rows: number;
|
|
10
|
+
/**
|
|
11
|
+
* 显示省略的类型,当notEllips为true时,此设置及所有省略相关配置无效
|
|
12
|
+
* 'normal': 默认显示三个省略号,hover时提示全部内容
|
|
13
|
+
* 'popup': 以弹层方式显示全部内容,末尾以一个图标或文本(提供插槽)来替换省略号展示,点击图标或文本时,展示弹层
|
|
14
|
+
* 'drawer': 以抽屉方式显示全部内容,末尾以一个图标或文本(提供插槽)来替换省略号展示,点击图标或文本时,展开或者关闭抽屉
|
|
15
|
+
*/
|
|
16
|
+
type?: 'normal' | 'popup' | 'drawer';
|
|
17
|
+
};
|
|
18
|
+
type FTextEllipsConfigNormal = FTextEllipsConfigBase & {
|
|
19
|
+
type: 'normal';
|
|
20
|
+
};
|
|
21
|
+
type FTextEllipsConfigDrawer = FTextEllipsConfigBase & {
|
|
22
|
+
type: 'drawer';
|
|
23
|
+
/**
|
|
24
|
+
* 更多的提示文本(type为drawer时生效)
|
|
25
|
+
*/
|
|
26
|
+
moreText?: string;
|
|
27
|
+
/**
|
|
28
|
+
* 收起的提示文本(type为drawer时生效)
|
|
29
|
+
*/
|
|
30
|
+
lessText?: string;
|
|
31
|
+
};
|
|
32
|
+
type FTextEllipsConfigPopup = FTextEllipsConfigBase & {
|
|
33
|
+
type: 'popup';
|
|
34
|
+
/**
|
|
35
|
+
* 显示全部文本的Icon(type为popup时生效)
|
|
36
|
+
*/
|
|
37
|
+
moreIcon?: string;
|
|
38
|
+
};
|
|
39
|
+
export type FTextEllipsConfig = FTextEllipsConfigNormal | FTextEllipsConfigDrawer | FTextEllipsConfigPopup;
|
|
40
|
+
export declare const fTextProps: {
|
|
41
|
+
/**
|
|
42
|
+
* 忽略省略模式
|
|
43
|
+
*/
|
|
44
|
+
ignoreEllips: {
|
|
45
|
+
type: BooleanConstructor;
|
|
46
|
+
default: boolean;
|
|
47
|
+
};
|
|
48
|
+
/**
|
|
49
|
+
* 省略模式类型
|
|
50
|
+
*/
|
|
51
|
+
ellipsType: {
|
|
52
|
+
type: PropType<"normal" | "popup" | "drawer">;
|
|
53
|
+
default: string;
|
|
54
|
+
};
|
|
55
|
+
/**
|
|
56
|
+
* 关于ellips的配置
|
|
57
|
+
*/
|
|
58
|
+
ellipsConfig: {
|
|
59
|
+
type: PropType<FTextEllipsConfig>;
|
|
60
|
+
default: () => {};
|
|
61
|
+
};
|
|
62
|
+
/**
|
|
63
|
+
* 值为空时的占位符
|
|
64
|
+
*/
|
|
65
|
+
placeholder: {
|
|
66
|
+
type: StringConstructor;
|
|
67
|
+
default: string;
|
|
68
|
+
};
|
|
69
|
+
/**
|
|
70
|
+
* 自定义前缀图标
|
|
71
|
+
* @value 等同于FIcon name属性
|
|
72
|
+
*/
|
|
73
|
+
preIcon: {
|
|
74
|
+
type: StringConstructor;
|
|
75
|
+
default: string;
|
|
76
|
+
};
|
|
77
|
+
/**
|
|
78
|
+
* 传递给FIcon组件的props
|
|
79
|
+
* 值同FIcon Props
|
|
80
|
+
*/
|
|
81
|
+
preIconProps: {
|
|
82
|
+
type: PropType<any>;
|
|
83
|
+
default: () => {};
|
|
84
|
+
};
|
|
85
|
+
/**
|
|
86
|
+
* 通过函数自定义渲染文本
|
|
87
|
+
* 在配合FFormItem组件使用时,可以免去使用插槽定义,从而快速渲染对应数据
|
|
88
|
+
*
|
|
89
|
+
* 注意:如果使用了default插槽,此项配置无效
|
|
90
|
+
*/
|
|
91
|
+
render: {
|
|
92
|
+
type: PropType<(data: {
|
|
93
|
+
data: AnyObject;
|
|
94
|
+
}) => VNodeChild>;
|
|
95
|
+
default: null;
|
|
96
|
+
};
|
|
97
|
+
};
|
|
98
|
+
export type FTextProps = ExtractPublicPropTypes<typeof fTextProps> & Omit<TypographyTextInstance['$props'], 'ellipsis' | 'onEllipsis' | 'onExpand'>;
|
|
99
|
+
export {};
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import { FTextEllipsConfig } from './ftext';
|
|
2
|
+
|
|
3
|
+
declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
4
|
+
modelValue: import('vue').PropType<string | number>;
|
|
5
|
+
ignoreEllips: {
|
|
6
|
+
type: BooleanConstructor;
|
|
7
|
+
default: boolean;
|
|
8
|
+
};
|
|
9
|
+
ellipsType: {
|
|
10
|
+
type: import('vue').PropType<"normal" | "popup" | "drawer">;
|
|
11
|
+
default: string;
|
|
12
|
+
};
|
|
13
|
+
ellipsConfig: {
|
|
14
|
+
type: import('vue').PropType<FTextEllipsConfig>;
|
|
15
|
+
default: () => {};
|
|
16
|
+
};
|
|
17
|
+
placeholder: {
|
|
18
|
+
type: StringConstructor;
|
|
19
|
+
default: string;
|
|
20
|
+
};
|
|
21
|
+
preIcon: {
|
|
22
|
+
type: StringConstructor;
|
|
23
|
+
default: string;
|
|
24
|
+
};
|
|
25
|
+
preIconProps: {
|
|
26
|
+
type: import('vue').PropType<any>;
|
|
27
|
+
default: () => {};
|
|
28
|
+
};
|
|
29
|
+
render: {
|
|
30
|
+
type: import('vue').PropType<(data: {
|
|
31
|
+
data: import('../../types').AnyObject<any>;
|
|
32
|
+
}) => import('vue').VNodeChild>;
|
|
33
|
+
default: null;
|
|
34
|
+
};
|
|
35
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
36
|
+
modelValue: import('vue').PropType<string | number>;
|
|
37
|
+
ignoreEllips: {
|
|
38
|
+
type: BooleanConstructor;
|
|
39
|
+
default: boolean;
|
|
40
|
+
};
|
|
41
|
+
ellipsType: {
|
|
42
|
+
type: import('vue').PropType<"normal" | "popup" | "drawer">;
|
|
43
|
+
default: string;
|
|
44
|
+
};
|
|
45
|
+
ellipsConfig: {
|
|
46
|
+
type: import('vue').PropType<FTextEllipsConfig>;
|
|
47
|
+
default: () => {};
|
|
48
|
+
};
|
|
49
|
+
placeholder: {
|
|
50
|
+
type: StringConstructor;
|
|
51
|
+
default: string;
|
|
52
|
+
};
|
|
53
|
+
preIcon: {
|
|
54
|
+
type: StringConstructor;
|
|
55
|
+
default: string;
|
|
56
|
+
};
|
|
57
|
+
preIconProps: {
|
|
58
|
+
type: import('vue').PropType<any>;
|
|
59
|
+
default: () => {};
|
|
60
|
+
};
|
|
61
|
+
render: {
|
|
62
|
+
type: import('vue').PropType<(data: {
|
|
63
|
+
data: import('../../types').AnyObject<any>;
|
|
64
|
+
}) => import('vue').VNodeChild>;
|
|
65
|
+
default: null;
|
|
66
|
+
};
|
|
67
|
+
}>> & Readonly<{}>, {
|
|
68
|
+
placeholder: string;
|
|
69
|
+
render: (data: {
|
|
70
|
+
data: import('../../types').AnyObject<any>;
|
|
71
|
+
}) => import('vue').VNodeChild;
|
|
72
|
+
ignoreEllips: boolean;
|
|
73
|
+
ellipsType: "normal" | "popup" | "drawer";
|
|
74
|
+
ellipsConfig: FTextEllipsConfig;
|
|
75
|
+
preIcon: string;
|
|
76
|
+
preIconProps: any;
|
|
77
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>, {
|
|
78
|
+
default?(_: {
|
|
79
|
+
data: Record<string, any> | undefined;
|
|
80
|
+
}): any;
|
|
81
|
+
}>;
|
|
82
|
+
export default _default;
|
|
83
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
84
|
+
new (): {
|
|
85
|
+
$slots: S;
|
|
86
|
+
};
|
|
87
|
+
};
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { TextareaInstance } from '@arco-design/web-vue';
|
|
2
|
+
import { ExtractPropTypes, PropType } from 'vue';
|
|
3
|
+
|
|
4
|
+
export declare const fTextareaProps: {
|
|
5
|
+
/**
|
|
6
|
+
* 默认值(非受控模式)
|
|
7
|
+
*/
|
|
8
|
+
defaultValue: {
|
|
9
|
+
type: StringConstructor;
|
|
10
|
+
default: null;
|
|
11
|
+
};
|
|
12
|
+
/**
|
|
13
|
+
* 占位符
|
|
14
|
+
*/
|
|
15
|
+
placeholder: {
|
|
16
|
+
type: StringConstructor;
|
|
17
|
+
default: string;
|
|
18
|
+
};
|
|
19
|
+
/**
|
|
20
|
+
* 允许清空
|
|
21
|
+
*/
|
|
22
|
+
allowClear: {
|
|
23
|
+
type: BooleanConstructor;
|
|
24
|
+
default: boolean;
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* textarea的rows配置
|
|
28
|
+
* 如果类型为number,则只配置minRows
|
|
29
|
+
*/
|
|
30
|
+
rows: {
|
|
31
|
+
type: PropType<number | {
|
|
32
|
+
minRows?: number | undefined;
|
|
33
|
+
maxRows?: number | undefined;
|
|
34
|
+
}>;
|
|
35
|
+
default: () => {
|
|
36
|
+
minRows: number;
|
|
37
|
+
maxRows: number;
|
|
38
|
+
};
|
|
39
|
+
};
|
|
40
|
+
};
|
|
41
|
+
export type FTextareaProps = Omit<TextareaInstance['$props'], 'autoSize'> & ExtractPropTypes<typeof fTextareaProps>;
|