@opentinyvue/vue-base-select 2.26.0 → 2.28.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.js CHANGED
@@ -11,7 +11,6 @@ import { defineComponent, $props, $setup, $prefix } from "@opentinyvue/vue-commo
11
11
  import { t } from "@opentinyvue/vue-locale";
12
12
  import PcTemplate from "./pc.js";
13
13
  import MobileFirstTemplate from "./mobile-first.js";
14
- import { IconChevronDown } from "@opentinyvue/vue-icon";
15
14
  var template = function template2(mode) {
16
15
  var _process$env;
17
16
  var tinyMode = typeof process === "object" ? (_process$env = process.env) == null ? void 0 : _process$env.TINY_MODE : null;
@@ -265,11 +264,7 @@ var BaseSelect = defineComponent({
265
264
  },
266
265
  dropdownIcon: {
267
266
  type: [Object, String],
268
- default: function _default10() {
269
- var defaultDropdownIcon = IconChevronDown();
270
- defaultDropdownIcon.isDefault = true;
271
- return defaultDropdownIcon;
272
- }
267
+ default: ""
273
268
  },
274
269
  disabledTooltipContent: String,
275
270
  hoverExpand: {
@@ -304,7 +299,7 @@ var BaseSelect = defineComponent({
304
299
  },
305
300
  popperOptions: {
306
301
  type: Object,
307
- default: function _default11() {
302
+ default: function _default10() {
308
303
  return {
309
304
  gpuAcceleration: false,
310
305
  boundariesPadding: 0
@@ -321,14 +316,33 @@ var BaseSelect = defineComponent({
321
316
  },
322
317
  topCreateText: {
323
318
  type: String,
324
- default: function _default12() {
319
+ default: function _default11() {
325
320
  return t("ui.select.add");
326
321
  }
327
322
  },
323
+ initLabel: {
324
+ type: String,
325
+ default: ""
326
+ },
328
327
  blank: {
329
328
  type: Boolean,
330
329
  default: false
331
330
  },
331
+ tooltipConfig: {
332
+ type: Object,
333
+ default: function _default12() {
334
+ return {};
335
+ }
336
+ },
337
+ showEmptyValue: Boolean,
338
+ dropdownHeight: {
339
+ type: String,
340
+ default: "initial"
341
+ },
342
+ stopPropagation: {
343
+ type: Boolean,
344
+ default: void 0
345
+ },
332
346
  // 以下为 tiny 新增
333
347
  searchable: {
334
348
  type: Boolean,
@@ -376,6 +390,15 @@ var BaseSelect = defineComponent({
376
390
  showAllTextTag: {
377
391
  type: Boolean,
378
392
  default: false
393
+ },
394
+ // 配置多选时,Tag的最大宽度
395
+ maxTagWidth: {
396
+ type: [String, Number],
397
+ default: null
398
+ },
399
+ autoSelect: {
400
+ type: Boolean,
401
+ default: false
379
402
  }
380
403
  }),
381
404
  setup: function setup(props, context) {
@@ -1,13 +1,13 @@
1
- import { renderless, api } from '@opentinyvue/vue-renderless/select/vue';
1
+ import { renderless, api } from '@opentinyvue/vue-renderless/base-select/vue';
2
2
  import { defineComponent, directive, props, setup } from '@opentinyvue/vue-common';
3
3
  import Tag from '@opentinyvue/vue-tag';
4
4
  import Input from '@opentinyvue/vue-input';
5
5
  import Option from '@opentinyvue/vue-option';
6
6
  import Scrollbar from '@opentinyvue/vue-scrollbar';
7
7
  import SelectDropdown from '@opentinyvue/vue-select-dropdown';
8
- import { Clickoutside } from '@opentinyvue/vue-directive';
9
- import { iconClose, iconCopy, iconHalfselect, iconCheck, iconCheckedSur, iconLoading, iconChevronRight } from '@opentinyvue/vue-icon';
10
- import Tree from '@opentinyvue/vue-tree';
8
+ import Button from '@opentinyvue/vue-button';
9
+ import { Clickoutside, AutoTip } from '@opentinyvue/vue-directive';
10
+ import { iconClose, iconCopy, iconHalfselect, iconCheck, iconCheckedSur, iconLoading, iconChevronRight, iconDownWard, iconSearch, iconEllipsis, iconChevronUp, iconAddCircle, iconLoadingShadow } from '@opentinyvue/vue-icon';
11
11
  import Tooltip from '@opentinyvue/vue-tooltip';
12
12
  import FilterBox from '@opentinyvue/vue-filter-box';
13
13
  import RecycleScroller from '@opentinyvue/vue-recycle-scroller';
@@ -46,7 +46,7 @@ var classes = {
46
46
  "caret": "text-base rotate-0 transition-transform duration-300 fill-color-text-placeholder cursor-pointer ",
47
47
  "select-tags": "absolute leading-normal whitespace-normal sm:pl-3 pr-2 z-[1] top-1/2 -translate-y-2/4 flex items-center flex-wrap [&_[data-tag=tiny-tag]]:my-0.5 [&_[data-tag=tiny-tag]]:h-7 [&_[data-tag=tiny-tag]]:sm:h-5 [&_[data-tag=tiny-tag]_svg]:shrink-0",
48
48
  "tags-text": "inline-block w-full whitespace-nowrap text-ellipsis overflow-hidden align-bottom",
49
- "tag-info": "whitespace-nowrap text-ellipsis overflow-hidden inline-flex justify-start items-center border-transparent text-color-text-primary"
49
+ "tag-info": "whitespace-nowrap text-ellipsis overflow-hidden inline-flex justify-start items-center border-transparent text-color-text-primary h-5 cursor-pointer"
50
50
  };
51
51
  var render = function render2() {
52
52
  var _vm = this;
@@ -65,7 +65,10 @@ var render = function render2() {
65
65
  }],
66
66
  ref: "select",
67
67
  staticClass: "inline-block relative w-full outline-0 group [&_[data-tag=tiny-tag]]:max-w-[144px]",
68
- class: [_vm.hoverExpand ? "align-top" : "", _vm.$parent.$attrs.class],
68
+ class: [_vm.hoverExpand ? "align-top is-hover-expand" : "", _vm.clickExpand ? "is-click-expand" : "", (_vm.state.inputHovering || _vm.state.visible) && !_vm.clickExpand ? "is-hover" : "", _vm.state.showCollapseTag ? "collapse-tag-clicked" : "", _vm.$parent.$attrs.class],
69
+ attrs: {
70
+ "data-tag": "tiny-base-select"
71
+ },
69
72
  on: {
70
73
  "mouseleave": function mouseleave($event) {
71
74
  if ($event.target !== $event.currentTarget) return null;
@@ -117,11 +120,13 @@ var render = function render2() {
117
120
  }, {
118
121
  "overflow-y-hidden": (_vm.state.inputHovering || _vm.state.visible) && !_vm.state.selected.length
119
122
  }, {
120
- "h-6 overflow-hidden": _vm.hoverExpand
123
+ "h-6 overflow-hidden": _vm.hoverExpand || _vm.clickExpand
121
124
  }, {
122
125
  "pr-6": _vm.state.selectDisabled
123
126
  }, {
124
- "overflow-y-auto max-h-28 h-auto": _vm.hoverExpand && (_vm.state.inputHovering || _vm.state.visible)
127
+ "overflow-y-auto max-h-28 h-auto": _vm.hoverExpand && (_vm.state.inputHovering || _vm.state.visible) || _vm.clickExpand && _vm.state.showCollapseTag
128
+ }, {
129
+ "overflow-x-hidden": !(_vm.hoverExpand && (_vm.state.inputHovering || _vm.state.visible) || _vm.clickExpand && _vm.state.showCollapseTag)
125
130
  }),
126
131
  style: _vm.state.tagsStyle
127
132
  }, [!_vm.state.selectDisabled ? _c("span", {
@@ -135,8 +140,9 @@ var render = function render2() {
135
140
  "closable": !_vm.state.selectDisabled && _vm.state.device !== "mb",
136
141
  "size": _vm.state.collapseTagSize,
137
142
  "hit": _vm.state.selectedVal[0].state ? _vm.state.selectedVal[0].state.hitState : _vm.state.selectedVal[0].hitState,
138
- "type": "info",
139
- "disable-transitions": ""
143
+ "type": _vm.state.getTagType,
144
+ "disable-transitions": "",
145
+ "maxWidth": _vm.maxTagWidth
140
146
  },
141
147
  on: {
142
148
  "close": function close($event) {
@@ -178,28 +184,52 @@ var render = function render2() {
178
184
  attrs: {
179
185
  "closable": false,
180
186
  "size": _vm.state.collapseTagSize,
181
- "type": "info",
182
- "disable-transitions": ""
187
+ "type": _vm.state.getTagType,
188
+ "disable-transitions": "",
189
+ "maxWidth": _vm.maxTagWidth
183
190
  }
184
191
  }, [_c("span", {
185
192
  class: _vm.gcls("tags-text")
186
193
  }, [_vm._v("+ " + _vm._s(_vm.state.selectedVal.length - 1))])]) : _vm._e()], 1) : _vm._e(), !_vm.collapseTags ? _c("span", {
187
194
  ref: "tags-content",
188
195
  staticClass: "sm:contents hidden"
189
- }, [_vm.hoverExpand ? _c("tiny-tag", {
196
+ }, [_vm.showAllTextTag && _vm.state.selectCls === "checked-sur" ? _c("tiny-tag", {
197
+ key: "tags-all-text-tag",
198
+ attrs: {
199
+ "type": _vm.state.getTagType,
200
+ "data-tag": "tags-all-text-tag",
201
+ "disabled": _vm.state.isDisabled,
202
+ "closable": true,
203
+ "size": _vm.state.collapseTagSize,
204
+ "maxWidth": _vm.maxTagWidth
205
+ },
206
+ on: {
207
+ "close": function close($event) {
208
+ return _vm.toggleCheckAll(false);
209
+ }
210
+ }
211
+ }, [_vm._v(" " + _vm._s(_vm.allText || _vm.t("ui.base.all")) + " ")]) : [(_vm.hoverExpand || _vm.clickExpand && !_vm.state.showCollapseTag) && _vm.state.selected.length > 1 ? _c("tiny-tag", {
190
212
  key: "tags-collapse",
191
213
  class: _vm.m(_vm.gcls("tag-info"), {
192
- "visible static": _vm.hoverExpand
214
+ "visible static": _vm.hoverExpand || _vm.clickExpand && !_vm.state.showCollapseTag
193
215
  }, {
194
216
  "invisible absolute": _vm.hoverExpand && (_vm.state.inputHovering || _vm.state.visible || _vm.state.isHidden)
217
+ }, {
218
+ "is-hidden": _vm.clickExpand && _vm.state.isHidden || _vm.state.isDisabled
195
219
  }),
196
220
  attrs: {
197
- "type": "info",
221
+ "type": _vm.state.getTagType,
198
222
  "data-tag": "tags-collapse",
199
223
  "closable": false,
200
- "size": _vm.state.collapseTagSize
224
+ "size": _vm.state.collapseTagSize,
225
+ "maxWidth": _vm.maxTagWidth
226
+ },
227
+ on: {
228
+ "click": function click($event) {
229
+ return _vm.onClickCollapseTag($event);
230
+ }
201
231
  }
202
- }, [_vm._v("+ " + _vm._s(_vm.state.collapseTagsLength))]) : _vm._e(), _vm._l(_vm.state.selected, function(item, index) {
232
+ }, [_vm.hoverExpand ? [_vm._v("+ " + _vm._s(_vm.state.collapseTagsLength))] : _c("icon-ellipsis")], 2) : _vm._e(), _vm._l(_vm.state.selected, function(item, index) {
203
233
  return _c("tiny-tag", {
204
234
  key: _vm.getValueKey(item),
205
235
  class: _vm.gcls("tag-info"),
@@ -207,8 +237,9 @@ var render = function render2() {
207
237
  "closable": !item.selectDisabled && !item.required && _vm.state.device !== "mb",
208
238
  "size": _vm.state.collapseTagSize,
209
239
  "hit": item.state ? item.state.hitState : item.hitState,
210
- "type": "info",
211
- "disable-transitions": ""
240
+ "type": _vm.state.getTagType,
241
+ "disable-transitions": "",
242
+ "maxWidth": _vm.maxTagWidth
212
243
  },
213
244
  on: {
214
245
  "close": function close($event) {
@@ -249,7 +280,14 @@ var render = function render2() {
249
280
  }, {
250
281
  "item": _vm.getLabelSlotValue(item)
251
282
  })], 2)])], 1);
252
- })], 2) : _vm._e()]) : _c("span", {
283
+ }), _vm.clickExpand && _vm.state.showCollapseTag ? _c("span", {
284
+ staticClass: "text-xs text-color-brand cursor-pointer flex items-center",
285
+ on: {
286
+ "click": function click($event) {
287
+ return _vm.onClickCollapseTag($event);
288
+ }
289
+ }
290
+ }, [_vm._v(" " + _vm._s(_vm.t("ui.select.collapse")) + " "), _c("icon-chevron-up")], 1) : _vm._e()]], 2) : _vm._e()]) : _c("span", {
253
291
  class: [_vm.gcls("tags-text"), "flex"]
254
292
  }, [_c("tiny-tooltip", {
255
293
  attrs: {
@@ -345,6 +383,7 @@ var render = function render2() {
345
383
  }) : _vm._e()]) : _vm._e(), !_vm.shape ? _c("tiny-input", {
346
384
  ref: "reference",
347
385
  attrs: {
386
+ "tiny_mode": "mobile-first",
348
387
  "type": "text",
349
388
  "placeholder": _vm.state.currentPlaceholder,
350
389
  "name": _vm.name,
@@ -357,6 +396,8 @@ var render = function render2() {
357
396
  "display-only-content": _vm.state.displayOnlyContent,
358
397
  "unselectable": _vm.state.readonly ? "on" : "off",
359
398
  "validate-event": false,
399
+ "show-empty-value": _vm.showEmptyValue,
400
+ "input-box-type": _vm.inputBoxType,
360
401
  "tabindex": _vm.multiple && _vm.filterable ? "-1" : _vm.tabindex
361
402
  },
362
403
  on: {
@@ -426,7 +467,7 @@ var render = function render2() {
426
467
  _vm.state.inputHovering = true;
427
468
  }
428
469
  }
429
- }) : _vm._e(), _c(_vm.dropdownIcon, {
470
+ }) : _vm._e(), _c(_vm.state.getIcon.icon, {
430
471
  directives: [{
431
472
  name: "show",
432
473
  rawName: "v-show",
@@ -468,8 +509,8 @@ var render = function render2() {
468
509
  directives: [{
469
510
  name: "show",
470
511
  rawName: "v-show",
471
- value: !_vm.onCopying() && !_vm.hideDrop && _vm.state.visible && _vm.state.emptyText !== false,
472
- expression: "!onCopying() && !hideDrop && state.visible && state.emptyText !== false"
512
+ value: !_vm.onCopying() && !_vm.hideDrop && _vm.state.visible && (_vm.slots.panel || _vm.state.emptyText !== false),
513
+ expression: "!onCopying() && !hideDrop && state.visible && (slots.panel || state.emptyText !== false)"
473
514
  }],
474
515
  ref: "popper",
475
516
  class: _vm.m("duration-300"),
@@ -504,33 +545,12 @@ var render = function render2() {
504
545
  },
505
546
  expression: "state.query"
506
547
  }
507
- })], 1) : _vm._e(), _vm.renderType === "tree" ? _c("tiny-tree", _vm._b({
508
- ref: "selectTree",
509
- staticClass: "[&_[data-tag=tiny-checkbox]_>span_>span]:p-1.5 sm:[&_[data-tag=tiny-checkbox]_>span_>span]:p-0",
510
- attrs: {
511
- "filter-node-method": _vm.filterMethod,
512
- "props": Object.assign({
513
- label: _vm.textField,
514
- isLeaf: "isLeaf"
515
- }, _vm.treeOp.props),
516
- "expand-on-click-node": false,
517
- "icon-trigger-click-node": false,
518
- "node-key": _vm.valueField,
519
- "default-expand-all": _vm.state.isExpandAll,
520
- "check-strictly": _vm.treeOp.checkStrictly,
521
- "default-checked-keys": _vm.multiple ? _vm.state.defaultCheckedKeys : [],
522
- "current-node-key": !_vm.multiple ? _vm.state.currentKey : "",
523
- "show-checkbox": _vm.multiple,
524
- "show-checked-mark": _vm.state.device === "mb"
525
- },
526
- on: {
527
- "load-data": _vm.loadTreeData,
528
- "node-collapse": _vm.nodeCollapse,
529
- "node-expand": _vm.nodeExpand,
530
- "check": _vm.nodeCheckClick,
531
- "node-click": _vm.treeNodeClick
548
+ })], 1) : _vm._e(), _vm._t("header"), _vm._t("panel", null, {
549
+ "methods": {
550
+ updateSelectedData: _vm.updateSelectedData,
551
+ hidePanel: _vm.hidePanel
532
552
  }
533
- }, "tiny-tree", _vm.treeOp, false)) : _vm._e(), _vm.optimization && _vm.renderType !== "tree" ? [_c("div", {
553
+ }), _vm.optimization ? [_c("div", {
534
554
  style: {
535
555
  height: _vm.state.optimizeStore.recycleScrollerHeight + "px"
536
556
  }
@@ -591,7 +611,7 @@ var render = function render2() {
591
611
  })];
592
612
  }
593
613
  }], null, true)
594
- })], 1)] : _vm._e(), !_vm.optimization && _vm.renderType !== "tree" ? _c("tiny-scrollbar", {
614
+ })], 1)] : _vm._e(), !_vm.optimization ? _c("tiny-scrollbar", {
595
615
  directives: [{
596
616
  name: "show",
597
617
  rawName: "v-show",
@@ -610,7 +630,7 @@ var render = function render2() {
610
630
  }
611
631
  }
612
632
  }, [_vm._t("dropdown"), _vm.multiple && _vm.showCheck && _vm.showAlloption && !_vm.state.multipleLimit && !_vm.state.query && !_vm.remote ? _c("div", {
613
- staticClass: "whitespace-nowrap box-border py-0 h-10 leading-10 sm:h-8 sm:leading-8 text-sm sm:text-xs pl-0 pr-3 sm:px-3 my-1 sm:m-1 rounded cursor-pointer",
633
+ staticClass: "whitespace-nowrap box-border py-0 h-10 leading-10 sm:h-8 sm:leading-8 text-sm sm:text-xs pl-0 pr-3 sm:px-2 my-1 sm:m-1 rounded cursor-pointer",
614
634
  class: [{
615
635
  hover: _vm.state.hoverIndex === -9 && _vm.state.selectCls !== "checked-sur"
616
636
  }, {
@@ -633,11 +653,11 @@ var render = function render2() {
633
653
  }
634
654
  }, [_c("icon-" + _vm.state.selectCls, {
635
655
  tag: "component",
636
- class: _vm.m(["-mt-0.5 mr-2 fill-color-icon-secondary", _vm.state.selectCls !== "check" && "fill-color-brand"])
656
+ class: _vm.m(["-mt-0.5 mr-2 fill-color-icon-secondary w-3.5 h-3.5", _vm.state.selectCls !== "check" && "fill-color-brand text-color-brand"])
637
657
  }), _c("span", {
638
658
  class: [_vm.state.selectCls === "checked-sur" ? "text-color-brand" : "text-color-text-primary"]
639
659
  }, [_vm._v(" " + _vm._s(_vm.allText || _vm.t("ui.base.all")))])], 1) : _vm._e(), _vm.multiple && _vm.showCheck && _vm.showAlloption && !_vm.state.multipleLimit && _vm.state.query && !_vm.state.emptyText && !_vm.remote ? _c("div", {
640
- staticClass: "whitespace-nowrap box-border py-0 h-10 leading-10 sm:h-8 sm:leading-8 text-sm sm:text-xs pl-0 pr-3 sm:px-3 my-1 sm:m-1 rounded cursor-pointer",
660
+ staticClass: "whitespace-nowrap box-border py-0 h-10 leading-10 sm:h-8 sm:leading-8 text-sm sm:text-xs pl-0 pr-3 sm:px-2 my-1 sm:m-1 rounded cursor-pointer",
641
661
  class: [{
642
662
  hover: _vm.state.hoverIndex === -9 && _vm.state.filteredSelectCls !== "checked-sur"
643
663
  }, {
@@ -688,7 +708,7 @@ var render = function render2() {
688
708
  }
689
709
  });
690
710
  });
691
- })], 2) : _vm._e(), _vm.renderType !== "tree" && _vm.state.emptyText && (!_vm.allowCreate || _vm.loading || _vm.allowCreate && _vm.state.emptyFlag) ? [_vm.loadingText || _vm.slots.empty ? _c("div", [_vm.slots.empty ? _vm._t("empty") : _c("p", {
711
+ })], 2) : _vm._e(), !_vm.slots.panel && _vm.state.emptyText && (!_vm.allowCreate || _vm.loading || _vm.allowCreate && _vm.state.emptyFlag) ? [_vm.loadingText || _vm.slots.empty ? _c("div", [_vm.slots.empty ? _vm._t("empty") : _c("p", {
692
712
  staticClass: "py-2.5 px-0 m-0 text-center text-color-text-secondary text-xs"
693
713
  }, [_vm._v(" " + _vm._s(_vm.state.emptyText) + " ")])], 2) : _c("div", {
694
714
  staticClass: "text-center py-2.5 px-0"
@@ -696,7 +716,7 @@ var render = function render2() {
696
716
  staticClass: "py-2.5 px-0 m-0 text-center text-color-text-secondary text-xs"
697
717
  }, [_vm._v(" " + _vm._s(_vm.state.emptyText) + " ")]) : _c("icon-loading", {
698
718
  staticClass: "fill-color-brand h-4 w-4 inline-block align-top animate-spin"
699
- })], 1)] : _vm._e()], 2)], 1)], 1), _vm.hoverExpand && !_vm.state.isDisplayOnly ? _c("div", {
719
+ })], 1)] : _vm._e(), _vm._t("footer")], 2)], 1)], 1), _vm.hoverExpand && !_vm.state.isDisplayOnly ? _c("div", {
700
720
  class: _vm.m("h-7 invisible", {
701
721
  "h-6": _vm.state.selectSize === "mini"
702
722
  }, {
@@ -724,9 +744,10 @@ var getReference = function getReference2(el, binding, vnode) {
724
744
  };
725
745
  var __vue2_script = defineComponent({
726
746
  inheritAttrs: false,
727
- emits: ["update:modelValue", "change", "focus", "blur", "clear", "remove-tag", "visible-change", "handleDropdownClick", "dropdown-click", "confirm"],
747
+ emits: ["update:modelValue", "change", "focus", "blur", "clear", "remove-tag", "visible-change", "handleDropdownClick", "dropdown-click", "confirm", "top-create-click"],
728
748
  directives: directive({
729
749
  Clickoutside,
750
+ AutoTip,
730
751
  popover: {
731
752
  bind: function bind(el, binding, vnode) {
732
753
  getReference(el, binding, vnode);
@@ -740,8 +761,8 @@ var __vue2_script = defineComponent({
740
761
  TinyTag: Tag,
741
762
  TinyInput: Input,
742
763
  TinyOption: Option,
743
- TinyTree: Tree,
744
764
  TinyScrollbar: Scrollbar,
765
+ TinyButton: Button,
745
766
  TinyFilterBox: FilterBox,
746
767
  TinyTooltip: Tooltip,
747
768
  IconClose: iconClose(),
@@ -752,9 +773,15 @@ var __vue2_script = defineComponent({
752
773
  IconCheckedSur: iconCheckedSur(),
753
774
  IconLoading: iconLoading(),
754
775
  IconChevronRight: iconChevronRight(),
776
+ IconDownWard: iconDownWard(),
777
+ IconSearch: iconSearch(),
778
+ IconEllipsis: iconEllipsis(),
779
+ IconChevronUp: iconChevronUp(),
780
+ IconAddCircle: iconAddCircle(),
781
+ IconLoadingShadow: iconLoadingShadow(),
755
782
  TinyRecycleScroller: RecycleScroller
756
783
  },
757
- props: [].concat(props, ["id", "multiple", "name", "dataset", "readonly", "tabindex", "dropStyle", "valueField", "textField", "copyable", "size", "options", "showCheck", "showAlloption", "showProportion", "hideDrop", "modelValue", "showOverflowTooltip", "remote", "remoteConfig", "placement", "loading", "disabled", "valueKey", "clearable", "noDataText", "filterable", "loadingText", "noMatchText", "popperClass", "allowCreate", "placeholder", "remoteMethod", "filterMethod", "collapseTags", "autocomplete", "multipleLimit", "reserveKeyword", "automaticDropdown", "defaultFirstOption", "popperAppendToBody", "showDropdown", "expandTags", "renderType", "gridOp", "treeOp", "delay", "cacheOp", "isDropInheritWidth", "tagSelectable", "selectConfig", "radioConfig", "allowCopy", "textSplit", "autoClose", "queryDebounce", "ignoreEnter", "dropdownIcon", "disabledTooltipContent", "hoverExpand", "optimization", "displayOnly", "initQuery", "extraQueryParams", "shape", "label", "tip", "updateDelay", "showTips", "popperOptions", "title", "closeByMask", "searchPlaceholder", "blank", "allText"]),
784
+ props: [].concat(props, ["id", "multiple", "name", "dataset", "readonly", "tabindex", "dropStyle", "valueField", "textField", "copyable", "size", "options", "showCheck", "showAlloption", "showProportion", "hideDrop", "modelValue", "showOverflowTooltip", "remote", "remoteConfig", "placement", "loading", "disabled", "valueKey", "clearable", "noDataText", "filterable", "loadingText", "noMatchText", "popperClass", "allowCreate", "placeholder", "remoteMethod", "filterMethod", "collapseTags", "autocomplete", "multipleLimit", "reserveKeyword", "automaticDropdown", "defaultFirstOption", "popperAppendToBody", "showDropdown", "expandTags", "delay", "cacheOp", "isDropInheritWidth", "tagSelectable", "selectConfig", "radioConfig", "allowCopy", "textSplit", "autoClose", "queryDebounce", "ignoreEnter", "dropdownIcon", "disabledTooltipContent", "optimization", "displayOnly", "initQuery", "extraQueryParams", "shape", "label", "tip", "updateDelay", "showTips", "popperOptions", "title", "closeByMask", "searchPlaceholder", "blank", "allText", "maxTagWidth", "tagType", "clearNoMatchValue", "showAllTextTag", "hoverExpand", "clickExpand", "maxVisibleRows", "initLabel", "inputBoxType", "showEmptyValue"]),
758
785
  setup: function setup$1(props2, context) {
759
786
  return setup({
760
787
  props: props2,
package/lib/pc.js CHANGED
@@ -6,12 +6,11 @@ import Option from '@opentinyvue/vue-option';
6
6
  import Scrollbar from '@opentinyvue/vue-scrollbar';
7
7
  import SelectDropdown from '@opentinyvue/vue-select-dropdown';
8
8
  import Button from '@opentinyvue/vue-button';
9
- import { Clickoutside } from '@opentinyvue/vue-directive';
10
- import { IconClose, IconCopy, iconAddCircle, iconLoadingShadow, IconHalfselect, IconCheck, IconCheckedSur, IconSearch, IconDeltaDown, IconEllipsis, IconChevronUp } from '@opentinyvue/vue-icon';
9
+ import { Clickoutside, AutoTip } from '@opentinyvue/vue-directive';
10
+ import { iconClose, iconCopy, iconAddCircle, iconLoadingShadow, iconHalfselect, iconCheck, iconCheckedSur, iconSearch, iconDownWard, iconEllipsis, iconChevronUp } from '@opentinyvue/vue-icon';
11
11
  import Tooltip from '@opentinyvue/vue-tooltip';
12
12
  import FilterBox from '@opentinyvue/vue-filter-box';
13
13
  import RecycleScroller from '@opentinyvue/vue-recycle-scroller';
14
- import Checkbox from '@opentinyvue/vue-checkbox';
15
14
  import '@opentinyvue/vue-theme/select/index.css';
16
15
  import '@opentinyvue/vue-theme/base-select/index.css';
17
16
 
@@ -61,6 +60,7 @@ var __vue2_script = defineComponent({
61
60
  emits: ["update:modelValue", "change", "focus", "blur", "clear", "remove-tag", "visible-change", "handleDropdownClick", "dropdown-click", "top-create-click"],
62
61
  directives: directive({
63
62
  Clickoutside,
63
+ AutoTip,
64
64
  popover: {
65
65
  bind: function bind(el, binding, vnode) {
66
66
  getReference(el, binding, vnode);
@@ -75,25 +75,24 @@ var __vue2_script = defineComponent({
75
75
  TinyInput: Input,
76
76
  TinyOption: Option,
77
77
  TinyButton: Button,
78
- IconClose: IconClose(),
78
+ IconClose: iconClose(),
79
79
  TinyScrollbar: Scrollbar,
80
- IconCopy: IconCopy(),
80
+ IconCopy: iconCopy(),
81
81
  IconAddCircle: iconAddCircle(),
82
82
  IconLoadingShadow: iconLoadingShadow(),
83
83
  TinySelectDropdown: SelectDropdown,
84
- IconHalfselect: IconHalfselect(),
85
- IconCheck: IconCheck(),
86
- IconCheckedSur: IconCheckedSur(),
84
+ IconHalfselect: iconHalfselect(),
85
+ IconCheck: iconCheck(),
86
+ IconCheckedSur: iconCheckedSur(),
87
87
  TinyFilterBox: FilterBox,
88
88
  TinyTooltip: Tooltip,
89
89
  TinyRecycleScroller: RecycleScroller,
90
90
  // tiny 新增,
91
- IconSearch: IconSearch(),
92
- IconDeltaDown: IconDeltaDown(),
91
+ IconSearch: iconSearch(),
92
+ IconDownWard: iconDownWard(),
93
93
  // 默认下拉图标
94
- TinyCheckbox: Checkbox,
95
- IconEllipsis: IconEllipsis(),
96
- IconChevronUp: IconChevronUp()
94
+ IconEllipsis: iconEllipsis(),
95
+ IconChevronUp: iconChevronUp()
97
96
  },
98
97
  props: [].concat(props, [
99
98
  "id",
@@ -166,7 +165,11 @@ var __vue2_script = defineComponent({
166
165
  "topCreate",
167
166
  "topCreateText",
168
167
  "keepFocus",
168
+ "initLabel",
169
169
  "blank",
170
+ "tooltipConfig",
171
+ "showEmptyValue",
172
+ "stopPropagation",
170
173
  // 以下为 tiny 新增
171
174
  "searchable",
172
175
  "showEmptyImage",
@@ -178,7 +181,8 @@ var __vue2_script = defineComponent({
178
181
  "clickExpand",
179
182
  "maxVisibleRows",
180
183
  "showAllTextTag",
181
- "allText"
184
+ "allText",
185
+ "maxTagWidth"
182
186
  ]),
183
187
  setup: function setup$1(props2, context) {
184
188
  return setup({
@@ -207,7 +211,7 @@ var render = function render2() {
207
211
  }],
208
212
  ref: "select",
209
213
  staticClass: "tiny-base-select",
210
- class: [_vm.state.selectSize ? "tiny-base-select--" + _vm.state.selectSize : "", _vm.state.collapseTags ? "tiny-base-select__collapse-tags" : "", _vm.filterable ? "tiny-base-select__filterable" : "", _vm.multiple ? "tiny-base-select__multiple" : "", (_vm.state.inputHovering || _vm.state.visible) && !_vm.clickExpand ? "is-hover" : "", _vm.state.isDisplayOnly ? "is-display-only" : "", _vm.hoverExpand ? "is-hover-expand" : "", _vm.clickExpand ? "is-click-expand" : "", _vm.state.showCollapseTag ? "collapse-tag-clicked" : "", _vm.state.selectDisabled ? "is-disabled" : "", _vm.$parent.$attrs.class],
214
+ class: [_vm.state.selectSize ? "tiny-base-select--" + _vm.state.selectSize : "", _vm.state.collapseTags ? "tiny-base-select__collapse-tags" : "", _vm.filterable ? "tiny-base-select__filterable" : "", _vm.multiple ? "tiny-base-select__multiple" : "", (_vm.state.inputHovering || _vm.state.visible) && !_vm.clickExpand ? "is-hover" : "", _vm.state.isDisplayOnly ? "is-display-only" : "", _vm.hoverExpand ? "is-hover-expand" : "", _vm.clickExpand ? "is-click-expand" : "", _vm.state.showCollapseTag ? "collapse-tag-clicked" : "", _vm.state.isDisabled ? "is-disabled" : "", _vm.$parent.$attrs.class],
211
215
  on: {
212
216
  "mouseleave": function mouseleave($event) {
213
217
  if ($event.target !== $event.currentTarget) return null;
@@ -218,14 +222,17 @@ var render = function render2() {
218
222
  },
219
223
  "mouseenter": function mouseenter($event) {
220
224
  if ($event.target !== $event.currentTarget) return null;
221
- return (function() {
222
- _vm.state.selectHover = true;
223
- _vm.state.inputHovering = true;
224
- }).apply(null, arguments);
225
+ return _vm.onMouseenterSelf.apply(null, arguments);
225
226
  },
226
227
  "click": _vm.toggleMenu
227
228
  }
228
229
  }, "div", _vm.a(_vm.$attrs, ["class", "style"], true), false), [_c("div", {
230
+ directives: [{
231
+ name: "auto-tip",
232
+ rawName: "v-auto-tip",
233
+ value: _vm.state.rootAutoTipConfig,
234
+ expression: "state.rootAutoTipConfig"
235
+ }],
229
236
  ref: "tagsGroup",
230
237
  class: ["tiny-base-select__tags-group", {
231
238
  "is-expand": _vm.state.isExpand
@@ -260,12 +267,17 @@ var render = function render2() {
260
267
  style: _vm.state.tagsStyle
261
268
  }, [!_vm.state.isShowTagText ? _c("span", [_vm.collapseTags && _vm.state.selected.length ? _c("span", [_c("tiny-tag", {
262
269
  key: _vm.state.key,
270
+ class: {
271
+ "is-required": _vm.state.selected[0].required
272
+ },
263
273
  attrs: {
264
- "closable": !_vm.state.selectDisabled,
274
+ "closable": _vm.isTagClosable(_vm.state.selected[0]),
265
275
  "size": _vm.state.collapseTagSize,
266
276
  "hit": _vm.state.selected[0].state ? _vm.state.selected[0].state.hitState : _vm.state.selected[0].hitState,
277
+ "disabled": _vm.state.selected[0].disabled || _vm.state.isDisabled,
267
278
  "type": _vm.state.getTagType,
268
- "disable-transitions": ""
279
+ "disable-transitions": "",
280
+ "maxWidth": _vm.maxTagWidth
269
281
  },
270
282
  on: {
271
283
  "close": function close($event) {
@@ -274,8 +286,9 @@ var render = function render2() {
274
286
  }
275
287
  }, [_c("tiny-tooltip", {
276
288
  attrs: {
277
- "effect": "light",
278
- "placement": "top"
289
+ "effect": _vm.tooltipConfig.effect || "light",
290
+ "placement": _vm.tooltipConfig.placement || "top",
291
+ "popper-class": _vm.tooltipConfig.popperClass || ""
279
292
  },
280
293
  nativeOn: {
281
294
  "mouseenter": function mouseenter($event) {
@@ -305,7 +318,9 @@ var render = function render2() {
305
318
  "closable": false,
306
319
  "size": _vm.state.collapseTagSize,
307
320
  "type": _vm.state.getTagType,
308
- "disable-transitions": ""
321
+ "disabled": _vm.state.isDisabled,
322
+ "disable-transitions": "",
323
+ "maxWidth": _vm.maxTagWidth
309
324
  }
310
325
  }, [_c("span", {
311
326
  staticClass: "tiny-base-select__tags-text"
@@ -318,24 +333,26 @@ var render = function render2() {
318
333
  "data-tag": "tags-all-text-tag",
319
334
  "disabled": _vm.state.isDisabled,
320
335
  "closable": true,
321
- "size": _vm.state.collapseTagSize
336
+ "size": _vm.state.collapseTagSize,
337
+ "maxWidth": _vm.maxTagWidth
322
338
  },
323
339
  on: {
324
340
  "close": function close($event) {
325
341
  return _vm.toggleCheckAll(false);
326
342
  }
327
343
  }
328
- }, [_vm._v(" " + _vm._s(_vm.allText || _vm.t("ui.base.all")) + " ")]) : [_vm.hoverExpand || _vm.clickExpand ? _c("tiny-tag", {
344
+ }, [_vm._v(" " + _vm._s(_vm.allText || _vm.t("ui.base.all")) + " ")]) : [_vm.hoverExpand || _vm.clickExpand && !_vm.state.showCollapseTag ? _c("tiny-tag", {
329
345
  key: "tags-collapse",
330
- class: ["tiny-base-select__tags-collapse", {
346
+ class: ["tiny-base-select__tags-collapse", "cursor-pointer", {
331
347
  "is-hidden": _vm.state.isHidden || _vm.state.isDisabled
332
348
  }],
333
349
  attrs: {
334
350
  "type": _vm.state.getTagType,
335
351
  "data-tag": "tags-collapse",
336
- "only-icon": "",
352
+ "only-icon": !_vm.hoverExpand,
337
353
  "closable": false,
338
- "size": _vm.state.collapseTagSize
354
+ "size": _vm.state.collapseTagSize,
355
+ "maxWidth": _vm.maxTagWidth
339
356
  },
340
357
  on: {
341
358
  "click": function click($event) {
@@ -355,7 +372,8 @@ var render = function render2() {
355
372
  "size": _vm.state.collapseTagSize,
356
373
  "hit": item.state ? item.state.hitState : item.hitState,
357
374
  "type": _vm.state.getTagType,
358
- "disable-transitions": ""
375
+ "disable-transitions": "",
376
+ "maxWidth": _vm.maxTagWidth
359
377
  },
360
378
  on: {
361
379
  "close": function close($event) {
@@ -364,8 +382,9 @@ var render = function render2() {
364
382
  }
365
383
  }, [_c("tiny-tooltip", {
366
384
  attrs: {
367
- "effect": "light",
368
- "placement": "top"
385
+ "effect": _vm.tooltipConfig.effect || "light",
386
+ "placement": _vm.tooltipConfig.placement || "top",
387
+ "popper-class": _vm.tooltipConfig.popperClass || ""
369
388
  },
370
389
  nativeOn: {
371
390
  "mouseenter": function mouseenter($event) {
@@ -400,28 +419,9 @@ var render = function render2() {
400
419
  }
401
420
  }
402
421
  }, [_vm._v(" " + _vm._s(_vm.t("ui.select.collapse")) + " "), _c("icon-chevron-up")], 1) : _vm._e()]], 2) : _vm._e()]) : _c("span", {
403
- staticClass: "tiny-base-select__tags-text is-disabled"
404
- }, [_c("tiny-tooltip", {
405
- attrs: {
406
- "effect": "light",
407
- "placement": "top",
408
- "disabled": !_vm.showTips
409
- },
410
- scopedSlots: _vm._u([{
411
- key: "content",
412
- fn: function fn() {
413
- return [_c("div", {
414
- class: [_vm.state.showTips && "tiny-base-select__show-tips", "tiny-base-select__show-common"]
415
- }, [_vm.slots.label ? _c("span", _vm._l(_vm.state.selected, function(item) {
416
- return _c("span", {
417
- key: _vm.getValueKey(item)
418
- }, [_vm._t("label", null, {
419
- "item": item
420
- })], 2);
421
- }), 0) : _c("span", [_vm._v(_vm._s(_vm.disabledTooltipContent || _vm.state.disabledTooltipContent))])])];
422
- },
423
- proxy: true
424
- }], null, true)
422
+ class: ["tiny-base-select__tags-text", "is-display-only", {
423
+ "is-disabled": _vm.state.isDisabled
424
+ }]
425
425
  }, [_c("span", _vm._l(_vm.state.selected, function(item) {
426
426
  return _c("span", {
427
427
  key: item.value
@@ -430,7 +430,7 @@ var render = function render2() {
430
430
  }, {
431
431
  "item": item
432
432
  }), _vm._v("; ")], 2);
433
- }), 0)])], 1), _c("input", {
433
+ }), 0)]), _c("input", {
434
434
  directives: [{
435
435
  name: "show",
436
436
  rawName: "v-show",
@@ -447,8 +447,8 @@ var render = function render2() {
447
447
  class: [_vm.state.selectSize ? "is-" + _vm.state.selectSize : ""],
448
448
  style: {
449
449
  "flex-grow": "1",
450
- width: _vm.state.inputLength / (_vm.state.inputWidth - 32) + "%",
451
- "max-width": _vm.state.inputWidth - 42 + "px",
450
+ width: _vm.state.inputWidth > 0 ? _vm.state.inputLength / (_vm.state.inputWidth - 32) + "%" : "auto",
451
+ "max-width": _vm.state.inputWidth > 0 ? _vm.state.inputWidth - 42 + "px" : "none",
452
452
  height: "auto"
453
453
  },
454
454
  attrs: {
@@ -500,7 +500,9 @@ var render = function render2() {
500
500
  class: {
501
501
  "is-focus": _vm.state.visible,
502
502
  overflow: _vm.state.overflow,
503
- "is-show-close": _vm.state.showClose
503
+ "is-show-close": _vm.state.showClose,
504
+ "show-copy": _vm.copyable,
505
+ "show-clear": _vm.clearable
504
506
  },
505
507
  attrs: {
506
508
  "tiny_mode": "pc",
@@ -510,12 +512,14 @@ var render = function render2() {
510
512
  "id": _vm.id,
511
513
  "autocomplete": _vm.autocomplete,
512
514
  "size": _vm.state.selectSize,
515
+ "showTooltip": false,
513
516
  "disabled": _vm.state.selectDisabled,
514
517
  "readonly": _vm.state.readonly,
515
518
  "display-only": _vm.state.isDisplayOnly,
516
519
  "display-only-content": _vm.state.displayOnlyContent,
517
520
  "unselectable": _vm.state.readonly ? "on" : "off",
518
521
  "validate-event": false,
522
+ "show-empty-value": _vm.showEmptyValue,
519
523
  "input-box-type": _vm.inputBoxType,
520
524
  "tabindex": _vm.multiple && _vm.filterable ? "-1" : _vm.tabindex
521
525
  },
@@ -564,7 +568,7 @@ var render = function render2() {
564
568
  } : null, {
565
569
  key: "suffix",
566
570
  fn: function fn() {
567
- return [_vm._t("suffix"), _vm.showLimitText && _vm.multiple && _vm.multipleLimit ? _c("span", {
571
+ return [_vm._t("suffix"), _vm.showLimitText && _vm.multiple && _vm.multipleLimit && !_vm.state.showCopy ? _c("span", {
568
572
  staticClass: "tiny-base-select__limit-txt"
569
573
  }, [_vm._v(" " + _vm._s(_vm.state.selected.length) + "/" + _vm._s(_vm.multipleLimit) + " ")]) : _vm.showProportion && _vm.state.selected.length > 0 && _vm.state.options.length > 1 ? _c("span", {
570
574
  staticClass: "tiny-base-select__proportion-txt"
@@ -626,8 +630,8 @@ var render = function render2() {
626
630
  directives: [{
627
631
  name: "show",
628
632
  rawName: "v-show",
629
- value: !_vm.onCopying() && !_vm.hideDrop && _vm.state.visible && _vm.state.emptyText !== false,
630
- expression: "!onCopying() && !hideDrop && state.visible && state.emptyText !== false"
633
+ value: !_vm.onCopying() && !_vm.hideDrop && _vm.state.visible && (_vm.slots.panel || _vm.state.emptyText !== false),
634
+ expression: "!onCopying() && !hideDrop && state.visible && (slots.panel || state.emptyText !== false)"
631
635
  }],
632
636
  ref: "popper",
633
637
  style: _vm.dropStyle,
@@ -643,7 +647,6 @@ var render = function render2() {
643
647
  }, [_c("tiny-input", {
644
648
  ref: "input",
645
649
  attrs: {
646
- "type": "text",
647
650
  "placeholder": _vm.placeholder,
648
651
  "autofocus": ""
649
652
  },
@@ -681,7 +684,7 @@ var render = function render2() {
681
684
  },
682
685
  on: {
683
686
  "update:modelValue": function updateModelValue($event) {
684
- return _vm.handleQueryChange(_vm.state.query);
687
+ return _vm.handleQueryChange(_vm.state.query, false, true);
685
688
  }
686
689
  },
687
690
  scopedSlots: _vm._u([{
@@ -731,7 +734,6 @@ var render = function render2() {
731
734
  value: !_vm.state.emptyFlag && !_vm.loading,
732
735
  expression: "!state.emptyFlag && !loading"
733
736
  }],
734
- key: _vm.state.magicKey,
735
737
  ref: "scrollbar",
736
738
  staticStyle: {
737
739
  "height": "100%"
@@ -781,7 +783,7 @@ var render = function render2() {
781
783
  })];
782
784
  }
783
785
  }], null, true)
784
- })], 1)] : _vm._e(), !_vm.optimization ? _c("tiny-scrollbar", {
786
+ })], 1)] : _vm._e(), !_vm.optimization && !(_vm.state.isDisplayOnly && _vm.options) ? _c("tiny-scrollbar", {
785
787
  directives: [{
786
788
  name: "show",
787
789
  rawName: "v-show",
@@ -825,10 +827,16 @@ var render = function render2() {
825
827
  _vm.state.hoverIndex = -9;
826
828
  }
827
829
  }
830
+ }, [_c("span", {
831
+ staticClass: "tiny-option__checkbox-wrap tiny-select-dropdown__item-checkbox"
828
832
  }, [_c("icon-" + _vm.state.selectCls, {
829
833
  tag: "component",
830
834
  class: ["tiny-svg-size", _vm.state.selectCls]
831
- }), _c("span", [_vm._v(_vm._s(_vm.allText || _vm.t("ui.base.all")))])], 1) : _vm._e(), _vm.multiple && _vm.showCheck && _vm.showAlloption && !_vm.state.multipleLimit && _vm.state.query && !_vm.state.emptyText && !_vm.remote ? _c("li", {
835
+ })], 1), _c("div", {
836
+ staticClass: "tiny-option-wrapper calc-width"
837
+ }, [_c("span", {
838
+ staticClass: "tiny-option-label"
839
+ }, [_vm._v(_vm._s(_vm.allText || _vm.t("ui.base.all")))])])]) : _vm._e(), _vm.multiple && _vm.showCheck && _vm.showAlloption && !_vm.state.multipleLimit && _vm.state.query && !_vm.state.emptyText && !_vm.remote ? _c("li", {
832
840
  staticClass: "tiny-option tiny-select-dropdown__item",
833
841
  class: [{
834
842
  hover: _vm.state.hoverIndex === -9 && _vm.state.filteredSelectCls !== "checked-sur"
@@ -850,10 +858,16 @@ var render = function render2() {
850
858
  _vm.state.hoverIndex = -9;
851
859
  }
852
860
  }
861
+ }, [_c("span", {
862
+ staticClass: "tiny-option__checkbox-wrap tiny-select-dropdown__item-checkbox"
853
863
  }, [_c("icon-" + _vm.state.filteredSelectCls, {
854
864
  tag: "component",
855
865
  class: ["tiny-svg-size", _vm.state.filteredSelectCls]
856
- }), _c("span", [_vm._v(_vm._s(_vm.allText || _vm.t("ui.base.all")))])], 1) : _vm._e(), _vm.state.showNewOption ? _c("tiny-option", {
866
+ })], 1), _c("div", {
867
+ staticClass: "tiny-option-wrapper calc-width"
868
+ }, [_c("span", {
869
+ staticClass: "tiny-option-label"
870
+ }, [_vm._v(_vm._s(_vm.allText || _vm.t("ui.base.all")))])])]) : _vm._e(), _vm.state.showNewOption ? _c("tiny-option", {
857
871
  attrs: {
858
872
  "value": _vm.state.query,
859
873
  "created": ""
@@ -885,25 +899,18 @@ var render = function render2() {
885
899
  }) : _c("p", {
886
900
  staticClass: "tiny-select-dropdown__empty"
887
901
  }, [_vm._v(" " + _vm._s(_vm.state.emptyText) + " ")])], 2) : _c("div", {
888
- staticClass: "tiny-select-dropdown__loading"
902
+ staticClass: "tiny-select-dropdown__loading",
903
+ class: {
904
+ "show-loading-icon": _vm.loading
905
+ }
889
906
  }, [!_vm.loading ? [_vm.showEmptyImage ? _c("span", {
890
907
  staticClass: "tiny-select-dropdown__empty-images"
891
908
  }) : _c("span", {
892
909
  staticClass: "tiny-select-dropdown__empty"
893
- }, [_vm._v(" " + _vm._s(_vm.state.emptyText))])] : _c("svg", {
894
- staticClass: "circular",
895
- attrs: {
896
- "viewBox": "25 25 50 50"
897
- }
898
- }, [_c("circle", {
899
- staticClass: "path",
900
- attrs: {
901
- "cx": "50",
902
- "cy": "50",
903
- "r": "24",
904
- "fill": "none"
905
- }
906
- })])], 2)] : _vm._e(), _vm._t("footer")], 2)], 1)], 2), _vm.hoverExpand && !_vm.state.isDisplayOnly ? _c("div", {
910
+ }, [_vm._v(" " + _vm._s(_vm.state.emptyText))])] : _c(_vm.state.designConfig && _vm.state.designConfig.icons && _vm.state.designConfig.icons.loadingIcon || "icon-loading-shadow", {
911
+ tag: "component",
912
+ staticClass: "circular"
913
+ })], 2)] : _vm._e(), _vm._t("footer")], 2)], 1)], 2), _vm.hoverExpand && !_vm.state.isDisplayOnly ? _c("div", {
907
914
  staticClass: "tiny-base-select__placeholder"
908
915
  }, [_c("input", {
909
916
  staticClass: "tiny-input__inner",
package/package.json CHANGED
@@ -1,30 +1,30 @@
1
1
  {
2
2
  "name": "@opentinyvue/vue-base-select",
3
3
  "type": "module",
4
- "version": "2.26.0",
4
+ "version": "2.28.0",
5
5
  "description": "",
6
6
  "license": "MIT",
7
7
  "sideEffects": false,
8
8
  "main": "./lib/index.js",
9
9
  "module": "./lib/index.js",
10
10
  "dependencies": {
11
- "@opentinyvue/vue-button": "~2.26.0",
12
- "@opentinyvue/vue-checkbox": "~2.26.0",
13
- "@opentinyvue/vue-common": "~2.26.0",
14
- "@opentinyvue/vue-directive": "~2.26.0",
15
- "@opentinyvue/vue-filter-box": "~2.26.0",
16
- "@opentinyvue/vue-icon": "~2.26.0",
17
- "@opentinyvue/vue-input": "~2.26.0",
18
- "@opentinyvue/vue-locale": "~2.26.0",
19
- "@opentinyvue/vue-option": "~2.26.0",
20
- "@opentinyvue/vue-recycle-scroller": "~2.26.0",
21
- "@opentinyvue/vue-renderless": "~3.26.0",
22
- "@opentinyvue/vue-scrollbar": "~2.26.0",
23
- "@opentinyvue/vue-select-dropdown": "~2.26.0",
24
- "@opentinyvue/vue-tag": "~2.26.0",
25
- "@opentinyvue/vue-theme": "~3.26.0",
26
- "@opentinyvue/vue-tooltip": "~2.26.0",
27
- "@opentinyvue/vue-tree": "~2.26.0"
11
+ "@opentinyvue/vue-button": "~2.28.0",
12
+ "@opentinyvue/vue-checkbox": "~2.28.0",
13
+ "@opentinyvue/vue-common": "~2.28.0",
14
+ "@opentinyvue/vue-directive": "~2.28.0",
15
+ "@opentinyvue/vue-filter-box": "~2.28.0",
16
+ "@opentinyvue/vue-icon": "~2.28.0",
17
+ "@opentinyvue/vue-input": "~2.28.0",
18
+ "@opentinyvue/vue-locale": "~2.28.0",
19
+ "@opentinyvue/vue-option": "~2.28.0",
20
+ "@opentinyvue/vue-recycle-scroller": "~2.28.0",
21
+ "@opentinyvue/vue-renderless": "~3.28.0",
22
+ "@opentinyvue/vue-scrollbar": "~2.28.0",
23
+ "@opentinyvue/vue-select-dropdown": "~2.28.0",
24
+ "@opentinyvue/vue-tag": "~2.28.0",
25
+ "@opentinyvue/vue-theme": "~3.28.0",
26
+ "@opentinyvue/vue-tooltip": "~2.28.0",
27
+ "@opentinyvue/vue-tree": "~2.28.0"
28
28
  },
29
29
  "types": "index.d.ts",
30
30
  "scripts": {