@ftjs/tdesign 0.5.3 → 0.5.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.
@@ -1,8 +1,23 @@
1
- import { FtFormColumnBase, ValueOf } from '@ftjs/core';
1
+ import { FtFormColumnBase, Unrefs, ValueOf } from '@ftjs/core';
2
2
  import { FormRule } from 'tdesign-vue-next';
3
3
  import { SetupContext, Component } from 'vue';
4
4
  import { FtFormColumnAutoComplete } from './components/auto-complete';
5
5
  import { FtFormColumnCascader } from './components/cascader';
6
+ import { FtFormColumnCheckbox } from './components/checkbox';
7
+ import { FtFormColumnColorPicker } from './components/color-picker';
8
+ import { FtFormColumnDatePicker } from './components/date-picker';
9
+ import { FtFormColumnDateRangePicker } from './components/date-range-picker';
10
+ import { FtFormColumnInput } from './components/input';
11
+ import { FtFormColumnInputNumber } from './components/input-number';
12
+ import { FtFormColumnTagInput } from './components/tag-input';
13
+ import { FtFormColumnRadio } from './components/radio';
14
+ import { FtFormColumnRangeInput } from './components/range-input';
15
+ import { FtFormColumnSelect } from './components/select';
16
+ import { FtFormColumnSlider } from './components/slider';
17
+ import { FtFormColumnSwitch } from './components/switch';
18
+ import { FtFormColumnTextarea } from './components/textarea';
19
+ import { FtFormColumnTimePicker } from './components/time-picker';
20
+ import { FtFormColumnTreeSelect } from './components/tree-select';
6
21
  export interface TdColumnBase<FormData extends Record<string, any>> extends FtFormColumnBase<FormData> {
7
22
  rules?: FormRule[];
8
23
  }
@@ -12,10 +27,26 @@ export interface TdColumnBase<FormData extends Record<string, any>> extends FtFo
12
27
  export interface RegisterColumnMap<FormData extends Record<string, any>> {
13
28
  "auto-complete": FtFormColumnAutoComplete<FormData>;
14
29
  cascader: FtFormColumnCascader<FormData>;
30
+ checkbox: FtFormColumnCheckbox<FormData>;
31
+ "color-picker": FtFormColumnColorPicker<FormData>;
32
+ "date-picker": FtFormColumnDatePicker<FormData>;
33
+ "date-range-picker": FtFormColumnDateRangePicker<FormData>;
34
+ input: FtFormColumnInput<FormData>;
35
+ "input-number": FtFormColumnInputNumber<FormData>;
36
+ "tag-input": FtFormColumnTagInput<FormData>;
37
+ radio: FtFormColumnRadio<FormData>;
38
+ "range-input": FtFormColumnRangeInput<FormData>;
39
+ select: FtFormColumnSelect<FormData>;
40
+ slider: FtFormColumnSlider<FormData>;
41
+ switch: FtFormColumnSwitch<FormData>;
42
+ textarea: FtFormColumnTextarea<FormData>;
43
+ "time-picker": FtFormColumnTimePicker<FormData>;
44
+ "tree-select": FtFormColumnTreeSelect<FormData>;
15
45
  }
16
46
  export interface FormItemProps<Column extends TdColumnBase<any>> {
17
47
  column: Column;
18
48
  isView: boolean;
49
+ unrefsProps: Unrefs<Column["props"]>;
19
50
  }
20
51
  export declare function defineFormItem<Column extends TdColumnBase<any>>(setup: (props: FormItemProps<Column>, ctx: SetupContext) => any): import('vue').DefineSetupFnComponent<FormItemProps<Column>, import('vue').EmitsOptions, {}, FormItemProps<Column> & ({
21
52
  [x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
@@ -0,0 +1 @@
1
+ export declare const isViewOptionsStyle = "display: flex; gap: 8px;";
@@ -0,0 +1,2 @@
1
+ import { CascaderProps } from 'tdesign-vue-next';
2
+ export declare const renderCascaderText: (props: CascaderProps) => string;
@@ -0,0 +1,23 @@
1
+ import { TNode, KeysType } from 'tdesign-vue-next';
2
+ export declare function renderStrOrTNode(strOrTNode: string | number | TNode): number | import('tdesign-vue-next').SlotReturnValue;
3
+ export declare function isSimpleOption(option: {
4
+ value?: string | number | boolean;
5
+ label?: string | number | TNode;
6
+ [key: string]: any;
7
+ } | string | number | boolean): option is string | number;
8
+ interface ViewRenderOptionsOptions {
9
+ keys?: (KeysType & {
10
+ children?: string;
11
+ }) | undefined;
12
+ multiple: boolean | undefined;
13
+ options?: ({
14
+ value?: string | number | boolean;
15
+ label?: string | number | TNode;
16
+ children?: any;
17
+ [key: string]: any;
18
+ } | string | number)[];
19
+ value: string | number | boolean | undefined | string[] | number[];
20
+ withChildren?: boolean;
21
+ }
22
+ export declare function viewRenderOptions(renderOptions: ViewRenderOptionsOptions): import("vue/jsx-runtime").JSX.Element;
23
+ export {};