@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
package/dist/style.css ADDED
@@ -0,0 +1 @@
1
+ .f-button+.f-button{margin-left:10px}.arco-btn-group .f-button+.f-button{margin-left:unset}.f-skeleton .arco-skeleton{background-color:#fff;padding:20px}.f-form.f-form--text .f-form-item{--form-item-padding-right: 5px;--form-item-margin-bottom: 5px}.f-form.f-form--text .arco-form-item-label-col{padding-right:8px}.f-form.f-form--text .arco-form-item-content,.f-form.f-form--text .arco-form-item-wrapper-col{min-height:28px}.f-form .f-form-item{--form-item-padding-right: 20px;--form-item-margin-bottom: 15px;padding-right:var(--form-item-padding-right);margin-bottom:var(--form-item-margin-bottom);display:flex;align-items:center}.f-form .f-form-item__prepend{padding-right:8px}.f-form .f-form-item__append{padding-left:8px}.f-form .f-form-item .arco-form-item-label-col{line-height:unset}.f-form .f-form-item .arco-form-item-label-col .arco-form-item-label{color:inherit;white-space:normal}.f-ml-input .f-ml-input__icon{cursor:pointer}.f-ml-input__modal-tip{color:red;padding-left:3px}.f-range__wrap{display:flex;align-items:center;padding:0 10px}.f-range__wrap input::placeholder{color:var(--color-text-3)}.f-range__wrap .f-range-start,.f-range__wrap .f-range-end{border:none;width:39%;text-align:center}.f-range__wrap .f-range-start :focus,.f-range__wrap .f-range-end :focus{border:none}.f-range__wrap .f-range-separator{flex:1;text-align:center;padding:0 5px}.f-range__wrap .f-range-clear{cursor:pointer}.f-range__wrap .f-range-clear:hover{color:var(--el-text-color-secondary)}.f-range__wrap .f-range-clear--hover{opacity:0;visibility:hidden}.f-table{margin:10px}.f-table .arco-table .arco-table-element{min-width:unset}.f-table .arco-table .arco-table-td{max-width:0}.f-table .arco-card-body{padding-top:0}.f-table .arco-table-border-header-cell .arco-table-th{border-bottom:none}.f-table .arco-table-border-header-cell .arco-table-th:last-child{border-right:none}.f-table .arco-table-header .arco-table-th-title{overflow:unset;white-space:unset;text-overflow:unset}.f-table .arco-table-body .arco-table-element{padding-bottom:15px}.f-table .arco-table-body .arco-table-element .arco-table-tr-empty .arco-table-td{border-bottom:none}.f-table .hide-scroll-y .arco-scrollbar-track-direction-vertical{display:none}.f-table-toolbar{padding:9px 0;margin:0 -3px;line-height:22px;display:flex;align-items:center;background-color:var(--color-bg-2)}.f-table-toolbar .toolbar-title{--title-size: 14px;padding-right:10px;font-size:var(--title-size)}.f-table-toolbar .toolbar-title.toolbar-title--mini{--title-size: 13px}.f-table-toolbar .toolbar-title.toolbar-title--large{--title-size: 16px}.f-table-toolbar .toolbar-btns{text-align:left;flex:1;padding:0}.f-table-toolbar .toolbar-quick button{--color-secondary: var(--color-neutral-3)}.f-table-toolbar .toolbar-quick button:hover{background-color:rgb(var(--primary-2))}.f-table--split{width:calc(100% - 1px)}.f-table--split .arco-split-trigger-vertical{height:auto}.f-table--split .arco-split-pane-first{overflow-y:hidden;padding-right:5px}.f-table--split .arco-split-pane-second{overflow-x:visible;position:relative}.f-table--split-selected__header{padding:0 5px 5px;position:sticky;top:0;background-color:#fff;z-index:10}.f-table--split-selected__header span:last-child{font-size:12px;color:var(--color-text-3)}.f-table--split-selected__content{padding:10px 5px}.f-table--split-selected-tag .arco-typography{margin-bottom:0}.f-table-content .arco-scrollbar.arco-scrollbar-type-embed .arco-scrollbar-thumb{opacity:1}.f-table-cols-set .f-table-cols-set__tip{margin-bottom:15px;padding-left:8px;font-size:13px;color:rgb(var(--warning-6))}.f-table-cols-set .f-table-cols-set__content{display:flex;flex-wrap:wrap;width:100%}.f-table-cols-set .f-table-cols-set__content .set-item{padding:5px 10px;margin:5px;border:1px solid var(--color-fill-3);border-radius:5px;position:relative;transition:padding .4s,margin .4s}.f-table-cols-set .f-table-cols-set__content .set-item.is-checked{border-color:rgb(var(--primary-6));--color-text-1: rgb(var(--primary-6))}.f-table-cols-set .f-table-cols-set__content .set-item.set-item--hover{padding-right:18px;margin-right:-4px}.f-table-cols-set .f-table-cols-set__content .set-item.set-item--hover .set-item__icon{right:3px}.f-table-cols-set .f-table-cols-set__content .set-item .set-item_label{position:relative;z-index:9;background:#ffffff}.f-table-cols-set .f-table-cols-set__content .set-item .set-item__icon{font-size:15px;background:#fff;position:absolute;top:8px;right:10px;transition:right .4s;cursor:move;z-index:0}.f-query-list.arco-card-size-medium .arco-card-header-title{font-size:18px}.f-query-list .arco-card-header{border-bottom:none}.f-query-list .f-query-list__top-divider-right-orientation{z-index:1}.f-query-list .f-query-list__top-divider-right-orientation .arco-divider-text-right{cursor:pointer;right:100px}.f-query-list .f-query-list__filter{display:flex}.f-query-list .f-query-list__filter--simple{display:grid;grid-template-columns:auto 50px;margin-bottom:10px}.f-query-list .f-query-list__filter--simple .f-query-list__filter-form{margin-bottom:0}.f-query-list .f-query-list__filter--simple .f-query-list__filter-form .f-form-item{--form-item-padding-right: 10px;--form-item-margin-bottom: 0px}.f-query-list .f-query-list__filter-form{margin-bottom:-20px}.f-query-list .f-query-list__filter-divider{position:relative;margin-top:-5px;margin-bottom:-5px;transition:all .2s ease-in}.f-query-list .f-query-list__filter-divider .icon{position:absolute;top:30px;left:0;right:0;text-align:center;padding:4px 0;background-color:#fff}.f-query-list .f-query-list__filter-divider .icon svg{transition:all .2s ease-in}.f-query-list .f-query-list__filter-divider .divider{margin-right:15px;height:100%}.f-query-list .f-query-list__filter-handle{width:100px;text-align:center}.f-query-list .f-query-list__filter-handle .f-button+.f-button{margin-left:0;margin-top:10px}.f-query-list__divider{margin:0}.f-query-list__table .arco-card{border:none;margin:0}.f-query-list__table .arco-card .arco-card-body{padding:0}.f-choice{height:500px}.f-choice-query .f-table .arco-table-header-sticky{top:0!important}.f-choice-result{box-shadow:none;width:300px;min-width:300px;max-width:500px}.f-date{width:100%}.f-text{display:flex;align-items:center}.f-text .f-text__pre-icon{margin-right:5px}.f-select{width:100%;display:flex;align-items:center}.f-select .f-select__append:not(:empty){padding-left:10px}.f-select .f-select__preend:not(:empty){padding-right:10px}.f-select .arco-select-dropdown .arco-select-option-checkbox{pointer-events:none}.f-select-tool{position:sticky;top:0;z-index:9}.f-select-tool .f-select-multiple-tool{padding:3px 10px;margin-bottom:2px;background-color:var(--color-bg-1);box-shadow:var(--box-shadow-light)}.f-search{cursor:pointer;width:100%}.f-search .arco-input-wrapper{cursor:pointer}.arco-typography b{font-weight:700}.arco-typography[data-v-4464cc73]{display:flex}.f-text__content[data-v-4464cc73]{position:relative;width:100%}.f-text__content .content-more[data-v-4464cc73]{position:absolute;right:0;bottom:0;background:-webkit-linear-gradient(left,transparent,#fff,#fff);padding-left:50px;cursor:pointer;color:rgb(var(--primary-6));font-size:12px}
@@ -0,0 +1,37 @@
1
+ import { ButtonProps, TooltipInstance } from '@arco-design/web-vue';
2
+ import { FIconProps } from '../ficon';
3
+
4
+ export type FButtonProps = {
5
+ /** 按钮类型 */
6
+ type?: ButtonProps['type'];
7
+ /**
8
+ * 按钮文本
9
+ * 在使用default插槽时,此项无效
10
+ */
11
+ label?: string;
12
+ /**
13
+ * 按钮图标
14
+ */
15
+ icon?: string;
16
+ /**
17
+ * 传递给FIcon组件的props
18
+ * 剔除tips相关的配置项,tips由当前组件单独实现
19
+ */
20
+ iconProps?: Omit<FIconProps, 'tooltip' | 'tooltipProps'>;
21
+ /**
22
+ * hover时,按钮弹出的的提示语
23
+ *
24
+ * 如果使用\n换行符,会自动进行换行操作
25
+ *
26
+ * 在使用tooltip插槽时,此项无效
27
+ */
28
+ tooltip?: string;
29
+ /**
30
+ * 传递给Arco Tooltip组件的props
31
+ */
32
+ tooltipProps?: TooltipInstance['$props'];
33
+ /**
34
+ * 自定义按钮颜色
35
+ */
36
+ color?: string;
37
+ };
@@ -0,0 +1,34 @@
1
+ import { FButtonProps } from './fbutton';
2
+
3
+ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<FButtonProps>, {
4
+ type: string;
5
+ }>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<FButtonProps>, {
6
+ type: string;
7
+ }>>> & Readonly<{}>, {
8
+ type: "text" | "primary" | "secondary" | "outline" | "dashed";
9
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>, {
10
+ tooltip?(_: {}): any;
11
+ }>;
12
+ export default _default;
13
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
14
+ type __VLS_TypePropsToRuntimeProps<T> = {
15
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
16
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
17
+ } : {
18
+ type: import('vue').PropType<T[K]>;
19
+ required: true;
20
+ };
21
+ };
22
+ type __VLS_WithDefaults<P, D> = {
23
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
24
+ default: D[K];
25
+ }> : P[K];
26
+ };
27
+ type __VLS_Prettify<T> = {
28
+ [K in keyof T]: T[K];
29
+ } & {};
30
+ type __VLS_WithTemplateSlots<T, S> = T & {
31
+ new (): {
32
+ $slots: S;
33
+ };
34
+ };
@@ -0,0 +1,6 @@
1
+ /// <reference path="./components.d.ts" />
2
+ import { default as FButton } from './fbutton.vue';
3
+
4
+ export default FButton;
5
+ export type FButtonInstance = InstanceType<typeof FButton>;
6
+ export * from './fbutton';
@@ -0,0 +1,11 @@
1
+ /// <reference path="./components.d.ts" />
2
+ export declare const DEFAULT_OPTION_KEY_NAMES: {
3
+ /** label值的字段名称 */
4
+ label: string;
5
+ /** value值的字段名称 */
6
+ value: string;
7
+ };
8
+ /** 默认远程数据使用字段名 */
9
+ export declare const DEFAULT_REMOTE_OPTIONS_DATA_NAME = "data";
10
+ /** 默认远程数据使用分隔符 */
11
+ export declare const DEFAULT_REMOTE_OPTIONS_DATA_NAME_SPLIT = ".";
@@ -0,0 +1,45 @@
1
+ import { ExtractPublicPropTypes, PropType } from 'vue';
2
+ import { RadioOption } from '@arco-design/web-vue/es/radio/interface';
3
+ import { CheckboxGroupInstance } from '@arco-design/web-vue';
4
+ import { FArcoRender, FMethodData } from '../../../../../../../../src/types';
5
+
6
+ export type FCheckboxOptions = (Omit<RadioOption, 'value'> & {
7
+ slots?: {
8
+ [key: string]: FArcoRender;
9
+ };
10
+ value?: unknown;
11
+ [key: string]: any;
12
+ })[];
13
+ export type FCheckboxOptionKeyNames = {
14
+ label: string;
15
+ value: string;
16
+ };
17
+ export declare const fCheckboxProps: {
18
+ /**
19
+ * 默认值(非受控模式)
20
+ */
21
+ defaultValue: {
22
+ type: PropType<(string | number | boolean)[]>;
23
+ default: null;
24
+ };
25
+ /**
26
+ * 选项列表
27
+ * 支持Promise函数,可返回一个远程获取的数据
28
+ */
29
+ options: {
30
+ requried: boolean;
31
+ type: PropType<FCheckboxOptions | FMethodData<FCheckboxOptions>>;
32
+ default: null;
33
+ };
34
+ /**
35
+ * 提供给option组件渲染时值与名称的字段名称
36
+ */
37
+ optionKeyNames: {
38
+ type: PropType<FCheckboxOptionKeyNames>;
39
+ default: () => {
40
+ label: string;
41
+ value: string;
42
+ };
43
+ };
44
+ };
45
+ export type FCheckboxProps = Omit<CheckboxGroupInstance['$props'], 'options'> & ExtractPublicPropTypes<typeof fCheckboxProps>;
@@ -0,0 +1,168 @@
1
+ import { Ref } from 'vue';
2
+ import { FCheckboxOptions } from './fcheckbox';
3
+
4
+ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<import('vue').ExtractPropTypes<{
5
+ modelValue: import('vue').PropType<(string | number | boolean)[]>;
6
+ defaultValue: {
7
+ type: import('vue').PropType<(string | number | boolean)[]>;
8
+ default: null;
9
+ };
10
+ options: {
11
+ requried: boolean;
12
+ type: import('vue').PropType<FCheckboxOptions | import('../../../../../../../../src/types').FMethodData<FCheckboxOptions>>;
13
+ default: null;
14
+ };
15
+ optionKeyNames: {
16
+ type: import('vue').PropType<import('./fcheckbox').FCheckboxOptionKeyNames>;
17
+ default: () => {
18
+ label: string;
19
+ value: string;
20
+ };
21
+ };
22
+ }>, {
23
+ /**
24
+ * 值,在非受控模式下,读取组件的值
25
+ */
26
+ value: import('vue').ModelRef<(string | number | boolean)[] | undefined, string, (string | number | boolean)[] | undefined, (string | number | boolean)[] | undefined>;
27
+ /**
28
+ * 手动重载远程数据
29
+ * @param params 手动重新指定传出的参数
30
+ */
31
+ replayMethodOptions(params: any): void;
32
+ /**
33
+ * Arco CheckboxGroup 实例(可调用组件内部方法)
34
+ * */
35
+ ins: Ref<any, any>;
36
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
37
+ modelValue: import('vue').PropType<(string | number | boolean)[]>;
38
+ defaultValue: {
39
+ type: import('vue').PropType<(string | number | boolean)[]>;
40
+ default: null;
41
+ };
42
+ options: {
43
+ requried: boolean;
44
+ type: import('vue').PropType<FCheckboxOptions | import('../../../../../../../../src/types').FMethodData<FCheckboxOptions>>;
45
+ default: null;
46
+ };
47
+ optionKeyNames: {
48
+ type: import('vue').PropType<import('./fcheckbox').FCheckboxOptionKeyNames>;
49
+ default: () => {
50
+ label: string;
51
+ value: string;
52
+ };
53
+ };
54
+ }>> & Readonly<{}>, {
55
+ options: FCheckboxOptions | import('../../../../../../../../src/types').FMethodData<FCheckboxOptions>;
56
+ defaultValue: (string | number | boolean)[];
57
+ optionKeyNames: import('./fcheckbox').FCheckboxOptionKeyNames;
58
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>, Partial<Record<`checkbox-${any}`, (_: {
59
+ data: {
60
+ [x: string]: any;
61
+ label?: import('@arco-design/web-vue/es/_utils/types').RenderContent | undefined;
62
+ disabled?: boolean | undefined;
63
+ slots?: {
64
+ [key: string]: import('../../../../../../../../src/types').FArcoRender;
65
+ } | undefined;
66
+ value?: unknown;
67
+ } | (Omit<import('@arco-design/web-vue/es/radio/interface').RadioOption, "value"> & {
68
+ [key: string]: any;
69
+ slots?: {
70
+ [key: string]: import('../../../../../../../../src/types').FArcoRender;
71
+ } | undefined;
72
+ value?: unknown;
73
+ } & {
74
+ [x: string]: any;
75
+ label?: import('@arco-design/web-vue/es/_utils/types').RenderContent | undefined;
76
+ disabled?: boolean | undefined;
77
+ slots?: {
78
+ [key: string]: import('../../../../../../../../src/types').FArcoRender;
79
+ } | undefined;
80
+ value?: unknown;
81
+ });
82
+ checked: any;
83
+ disabled: any;
84
+ }) => any>> & Partial<Record<`label-${any}`, (_: {
85
+ data: {
86
+ [x: string]: any;
87
+ label?: import('@arco-design/web-vue/es/_utils/types').RenderContent | undefined;
88
+ disabled?: boolean | undefined;
89
+ slots?: {
90
+ [key: string]: import('../../../../../../../../src/types').FArcoRender;
91
+ } | undefined;
92
+ value?: unknown;
93
+ } | (Omit<import('@arco-design/web-vue/es/radio/interface').RadioOption, "value"> & {
94
+ [key: string]: any;
95
+ slots?: {
96
+ [key: string]: import('../../../../../../../../src/types').FArcoRender;
97
+ } | undefined;
98
+ value?: unknown;
99
+ } & {
100
+ [x: string]: any;
101
+ label?: import('@arco-design/web-vue/es/_utils/types').RenderContent | undefined;
102
+ disabled?: boolean | undefined;
103
+ slots?: {
104
+ [key: string]: import('../../../../../../../../src/types').FArcoRender;
105
+ } | undefined;
106
+ value?: unknown;
107
+ });
108
+ checked: boolean;
109
+ }) => any>> & {
110
+ checkbox?(_: {
111
+ data: {
112
+ [x: string]: any;
113
+ label?: import('@arco-design/web-vue/es/_utils/types').RenderContent | undefined;
114
+ disabled?: boolean | undefined;
115
+ slots?: {
116
+ [key: string]: import('../../../../../../../../src/types').FArcoRender;
117
+ } | undefined;
118
+ value?: unknown;
119
+ } | (Omit<import('@arco-design/web-vue/es/radio/interface').RadioOption, "value"> & {
120
+ [key: string]: any;
121
+ slots?: {
122
+ [key: string]: import('../../../../../../../../src/types').FArcoRender;
123
+ } | undefined;
124
+ value?: unknown;
125
+ } & {
126
+ [x: string]: any;
127
+ label?: import('@arco-design/web-vue/es/_utils/types').RenderContent | undefined;
128
+ disabled?: boolean | undefined;
129
+ slots?: {
130
+ [key: string]: import('../../../../../../../../src/types').FArcoRender;
131
+ } | undefined;
132
+ value?: unknown;
133
+ });
134
+ checked: any;
135
+ disabled: any;
136
+ }): any;
137
+ label?(_: {
138
+ data: {
139
+ [x: string]: any;
140
+ label?: import('@arco-design/web-vue/es/_utils/types').RenderContent | undefined;
141
+ disabled?: boolean | undefined;
142
+ slots?: {
143
+ [key: string]: import('../../../../../../../../src/types').FArcoRender;
144
+ } | undefined;
145
+ value?: unknown;
146
+ } | (Omit<import('@arco-design/web-vue/es/radio/interface').RadioOption, "value"> & {
147
+ [key: string]: any;
148
+ slots?: {
149
+ [key: string]: import('../../../../../../../../src/types').FArcoRender;
150
+ } | undefined;
151
+ value?: unknown;
152
+ } & {
153
+ [x: string]: any;
154
+ label?: import('@arco-design/web-vue/es/_utils/types').RenderContent | undefined;
155
+ disabled?: boolean | undefined;
156
+ slots?: {
157
+ [key: string]: import('../../../../../../../../src/types').FArcoRender;
158
+ } | undefined;
159
+ value?: unknown;
160
+ });
161
+ }): any;
162
+ }>;
163
+ export default _default;
164
+ type __VLS_WithTemplateSlots<T, S> = T & {
165
+ new (): {
166
+ $slots: S;
167
+ };
168
+ };
@@ -0,0 +1,6 @@
1
+ /// <reference path="./components.d.ts" />
2
+ import { default as FCheckbox } from './fcheckbox.vue';
3
+
4
+ export default FCheckbox;
5
+ export type FCheckboxInstance = InstanceType<typeof FCheckbox>;
6
+ export * from './fcheckbox';
@@ -0,0 +1,69 @@
1
+ import { DatePickerProps, MonthPickerProps, QuarterPickerProps, RangePickerProps, WeekPickerProps, YearPickerProps } from '@arco-design/web-vue/es/date-picker/interface';
2
+ import { PropType } from 'vue';
3
+
4
+ export type FDateType = 'time' | 'date' | 'month' | 'quarter' | 'week' | 'year';
5
+ export declare const fDateProps: {
6
+ /**
7
+ * 默认值(非受控模式)
8
+ */
9
+ defaultValue: {
10
+ type: PropType<string | number | Date | (string | number | Date)[]>;
11
+ };
12
+ /**
13
+ * 选择类型
14
+ * 此组件将date、year、month、quarter、week整合到了一起
15
+ */
16
+ type: {
17
+ type: PropType<FDateType>;
18
+ default: string;
19
+ };
20
+ /**
21
+ * 是否为范围选择
22
+ */
23
+ range: {
24
+ type: BooleanConstructor;
25
+ default: boolean;
26
+ };
27
+ };
28
+ type FDateBase = {
29
+ /**
30
+ * 默认值(非受控模式)
31
+ */
32
+ defaultValue?: {
33
+ type: Date | string | number | (Date | string | number)[];
34
+ };
35
+ /**
36
+ * 选择类型
37
+ * 此组件将date、year、month、quarter、week整合到了一起
38
+ */
39
+ type?: FDateType;
40
+ /**
41
+ * 是否为范围选择
42
+ */
43
+ range?: boolean;
44
+ };
45
+ type FDateNormalProps = Partial<DatePickerProps> & FDateBase & {
46
+ defaultValue?: Date | string | number;
47
+ type: 'time' | 'date';
48
+ };
49
+ type FDateWeekProps = Partial<WeekPickerProps> & FDateBase & {
50
+ defaultValue?: Date | string | number;
51
+ type: 'week';
52
+ };
53
+ type FDateMonthProps = Partial<MonthPickerProps> & FDateBase & {
54
+ defaultValue?: Date | string | number;
55
+ type: 'month';
56
+ };
57
+ type FDateQuarterProps = Partial<QuarterPickerProps> & FDateBase & {
58
+ type: 'quarter';
59
+ };
60
+ type FDateYearProps = Partial<YearPickerProps> & FDateBase & {
61
+ defaultValue?: Date | string | number;
62
+ type: 'year';
63
+ };
64
+ type FDateRangeProps = Partial<RangePickerProps> & FDateBase & {
65
+ defaultValue?: (Date | string | number)[];
66
+ range: true;
67
+ };
68
+ export type FDateProps = FDateNormalProps | FDateWeekProps | FDateMonthProps | FDateQuarterProps | FDateQuarterProps | FDateYearProps | FDateRangeProps;
69
+ export {};
@@ -0,0 +1,45 @@
1
+ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<import('vue').ExtractPropTypes<{
2
+ modelValue: import('vue').PropType<string | number | Date | (string | number | Date)[]>;
3
+ defaultValue: {
4
+ type: import('vue').PropType<string | number | Date | (string | number | Date)[]>;
5
+ };
6
+ type: {
7
+ type: import('vue').PropType<import('./fdate').FDateType>;
8
+ default: string;
9
+ };
10
+ range: {
11
+ type: BooleanConstructor;
12
+ default: boolean;
13
+ };
14
+ }>, {
15
+ /**
16
+ * 值,在非受控模式下,读取组件的值
17
+ */
18
+ value: import('vue').ModelRef<string | number | Date | (string | number | Date)[] | undefined, string, string | number | Date | (string | number | Date)[] | undefined, string | number | Date | (string | number | Date)[] | undefined>;
19
+ /**
20
+ * 实际渲染的 Arco 组件实例(可调用组件内部方法)
21
+ * */
22
+ ins: import('vue').Ref<any, any>;
23
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
24
+ modelValue: import('vue').PropType<string | number | Date | (string | number | Date)[]>;
25
+ defaultValue: {
26
+ type: import('vue').PropType<string | number | Date | (string | number | Date)[]>;
27
+ };
28
+ type: {
29
+ type: import('vue').PropType<import('./fdate').FDateType>;
30
+ default: string;
31
+ };
32
+ range: {
33
+ type: BooleanConstructor;
34
+ default: boolean;
35
+ };
36
+ }>> & Readonly<{}>, {
37
+ type: import('./fdate').FDateType;
38
+ range: boolean;
39
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>, Partial<Record<NonNullable<string | number>, (_: any) => any>>>;
40
+ export default _default;
41
+ type __VLS_WithTemplateSlots<T, S> = T & {
42
+ new (): {
43
+ $slots: S;
44
+ };
45
+ };
@@ -0,0 +1,6 @@
1
+ /// <reference path="./components.d.ts" />
2
+ import { default as FDate } from './fdate.vue';
3
+
4
+ export default FDate;
5
+ export type FDateInstance = InstanceType<typeof FDate>;
6
+ export * from './fdate';
@@ -0,0 +1,87 @@
1
+ import { CSSProperties, ExtractPublicPropTypes, PropType } from 'vue';
2
+ import { AnyObject } from '../../../../../../../../src/types';
3
+ import { GridItemProps, Form, GridProps } from '@arco-design/web-vue';
4
+ import { FFormItemProps } from '../fform-item';
5
+
6
+ export type FFormItemType<T = AnyObject> = FFormItemProps & {
7
+ /**
8
+ * 搭配 FForm 组件一起使用时,prop为必填项
9
+ */
10
+ prop: keyof T;
11
+ /**
12
+ * 扩展 slotName 字段,用于提供组件插槽
13
+ */
14
+ slotName?: string;
15
+ /**
16
+ * 行占比配置
17
+ */
18
+ gridItemProps?: GridItemProps;
19
+ };
20
+ export declare const fFormProps: {
21
+ /**
22
+ * 内容区域的class
23
+ */
24
+ contentClass: {
25
+ type: PropType<string | unknown[] | CSSProperties>;
26
+ };
27
+ /**
28
+ * 表单数据,传入此参数时,为受控模式
29
+ */
30
+ data: {
31
+ type: ObjectConstructor;
32
+ default: null;
33
+ };
34
+ /**
35
+ * 表单默认数据(非受控模式)
36
+ */
37
+ defaultData: {
38
+ type: ObjectConstructor;
39
+ default: null;
40
+ };
41
+ /**
42
+ * Arco Row组件属性
43
+ */
44
+ gridProps: {
45
+ type: PropType<GridProps & {
46
+ style?: CSSProperties | undefined;
47
+ class?: string | object | string[] | undefined;
48
+ }>;
49
+ default: () => {};
50
+ };
51
+ /**
52
+ * 统一设置每个FFormItem组件的GridItem属性,如果FFormItem有单独设置,则采用独立设置的值
53
+ * @value
54
+ * number: 为Arco GridItem组件props中span值
55
+ * Object: Arco GridItem组件的props
56
+ */
57
+ itemSpan: {
58
+ type: PropType<number | GridItemProps>;
59
+ default: () => {
60
+ span: {
61
+ xxl: number;
62
+ xl: number;
63
+ lg: number;
64
+ md: number;
65
+ sm: number;
66
+ xs: number;
67
+ };
68
+ };
69
+ };
70
+ /**
71
+ * 统一设置每个FFormItem组件标签的宽度
72
+ */
73
+ labelWidth: {
74
+ type: PropType<string | number>;
75
+ default: string;
76
+ };
77
+ /**
78
+ * formItem的渲染列表
79
+ * @value FFormItem 组件配置项列表
80
+ */
81
+ items: {
82
+ type: PropType<FFormItemType<AnyObject<any>>[]>;
83
+ default: () => never[];
84
+ required: boolean;
85
+ };
86
+ };
87
+ export type FFormProps = ExtractPublicPropTypes<typeof fFormProps> & Omit<InstanceType<typeof Form>['$props'], 'model'>;
@@ -0,0 +1,124 @@
1
+ import { PropType } from 'vue';
2
+ import { FFormItemType } from './fform';
3
+
4
+ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<import('vue').ExtractPropTypes<{
5
+ contentClass: {
6
+ type: PropType<string | unknown[] | import('vue').CSSProperties>;
7
+ };
8
+ data: {
9
+ type: ObjectConstructor;
10
+ default: null;
11
+ };
12
+ defaultData: {
13
+ type: ObjectConstructor;
14
+ default: null;
15
+ };
16
+ gridProps: {
17
+ type: PropType<import('@arco-design/web-vue').GridProps & {
18
+ style?: import('vue').CSSProperties | undefined;
19
+ class?: string | object | string[] | undefined;
20
+ }>;
21
+ default: () => {};
22
+ };
23
+ itemSpan: {
24
+ type: PropType<number | import('@arco-design/web-vue').GridItemProps>;
25
+ default: () => {
26
+ span: {
27
+ xxl: number;
28
+ xl: number;
29
+ lg: number;
30
+ md: number;
31
+ sm: number;
32
+ xs: number;
33
+ };
34
+ };
35
+ };
36
+ labelWidth: {
37
+ type: PropType<string | number>;
38
+ default: string;
39
+ };
40
+ items: {
41
+ type: PropType<FFormItemType<import('../../types').AnyObject<any>>[]>;
42
+ default: () => never[];
43
+ required: boolean;
44
+ };
45
+ }>, {
46
+ /**
47
+ * 表单数据,在非受控模式下,读取组件的值
48
+ */
49
+ data: import('vue').Ref<Record<string, any>, Record<string, any>>;
50
+ /**
51
+ * 在非受控模式下,直接设置某个表单项的数据
52
+ * @param field 字段名
53
+ * @param value 字段值
54
+ */
55
+ setFieldValue: (field: string, value: any) => void;
56
+ /**
57
+ * Arco Form 实例(可调用组件内部方法)
58
+ * */
59
+ ins: import('vue').Ref<any, any>;
60
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
61
+ contentClass: {
62
+ type: PropType<string | unknown[] | import('vue').CSSProperties>;
63
+ };
64
+ data: {
65
+ type: ObjectConstructor;
66
+ default: null;
67
+ };
68
+ defaultData: {
69
+ type: ObjectConstructor;
70
+ default: null;
71
+ };
72
+ gridProps: {
73
+ type: PropType<import('@arco-design/web-vue').GridProps & {
74
+ style?: import('vue').CSSProperties | undefined;
75
+ class?: string | object | string[] | undefined;
76
+ }>;
77
+ default: () => {};
78
+ };
79
+ itemSpan: {
80
+ type: PropType<number | import('@arco-design/web-vue').GridItemProps>;
81
+ default: () => {
82
+ span: {
83
+ xxl: number;
84
+ xl: number;
85
+ lg: number;
86
+ md: number;
87
+ sm: number;
88
+ xs: number;
89
+ };
90
+ };
91
+ };
92
+ labelWidth: {
93
+ type: PropType<string | number>;
94
+ default: string;
95
+ };
96
+ items: {
97
+ type: PropType<FFormItemType<import('../../types').AnyObject<any>>[]>;
98
+ default: () => never[];
99
+ required: boolean;
100
+ };
101
+ }>> & Readonly<{}>, {
102
+ data: Record<string, any>;
103
+ defaultData: Record<string, any>;
104
+ gridProps: import('@arco-design/web-vue').GridProps & {
105
+ style?: import('vue').CSSProperties | undefined;
106
+ class?: string | object | string[] | undefined;
107
+ };
108
+ itemSpan: number | import('@arco-design/web-vue').GridItemProps;
109
+ labelWidth: string | number;
110
+ items: FFormItemType<import('../../types').AnyObject<any>>[];
111
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>, Partial<Record<NonNullable<`item-undefined_${string}` | `item-${string}_${string}`>, (_: any) => any>> & {
112
+ prepend?(_: {
113
+ data: Record<string, any>;
114
+ }): any;
115
+ append?(_: {
116
+ data: Record<string, any>;
117
+ }): any;
118
+ }>;
119
+ export default _default;
120
+ type __VLS_WithTemplateSlots<T, S> = T & {
121
+ new (): {
122
+ $slots: S;
123
+ };
124
+ };
@@ -0,0 +1,6 @@
1
+ /// <reference path="./components.d.ts" />
2
+ import { default as FForm } from './fform.vue';
3
+
4
+ export default FForm;
5
+ export type FFormInstance = InstanceType<typeof FForm>;
6
+ export * from './fform';