@94ai/nf-form-item 3.1.28 → 3.1.31

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 CHANGED
@@ -1,66 +1,274 @@
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
- downIcon(): any;
27
- upIcon(): any;
28
- isCollapse(): any;
29
- labelPosition(): any;
30
- inline(): any;
31
- columns(): any;
32
- showBtn(): boolean;
33
- isLastItem(): boolean;
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
- downIcon(): any;
49
- upIcon(): any;
50
- isCollapse(): any;
51
- labelPosition(): any;
52
- inline(): any;
53
- columns(): any;
54
- showBtn(): boolean;
55
- isLastItem(): boolean;
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
+ expandBtnType: {
11
+ type: StringConstructor;
12
+ default: string;
13
+ };
14
+ expandBtnIcon: {
15
+ type: StringConstructor;
16
+ default: undefined;
17
+ };
18
+ expandBtnPlain: {
19
+ type: BooleanConstructor;
20
+ default: boolean;
21
+ };
22
+ expandBtnSize: {
23
+ type: StringConstructor;
24
+ default: string;
25
+ };
26
+ expandBtnRound: {
27
+ type: BooleanConstructor;
28
+ default: boolean;
29
+ };
30
+ expandBtnCircle: {
31
+ type: BooleanConstructor;
32
+ default: boolean;
33
+ };
34
+ expandBtnLoading: {
35
+ type: BooleanConstructor;
36
+ default: boolean;
37
+ };
38
+ expandBtnDisabled: {
39
+ type: BooleanConstructor;
40
+ default: boolean;
41
+ };
42
+ }>>, Readonly<import("vue-demi").ExtractPropTypes<{
43
+ hidden: {
44
+ type: BooleanConstructor;
45
+ default: boolean;
46
+ };
47
+ expandBtnType: {
48
+ type: StringConstructor;
49
+ default: string;
50
+ };
51
+ expandBtnIcon: {
52
+ type: StringConstructor;
53
+ default: undefined;
54
+ };
55
+ expandBtnPlain: {
56
+ type: BooleanConstructor;
57
+ default: boolean;
58
+ };
59
+ expandBtnSize: {
60
+ type: StringConstructor;
61
+ default: string;
62
+ };
63
+ expandBtnRound: {
64
+ type: BooleanConstructor;
65
+ default: boolean;
66
+ };
67
+ expandBtnCircle: {
68
+ type: BooleanConstructor;
69
+ default: boolean;
70
+ };
71
+ expandBtnLoading: {
72
+ type: BooleanConstructor;
73
+ default: boolean;
74
+ };
75
+ expandBtnDisabled: {
76
+ type: BooleanConstructor;
77
+ default: boolean;
78
+ };
79
+ }>>, {}, {
80
+ hidden: boolean;
81
+ expandBtnType: string;
82
+ expandBtnIcon: string;
83
+ expandBtnPlain: boolean;
84
+ expandBtnSize: string;
85
+ expandBtnRound: boolean;
86
+ expandBtnCircle: boolean;
87
+ expandBtnLoading: boolean;
88
+ expandBtnDisabled: boolean;
89
+ }, true, import("vue/types/v3-component-options").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, any>> & Readonly<Readonly<import("vue-demi").ExtractPropTypes<{
90
+ hidden: {
91
+ type: BooleanConstructor;
92
+ default: boolean;
93
+ };
94
+ expandBtnType: {
95
+ type: StringConstructor;
96
+ default: string;
97
+ };
98
+ expandBtnIcon: {
99
+ type: StringConstructor;
100
+ default: undefined;
101
+ };
102
+ expandBtnPlain: {
103
+ type: BooleanConstructor;
104
+ default: boolean;
105
+ };
106
+ expandBtnSize: {
107
+ type: StringConstructor;
108
+ default: string;
109
+ };
110
+ expandBtnRound: {
111
+ type: BooleanConstructor;
112
+ default: boolean;
113
+ };
114
+ expandBtnCircle: {
115
+ type: BooleanConstructor;
116
+ default: boolean;
117
+ };
118
+ expandBtnLoading: {
119
+ type: BooleanConstructor;
120
+ default: boolean;
121
+ };
122
+ expandBtnDisabled: {
123
+ type: BooleanConstructor;
124
+ default: boolean;
125
+ };
126
+ }>>> & import("vue-demi").ShallowUnwrapRef<{}> & {
127
+ isExpand: boolean;
128
+ initExpand: boolean;
129
+ } & import("vue/types/v3-component-options").ExtractComputedReturns<import("vue-demi").ComponentComputedOptions & {
130
+ downIcon(): any;
131
+ upIcon(): any;
132
+ isCollapse(): any;
133
+ labelPosition(): any;
134
+ inline(): any;
135
+ columns(): any;
136
+ showBtn(): boolean;
137
+ isLastItem(): boolean;
138
+ }> & import("vue-demi").ComponentMethodOptions & import("vue-demi").ComponentCustomProperties & Readonly<import("vue-demi").ExtractPropTypes<{
139
+ hidden: {
140
+ type: BooleanConstructor;
141
+ default: boolean;
142
+ };
143
+ expandBtnType: {
144
+ type: StringConstructor;
145
+ default: string;
146
+ };
147
+ expandBtnIcon: {
148
+ type: StringConstructor;
149
+ default: undefined;
150
+ };
151
+ expandBtnPlain: {
152
+ type: BooleanConstructor;
153
+ default: boolean;
154
+ };
155
+ expandBtnSize: {
156
+ type: StringConstructor;
157
+ default: string;
158
+ };
159
+ expandBtnRound: {
160
+ type: BooleanConstructor;
161
+ default: boolean;
162
+ };
163
+ expandBtnCircle: {
164
+ type: BooleanConstructor;
165
+ default: boolean;
166
+ };
167
+ expandBtnLoading: {
168
+ type: BooleanConstructor;
169
+ default: boolean;
170
+ };
171
+ expandBtnDisabled: {
172
+ type: BooleanConstructor;
173
+ default: boolean;
174
+ };
175
+ }>>, any, any, any, import("vue-demi").ComponentComputedOptions, import("vue-demi").ComponentMethodOptions> & import("vue/types/v3-component-options").ComponentOptionsBase<Readonly<import("vue-demi").ExtractPropTypes<{
176
+ hidden: {
177
+ type: BooleanConstructor;
178
+ default: boolean;
179
+ };
180
+ expandBtnType: {
181
+ type: StringConstructor;
182
+ default: string;
183
+ };
184
+ expandBtnIcon: {
185
+ type: StringConstructor;
186
+ default: undefined;
187
+ };
188
+ expandBtnPlain: {
189
+ type: BooleanConstructor;
190
+ default: boolean;
191
+ };
192
+ expandBtnSize: {
193
+ type: StringConstructor;
194
+ default: string;
195
+ };
196
+ expandBtnRound: {
197
+ type: BooleanConstructor;
198
+ default: boolean;
199
+ };
200
+ expandBtnCircle: {
201
+ type: BooleanConstructor;
202
+ default: boolean;
203
+ };
204
+ expandBtnLoading: {
205
+ type: BooleanConstructor;
206
+ default: boolean;
207
+ };
208
+ expandBtnDisabled: {
209
+ type: BooleanConstructor;
210
+ default: boolean;
211
+ };
212
+ }>>, {}, {
213
+ isExpand: boolean;
214
+ initExpand: boolean;
215
+ }, {
216
+ downIcon(): any;
217
+ upIcon(): any;
218
+ isCollapse(): any;
219
+ labelPosition(): any;
220
+ inline(): any;
221
+ columns(): any;
222
+ showBtn(): boolean;
223
+ isLastItem(): boolean;
224
+ }, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, typeof import("element-ui").FormItem, {}, string, {
225
+ hidden: boolean;
226
+ expandBtnType: string;
227
+ expandBtnIcon: string;
228
+ expandBtnPlain: boolean;
229
+ expandBtnSize: string;
230
+ expandBtnRound: boolean;
231
+ expandBtnCircle: boolean;
232
+ expandBtnLoading: boolean;
233
+ expandBtnDisabled: boolean;
234
+ }> & {
235
+ props: {
236
+ hidden: {
237
+ type: BooleanConstructor;
238
+ default: boolean;
239
+ };
240
+ expandBtnType: {
241
+ type: StringConstructor;
242
+ default: string;
243
+ };
244
+ expandBtnIcon: {
245
+ type: StringConstructor;
246
+ default: undefined;
247
+ };
248
+ expandBtnPlain: {
249
+ type: BooleanConstructor;
250
+ default: boolean;
251
+ };
252
+ expandBtnSize: {
253
+ type: StringConstructor;
254
+ default: string;
255
+ };
256
+ expandBtnRound: {
257
+ type: BooleanConstructor;
258
+ default: boolean;
259
+ };
260
+ expandBtnCircle: {
261
+ type: BooleanConstructor;
262
+ default: boolean;
263
+ };
264
+ expandBtnLoading: {
265
+ type: BooleanConstructor;
266
+ default: boolean;
267
+ };
268
+ expandBtnDisabled: {
269
+ type: BooleanConstructor;
270
+ default: boolean;
271
+ };
272
+ };
273
+ } & PluginObject<undefined>;
274
+ export default _default;
@@ -1325,6 +1325,38 @@ const _sfc_main = vueDemi.defineComponent({
1325
1325
  hidden: {
1326
1326
  type: Boolean,
1327
1327
  "default": false
1328
+ },
1329
+ expandBtnType: {
1330
+ type: String,
1331
+ "default": "default"
1332
+ },
1333
+ expandBtnIcon: {
1334
+ type: String,
1335
+ "default": void 0
1336
+ },
1337
+ expandBtnPlain: {
1338
+ type: Boolean,
1339
+ "default": false
1340
+ },
1341
+ expandBtnSize: {
1342
+ type: String,
1343
+ "default": "mini"
1344
+ },
1345
+ expandBtnRound: {
1346
+ type: Boolean,
1347
+ "default": false
1348
+ },
1349
+ expandBtnCircle: {
1350
+ type: Boolean,
1351
+ "default": false
1352
+ },
1353
+ expandBtnLoading: {
1354
+ type: Boolean,
1355
+ "default": false
1356
+ },
1357
+ expandBtnDisabled: {
1358
+ type: Boolean,
1359
+ "default": false
1328
1360
  }
1329
1361
  },
1330
1362
  data: function data2() {
@@ -1430,7 +1462,9 @@ const _sfc_main = vueDemi.defineComponent({
1430
1462
  },
1431
1463
  // 切换显示模式
1432
1464
  switchMode: function switchMode() {
1465
+ var _this$form16;
1433
1466
  this.isExpand = !this.isExpand;
1467
+ (_this$form16 = this.form) === null || _this$form16 === void 0 ? void 0 : _this$form16.$emit("isCollapseChange", this.isExpand);
1434
1468
  this.refreshButtonList();
1435
1469
  }
1436
1470
  }
@@ -1525,14 +1559,24 @@ var _sfc_render = function render() {
1525
1559
  }, [_vm._t("default"), _vm.showBtn ? _c("div", {
1526
1560
  staticClass: "nf-ml10"
1527
1561
  }, [_c("el-button", {
1528
- staticClass: "pointer",
1562
+ staticClass: "nf-pointer",
1563
+ attrs: {
1564
+ "type": _vm.expandBtnType,
1565
+ "icon": _vm.expandBtnIcon,
1566
+ "plain": _vm.expandBtnPlain,
1567
+ "size": _vm.expandBtnSize,
1568
+ "round": _vm.expandBtnRound,
1569
+ "circle": _vm.expandBtnCircle,
1570
+ "loading": _vm.expandBtnLoading,
1571
+ "disabled": _vm.expandBtnDisabled
1572
+ },
1529
1573
  on: {
1530
1574
  "click": function click($event) {
1531
1575
  return _vm.switchMode();
1532
1576
  }
1533
1577
  }
1534
1578
  }, [_c("i", {
1535
- staticClass: "iconfont",
1579
+ staticClass: "iconfont nf-fs12",
1536
1580
  "class": _vm.isExpand ? _vm.upIcon : _vm.downIcon
1537
1581
  })])], 1) : _vm._e()], 2) : _vm._t("default"), _c("transition", {
1538
1582
  attrs: {
@@ -1323,6 +1323,38 @@ const _sfc_main = defineComponent({
1323
1323
  hidden: {
1324
1324
  type: Boolean,
1325
1325
  "default": false
1326
+ },
1327
+ expandBtnType: {
1328
+ type: String,
1329
+ "default": "default"
1330
+ },
1331
+ expandBtnIcon: {
1332
+ type: String,
1333
+ "default": void 0
1334
+ },
1335
+ expandBtnPlain: {
1336
+ type: Boolean,
1337
+ "default": false
1338
+ },
1339
+ expandBtnSize: {
1340
+ type: String,
1341
+ "default": "mini"
1342
+ },
1343
+ expandBtnRound: {
1344
+ type: Boolean,
1345
+ "default": false
1346
+ },
1347
+ expandBtnCircle: {
1348
+ type: Boolean,
1349
+ "default": false
1350
+ },
1351
+ expandBtnLoading: {
1352
+ type: Boolean,
1353
+ "default": false
1354
+ },
1355
+ expandBtnDisabled: {
1356
+ type: Boolean,
1357
+ "default": false
1326
1358
  }
1327
1359
  },
1328
1360
  data: function data2() {
@@ -1428,7 +1460,9 @@ const _sfc_main = defineComponent({
1428
1460
  },
1429
1461
  // 切换显示模式
1430
1462
  switchMode: function switchMode() {
1463
+ var _this$form16;
1431
1464
  this.isExpand = !this.isExpand;
1465
+ (_this$form16 = this.form) === null || _this$form16 === void 0 ? void 0 : _this$form16.$emit("isCollapseChange", this.isExpand);
1432
1466
  this.refreshButtonList();
1433
1467
  }
1434
1468
  }
@@ -1523,14 +1557,24 @@ var _sfc_render = function render() {
1523
1557
  }, [_vm._t("default"), _vm.showBtn ? _c("div", {
1524
1558
  staticClass: "nf-ml10"
1525
1559
  }, [_c("el-button", {
1526
- staticClass: "pointer",
1560
+ staticClass: "nf-pointer",
1561
+ attrs: {
1562
+ "type": _vm.expandBtnType,
1563
+ "icon": _vm.expandBtnIcon,
1564
+ "plain": _vm.expandBtnPlain,
1565
+ "size": _vm.expandBtnSize,
1566
+ "round": _vm.expandBtnRound,
1567
+ "circle": _vm.expandBtnCircle,
1568
+ "loading": _vm.expandBtnLoading,
1569
+ "disabled": _vm.expandBtnDisabled
1570
+ },
1527
1571
  on: {
1528
1572
  "click": function click($event) {
1529
1573
  return _vm.switchMode();
1530
1574
  }
1531
1575
  }
1532
1576
  }, [_c("i", {
1533
- staticClass: "iconfont",
1577
+ staticClass: "iconfont nf-fs12",
1534
1578
  "class": _vm.isExpand ? _vm.upIcon : _vm.downIcon
1535
1579
  })])], 1) : _vm._e()], 2) : _vm._t("default"), _c("transition", {
1536
1580
  attrs: {
@@ -1,27 +1,99 @@
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
- downIcon(): any;
12
- upIcon(): any;
13
- isCollapse(): any;
14
- labelPosition(): any;
15
- inline(): any;
16
- columns(): any;
17
- showBtn(): boolean;
18
- isLastItem(): boolean;
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
+ expandBtnType: {
8
+ type: StringConstructor;
9
+ default: string;
10
+ };
11
+ expandBtnIcon: {
12
+ type: StringConstructor;
13
+ default: undefined;
14
+ };
15
+ expandBtnPlain: {
16
+ type: BooleanConstructor;
17
+ default: boolean;
18
+ };
19
+ expandBtnSize: {
20
+ type: StringConstructor;
21
+ default: string;
22
+ };
23
+ expandBtnRound: {
24
+ type: BooleanConstructor;
25
+ default: boolean;
26
+ };
27
+ expandBtnCircle: {
28
+ type: BooleanConstructor;
29
+ default: boolean;
30
+ };
31
+ expandBtnLoading: {
32
+ type: BooleanConstructor;
33
+ default: boolean;
34
+ };
35
+ expandBtnDisabled: {
36
+ type: BooleanConstructor;
37
+ default: boolean;
38
+ };
39
+ }, {}, {
40
+ isExpand: boolean;
41
+ initExpand: boolean;
42
+ }, {
43
+ downIcon(): any;
44
+ upIcon(): any;
45
+ isCollapse(): any;
46
+ labelPosition(): any;
47
+ inline(): any;
48
+ columns(): any;
49
+ showBtn(): boolean;
50
+ isLastItem(): boolean;
51
+ }, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, typeof FormItem, {}, string, Readonly<import("vue-demi").ExtractPropTypes<{
52
+ hidden: {
53
+ type: BooleanConstructor;
54
+ default: boolean;
55
+ };
56
+ expandBtnType: {
57
+ type: StringConstructor;
58
+ default: string;
59
+ };
60
+ expandBtnIcon: {
61
+ type: StringConstructor;
62
+ default: undefined;
63
+ };
64
+ expandBtnPlain: {
65
+ type: BooleanConstructor;
66
+ default: boolean;
67
+ };
68
+ expandBtnSize: {
69
+ type: StringConstructor;
70
+ default: string;
71
+ };
72
+ expandBtnRound: {
73
+ type: BooleanConstructor;
74
+ default: boolean;
75
+ };
76
+ expandBtnCircle: {
77
+ type: BooleanConstructor;
78
+ default: boolean;
79
+ };
80
+ expandBtnLoading: {
81
+ type: BooleanConstructor;
82
+ default: boolean;
83
+ };
84
+ expandBtnDisabled: {
85
+ type: BooleanConstructor;
86
+ default: boolean;
87
+ };
88
+ }>>, {
89
+ hidden: boolean;
90
+ expandBtnType: string;
91
+ expandBtnIcon: string;
92
+ expandBtnPlain: boolean;
93
+ expandBtnSize: string;
94
+ expandBtnRound: boolean;
95
+ expandBtnCircle: boolean;
96
+ expandBtnLoading: boolean;
97
+ expandBtnDisabled: boolean;
98
+ }>;
99
+ export default _default;
@@ -0,0 +1 @@
1
+
@@ -0,0 +1 @@
1
+
package/lib/utils.d.ts CHANGED
@@ -1 +1 @@
1
- export declare function debounce(func: any, wait: any, immediate: any): (...args: any[]) => any;
1
+ export declare function debounce(func: any, wait: any, immediate: any): (...args: any[]) => any;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@94ai/nf-form-item",
3
- "version": "3.1.28",
3
+ "version": "3.1.31",
4
4
  "description": "> TODO: description",
5
5
  "keywords": [],
6
6
  "author": "zoujiahe <zoujiahe@94ai.com>",
@@ -14,7 +14,7 @@
14
14
  "url": "http://94ai.gitlab.com/zoujiahe/common-ui.git"
15
15
  },
16
16
  "dependencies": {
17
- "@94ai/nf-theme-chalk": "^3.1.28",
17
+ "@94ai/nf-theme-chalk": "^3.1.31",
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": "66c26cc06909da195767fc8a4cc59800eb5ba789"
33
+ "gitHead": "02e1666730c7a3450ce803ef411297377b288321"
34
34
  }