@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.
Files changed (81) hide show
  1. package/dist/index.es.js +19599 -0
  2. package/dist/index.umd.js +127 -0
  3. package/dist/style.css +1 -0
  4. package/dist/types/components/fbutton/fbutton.d.ts +37 -0
  5. package/dist/types/components/fbutton/fbutton.vue.d.ts +34 -0
  6. package/dist/types/components/fbutton/index.d.ts +6 -0
  7. package/dist/types/components/fcheckbox/constants/index.d.ts +11 -0
  8. package/dist/types/components/fcheckbox/fcheckbox.d.ts +45 -0
  9. package/dist/types/components/fcheckbox/fcheckbox.vue.d.ts +168 -0
  10. package/dist/types/components/fcheckbox/index.d.ts +6 -0
  11. package/dist/types/components/fdate/fdate.d.ts +69 -0
  12. package/dist/types/components/fdate/fdate.vue.d.ts +45 -0
  13. package/dist/types/components/fdate/index.d.ts +6 -0
  14. package/dist/types/components/fform/fform.d.ts +87 -0
  15. package/dist/types/components/fform/fform.vue.d.ts +124 -0
  16. package/dist/types/components/fform/index.d.ts +6 -0
  17. package/dist/types/components/fform-item/fform-item.d.ts +94 -0
  18. package/dist/types/components/fform-item/fform-item.vue.d.ts +117 -0
  19. package/dist/types/components/fform-item/index.d.ts +6 -0
  20. package/dist/types/components/ficon/ficon.d.ts +45 -0
  21. package/dist/types/components/ficon/ficon.vue.d.ts +59 -0
  22. package/dist/types/components/ficon/index.d.ts +6 -0
  23. package/dist/types/components/finput/finput.d.ts +56 -0
  24. package/dist/types/components/finput/finput.vue.d.ts +83 -0
  25. package/dist/types/components/finput/index.d.ts +6 -0
  26. package/dist/types/components/flink/flink.d.ts +28 -0
  27. package/dist/types/components/flink/flink.vue.d.ts +40 -0
  28. package/dist/types/components/flink/index.d.ts +6 -0
  29. package/dist/types/components/fml-input/fml-input.d.ts +76 -0
  30. package/dist/types/components/fml-input/fml-input.vue.d.ts +627 -0
  31. package/dist/types/components/fml-input/index.d.ts +6 -0
  32. package/dist/types/components/fpop-choice/fpop-choice.d.ts +56 -0
  33. package/dist/types/components/fpop-choice/fpop-choice.vue.d.ts +893 -0
  34. package/dist/types/components/fpop-choice/index.d.ts +8 -0
  35. package/dist/types/components/fpop-choice/utils/index.d.ts +19 -0
  36. package/dist/types/components/fquery-list/fquery-list.d.ts +129 -0
  37. package/dist/types/components/fquery-list/fquery-list.vue.d.ts +1352 -0
  38. package/dist/types/components/fquery-list/index.d.ts +7 -0
  39. package/dist/types/components/fradio/constants/index.d.ts +9 -0
  40. package/dist/types/components/fradio/fradio.d.ts +52 -0
  41. package/dist/types/components/fradio/fradio.vue.d.ts +174 -0
  42. package/dist/types/components/fradio/index.d.ts +6 -0
  43. package/dist/types/components/frange/frange.d.ts +48 -0
  44. package/dist/types/components/frange/frange.vue.d.ts +91 -0
  45. package/dist/types/components/frange/index.d.ts +6 -0
  46. package/dist/types/components/fsearch/fsearch.d.ts +79 -0
  47. package/dist/types/components/fsearch/fsearch.vue.d.ts +104 -0
  48. package/dist/types/components/fsearch/index.d.ts +6 -0
  49. package/dist/types/components/fselect/constants/index.d.ts +7 -0
  50. package/dist/types/components/fselect/fselect-option.vue.d.ts +21 -0
  51. package/dist/types/components/fselect/fselect.d.ts +123 -0
  52. package/dist/types/components/fselect/fselect.vue.d.ts +182 -0
  53. package/dist/types/components/fselect/index.d.ts +6 -0
  54. package/dist/types/components/fskeleton/fskeleton.d.ts +19 -0
  55. package/dist/types/components/fskeleton/fskeleton.vue.d.ts +15 -0
  56. package/dist/types/components/fskeleton/index.d.ts +6 -0
  57. package/dist/types/components/fswitch/fswitch.d.ts +10 -0
  58. package/dist/types/components/fswitch/fswitch.vue.d.ts +365 -0
  59. package/dist/types/components/fswitch/index.d.ts +6 -0
  60. package/dist/types/components/ftable/constants/index.d.ts +17 -0
  61. package/dist/types/components/ftable/ftable-cols-set.vue.d.ts +6 -0
  62. package/dist/types/components/ftable/ftable-toolbar.vue.d.ts +55 -0
  63. package/dist/types/components/ftable/ftable.d.ts +335 -0
  64. package/dist/types/components/ftable/ftable.vue.d.ts +335 -0
  65. package/dist/types/components/ftable/index.d.ts +7 -0
  66. package/dist/types/components/ftable/utils/index.d.ts +16 -0
  67. package/dist/types/components/ftext/ftext.d.ts +99 -0
  68. package/dist/types/components/ftext/ftext.vue.d.ts +87 -0
  69. package/dist/types/components/ftext/index.d.ts +6 -0
  70. package/dist/types/components/ftextarea/ftextarea.d.ts +41 -0
  71. package/dist/types/components/ftextarea/ftextarea.vue.d.ts +582 -0
  72. package/dist/types/components/ftextarea/index.d.ts +6 -0
  73. package/dist/types/components/index.d.ts +41 -0
  74. package/dist/types/components.d.ts +34 -0
  75. package/dist/types/constants/fform.d.ts +9 -0
  76. package/dist/types/constants/global.d.ts +11 -0
  77. package/dist/types/index.d.ts +15 -0
  78. package/dist/types/types/global.d.ts +45 -0
  79. package/dist/types/types/index.d.ts +2 -0
  80. package/package.json +55 -0
  81. package/readme.md +3 -0
