vft 0.0.390 → 0.0.391
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/es/components/super-form/component-map.d.ts +4 -4
- package/es/components/super-form/super-form-item.vue2.js +3 -3
- package/es/components/super-form/types.d.ts +2 -2
- package/es/components/super-form/use/helper.d.ts +3 -3
- package/es/package.json.d.ts +1 -1
- package/es/package.json.js +1 -1
- package/es/utils/form-register.d.ts +40 -39
- package/es/utils/form-register.js +53 -20
- package/lib/components/super-form/component-map.d.ts +4 -4
- package/lib/components/super-form/types.d.ts +2 -2
- package/lib/components/super-form/use/helper.d.ts +3 -3
- package/lib/package.json.cjs +1 -1
- package/lib/package.json.d.ts +1 -1
- package/lib/utils/form-register.cjs +1 -1
- package/lib/utils/form-register.d.ts +40 -39
- package/package.json +4 -4
- package/web-types.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
declare const isRangePicker: (type:
|
|
3
|
-
declare const isInput: (type:
|
|
4
|
-
declare const isDatePicker: (type:
|
|
1
|
+
import { type FormCompEnumType } from 'vft/es/utils';
|
|
2
|
+
declare const isRangePicker: (type: FormCompEnumType) => boolean;
|
|
3
|
+
declare const isInput: (type: FormCompEnumType) => boolean;
|
|
4
|
+
declare const isDatePicker: (type: FormCompEnumType) => boolean;
|
|
5
5
|
export { isDatePicker, isInput, isRangePicker };
|
|
@@ -109,7 +109,7 @@ import "../../hooks/use-z-index/index.js";
|
|
|
109
109
|
import "../message/index.js";
|
|
110
110
|
import "../progress-i/index.js";
|
|
111
111
|
import "./index.js";
|
|
112
|
-
import {
|
|
112
|
+
import { isRangePicker as he, isInput as Ee, isDatePicker as Pe } from "./component-map.js";
|
|
113
113
|
import { createPlaceholderMessage as Y } from "./use/helper.js";
|
|
114
114
|
function q(o) {
|
|
115
115
|
return typeof o == "function" || Object.prototype.toString.call(o) === "[object Object]" && !le(o);
|
|
@@ -282,7 +282,7 @@ const Ce = Q({
|
|
|
282
282
|
placeholderJoinLabel: f = !0
|
|
283
283
|
} = o.schema;
|
|
284
284
|
let p = a;
|
|
285
|
-
|
|
285
|
+
Ee(t) ? p = "input" : Pe(t) || t === e.TIME_PICKER || [e.INPUT_TAG, e.AUTOCOMPLETE, e.Cascader, e.ColorPicker, e.Slider].includes(t) ? p = "update:modelValue" : t === e.Upload && (p = "update:fileList");
|
|
286
286
|
const i = `on${me(p)}`, g = {
|
|
287
287
|
[i]: (...R) => {
|
|
288
288
|
const [N] = R;
|
|
@@ -297,7 +297,7 @@ const Ce = Q({
|
|
|
297
297
|
clearable: !0,
|
|
298
298
|
...c(K)
|
|
299
299
|
};
|
|
300
|
-
if ([e.SEARCH].includes(t) || (d.size = c(K)?.size || M, d.disabled = c(Z)), !d.disabled && A && !
|
|
300
|
+
if ([e.SEARCH].includes(t) || (d.size = c(K)?.size || M, d.disabled = c(Z)), !d.disabled && A && !he(t) && t) {
|
|
301
301
|
const R = u || h;
|
|
302
302
|
d.placeholder = c(K)?.placeholder || Y(t, f && ce(R) ? R : "");
|
|
303
303
|
}
|
|
@@ -6,7 +6,7 @@ import type { RowProps } from 'vft/es/components/row';
|
|
|
6
6
|
import type { ToolTipProps } from 'vft/es/components/tooltip';
|
|
7
7
|
import type { ComponentSize } from 'vft/es/constants';
|
|
8
8
|
import type { Arrayable } from 'vft/es/utils';
|
|
9
|
-
import {
|
|
9
|
+
import { type FormCompEnumType } from 'vft/es/utils';
|
|
10
10
|
import type { InternalRuleItem, RuleItem } from 'async-validator';
|
|
11
11
|
import type { ComponentPublicInstance, Ref, StyleValue, VNode } from 'vue';
|
|
12
12
|
import type { Recordable } from '../types';
|
|
@@ -199,7 +199,7 @@ export interface FormSchema {
|
|
|
199
199
|
/** 用于自定义组件时给 label 加上必选 * */
|
|
200
200
|
labelRequired?: boolean;
|
|
201
201
|
/** 渲染组件 */
|
|
202
|
-
type?:
|
|
202
|
+
type?: FormCompEnumType;
|
|
203
203
|
/** 组件内置参数 */
|
|
204
204
|
componentProps?: ((opt: {
|
|
205
205
|
schema: FormSchema;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { type FormCompEnumType } from 'vft/es/utils';
|
|
2
2
|
/**
|
|
3
3
|
* @description 自动创建 placeholder
|
|
4
4
|
* @example
|
|
@@ -6,7 +6,7 @@ import { FormCompEnum } from 'vft/es/utils';
|
|
|
6
6
|
* @param type 组件类型
|
|
7
7
|
* @param label
|
|
8
8
|
*/
|
|
9
|
-
export declare function createPlaceholderMessage(type:
|
|
9
|
+
export declare function createPlaceholderMessage(type: FormCompEnumType, label?: string): string;
|
|
10
10
|
/**
|
|
11
11
|
* @description 处理 input 输入为数值的 val
|
|
12
12
|
* @example
|
|
@@ -14,4 +14,4 @@ export declare function createPlaceholderMessage(type: FormCompEnum, label?: str
|
|
|
14
14
|
* @param type
|
|
15
15
|
* @param val
|
|
16
16
|
*/
|
|
17
|
-
export declare function handleInputNumberValue(type?:
|
|
17
|
+
export declare function handleInputNumberValue(type?: FormCompEnumType, val?: any): any;
|
package/es/package.json.d.ts
CHANGED
package/es/package.json.js
CHANGED
|
@@ -1,42 +1,43 @@
|
|
|
1
1
|
import type { Component } from 'vue';
|
|
2
|
-
export declare
|
|
3
|
-
AUTOCOMPLETE
|
|
4
|
-
Cascader
|
|
5
|
-
ColorPicker
|
|
6
|
-
INPUT
|
|
7
|
-
INPUT_NUMBER
|
|
8
|
-
INPUT_NUMBER_STEP
|
|
9
|
-
INPUT_TAG
|
|
10
|
-
PASSWORD
|
|
11
|
-
TEXTAREA
|
|
12
|
-
Slider
|
|
13
|
-
DIVIDER
|
|
14
|
-
SELECT
|
|
15
|
-
SEARCH
|
|
16
|
-
RADIO
|
|
17
|
-
RADIO_SINGLE
|
|
18
|
-
RADIO_BUTTON
|
|
19
|
-
CHECKBOX
|
|
20
|
-
CHECKBOX_SINGLE
|
|
21
|
-
CHECKBOX_BUTTON
|
|
22
|
-
SWITCH
|
|
23
|
-
Upload
|
|
24
|
-
TIME_PICKER
|
|
25
|
-
TIMERANGE_PICKER
|
|
26
|
-
YEAR_PICKER
|
|
27
|
-
MONTH_PICKER
|
|
28
|
-
DATE_PICKER
|
|
29
|
-
DATES_PICKER
|
|
30
|
-
DATETIME_PICKER
|
|
31
|
-
WEEK_PICKER
|
|
32
|
-
DATETIMERANGE_PICKER
|
|
33
|
-
DATERANGE_PICKER
|
|
34
|
-
MONTHRANGE_PICKER
|
|
35
|
-
}
|
|
36
|
-
export
|
|
2
|
+
export declare const FormCompEnum: {
|
|
3
|
+
readonly AUTOCOMPLETE: "autocomplete";
|
|
4
|
+
readonly Cascader: "cascader";
|
|
5
|
+
readonly ColorPicker: "colorPicker";
|
|
6
|
+
readonly INPUT: "input";
|
|
7
|
+
readonly INPUT_NUMBER: "input-number";
|
|
8
|
+
readonly INPUT_NUMBER_STEP: "input-number-step";
|
|
9
|
+
readonly INPUT_TAG: "input-tag";
|
|
10
|
+
readonly PASSWORD: "password";
|
|
11
|
+
readonly TEXTAREA: "textarea";
|
|
12
|
+
readonly Slider: "slider";
|
|
13
|
+
readonly DIVIDER: "divider";
|
|
14
|
+
readonly SELECT: "select";
|
|
15
|
+
readonly SEARCH: "search";
|
|
16
|
+
readonly RADIO: "radio";
|
|
17
|
+
readonly RADIO_SINGLE: "radio_single";
|
|
18
|
+
readonly RADIO_BUTTON: "radio-button";
|
|
19
|
+
readonly CHECKBOX: "checkbox";
|
|
20
|
+
readonly CHECKBOX_SINGLE: "checkbox_single";
|
|
21
|
+
readonly CHECKBOX_BUTTON: "checkbox-button";
|
|
22
|
+
readonly SWITCH: "switch";
|
|
23
|
+
readonly Upload: "upload";
|
|
24
|
+
readonly TIME_PICKER: "time-picker";
|
|
25
|
+
readonly TIMERANGE_PICKER: "time-picker";
|
|
26
|
+
readonly YEAR_PICKER: "year";
|
|
27
|
+
readonly MONTH_PICKER: "month";
|
|
28
|
+
readonly DATE_PICKER: "date";
|
|
29
|
+
readonly DATES_PICKER: "dates";
|
|
30
|
+
readonly DATETIME_PICKER: "datetime";
|
|
31
|
+
readonly WEEK_PICKER: "week";
|
|
32
|
+
readonly DATETIMERANGE_PICKER: "datetimerange";
|
|
33
|
+
readonly DATERANGE_PICKER: "daterange";
|
|
34
|
+
readonly MONTHRANGE_PICKER: "monthrange";
|
|
35
|
+
};
|
|
36
|
+
export type FormCompEnumType = (typeof FormCompEnum)[keyof typeof FormCompEnum];
|
|
37
|
+
export declare function registerComponent(compName: FormCompEnumType | string, component: Component): void;
|
|
37
38
|
export declare function registerComponents(components: Record<string, Component>): void;
|
|
38
|
-
export declare function getComponent(compName:
|
|
39
|
-
export declare function removeComponent(compName:
|
|
40
|
-
export declare function hasComponent(compName:
|
|
41
|
-
export declare function getRegisteredComponents():
|
|
39
|
+
export declare function getComponent(compName: FormCompEnumType): Component | undefined;
|
|
40
|
+
export declare function removeComponent(compName: FormCompEnumType): void;
|
|
41
|
+
export declare function hasComponent(compName: FormCompEnumType): boolean;
|
|
42
|
+
export declare function getRegisteredComponents(): FormCompEnumType[];
|
|
42
43
|
export declare function clearComponents(): void;
|
|
@@ -1,35 +1,68 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
const E = {
|
|
2
|
+
AUTOCOMPLETE: "autocomplete",
|
|
3
|
+
Cascader: "cascader",
|
|
4
|
+
ColorPicker: "colorPicker",
|
|
5
|
+
INPUT: "input",
|
|
6
|
+
INPUT_NUMBER: "input-number",
|
|
7
|
+
INPUT_NUMBER_STEP: "input-number-step",
|
|
8
|
+
INPUT_TAG: "input-tag",
|
|
9
|
+
PASSWORD: "password",
|
|
10
|
+
TEXTAREA: "textarea",
|
|
11
|
+
Slider: "slider",
|
|
12
|
+
DIVIDER: "divider",
|
|
13
|
+
SELECT: "select",
|
|
14
|
+
SEARCH: "search",
|
|
15
|
+
RADIO: "radio",
|
|
16
|
+
RADIO_SINGLE: "radio_single",
|
|
17
|
+
RADIO_BUTTON: "radio-button",
|
|
18
|
+
CHECKBOX: "checkbox",
|
|
19
|
+
CHECKBOX_SINGLE: "checkbox_single",
|
|
20
|
+
CHECKBOX_BUTTON: "checkbox-button",
|
|
21
|
+
SWITCH: "switch",
|
|
22
|
+
Upload: "upload",
|
|
23
|
+
TIME_PICKER: "time-picker",
|
|
24
|
+
// eslint-disable-next-line
|
|
25
|
+
TIMERANGE_PICKER: "time-picker",
|
|
26
|
+
YEAR_PICKER: "year",
|
|
27
|
+
MONTH_PICKER: "month",
|
|
28
|
+
DATE_PICKER: "date",
|
|
29
|
+
DATES_PICKER: "dates",
|
|
30
|
+
DATETIME_PICKER: "datetime",
|
|
31
|
+
WEEK_PICKER: "week",
|
|
32
|
+
DATETIMERANGE_PICKER: "datetimerange",
|
|
33
|
+
DATERANGE_PICKER: "daterange",
|
|
34
|
+
MONTHRANGE_PICKER: "monthrange"
|
|
35
|
+
}, t = /* @__PURE__ */ new Map();
|
|
36
|
+
function r(e, n) {
|
|
37
|
+
t.set(e, n);
|
|
5
38
|
}
|
|
6
|
-
function
|
|
7
|
-
Object.entries(e).forEach(([
|
|
8
|
-
t.set(
|
|
39
|
+
function i(e) {
|
|
40
|
+
Object.entries(e).forEach(([n, o]) => {
|
|
41
|
+
t.set(n, o);
|
|
9
42
|
});
|
|
10
43
|
}
|
|
11
|
-
function
|
|
44
|
+
function a(e) {
|
|
12
45
|
return t.get(e);
|
|
13
46
|
}
|
|
14
|
-
function
|
|
47
|
+
function c(e) {
|
|
15
48
|
t.delete(e);
|
|
16
49
|
}
|
|
17
|
-
function
|
|
50
|
+
function C(e) {
|
|
18
51
|
return t.has(e);
|
|
19
52
|
}
|
|
20
|
-
function
|
|
53
|
+
function I() {
|
|
21
54
|
return Array.from(t.keys());
|
|
22
55
|
}
|
|
23
|
-
function
|
|
56
|
+
function T() {
|
|
24
57
|
t.clear();
|
|
25
58
|
}
|
|
26
59
|
export {
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
60
|
+
E as FormCompEnum,
|
|
61
|
+
T as clearComponents,
|
|
62
|
+
a as getComponent,
|
|
63
|
+
I as getRegisteredComponents,
|
|
64
|
+
C as hasComponent,
|
|
65
|
+
r as registerComponent,
|
|
66
|
+
i as registerComponents,
|
|
67
|
+
c as removeComponent
|
|
35
68
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
declare const isRangePicker: (type:
|
|
3
|
-
declare const isInput: (type:
|
|
4
|
-
declare const isDatePicker: (type:
|
|
1
|
+
import { type FormCompEnumType } from 'vft/es/utils';
|
|
2
|
+
declare const isRangePicker: (type: FormCompEnumType) => boolean;
|
|
3
|
+
declare const isInput: (type: FormCompEnumType) => boolean;
|
|
4
|
+
declare const isDatePicker: (type: FormCompEnumType) => boolean;
|
|
5
5
|
export { isDatePicker, isInput, isRangePicker };
|
|
@@ -6,7 +6,7 @@ import type { RowProps } from 'vft/es/components/row';
|
|
|
6
6
|
import type { ToolTipProps } from 'vft/es/components/tooltip';
|
|
7
7
|
import type { ComponentSize } from 'vft/es/constants';
|
|
8
8
|
import type { Arrayable } from 'vft/es/utils';
|
|
9
|
-
import {
|
|
9
|
+
import { type FormCompEnumType } from 'vft/es/utils';
|
|
10
10
|
import type { InternalRuleItem, RuleItem } from 'async-validator';
|
|
11
11
|
import type { ComponentPublicInstance, Ref, StyleValue, VNode } from 'vue';
|
|
12
12
|
import type { Recordable } from '../types';
|
|
@@ -199,7 +199,7 @@ export interface FormSchema {
|
|
|
199
199
|
/** 用于自定义组件时给 label 加上必选 * */
|
|
200
200
|
labelRequired?: boolean;
|
|
201
201
|
/** 渲染组件 */
|
|
202
|
-
type?:
|
|
202
|
+
type?: FormCompEnumType;
|
|
203
203
|
/** 组件内置参数 */
|
|
204
204
|
componentProps?: ((opt: {
|
|
205
205
|
schema: FormSchema;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { type FormCompEnumType } from 'vft/es/utils';
|
|
2
2
|
/**
|
|
3
3
|
* @description 自动创建 placeholder
|
|
4
4
|
* @example
|
|
@@ -6,7 +6,7 @@ import { FormCompEnum } from 'vft/es/utils';
|
|
|
6
6
|
* @param type 组件类型
|
|
7
7
|
* @param label
|
|
8
8
|
*/
|
|
9
|
-
export declare function createPlaceholderMessage(type:
|
|
9
|
+
export declare function createPlaceholderMessage(type: FormCompEnumType, label?: string): string;
|
|
10
10
|
/**
|
|
11
11
|
* @description 处理 input 输入为数值的 val
|
|
12
12
|
* @example
|
|
@@ -14,4 +14,4 @@ export declare function createPlaceholderMessage(type: FormCompEnum, label?: str
|
|
|
14
14
|
* @param type
|
|
15
15
|
* @param val
|
|
16
16
|
*/
|
|
17
|
-
export declare function handleInputNumberValue(type?:
|
|
17
|
+
export declare function handleInputNumberValue(type?: FormCompEnumType, val?: any): any;
|
package/lib/package.json.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e="0.0.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e="0.0.391";exports.version=e;
|
package/lib/package.json.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r={AUTOCOMPLETE:"autocomplete",Cascader:"cascader",ColorPicker:"colorPicker",INPUT:"input",INPUT_NUMBER:"input-number",INPUT_NUMBER_STEP:"input-number-step",INPUT_TAG:"input-tag",PASSWORD:"password",TEXTAREA:"textarea",Slider:"slider",DIVIDER:"divider",SELECT:"select",SEARCH:"search",RADIO:"radio",RADIO_SINGLE:"radio_single",RADIO_BUTTON:"radio-button",CHECKBOX:"checkbox",CHECKBOX_SINGLE:"checkbox_single",CHECKBOX_BUTTON:"checkbox-button",SWITCH:"switch",Upload:"upload",TIME_PICKER:"time-picker",TIMERANGE_PICKER:"time-picker",YEAR_PICKER:"year",MONTH_PICKER:"month",DATE_PICKER:"date",DATES_PICKER:"dates",DATETIME_PICKER:"datetime",WEEK_PICKER:"week",DATETIMERANGE_PICKER:"datetimerange",DATERANGE_PICKER:"daterange",MONTHRANGE_PICKER:"monthrange"},t=new Map;function E(e,n){t.set(e,n)}function i(e){Object.entries(e).forEach(([n,o])=>{t.set(n,o)})}function C(e){return t.get(e)}function a(e){t.delete(e)}function c(e){return t.has(e)}function s(){return Array.from(t.keys())}function m(){t.clear()}exports.FormCompEnum=r;exports.clearComponents=m;exports.getComponent=C;exports.getRegisteredComponents=s;exports.hasComponent=c;exports.registerComponent=E;exports.registerComponents=i;exports.removeComponent=a;
|
|
@@ -1,42 +1,43 @@
|
|
|
1
1
|
import type { Component } from 'vue';
|
|
2
|
-
export declare
|
|
3
|
-
AUTOCOMPLETE
|
|
4
|
-
Cascader
|
|
5
|
-
ColorPicker
|
|
6
|
-
INPUT
|
|
7
|
-
INPUT_NUMBER
|
|
8
|
-
INPUT_NUMBER_STEP
|
|
9
|
-
INPUT_TAG
|
|
10
|
-
PASSWORD
|
|
11
|
-
TEXTAREA
|
|
12
|
-
Slider
|
|
13
|
-
DIVIDER
|
|
14
|
-
SELECT
|
|
15
|
-
SEARCH
|
|
16
|
-
RADIO
|
|
17
|
-
RADIO_SINGLE
|
|
18
|
-
RADIO_BUTTON
|
|
19
|
-
CHECKBOX
|
|
20
|
-
CHECKBOX_SINGLE
|
|
21
|
-
CHECKBOX_BUTTON
|
|
22
|
-
SWITCH
|
|
23
|
-
Upload
|
|
24
|
-
TIME_PICKER
|
|
25
|
-
TIMERANGE_PICKER
|
|
26
|
-
YEAR_PICKER
|
|
27
|
-
MONTH_PICKER
|
|
28
|
-
DATE_PICKER
|
|
29
|
-
DATES_PICKER
|
|
30
|
-
DATETIME_PICKER
|
|
31
|
-
WEEK_PICKER
|
|
32
|
-
DATETIMERANGE_PICKER
|
|
33
|
-
DATERANGE_PICKER
|
|
34
|
-
MONTHRANGE_PICKER
|
|
35
|
-
}
|
|
36
|
-
export
|
|
2
|
+
export declare const FormCompEnum: {
|
|
3
|
+
readonly AUTOCOMPLETE: "autocomplete";
|
|
4
|
+
readonly Cascader: "cascader";
|
|
5
|
+
readonly ColorPicker: "colorPicker";
|
|
6
|
+
readonly INPUT: "input";
|
|
7
|
+
readonly INPUT_NUMBER: "input-number";
|
|
8
|
+
readonly INPUT_NUMBER_STEP: "input-number-step";
|
|
9
|
+
readonly INPUT_TAG: "input-tag";
|
|
10
|
+
readonly PASSWORD: "password";
|
|
11
|
+
readonly TEXTAREA: "textarea";
|
|
12
|
+
readonly Slider: "slider";
|
|
13
|
+
readonly DIVIDER: "divider";
|
|
14
|
+
readonly SELECT: "select";
|
|
15
|
+
readonly SEARCH: "search";
|
|
16
|
+
readonly RADIO: "radio";
|
|
17
|
+
readonly RADIO_SINGLE: "radio_single";
|
|
18
|
+
readonly RADIO_BUTTON: "radio-button";
|
|
19
|
+
readonly CHECKBOX: "checkbox";
|
|
20
|
+
readonly CHECKBOX_SINGLE: "checkbox_single";
|
|
21
|
+
readonly CHECKBOX_BUTTON: "checkbox-button";
|
|
22
|
+
readonly SWITCH: "switch";
|
|
23
|
+
readonly Upload: "upload";
|
|
24
|
+
readonly TIME_PICKER: "time-picker";
|
|
25
|
+
readonly TIMERANGE_PICKER: "time-picker";
|
|
26
|
+
readonly YEAR_PICKER: "year";
|
|
27
|
+
readonly MONTH_PICKER: "month";
|
|
28
|
+
readonly DATE_PICKER: "date";
|
|
29
|
+
readonly DATES_PICKER: "dates";
|
|
30
|
+
readonly DATETIME_PICKER: "datetime";
|
|
31
|
+
readonly WEEK_PICKER: "week";
|
|
32
|
+
readonly DATETIMERANGE_PICKER: "datetimerange";
|
|
33
|
+
readonly DATERANGE_PICKER: "daterange";
|
|
34
|
+
readonly MONTHRANGE_PICKER: "monthrange";
|
|
35
|
+
};
|
|
36
|
+
export type FormCompEnumType = (typeof FormCompEnum)[keyof typeof FormCompEnum];
|
|
37
|
+
export declare function registerComponent(compName: FormCompEnumType | string, component: Component): void;
|
|
37
38
|
export declare function registerComponents(components: Record<string, Component>): void;
|
|
38
|
-
export declare function getComponent(compName:
|
|
39
|
-
export declare function removeComponent(compName:
|
|
40
|
-
export declare function hasComponent(compName:
|
|
41
|
-
export declare function getRegisteredComponents():
|
|
39
|
+
export declare function getComponent(compName: FormCompEnumType): Component | undefined;
|
|
40
|
+
export declare function removeComponent(compName: FormCompEnumType): void;
|
|
41
|
+
export declare function hasComponent(compName: FormCompEnumType): boolean;
|
|
42
|
+
export declare function getRegisteredComponents(): FormCompEnumType[];
|
|
42
43
|
export declare function clearComponents(): void;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vft",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.391",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"main": "lib/index.cjs",
|
|
6
6
|
"module": "es/index.js",
|
|
@@ -55,12 +55,12 @@
|
|
|
55
55
|
"resize-detector": "0.3.0",
|
|
56
56
|
"sortablejs": "1.15.0",
|
|
57
57
|
"photoswipe": "5.4.4",
|
|
58
|
-
"@vft/constants": "0.0.72",
|
|
59
|
-
"@vft/store": "0.0.54",
|
|
60
58
|
"@vft/router": "0.0.67",
|
|
59
|
+
"@vft/constants": "0.0.72",
|
|
60
|
+
"@vft/utils": "0.0.140",
|
|
61
61
|
"@vft/directives": "0.0.36",
|
|
62
62
|
"@vft/use": "0.0.82",
|
|
63
|
-
"@vft/
|
|
63
|
+
"@vft/store": "0.0.54"
|
|
64
64
|
},
|
|
65
65
|
"vetur": {
|
|
66
66
|
"tags": "tags.json",
|
package/web-types.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"$schema":"http://json.schemastore.org/web-types","framework":"vue","name":"vft","version":"0.0.
|
|
1
|
+
{"$schema":"http://json.schemastore.org/web-types","framework":"vue","name":"vft","version":"0.0.391","js-types-syntax":"typescript","description-markup":"markdown","contributions":{"html":{}}}
|