@tmagic/form 1.0.0-beta.3 → 1.0.0-beta.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.
- package/dist/style.css +160 -0
- package/dist/tmagic-form.es.js +3753 -0
- package/dist/tmagic-form.es.js.map +1 -0
- package/dist/tmagic-form.umd.js +3794 -0
- package/dist/tmagic-form.umd.js.map +1 -0
- package/dist/types/src/Form.vue.d.ts +301 -0
- package/dist/types/src/FormDialog.vue.d.ts +638 -0
- package/dist/types/src/containers/Container.vue.d.ts +69 -0
- package/dist/types/src/containers/Fieldset.vue.d.ts +56 -0
- package/dist/types/src/containers/GroupList.vue.d.ts +56 -0
- package/dist/types/src/containers/GroupListItem.vue.d.ts +72 -0
- package/dist/types/src/containers/Panel.vue.d.ts +41 -0
- package/dist/types/src/containers/Row.vue.d.ts +42 -0
- package/dist/types/src/containers/Step.vue.d.ts +45 -0
- package/dist/types/src/containers/Table.vue.d.ts +1403 -0
- package/dist/types/src/containers/Tabs.vue.d.ts +45 -0
- package/dist/types/src/fields/Cascader.vue.d.ts +1748 -0
- package/dist/types/src/fields/Checkbox.vue.d.ts +59 -0
- package/dist/types/src/fields/CheckboxGroup.vue.d.ts +56 -0
- package/dist/types/src/fields/Date.vue.d.ts +58 -0
- package/dist/types/src/fields/DateTime.vue.d.ts +57 -0
- package/dist/types/src/fields/Daterange.vue.d.ts +57 -0
- package/dist/types/src/fields/Display.vue.d.ts +3 -0
- package/dist/types/src/fields/DynamicField.vue.d.ts +76 -0
- package/dist/types/src/fields/Hidden.vue.d.ts +3 -0
- package/dist/types/src/fields/Link.vue.d.ts +1358 -0
- package/dist/types/src/fields/Number.vue.d.ts +59 -0
- package/dist/types/src/fields/RadioGroup.vue.d.ts +55 -0
- package/dist/types/src/fields/Select.vue.d.ts +975 -0
- package/dist/types/src/fields/Switch.vue.d.ts +59 -0
- package/dist/types/src/fields/Text.vue.d.ts +61 -0
- package/dist/types/src/fields/Textarea.vue.d.ts +56 -0
- package/dist/types/src/fields/Time.vue.d.ts +54 -0
- package/dist/types/src/index.d.ts +36 -0
- package/dist/types/src/schema.d.ts +495 -0
- package/dist/types/src/shims-vue.d.ts +6 -0
- package/dist/types/src/utils/config.d.ts +3 -0
- package/dist/types/src/utils/fieldProps.d.ts +21 -0
- package/dist/types/src/utils/form.d.ts +8 -0
- package/dist/types/src/utils/useAddField.d.ts +1 -0
- package/dist/types/src/vite-env.d.ts +1 -0
- package/package.json +2 -2
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import type { DefineComponent, ComputedRef, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes, PropType } from 'vue';
|
|
2
|
+
import type { FormConfig, FormState, TabConfig, TabPaneConfig } from '../schema';
|
|
3
|
+
declare const Tab: DefineComponent<{
|
|
4
|
+
labelWidth: StringConstructor;
|
|
5
|
+
expandMore: BooleanConstructor;
|
|
6
|
+
model: {
|
|
7
|
+
type: ObjectConstructor;
|
|
8
|
+
default: () => {};
|
|
9
|
+
};
|
|
10
|
+
config: {
|
|
11
|
+
type: PropType<TabConfig>;
|
|
12
|
+
default: () => {};
|
|
13
|
+
};
|
|
14
|
+
prop: StringConstructor;
|
|
15
|
+
size: StringConstructor;
|
|
16
|
+
}, {
|
|
17
|
+
mForm: FormState | undefined;
|
|
18
|
+
activeTabName: any;
|
|
19
|
+
tabs: ComputedRef<any>;
|
|
20
|
+
filter: (config: any) => any;
|
|
21
|
+
tabItems: (tab: TabPaneConfig) => FormConfig | TabPaneConfig[];
|
|
22
|
+
tabClickHandler: (tab: any) => void;
|
|
23
|
+
onTabAdd: () => void;
|
|
24
|
+
onTabRemove: (tabName: string) => void;
|
|
25
|
+
display: (displayConfig: any) => any;
|
|
26
|
+
changeHandler: () => void;
|
|
27
|
+
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, Record<string, any>, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{
|
|
28
|
+
labelWidth: StringConstructor;
|
|
29
|
+
expandMore: BooleanConstructor;
|
|
30
|
+
model: {
|
|
31
|
+
type: ObjectConstructor;
|
|
32
|
+
default: () => {};
|
|
33
|
+
};
|
|
34
|
+
config: {
|
|
35
|
+
type: PropType<TabConfig>;
|
|
36
|
+
default: () => {};
|
|
37
|
+
};
|
|
38
|
+
prop: StringConstructor;
|
|
39
|
+
size: StringConstructor;
|
|
40
|
+
}>>, {
|
|
41
|
+
config: TabConfig;
|
|
42
|
+
model: Record<string, any>;
|
|
43
|
+
expandMore: boolean;
|
|
44
|
+
}>;
|
|
45
|
+
export default Tab;
|