@@ -0,0 +1,94 @@
1
+ import { ExtractPublicPropTypes, Component, PropType, VNodeChild } from 'vue';
2
+ import { AnyObject } from '../../../../../../../../src/types';
3
+ import { FieldRule, FormItem } from '@arco-design/web-vue';
4
+
5
+ export declare const CUSTOM_COMPONENT_NAME = "custom";
6
+ /**
7
+ * 所有支持通过配置项来渲染的组件合集
8
+ * 当前引入的组件基本上都会在正常业务中所使用到,所以此处就直接引入全部,暂时不考虑实际使用时传入一个组件,进行按需引入,编译需要TreeShake的事情
9
+ */
10
+ type FacroComponentNames = typeof CUSTOM_COMPONENT_NAME | 'text' | 'radio' | 'date' | 'range' | 'input' | 'select' | 'checkbox' | 'switch' | 'ml-input' | 'textarea' | 'search';
11
+ export declare const fFormItemComponents: Record<FacroComponentNames, Component | null>;
12
+ export declare const fFormItemProps: {
13
+ /**
14
+ * 表单项唯一标识
15
+ * 在配置FForm使用时,也是获取值的唯一标识符
16
+ */
17
+ prop: {
18
+ type: StringConstructor;
19
+ default: null;
20
+ };
21
+ /**
22
+ * 需要渲染的内部组件的名称,必须在上面fFormItemComponents变量中定义过才支持
23
+ * 非受控字段,只在初始化时确认唯一渲染组件
24
+ * 为了扩展性,提供custom特殊值,在使用default插槽进行自定义渲染时,请使用该特殊值
25
+ */
26
+ comp: {
27
+ required: boolean;
28
+ type: PropType<FacroComponentNames>;
29
+ default: null;
30
+ validator: (value: string) => boolean;
31
+ };
32
+ /**
33
+ * 通过函数自定义表单内部组件渲染
34
+ * 只在comp = 'custom' 生效
35
+ */
36
+ render: {
37
+ type: PropType<(data: {
38
+ data: AnyObject;
39
+ }) => VNodeChild>;
40
+ default: null;
41
+ validator: (_v: any, props: any) => boolean;
42
+ };
43
+ /**
44
+ * 传递给到渲染组件的props
45
+ * 如果需要传递events方法,请在方法前面加上on,方法名首字母大写
46
+ * 例:click => onClick
47
+ */
48
+ compProps: {
49
+ type: ObjectConstructor;
50
+ default: null;
51
+ };
52
+ /**
53
+ * 标签文本
54
+ */
55
+ label: {
56
+ type: StringConstructor;
57
+ default: string;
58
+ };
59
+ /**
60
+ * 是否隐藏标签
61
+ * @value 在标签无值或者标签值为空字符串时,默认为true
62
+ */
63
+ hideLabel: {
64
+ type: BooleanConstructor;
65
+ default: (props: any) => boolean;
66
+ };
67
+ /**
68
+ * 提示语
69
+ *
70
+ * 如需换行显示,可使用"\n"作为换行符
71
+ */
72
+ tooltip: {
73
+ type: StringConstructor;
74
+ default: null;
75
+ };
76
+ /**
77
+ * 是否必填
78
+ */
79
+ required: {
80
+ type: BooleanConstructor;
81
+ default: boolean;
82
+ };
83
+ /**
84
+ * 校验规则
85
+ */
86
+ rules: {
87
+ type: PropType<any>;
88
+ default(props: any): FieldRule[] | null;
89
+ };
90
+ };
91
+ export type FFormItemProps<T = object> = Omit<ExtractPublicPropTypes<typeof fFormItemProps>, 'compProps'> & Omit<InstanceType<typeof FormItem>['$props'], 'label' | 'hideLabel'> & {
92
+ compProps?: T;
93
+ };
94
+ export {};
@@ -0,0 +1,117 @@
1
+ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<import('vue').ExtractPropTypes<{
2
+ modelValue: import('vue').PropType<unknown>;
3
+ prop: {
4
+ type: StringConstructor;
5
+ default: null;
6
+ };
7
+ comp: {
8
+ required: boolean;
9
+ type: import('vue').PropType<"input" | "select" | "textarea" | "search" | "switch" | "text" | "checkbox" | "date" | "range" | "radio" | "custom" | "ml-input">;
10
+ default: null;
11
+ validator: (value: string) => boolean;
12
+ };
13
+ render: {
14
+ type: import('vue').PropType<(data: {
15
+ data: import('../../types').AnyObject<any>;
16
+ }) => import('vue').VNodeChild>;
17
+ default: null;
18
+ validator: (_v: any, props: any) => boolean;
19
+ };
20
+ compProps: {
21
+ type: ObjectConstructor;
22
+ default: null;
23
+ };
24
+ label: {
25
+ type: StringConstructor;
26
+ default: string;
27
+ };
28
+ hideLabel: {
29
+ type: BooleanConstructor;
30
+ default: (props: any) => boolean;
31
+ };
32
+ tooltip: {
33
+ type: StringConstructor;
34
+ default: null;
35
+ };
36
+ required: {
37
+ type: BooleanConstructor;
38
+ default: boolean;
39
+ };
40
+ rules: {
41
+ type: import('vue').PropType<any>;
42
+ default(props: any): FieldRule[] | null;
43
+ };
44
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
45
+ modelValue: import('vue').PropType<unknown>;
46
+ prop: {
47
+ type: StringConstructor;
48
+ default: null;
49
+ };
50
+ comp: {
51
+ required: boolean;
52
+ type: import('vue').PropType<"input" | "select" | "textarea" | "search" | "switch" | "text" | "checkbox" | "date" | "range" | "radio" | "custom" | "ml-input">;
53
+ default: null;
54
+ validator: (value: string) => boolean;
55
+ };
56
+ render: {
57
+ type: import('vue').PropType<(data: {
58
+ data: import('../../types').AnyObject<any>;
59
+ }) => import('vue').VNodeChild>;
60
+ default: null;
61
+ validator: (_v: any, props: any) => boolean;
62
+ };
63
+ compProps: {
64
+ type: ObjectConstructor;
65
+ default: null;
66
+ };
67
+ label: {
68
+ type: StringConstructor;
69
+ default: string;
70
+ };
71
+ hideLabel: {
72
+ type: BooleanConstructor;
73
+ default: (props: any) => boolean;
74
+ };
75
+ tooltip: {
76
+ type: StringConstructor;
77
+ default: null;
78
+ };
79
+ required: {
80
+ type: BooleanConstructor;
81
+ default: boolean;
82
+ };
83
+ rules: {
84
+ type: import('vue').PropType<any>;
85
+ default(props: any): FieldRule[] | null;
86
+ };
87
+ }>> & Readonly<{}>, {
88
+ tooltip: string;
89
+ label: string;
90
+ required: boolean;
91
+ render: (data: {
92
+ data: import('../../types').AnyObject<any>;
93
+ }) => import('vue').VNodeChild;
94
+ prop: string;
95
+ comp: "input" | "select" | "textarea" | "search" | "switch" | "text" | "checkbox" | "date" | "range" | "radio" | "custom" | "ml-input";
96
+ compProps: Record<string, any>;
97
+ hideLabel: boolean;
98
+ rules: any;
99
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>, Partial<Record<`comp_${string}`, (_: any) => any>> & Partial<Record<string, (_: any) => any>> & {
100
+ prepend?(_: {
101
+ [x: string]: any;
102
+ }): any;
103
+ label?(_: any): any;
104
+ tooltip?(_: {}): any;
105
+ default?(_: {
106
+ data: Record<string, any>;
107
+ }): any;
108
+ append?(_: {
109
+ [x: string]: any;
110
+ }): any;
111
+ }>;
112
+ export default _default;
113
+ type __VLS_WithTemplateSlots<T, S> = T & {
114
+ new (): {
115
+ $slots: S;
116
+ };
117
+ };
@@ -0,0 +1,6 @@
1
+ /// <reference path="./components.d.ts" />
2
+ import { default as FFormItem } from './fform-item.vue';
3
+
4
+ export default FFormItem;
5
+ export type FFormItemInstance = InstanceType<typeof FFormItem>;
6
+ export * from './fform-item';
@@ -0,0 +1,45 @@
1
+ import { IconProps } from '@arco-design/web-vue';
2
+ import { ExtractPublicPropTypes, PropType } from 'vue';
3
+
4
+ export declare const fIconProps: {
5
+ /**
6
+ * icon的名称
7
+ * 在使用官方Icon时,请转换为全驼峰命名
8
+ * 除了使用内置的icon外,还支持iconfont图标库(官方图标库和iconfont图标库的不要有重复的名字,重复名字下,官方优先)
9
+ */
10
+ name: {
11
+ required: boolean;
12
+ type: StringConstructor;
13
+ default: string;
14
+ };
15
+ /**
16
+ * 图标颜色
17
+ * @value CSS color属性值
18
+ */
19
+ color: {
20
+ type: StringConstructor;
21
+ default: string;
22
+ };
23
+ /**
24
+ * hover时,图标的提示语
25
+ */
26
+ tooltip: {
27
+ type: StringConstructor;
28
+ default: string;
29
+ };
30
+ /**
31
+ * 传递给Arco Tooltip组件的props
32
+ */
33
+ tooltipProps: {
34
+ type: PropType<TooltipInstance>;
35
+ default: () => {};
36
+ };
37
+ /**
38
+ * 鼠标图标变为小手图标
39
+ */
40
+ pointer: {
41
+ type: BooleanConstructor;
42
+ default: boolean;
43
+ };
44
+ };
45
+ export type FIconProps = ExtractPublicPropTypes<typeof fIconProps> & IconProps;
@@ -0,0 +1,59 @@
1
+ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<import('vue').ExtractPropTypes<{
2
+ name: {
3
+ required: boolean;
4
+ type: StringConstructor;
5
+ default: string;
6
+ };
7
+ color: {
8
+ type: StringConstructor;
9
+ default: string;
10
+ };
11
+ tooltip: {
12
+ type: StringConstructor;
13
+ default: string;
14
+ };
15
+ tooltipProps: {
16
+ type: import('vue').PropType<TooltipInstance>;
17
+ default: () => {};
18
+ };
19
+ pointer: {
20
+ type: BooleanConstructor;
21
+ default: boolean;
22
+ };
23
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
24
+ name: {
25
+ required: boolean;
26
+ type: StringConstructor;
27
+ default: string;
28
+ };
29
+ color: {
30
+ type: StringConstructor;
31
+ default: string;
32
+ };
33
+ tooltip: {
34
+ type: StringConstructor;
35
+ default: string;
36
+ };
37
+ tooltipProps: {
38
+ type: import('vue').PropType<TooltipInstance>;
39
+ default: () => {};
40
+ };
41
+ pointer: {
42
+ type: BooleanConstructor;
43
+ default: boolean;
44
+ };
45
+ }>> & Readonly<{}>, {
46
+ name: string;
47
+ color: string;
48
+ tooltip: string;
49
+ tooltipProps: TooltipInstance;
50
+ pointer: boolean;
51
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>, {
52
+ tooltip?(_: {}): any;
53
+ }>;
54
+ export default _default;
55
+ type __VLS_WithTemplateSlots<T, S> = T & {
56
+ new (): {
57
+ $slots: S;
58
+ };
59
+ };
@@ -0,0 +1,6 @@
1
+ /// <reference path="./components.d.ts" />
2
+ import { default as FIcon } from './ficon.vue';
3
+
4
+ export default FIcon;
5
+ export type FIconInstance = InstanceType<typeof FIcon>;
6
+ export * from './ficon';
@@ -0,0 +1,56 @@
1
+ import { InputInstance, InputPasswordInstance } from '@arco-design/web-vue';
2
+ import { ExtractPublicPropTypes, PropType } from 'vue';
3
+
4
+ export type FInputType = 'text' | 'number' | 'decimal' | 'password';
5
+ export declare const fInputProps: {
6
+ /**
7
+ * 默认值(非受控模式)
8
+ */
9
+ defaultValue: {
10
+ type: StringConstructor;
11
+ default: null;
12
+ };
13
+ /**
14
+ * 占位符
15
+ */
16
+ placeholder: {
17
+ type: StringConstructor;
18
+ default: string;
19
+ };
20
+ /**
21
+ * 允许清空
22
+ */
23
+ allowClear: {
24
+ type: BooleanConstructor;
25
+ default: boolean;
26
+ };
27
+ /**
28
+ * 输入类型
29
+ * 目前 Arco Input 只有 text 及 password 两种
30
+ * 扩展 number 和 decimal
31
+ * - number:只允许输入数字(包括负数)
32
+ * - decimal:允许输入数字和小数
33
+ */
34
+ type: {
35
+ type: PropType<FInputType>;
36
+ default: string;
37
+ };
38
+ /**
39
+ * 是否自动填充数据
40
+ */
41
+ autocomplete: {
42
+ type: BooleanConstructor;
43
+ default: boolean;
44
+ };
45
+ includeMimus: {
46
+ type: BooleanConstructor;
47
+ default: boolean;
48
+ };
49
+ };
50
+ type FInputBaseProps = Omit<InputInstance['$props'], 'type'> & ExtractPublicPropTypes<typeof fInputProps>;
51
+ export type FInputProps = ({
52
+ type: 'text' | 'number' | 'decimal';
53
+ } & FInputBaseProps) | ({
54
+ type: 'password';
55
+ } & InputPasswordInstance['$props'] & FInputBaseProps);
56
+ export {};
@@ -0,0 +1,83 @@
1
+ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<import('vue').ExtractPropTypes<{
2
+ modelValue: import('vue').PropType<string | number>;
3
+ defaultValue: {
4
+ type: StringConstructor;
5
+ default: null;
6
+ };
7
+ placeholder: {
8
+ type: StringConstructor;
9
+ default: string;
10
+ };
11
+ allowClear: {
12
+ type: BooleanConstructor;
13
+ default: boolean;
14
+ };
15
+ type: {
16
+ type: import('vue').PropType<import('./finput').FInputType>;
17
+ default: string;
18
+ };
19
+ autocomplete: {
20
+ type: BooleanConstructor;
21
+ default: boolean;
22
+ };
23
+ includeMimus: {
24
+ type: BooleanConstructor;
25
+ default: boolean;
26
+ };
27
+ }>, {
28
+ /**
29
+ * 值,在非受控模式下,读取组件的值
30
+ */
31
+ value: import('vue').ModelRef<string | number | undefined, string, string | number | undefined, string | number | undefined>;
32
+ /**
33
+ * 获取输入框的焦点
34
+ */
35
+ focus(...args: unknown[]): void;
36
+ /**
37
+ * 失去输入框的焦点
38
+ */
39
+ blur(...args: unknown[]): void;
40
+ /**
41
+ * Arco Input 组件实例(可调用组件内部方法)
42
+ * */
43
+ ins: import('vue').Ref<any, any>;
44
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
45
+ modelValue: import('vue').PropType<string | number>;
46
+ defaultValue: {
47
+ type: StringConstructor;
48
+ default: null;
49
+ };
50
+ placeholder: {
51
+ type: StringConstructor;
52
+ default: string;
53
+ };
54
+ allowClear: {
55
+ type: BooleanConstructor;
56
+ default: boolean;
57
+ };
58
+ type: {
59
+ type: import('vue').PropType<import('./finput').FInputType>;
60
+ default: string;
61
+ };
62
+ autocomplete: {
63
+ type: BooleanConstructor;
64
+ default: boolean;
65
+ };
66
+ includeMimus: {
67
+ type: BooleanConstructor;
68
+ default: boolean;
69
+ };
70
+ }>> & Readonly<{}>, {
71
+ type: import('./finput').FInputType;
72
+ placeholder: string;
73
+ defaultValue: string;
74
+ allowClear: boolean;
75
+ autocomplete: boolean;
76
+ includeMimus: boolean;
77
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>, Partial<Record<string, (_: any) => any>>>;
78
+ export default _default;
79
+ type __VLS_WithTemplateSlots<T, S> = T & {
80
+ new (): {
81
+ $slots: S;
82
+ };
83
+ };
@@ -0,0 +1,6 @@
1
+ /// <reference path="./components.d.ts" />
2
+ import { default as FInput } from './finput.vue';
3
+
4
+ export default FInput;
5
+ export type FInputInstance = InstanceType<typeof FInput>;
6
+ export * from './finput';
@@ -0,0 +1,28 @@
1
+ import { LinkInstance } from '@arco-design/web-vue';
2
+ import { ExtractPublicPropTypes, PropType } from 'vue';
3
+
4
+ export declare const fLinkProps: {
5
+ /**
6
+ * 链接地址
7
+ */
8
+ href: {
9
+ type: StringConstructor;
10
+ default: string;
11
+ };
12
+ /**
13
+ * 如果openType 是SPA,则是新开 tab 的title
14
+ */
15
+ name: {
16
+ type: StringConstructor;
17
+ };
18
+ /**
19
+ * 链接打开类型
20
+ * spa: 在当前 SPA 中打开(默认)
21
+ * raw: 原生a元素的处理
22
+ */
23
+ openType: {
24
+ type: PropType<"raw" | "spa">;
25
+ default: string;
26
+ };
27
+ };
28
+ export type FLinkProps = ExtractPublicPropTypes<typeof fLinkProps> & LinkInstance['$props'];
@@ -0,0 +1,40 @@
1
+ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<import('vue').ExtractPropTypes<{
2
+ href: {
3
+ type: StringConstructor;
4
+ default: string;
5
+ };
6
+ name: {
7
+ type: StringConstructor;
8
+ };
9
+ openType: {
10
+ type: import('vue').PropType<"raw" | "spa">;
11
+ default: string;
12
+ };
13
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
14
+ click: (...args: any[]) => void;
15
+ }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
16
+ href: {
17
+ type: StringConstructor;
18
+ default: string;
19
+ };
20
+ name: {
21
+ type: StringConstructor;
22
+ };
23
+ openType: {
24
+ type: import('vue').PropType<"raw" | "spa">;
25
+ default: string;
26
+ };
27
+ }>> & Readonly<{
28
+ onClick?: ((...args: any[]) => any) | undefined;
29
+ }>, {
30
+ href: string;
31
+ openType: "raw" | "spa";
32
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>, {
33
+ default?(_: {}): any;
34
+ }>;
35
+ export default _default;
36
+ type __VLS_WithTemplateSlots<T, S> = T & {
37
+ new (): {
38
+ $slots: S;
39
+ };
40
+ };
@@ -0,0 +1,6 @@
1
+ /// <reference path="./components.d.ts" />
2
+ import { default as FLink } from './flink.vue';
3
+
4
+ export default FLink;
5
+ export type FLinkInstance = InstanceType<typeof FLink>;
6
+ export * from './flink';
@@ -0,0 +1,76 @@
1
+ import { InputInstance, ModalConfig } from '@arco-design/web-vue';
2
+ import { Component, ExtractPropTypes, PropType } from 'vue';
3
+
4
+ export type FMlInputPopupConfig = {
5
+ /**
6
+ * 弹窗标题,优先级低于modalProps.title
7
+ */
8
+ title?: string;
9
+ /**
10
+ * 弹出层的顶部的文字提示,可以是文本或者一个Component
11
+ */
12
+ tip?: string | Component;
13
+ /**
14
+ * textarea的rows配置
15
+ * 如果类型为number,则只配置minRows
16
+ */
17
+ rows?: number | {
18
+ minRows: number;
19
+ maxRows: number;
20
+ };
21
+ /**
22
+ * 占位符
23
+ */
24
+ placeholder?: string;
25
+ /**
26
+ * 弹出层的props
27
+ */
28
+ modalProps?: ModalConfig;
29
+ };
30
+ export declare const fMlInputProps: {
31
+ /**
32
+ * 默认值(非受控模式)
33
+ */
34
+ defaultValue: {
35
+ type: StringConstructor;
36
+ default: null;
37
+ };
38
+ /**
39
+ * 每项数据的分隔符
40
+ */
41
+ separator: {
42
+ type: StringConstructor;
43
+ default: string;
44
+ };
45
+ /**
46
+ * 占位符
47
+ */
48
+ placeholder: {
49
+ type: StringConstructor;
50
+ default: string;
51
+ };
52
+ /**
53
+ * 输入框类型
54
+ * 每一项输入类型
55
+ * 此处判断比较多,所以暂时只提供text和number
56
+ */
57
+ type: {
58
+ type: PropType<"number" | "text">;
59
+ default: string;
60
+ };
61
+ /**
62
+ * 允许清空
63
+ */
64
+ allowClear: {
65
+ type: BooleanConstructor;
66
+ default: boolean;
67
+ };
68
+ /**
69
+ * 弹出层的配置
70
+ */
71
+ popupConfig: {
72
+ type: PropType<FMlInputPopupConfig>;
73
+ default: null;
74
+ };
75
+ };
76
+ export type FMlInputProps = InputInstance['$props'] & ExtractPropTypes<typeof fMlInputProps>;