@94ai/nf-virtual-select 100.1.47 → 100.1.48

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
@@ -143,6 +143,10 @@ declare const _default: import("vue/types/v3-component-public-instance").Compone
143
143
  type: StringConstructor;
144
144
  default: string;
145
145
  };
146
+ maxWidth: {
147
+ type: StringConstructor;
148
+ default: null;
149
+ };
146
150
  height: {
147
151
  type: StringConstructor;
148
152
  default: string;
@@ -288,6 +292,10 @@ declare const _default: import("vue/types/v3-component-public-instance").Compone
288
292
  type: StringConstructor;
289
293
  default: string;
290
294
  };
295
+ maxWidth: {
296
+ type: StringConstructor;
297
+ default: null;
298
+ };
291
299
  height: {
292
300
  type: StringConstructor;
293
301
  default: string;
@@ -325,6 +333,7 @@ declare const _default: import("vue/types/v3-component-public-instance").Compone
325
333
  virtualList: boolean;
326
334
  multiple: boolean;
327
335
  width: string;
336
+ maxWidth: string;
328
337
  height: string;
329
338
  }, true, import("vue/types/v3-component-options").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, any>> & Readonly<Readonly<import("vue-demi").ExtractPropTypes<{
330
339
  offset: {
@@ -467,6 +476,10 @@ declare const _default: import("vue/types/v3-component-public-instance").Compone
467
476
  type: StringConstructor;
468
477
  default: string;
469
478
  };
479
+ maxWidth: {
480
+ type: StringConstructor;
481
+ default: null;
482
+ };
470
483
  height: {
471
484
  type: StringConstructor;
472
485
  default: string;
@@ -625,6 +638,10 @@ declare const _default: import("vue/types/v3-component-public-instance").Compone
625
638
  type: StringConstructor;
626
639
  default: string;
627
640
  };
641
+ maxWidth: {
642
+ type: StringConstructor;
643
+ default: null;
644
+ };
628
645
  height: {
629
646
  type: StringConstructor;
630
647
  default: string;
@@ -770,6 +787,10 @@ declare const _default: import("vue/types/v3-component-public-instance").Compone
770
787
  type: StringConstructor;
771
788
  default: string;
772
789
  };
790
+ maxWidth: {
791
+ type: StringConstructor;
792
+ default: null;
793
+ };
773
794
  height: {
774
795
  type: StringConstructor;
775
796
  default: string;
@@ -820,6 +841,7 @@ declare const _default: import("vue/types/v3-component-public-instance").Compone
820
841
  virtualList: boolean;
821
842
  multiple: boolean;
822
843
  width: string;
844
+ maxWidth: string;
823
845
  height: string;
824
846
  }> & {
825
847
  props: {
@@ -963,6 +985,10 @@ declare const _default: import("vue/types/v3-component-public-instance").Compone
963
985
  type: StringConstructor;
964
986
  default: string;
965
987
  };
988
+ maxWidth: {
989
+ type: StringConstructor;
990
+ default: null;
991
+ };
966
992
  height: {
967
993
  type: StringConstructor;
968
994
  default: string;
@@ -230,6 +230,10 @@ const _sfc_main = {
230
230
  type: String,
231
231
  default: "100%"
232
232
  },
233
+ maxWidth: {
234
+ type: String,
235
+ default: null
236
+ },
233
237
  height: {
234
238
  type: String,
235
239
  default: "245px"
@@ -519,7 +523,7 @@ var _sfc_render = function render2() {
519
523
  staticClass: "nf-virtual-select"
520
524
  }, [_vm.isVirtualSelect ? _c("el-select", _vm._g(_vm._b({
521
525
  ref: "nfVirtualSelect",
522
- staticClass: "nf-virtual-select-el-select",
526
+ class: ["nf-virtual-select-el-select", _vm.bindProps["collapse-tags"] ? "nf-virtual-select-collapse-tags" : ""],
523
527
  attrs: {
524
528
  "popper-class": "nf-virtual-select-virtual-list-popper",
525
529
  "filterable": "",
@@ -543,7 +547,7 @@ var _sfc_render = function render2() {
543
547
  }), _c("virtual-list", {
544
548
  ref: "virtualSelectList",
545
549
  staticClass: "nf-virtual-select-list",
546
- style: `max-height: ${_vm.height};min-width: ${_vm.width}; overflow-y: auto;`,
550
+ style: `max-height: ${_vm.height};min-width: ${_vm.width};max-width: ${_vm.maxWidth};overflow-y: auto;`,
547
551
  attrs: {
548
552
  "offset": _vm.offset,
549
553
  "start": _vm.start,
@@ -228,6 +228,10 @@ const _sfc_main = {
228
228
  type: String,
229
229
  default: "100%"
230
230
  },
231
+ maxWidth: {
232
+ type: String,
233
+ default: null
234
+ },
231
235
  height: {
232
236
  type: String,
233
237
  default: "245px"
@@ -517,7 +521,7 @@ var _sfc_render = function render2() {
517
521
  staticClass: "nf-virtual-select"
518
522
  }, [_vm.isVirtualSelect ? _c("el-select", _vm._g(_vm._b({
519
523
  ref: "nfVirtualSelect",
520
- staticClass: "nf-virtual-select-el-select",
524
+ class: ["nf-virtual-select-el-select", _vm.bindProps["collapse-tags"] ? "nf-virtual-select-collapse-tags" : ""],
521
525
  attrs: {
522
526
  "popper-class": "nf-virtual-select-virtual-list-popper",
523
527
  "filterable": "",
@@ -541,7 +545,7 @@ var _sfc_render = function render2() {
541
545
  }), _c("virtual-list", {
542
546
  ref: "virtualSelectList",
543
547
  staticClass: "nf-virtual-select-list",
544
- style: `max-height: ${_vm.height};min-width: ${_vm.width}; overflow-y: auto;`,
548
+ style: `max-height: ${_vm.height};min-width: ${_vm.width};max-width: ${_vm.maxWidth};overflow-y: auto;`,
545
549
  attrs: {
546
550
  "offset": _vm.offset,
547
551
  "start": _vm.start,
@@ -139,6 +139,10 @@ declare const _default: import("vue").DefineComponent<{
139
139
  type: StringConstructor;
140
140
  default: string;
141
141
  };
142
+ maxWidth: {
143
+ type: StringConstructor;
144
+ default: null;
145
+ };
142
146
  height: {
143
147
  type: StringConstructor;
144
148
  default: string;
@@ -297,6 +301,10 @@ declare const _default: import("vue").DefineComponent<{
297
301
  type: StringConstructor;
298
302
  default: string;
299
303
  };
304
+ maxWidth: {
305
+ type: StringConstructor;
306
+ default: null;
307
+ };
300
308
  height: {
301
309
  type: StringConstructor;
302
310
  default: string;
@@ -334,6 +342,7 @@ declare const _default: import("vue").DefineComponent<{
334
342
  virtualList: boolean;
335
343
  multiple: boolean;
336
344
  width: string;
345
+ maxWidth: string;
337
346
  height: string;
338
347
  }>;
339
348
  export default _default;
@@ -6,7 +6,7 @@
6
6
  v-on="bindEvents"
7
7
  v-bind="bindProps"
8
8
  ref="nfVirtualSelect"
9
- class="nf-virtual-select-el-select"
9
+ :class="['nf-virtual-select-el-select', bindProps['collapse-tags'] ? 'nf-virtual-select-collapse-tags' : '']"
10
10
  popper-class="nf-virtual-select-virtual-list-popper"
11
11
  filterable
12
12
  :filter-method="filterMethod"
@@ -48,7 +48,7 @@
48
48
  @totop="totop"
49
49
  @tobottom="tobottom"
50
50
  @resized="resized"
51
- :style="`max-height: ${height};min-width: ${width}; overflow-y: auto;`"
51
+ :style="`max-height: ${height};min-width: ${width};max-width: ${maxWidth};overflow-y: auto;`"
52
52
  >
53
53
  <slot slot="footer" name="footer" />
54
54
  <slot slot="header" name="header" />
@@ -270,6 +270,10 @@ export default {
270
270
  type: String,
271
271
  default: '100%'
272
272
  },
273
+ maxWidth: {
274
+ type: String,
275
+ default: null
276
+ },
273
277
  height: {
274
278
  type: String,
275
279
  default: '245px'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@94ai/nf-virtual-select",
3
- "version": "100.1.47",
3
+ "version": "100.1.48",
4
4
  "description": "> TODO: description",
5
5
  "keywords": [],
6
6
  "author": "DESKTOP-1EDDQ79\\dev026 <liuxiangxiang@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": "^100.1.47",
17
+ "@94ai/nf-theme-chalk": "^100.1.48",
18
18
  "lodash-es": "^4.17.21",
19
19
  "vue-demi": "^0.14.5",
20
20
  "vue-virtual-scroll-list": "^2.3.5"
@@ -32,5 +32,5 @@
32
32
  "types": "lib/index.d.ts",
33
33
  "main": "lib/nf-virtual-select.cjs.js",
34
34
  "module": "lib/nf-virtual-select.esm-bundler.js",
35
- "gitHead": "583a12d28fca323699b25aa5931ad859ddb05ef8"
35
+ "gitHead": "cc05e4d87d8b8a135b108a4a96d5f8d0177ad072"
36
36
  }