@94ai/nf-form-item 8.3.22 → 9.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.
- package/lib/index.d.ts +66 -66
- package/lib/nf-form-item.cjs.js +2 -1
- package/lib/nf-form-item.esm-bundler.js +2 -1
- package/lib/nf-form-item.vue.d.ts +27 -27
- package/lib/style/css.d.ts +0 -1
- package/lib/style/index.d.ts +0 -1
- package/package/nf-form-item.vue +3 -1
- package/package.json +4 -4
package/lib/index.d.ts
CHANGED
|
@@ -1,66 +1,66 @@
|
|
|
1
|
-
import { PluginObject } from 'vue-demi';
|
|
2
|
-
declare const _default: import("vue/types/v3-component-public-instance").ComponentPublicInstanceConstructor<import("vue/types/v3-component-public-instance").Vue3Instance<{
|
|
3
|
-
isExpand: boolean;
|
|
4
|
-
initExpand: boolean;
|
|
5
|
-
}, Readonly<import("vue-demi").ExtractPropTypes<{
|
|
6
|
-
hidden: {
|
|
7
|
-
type: BooleanConstructor;
|
|
8
|
-
default: boolean;
|
|
9
|
-
};
|
|
10
|
-
}>>, Readonly<import("vue-demi").ExtractPropTypes<{
|
|
11
|
-
hidden: {
|
|
12
|
-
type: BooleanConstructor;
|
|
13
|
-
default: boolean;
|
|
14
|
-
};
|
|
15
|
-
}>>, {}, {
|
|
16
|
-
hidden: boolean;
|
|
17
|
-
}, true, import("vue/types/v3-component-options").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, any>> & Readonly<Readonly<import("vue-demi").ExtractPropTypes<{
|
|
18
|
-
hidden: {
|
|
19
|
-
type: BooleanConstructor;
|
|
20
|
-
default: boolean;
|
|
21
|
-
};
|
|
22
|
-
}>>> & import("vue-demi").ShallowUnwrapRef<{}> & {
|
|
23
|
-
isExpand: boolean;
|
|
24
|
-
initExpand: boolean;
|
|
25
|
-
} & import("vue/types/v3-component-options").ExtractComputedReturns<import("vue-demi").ComponentComputedOptions & {
|
|
26
|
-
unpackDesc(): any;
|
|
27
|
-
unpackIcon(): any;
|
|
28
|
-
isCollapse(): any;
|
|
29
|
-
labelPosition(): any;
|
|
30
|
-
inline(): any;
|
|
31
|
-
columns(): any;
|
|
32
|
-
showBtn(): any;
|
|
33
|
-
isLastItem(): any;
|
|
34
|
-
}> & import("vue-demi").ComponentMethodOptions & import("vue-demi").ComponentCustomProperties & Readonly<import("vue-demi").ExtractPropTypes<{
|
|
35
|
-
hidden: {
|
|
36
|
-
type: BooleanConstructor;
|
|
37
|
-
default: boolean;
|
|
38
|
-
};
|
|
39
|
-
}>>, any, any, any, import("vue-demi").ComponentComputedOptions, import("vue-demi").ComponentMethodOptions> & import("vue/types/v3-component-options").ComponentOptionsBase<Readonly<import("vue-demi").ExtractPropTypes<{
|
|
40
|
-
hidden: {
|
|
41
|
-
type: BooleanConstructor;
|
|
42
|
-
default: boolean;
|
|
43
|
-
};
|
|
44
|
-
}>>, {}, {
|
|
45
|
-
isExpand: boolean;
|
|
46
|
-
initExpand: boolean;
|
|
47
|
-
}, {
|
|
48
|
-
unpackDesc(): any;
|
|
49
|
-
unpackIcon(): any;
|
|
50
|
-
isCollapse(): any;
|
|
51
|
-
labelPosition(): any;
|
|
52
|
-
inline(): any;
|
|
53
|
-
columns(): any;
|
|
54
|
-
showBtn(): any;
|
|
55
|
-
isLastItem(): any;
|
|
56
|
-
}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, typeof import("element-ui").FormItem, {}, string, {
|
|
57
|
-
hidden: boolean;
|
|
58
|
-
}> & {
|
|
59
|
-
props: {
|
|
60
|
-
hidden: {
|
|
61
|
-
type: BooleanConstructor;
|
|
62
|
-
default: boolean;
|
|
63
|
-
};
|
|
64
|
-
};
|
|
65
|
-
} & PluginObject<undefined>;
|
|
66
|
-
export default _default;
|
|
1
|
+
import { PluginObject } from 'vue-demi';
|
|
2
|
+
declare const _default: import("vue/types/v3-component-public-instance").ComponentPublicInstanceConstructor<import("vue/types/v3-component-public-instance").Vue3Instance<{
|
|
3
|
+
isExpand: boolean;
|
|
4
|
+
initExpand: boolean;
|
|
5
|
+
}, Readonly<import("vue-demi").ExtractPropTypes<{
|
|
6
|
+
hidden: {
|
|
7
|
+
type: BooleanConstructor;
|
|
8
|
+
default: boolean;
|
|
9
|
+
};
|
|
10
|
+
}>>, Readonly<import("vue-demi").ExtractPropTypes<{
|
|
11
|
+
hidden: {
|
|
12
|
+
type: BooleanConstructor;
|
|
13
|
+
default: boolean;
|
|
14
|
+
};
|
|
15
|
+
}>>, {}, {
|
|
16
|
+
hidden: boolean;
|
|
17
|
+
}, true, import("vue/types/v3-component-options").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, any>> & Readonly<Readonly<import("vue-demi").ExtractPropTypes<{
|
|
18
|
+
hidden: {
|
|
19
|
+
type: BooleanConstructor;
|
|
20
|
+
default: boolean;
|
|
21
|
+
};
|
|
22
|
+
}>>> & import("vue-demi").ShallowUnwrapRef<{}> & {
|
|
23
|
+
isExpand: boolean;
|
|
24
|
+
initExpand: boolean;
|
|
25
|
+
} & import("vue/types/v3-component-options").ExtractComputedReturns<import("vue-demi").ComponentComputedOptions & {
|
|
26
|
+
unpackDesc(): any;
|
|
27
|
+
unpackIcon(): any;
|
|
28
|
+
isCollapse(): any;
|
|
29
|
+
labelPosition(): any;
|
|
30
|
+
inline(): any;
|
|
31
|
+
columns(): any;
|
|
32
|
+
showBtn(): any;
|
|
33
|
+
isLastItem(): any;
|
|
34
|
+
}> & import("vue-demi").ComponentMethodOptions & import("vue-demi").ComponentCustomProperties & Readonly<import("vue-demi").ExtractPropTypes<{
|
|
35
|
+
hidden: {
|
|
36
|
+
type: BooleanConstructor;
|
|
37
|
+
default: boolean;
|
|
38
|
+
};
|
|
39
|
+
}>>, any, any, any, import("vue-demi").ComponentComputedOptions, import("vue-demi").ComponentMethodOptions> & import("vue/types/v3-component-options").ComponentOptionsBase<Readonly<import("vue-demi").ExtractPropTypes<{
|
|
40
|
+
hidden: {
|
|
41
|
+
type: BooleanConstructor;
|
|
42
|
+
default: boolean;
|
|
43
|
+
};
|
|
44
|
+
}>>, {}, {
|
|
45
|
+
isExpand: boolean;
|
|
46
|
+
initExpand: boolean;
|
|
47
|
+
}, {
|
|
48
|
+
unpackDesc(): any;
|
|
49
|
+
unpackIcon(): any;
|
|
50
|
+
isCollapse(): any;
|
|
51
|
+
labelPosition(): any;
|
|
52
|
+
inline(): any;
|
|
53
|
+
columns(): any;
|
|
54
|
+
showBtn(): any;
|
|
55
|
+
isLastItem(): any;
|
|
56
|
+
}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, typeof import("element-ui").FormItem, {}, string, {
|
|
57
|
+
hidden: boolean;
|
|
58
|
+
}> & {
|
|
59
|
+
props: {
|
|
60
|
+
hidden: {
|
|
61
|
+
type: BooleanConstructor;
|
|
62
|
+
default: boolean;
|
|
63
|
+
};
|
|
64
|
+
};
|
|
65
|
+
} & PluginObject<undefined>;
|
|
66
|
+
export default _default;
|
package/lib/nf-form-item.cjs.js
CHANGED
|
@@ -57,9 +57,10 @@ const _sfc_main = vueDemi.defineComponent({
|
|
|
57
57
|
computed: {
|
|
58
58
|
// 展开收起文案
|
|
59
59
|
unpackDesc() {
|
|
60
|
+
var _a, _b, _c, _d;
|
|
60
61
|
if (!this.form)
|
|
61
62
|
return "";
|
|
62
|
-
return this.isExpand ? this.form.shrinkBtnTooltipDesc : this.form.expandBtnTooltipDesc;
|
|
63
|
+
return this.isExpand ? (_b = (_a = this.form.localeText) == null ? void 0 : _a.shrinkBtnTooltipDesc) != null ? _b : this.form.shrinkBtnTooltipDesc : (_d = (_c = this.form.localeText) == null ? void 0 : _c.expandBtnTooltipDesc) != null ? _d : this.form.expandBtnTooltipDesc;
|
|
63
64
|
},
|
|
64
65
|
// 展开收起icon
|
|
65
66
|
unpackIcon() {
|
|
@@ -55,9 +55,10 @@ const _sfc_main = defineComponent({
|
|
|
55
55
|
computed: {
|
|
56
56
|
// 展开收起文案
|
|
57
57
|
unpackDesc() {
|
|
58
|
+
var _a, _b, _c, _d;
|
|
58
59
|
if (!this.form)
|
|
59
60
|
return "";
|
|
60
|
-
return this.isExpand ? this.form.shrinkBtnTooltipDesc : this.form.expandBtnTooltipDesc;
|
|
61
|
+
return this.isExpand ? (_b = (_a = this.form.localeText) == null ? void 0 : _a.shrinkBtnTooltipDesc) != null ? _b : this.form.shrinkBtnTooltipDesc : (_d = (_c = this.form.localeText) == null ? void 0 : _c.expandBtnTooltipDesc) != null ? _d : this.form.expandBtnTooltipDesc;
|
|
61
62
|
},
|
|
62
63
|
// 展开收起icon
|
|
63
64
|
unpackIcon() {
|
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
import { FormItem } from 'element-ui';
|
|
2
|
-
declare const _default: import("vue-demi").DefineComponent<{
|
|
3
|
-
hidden: {
|
|
4
|
-
type: BooleanConstructor;
|
|
5
|
-
default: boolean;
|
|
6
|
-
};
|
|
7
|
-
}, {}, {
|
|
8
|
-
isExpand: boolean;
|
|
9
|
-
initExpand: boolean;
|
|
10
|
-
}, {
|
|
11
|
-
unpackDesc(): any;
|
|
12
|
-
unpackIcon(): any;
|
|
13
|
-
isCollapse(): any;
|
|
14
|
-
labelPosition(): any;
|
|
15
|
-
inline(): any;
|
|
16
|
-
columns(): any;
|
|
17
|
-
showBtn(): any;
|
|
18
|
-
isLastItem(): any;
|
|
19
|
-
}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, typeof FormItem, {}, string, Readonly<import("vue-demi").ExtractPropTypes<{
|
|
20
|
-
hidden: {
|
|
21
|
-
type: BooleanConstructor;
|
|
22
|
-
default: boolean;
|
|
23
|
-
};
|
|
24
|
-
}>>, {
|
|
25
|
-
hidden: boolean;
|
|
26
|
-
}>;
|
|
27
|
-
export default _default;
|
|
1
|
+
import { FormItem } from 'element-ui';
|
|
2
|
+
declare const _default: import("vue-demi").DefineComponent<{
|
|
3
|
+
hidden: {
|
|
4
|
+
type: BooleanConstructor;
|
|
5
|
+
default: boolean;
|
|
6
|
+
};
|
|
7
|
+
}, {}, {
|
|
8
|
+
isExpand: boolean;
|
|
9
|
+
initExpand: boolean;
|
|
10
|
+
}, {
|
|
11
|
+
unpackDesc(): any;
|
|
12
|
+
unpackIcon(): any;
|
|
13
|
+
isCollapse(): any;
|
|
14
|
+
labelPosition(): any;
|
|
15
|
+
inline(): any;
|
|
16
|
+
columns(): any;
|
|
17
|
+
showBtn(): any;
|
|
18
|
+
isLastItem(): any;
|
|
19
|
+
}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, typeof FormItem, {}, string, Readonly<import("vue-demi").ExtractPropTypes<{
|
|
20
|
+
hidden: {
|
|
21
|
+
type: BooleanConstructor;
|
|
22
|
+
default: boolean;
|
|
23
|
+
};
|
|
24
|
+
}>>, {
|
|
25
|
+
hidden: boolean;
|
|
26
|
+
}>;
|
|
27
|
+
export default _default;
|
package/lib/style/css.d.ts
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
|
package/lib/style/index.d.ts
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
|
package/package/nf-form-item.vue
CHANGED
|
@@ -124,7 +124,9 @@ export default defineComponent({
|
|
|
124
124
|
// 展开收起文案
|
|
125
125
|
unpackDesc() {
|
|
126
126
|
if (!this.form) return ''
|
|
127
|
-
return this.isExpand
|
|
127
|
+
return this.isExpand
|
|
128
|
+
? (this.form.localeText?.shrinkBtnTooltipDesc ?? this.form.shrinkBtnTooltipDesc)
|
|
129
|
+
: (this.form.localeText?.expandBtnTooltipDesc ?? this.form.expandBtnTooltipDesc)
|
|
128
130
|
},
|
|
129
131
|
// 展开收起icon
|
|
130
132
|
unpackIcon() {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@94ai/nf-form-item",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "9.0.0",
|
|
4
4
|
"description": "> TODO: description",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"author": "zoujiahe <zoujiahe@94ai.com>",
|
|
@@ -11,10 +11,10 @@
|
|
|
11
11
|
},
|
|
12
12
|
"repository": {
|
|
13
13
|
"type": "git",
|
|
14
|
-
"url": "http://94ai.
|
|
14
|
+
"url": "http://gitlab.94ai.pro/zoujiahe/common-ui.git"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@94ai/nf-theme-chalk": "^
|
|
17
|
+
"@94ai/nf-theme-chalk": "^9.0.0",
|
|
18
18
|
"vue-demi": "^0.14.5"
|
|
19
19
|
},
|
|
20
20
|
"peerDependenciesMeta": {
|
|
@@ -30,5 +30,5 @@
|
|
|
30
30
|
"types": "lib/index.d.ts",
|
|
31
31
|
"main": "lib/nf-form-item.cjs.js",
|
|
32
32
|
"module": "lib/nf-form-item.esm-bundler.js",
|
|
33
|
-
"gitHead": "
|
|
33
|
+
"gitHead": "afe3016f0e42dfb7fedf6cbbe400ec08bf4b8662"
|
|
34
34
|
}
|