@94ai/nf-form-item 3.1.27 → 3.1.30

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
@@ -7,18 +7,122 @@ declare const _default: import("vue/types/v3-component-public-instance").Compone
7
7
  type: BooleanConstructor;
8
8
  default: boolean;
9
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
+ };
10
42
  }>>, Readonly<import("vue-demi").ExtractPropTypes<{
11
43
  hidden: {
12
44
  type: BooleanConstructor;
13
45
  default: boolean;
14
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
+ };
15
79
  }>>, {}, {
16
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;
17
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<{
18
90
  hidden: {
19
91
  type: BooleanConstructor;
20
92
  default: boolean;
21
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
+ };
22
126
  }>>> & import("vue-demi").ShallowUnwrapRef<{}> & {
23
127
  isExpand: boolean;
24
128
  initExpand: boolean;
@@ -36,11 +140,75 @@ declare const _default: import("vue/types/v3-component-public-instance").Compone
36
140
  type: BooleanConstructor;
37
141
  default: boolean;
38
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
+ };
39
175
  }>>, any, any, any, import("vue-demi").ComponentComputedOptions, import("vue-demi").ComponentMethodOptions> & import("vue/types/v3-component-options").ComponentOptionsBase<Readonly<import("vue-demi").ExtractPropTypes<{
40
176
  hidden: {
41
177
  type: BooleanConstructor;
42
178
  default: boolean;
43
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
+ };
44
212
  }>>, {}, {
45
213
  isExpand: boolean;
46
214
  initExpand: boolean;
@@ -55,12 +223,52 @@ declare const _default: import("vue/types/v3-component-public-instance").Compone
55
223
  isLastItem(): boolean;
56
224
  }, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, typeof import("element-ui").FormItem, {}, string, {
57
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;
58
234
  }> & {
59
235
  props: {
60
236
  hidden: {
61
237
  type: BooleanConstructor;
62
238
  default: boolean;
63
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
+ };
64
272
  };
65
273
  } & PluginObject<undefined>;
66
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: {
@@ -4,6 +4,38 @@ declare const _default: import("vue-demi").DefineComponent<{
4
4
  type: BooleanConstructor;
5
5
  default: boolean;
6
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
+ };
7
39
  }, {}, {
8
40
  isExpand: boolean;
9
41
  initExpand: boolean;
@@ -21,7 +53,47 @@ declare const _default: import("vue-demi").DefineComponent<{
21
53
  type: BooleanConstructor;
22
54
  default: boolean;
23
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
+ };
24
88
  }>>, {
25
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;
26
98
  }>;
27
99
  export default _default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@94ai/nf-form-item",
3
- "version": "3.1.27",
3
+ "version": "3.1.30",
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.27",
17
+ "@94ai/nf-theme-chalk": "^3.1.30",
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": "945bfad470bca9493ef957f3327bf115f3f705ca"
33
+ "gitHead": "92718f2567719702159e8edb0fe360eba3e7e07b"
34
34
  }