@opentiny/vue-renderless 3.1.0-alpha.0 → 3.4.7

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.
Files changed (177) hide show
  1. package/action-menu/index.js +10 -0
  2. package/action-menu/vue.js +26 -0
  3. package/amount/index.js +334 -0
  4. package/amount/vue.js +206 -0
  5. package/area/index.js +162 -0
  6. package/area/vue.js +68 -0
  7. package/autonavi-map/index.js +28 -0
  8. package/avatar/index.js +5 -1
  9. package/avatar/vue.js +2 -1
  10. package/baidu-map/index.js +28 -0
  11. package/breadcrumb/index.js +9 -0
  12. package/breadcrumb/vue.js +25 -3
  13. package/breadcrumb-item/index.js +26 -0
  14. package/breadcrumb-item/vue.js +20 -11
  15. package/bulletin-board/index.js +4 -1
  16. package/button-group/vue.js +1 -1
  17. package/calendar/index.js +14 -14
  18. package/card-template/index.js +1 -1
  19. package/cascader/index.js +21 -7
  20. package/cascader/vue.js +1 -2
  21. package/cascader-node/index.js +3 -1
  22. package/cascader-panel/index.js +12 -4
  23. package/cascader-panel/vue.js +1 -2
  24. package/chart-bar/index.js +533 -0
  25. package/chart-boxplot/index.js +270 -0
  26. package/chart-candle/index.js +428 -0
  27. package/chart-core/deps/constants.js +65 -0
  28. package/chart-core/deps/numerify.js +286 -0
  29. package/chart-core/deps/utils.js +205 -0
  30. package/chart-core/index.js +541 -0
  31. package/chart-core/modules/animation.js +10 -0
  32. package/chart-core/modules/extend.js +36 -0
  33. package/chart-core/modules/mark.js +7 -0
  34. package/chart-core/vue.js +128 -0
  35. package/chart-funnel/index.js +155 -0
  36. package/chart-gauge/index.js +153 -0
  37. package/chart-graph/index.js +38 -0
  38. package/chart-heatmap/index.js +407 -0
  39. package/chart-line/index.js +358 -0
  40. package/chart-liquidfill/index.js +119 -0
  41. package/chart-map/index.js +261 -0
  42. package/chart-pie/index.js +327 -0
  43. package/chart-radar/index.js +181 -0
  44. package/chart-sankey/index.js +166 -0
  45. package/chart-scatter/index.js +360 -0
  46. package/chart-sunburst/index.js +36 -0
  47. package/chart-tree/index.js +107 -0
  48. package/chart-waterfall/index.js +231 -0
  49. package/chart-wordcloud/index.js +109 -0
  50. package/checkbox/index.js +4 -4
  51. package/checkbox-button/index.js +3 -1
  52. package/common/bigInt.js +5 -2
  53. package/common/date.js +17 -17
  54. package/common/deps/date-util.js +15 -5
  55. package/common/deps/date.js +6 -6
  56. package/common/deps/dom.js +18 -6
  57. package/common/deps/eSpaceCtrl.js +286 -0
  58. package/common/deps/fullscreen/apis.js +22 -22
  59. package/common/deps/memorize.js +3 -3
  60. package/common/deps/modal-queue.js +2 -0
  61. package/common/deps/popper.js +12 -10
  62. package/common/deps/popup-manager.js +16 -5
  63. package/common/deps/resize-event.js +6 -2
  64. package/common/deps/scrollbar-width.js +6 -2
  65. package/common/deps/tree-model/node.js +30 -10
  66. package/common/deps/tree-model/tree-store.js +33 -21
  67. package/common/deps/tree-model/util.js +6 -2
  68. package/common/deps/upload-ajax.js +7 -1
  69. package/common/deps/vue-popper.js +2 -2
  70. package/common/string.js +1 -1
  71. package/company/index.js +56 -0
  72. package/company/vue.js +35 -0
  73. package/country/index.js +54 -0
  74. package/country/vue.js +35 -0
  75. package/credit-card-form/index.js +1 -0
  76. package/currency/index.js +78 -0
  77. package/currency/vue.js +39 -0
  78. package/date-panel/index.js +16 -6
  79. package/date-picker/index.js +9 -5
  80. package/date-range/index.js +28 -9
  81. package/date-table/index.js +3 -1
  82. package/dept/index.js +318 -0
  83. package/dept/vue.js +163 -0
  84. package/detail-page/index.js +4 -1
  85. package/dialog-box/index.js +14 -4
  86. package/dialog-box/vue.js +7 -3
  87. package/drop-roles/index.js +73 -0
  88. package/drop-roles/vue.js +38 -0
  89. package/dropdown/index.js +5 -4
  90. package/dropdown/vue.js +5 -3
  91. package/dropdown-item/index.js +15 -0
  92. package/dropdown-item/vue.js +27 -13
  93. package/espace/index.js +129 -0
  94. package/espace/vue.js +52 -0
  95. package/file-upload/index.js +336 -291
  96. package/form/index.js +3 -1
  97. package/form/vue.js +15 -0
  98. package/form-item/index.js +15 -5
  99. package/fullscreen/index.js +4 -4
  100. package/fullscreen/vue.js +3 -3
  101. package/grid/core/interceptor.js +4 -7
  102. package/grid/plugins/export.js +2 -2
  103. package/grid/plugins/exportExcel.js +28 -10
  104. package/grid/static/array/findTree.js +1 -1
  105. package/grid/static/base/helperCreateGetObjects.js +1 -1
  106. package/grid/static/base/helperEqualCompare.js +2 -2
  107. package/grid/static/base/helperGetHGSKeys.js +1 -1
  108. package/grid/static/base/uniqueId.js +1 -1
  109. package/grid/static/object/assign.js +3 -3
  110. package/grid/static/string/toString.js +3 -3
  111. package/hrapprover/index.js +118 -0
  112. package/hrapprover/vue.js +102 -0
  113. package/locales/index.js +116 -0
  114. package/locales/vue.js +46 -0
  115. package/logon-user/index.js +23 -0
  116. package/logon-user/vue.js +22 -0
  117. package/logout/index.js +118 -0
  118. package/logout/vue.js +22 -0
  119. package/milestone/index.js +2 -1
  120. package/mini-picker/index.js +1 -1
  121. package/mini-picker/vue.js +1 -1
  122. package/modal/index.js +4 -2
  123. package/month-table/index.js +2 -2
  124. package/nav-menu/index.js +2 -2
  125. package/numeric/index.js +4 -2
  126. package/package.json +33 -136
  127. package/pager-item/vue.js +6 -2
  128. package/picker/index.js +43 -17
  129. package/picker/timezone.js +2 -2
  130. package/picker-column/index.js +7 -3
  131. package/pop-upload/index.js +5 -3
  132. package/popeditor/index.js +15 -7
  133. package/popover/index.js +87 -54
  134. package/popover/vue.js +13 -9
  135. package/rate/index.js +2 -2
  136. package/rich-text/clipboard.js +77 -0
  137. package/rich-text/index.js +176 -0
  138. package/rich-text/module/file-upload.js +118 -0
  139. package/rich-text/module/image-drop.js +54 -0
  140. package/rich-text/module/image-upload.js +84 -0
  141. package/rich-text/options.js +187 -0
  142. package/rich-text/table-module.js +557 -0
  143. package/rich-text/vue.js +149 -0
  144. package/roles/index.js +87 -0
  145. package/roles/vue.js +39 -0
  146. package/search/index.js +32 -27
  147. package/search/vue.js +7 -2
  148. package/select/index.js +328 -304
  149. package/select/vue.js +19 -9
  150. package/select-dropdown/index.js +1 -1
  151. package/slider/index.js +9 -11
  152. package/slider/vue.js +3 -3
  153. package/split/vue.js +1 -1
  154. package/tab-nav/index.js +0 -6
  155. package/tab-nav/vue.js +0 -14
  156. package/table/index.js +1 -1
  157. package/text-popup/index.js +6 -4
  158. package/time/index.js +3 -1
  159. package/time-range/index.js +6 -2
  160. package/time-spinner/index.js +15 -5
  161. package/toggle-menu/index.js +11 -0
  162. package/toggle-menu/vue.js +2 -1
  163. package/tooltip/index.js +46 -35
  164. package/tooltip/vue.js +5 -1
  165. package/tree/index.js +57 -21
  166. package/tree-menu/index.js +3 -1
  167. package/tree-node/index.js +7 -3
  168. package/upload/index.js +14 -5
  169. package/user/index.js +634 -0
  170. package/user/vue.js +113 -0
  171. package/user-account/index.js +23 -0
  172. package/user-account/vue.js +25 -0
  173. package/user-contact/index.js +1 -4
  174. package/user-head/index.js +9 -11
  175. package/user-head/vue.js +2 -6
  176. package/user-link/index.js +43 -0
  177. package/user-link/vue.js +60 -0
package/select/index.js CHANGED
@@ -150,7 +150,7 @@ export var handleQueryChange = function handleQueryChange(_ref5) {
150
150
  }
151
151
  if (props.renderType === constants.TYPE.Tree) {
152
152
  state.previousQuery = value;
153
- if (props.filterable && typeof props.filterMethod === 'function') {
153
+ if (state.filterOrSearch && typeof props.filterMethod === 'function') {
154
154
  refs.selectTree && refs.selectTree.filter(value);
155
155
  }
156
156
  }
@@ -164,10 +164,12 @@ export var handleQueryChange = function handleQueryChange(_ref5) {
164
164
  state.hoverIndex = -1;
165
165
  if (props.multiple && props.filterable) {
166
166
  nextTick(function () {
167
- var length = refs.input.value.length * 15 + 20;
168
- state.inputLength = state.collapseTags ? Math.min(50, length) : length;
169
- api.managePlaceholder();
170
- api.resetInputHeight();
167
+ if (refs.input) {
168
+ var length = refs.input.value.length * 15 + 20;
169
+ state.inputLength = state.collapseTags ? Math.min(50, length) : length;
170
+ api.managePlaceholder();
171
+ api.resetInputHeight();
172
+ }
171
173
  });
172
174
  }
173
175
  if (props.renderType === constants.TYPE.Tree) {
@@ -326,7 +328,7 @@ export var setSelected = function setSelected(_ref12) {
326
328
  refs.selectTree && refs.selectTree.setCurrentKey && refs.selectTree.setCurrentKey(null);
327
329
  return;
328
330
  }
329
- var isRemote = props.filterable && props.remote && typeof props.remoteMethod === 'function';
331
+ var isRemote = state.filterOrSearch && props.remote && typeof props.remoteMethod === 'function';
330
332
  var nestdata = isRemote ? state.remoteData : isTree ? api.getTreeData(state.treeData) : state.gridData;
331
333
  var data = find(nestdata, function (item) {
332
334
  return props.modelValue == item[props.valueField];
@@ -373,7 +375,7 @@ export var getPluginOption = function getPluginOption(_ref13) {
373
375
  props = _ref13.props,
374
376
  state = _ref13.state;
375
377
  return function (value, isTree) {
376
- var isRemote = props.filterable && props.remote && typeof props.remoteMethod === 'function';
378
+ var isRemote = state.filterOrSearch && props.remote && typeof props.remoteMethod === 'function';
377
379
  var textField = props.textField,
378
380
  valueField = props.valueField;
379
381
  var sourceData = isRemote ? state.remoteData : isTree ? api.getTreeData(state.treeData) : state.gridData;
@@ -418,11 +420,20 @@ export var toggleCheckAll = function toggleCheckAll(_ref14) {
418
420
  emit('change', value);
419
421
  };
420
422
  };
421
- export var handleFocus = function handleFocus(_ref15) {
422
- var emit = _ref15.emit,
423
- props = _ref15.props,
424
- state = _ref15.state,
423
+ export var resetFilter = function resetFilter(_ref15) {
424
+ var state = _ref15.state,
425
425
  api = _ref15.api;
426
+ return function () {
427
+ state.query = '';
428
+ state.previousQuery = undefined;
429
+ api.handleQueryChange(state.query);
430
+ };
431
+ };
432
+ export var handleFocus = function handleFocus(_ref16) {
433
+ var emit = _ref16.emit,
434
+ props = _ref16.props,
435
+ state = _ref16.state,
436
+ api = _ref16.api;
426
437
  return function (event) {
427
438
  if (!state.softFocus) {
428
439
  if (props.automaticDropdown || props.filterable) {
@@ -433,44 +444,45 @@ export var handleFocus = function handleFocus(_ref15) {
433
444
  } else {
434
445
  state.softFocus = false;
435
446
  }
436
- if (props.remote && props.filterable && state.firstAutoSeach) {
447
+ if (props.remote && state.filterOrSearch && state.firstAutoSeach) {
437
448
  state.firstAutoSeach = false;
438
- state.query = '';
439
- state.previousQuery = undefined;
440
- api.handleQueryChange(state.query);
449
+ api.resetFilter();
441
450
  }
442
451
  };
443
452
  };
444
- export var focus = function focus(_ref16) {
445
- var refs = _ref16.refs,
446
- state = _ref16.state;
453
+ export var focus = function focus(_ref17) {
454
+ var refs = _ref17.refs,
455
+ state = _ref17.state;
447
456
  return function () {
448
457
  if (!state.softFocus) {
449
- refs.reference.focus();
458
+ var _refs$reference;
459
+ (_refs$reference = refs.reference) === null || _refs$reference === void 0 ? void 0 : _refs$reference.focus();
450
460
  }
451
461
  };
452
462
  };
453
- export var blur = function blur(_ref17) {
454
- var refs = _ref17.refs,
455
- state = _ref17.state;
463
+ export var blur = function blur(_ref18) {
464
+ var refs = _ref18.refs,
465
+ state = _ref18.state;
456
466
  return function () {
467
+ var _refs$reference2;
457
468
  state.visible = false;
458
- refs.reference.blur();
469
+ (_refs$reference2 = refs.reference) === null || _refs$reference2 === void 0 ? void 0 : _refs$reference2.blur();
459
470
  };
460
471
  };
461
- export var handleBlur = function handleBlur(_ref18) {
462
- var constants = _ref18.constants,
463
- dispatch = _ref18.dispatch,
464
- emit = _ref18.emit,
465
- state = _ref18.state;
472
+ export var handleBlur = function handleBlur(_ref19) {
473
+ var constants = _ref19.constants,
474
+ dispatch = _ref19.dispatch,
475
+ emit = _ref19.emit,
476
+ state = _ref19.state;
466
477
  return function (event) {
467
478
  setTimeout(function () {
479
+ var _event$target;
468
480
  if (state.isSilentBlur) {
469
481
  state.isSilentBlur = false;
470
482
  } else {
471
483
  emit('blur', event);
472
484
  }
473
- dispatch(constants.COMPONENT_NAME.FormItem, constants.EVENT_NAME.formBlur, event.target.value);
485
+ dispatch(constants.COMPONENT_NAME.FormItem, constants.EVENT_NAME.formBlur, event === null || event === void 0 ? void 0 : (_event$target = event.target) === null || _event$target === void 0 ? void 0 : _event$target.value);
474
486
  }, 100);
475
487
  state.softFocus = false;
476
488
  };
@@ -490,8 +502,8 @@ export var handleClose = function handleClose(state) {
490
502
  state.visible = false;
491
503
  };
492
504
  };
493
- export var toggleLastOptionHitState = function toggleLastOptionHitState(_ref19) {
494
- var state = _ref19.state;
505
+ export var toggleLastOptionHitState = function toggleLastOptionHitState(_ref20) {
506
+ var state = _ref20.state;
495
507
  return function (hit) {
496
508
  if (!Array.isArray(state.selected)) {
497
509
  return;
@@ -509,13 +521,13 @@ export var toggleLastOptionHitState = function toggleLastOptionHitState(_ref19)
509
521
  return hitTarget.hitState;
510
522
  };
511
523
  };
512
- export var deletePrevTag = function deletePrevTag(_ref20) {
513
- var api = _ref20.api,
514
- constants = _ref20.constants,
515
- emit = _ref20.emit,
516
- props = _ref20.props,
517
- state = _ref20.state,
518
- vm = _ref20.vm;
524
+ export var deletePrevTag = function deletePrevTag(_ref21) {
525
+ var api = _ref21.api,
526
+ constants = _ref21.constants,
527
+ emit = _ref21.emit,
528
+ props = _ref21.props,
529
+ state = _ref21.state,
530
+ vm = _ref21.vm;
519
531
  return function (event) {
520
532
  var refs = vm.$refs;
521
533
  if (event.target.value.length <= 0 && !api.toggleLastOptionHitState()) {
@@ -533,19 +545,19 @@ export var deletePrevTag = function deletePrevTag(_ref20) {
533
545
  }
534
546
  };
535
547
  };
536
- export var managePlaceholder = function managePlaceholder(_ref21) {
537
- var refs = _ref21.refs,
538
- state = _ref21.state;
548
+ export var managePlaceholder = function managePlaceholder(_ref22) {
549
+ var refs = _ref22.refs,
550
+ state = _ref22.state;
539
551
  return function () {
540
552
  if (state.currentPlaceholder !== '') {
541
553
  state.currentPlaceholder = refs.input.value ? '' : state.cachedPlaceHolder;
542
554
  }
543
555
  };
544
556
  };
545
- export var resetInputState = function resetInputState(_ref22) {
546
- var api = _ref22.api,
547
- refs = _ref22.refs,
548
- state = _ref22.state;
557
+ export var resetInputState = function resetInputState(_ref23) {
558
+ var api = _ref23.api,
559
+ refs = _ref23.refs,
560
+ state = _ref23.state;
549
561
  return function (event) {
550
562
  if (event.keyCode !== 8) {
551
563
  api.toggleLastOptionHitState(false);
@@ -554,14 +566,14 @@ export var resetInputState = function resetInputState(_ref22) {
554
566
  api.resetInputHeight();
555
567
  };
556
568
  };
557
- export var resetInputHeight = function resetInputHeight(_ref23) {
558
- var constants = _ref23.constants,
559
- nextTick = _ref23.nextTick,
560
- props = _ref23.props,
561
- refs = _ref23.refs,
562
- state = _ref23.state;
569
+ export var resetInputHeight = function resetInputHeight(_ref24) {
570
+ var constants = _ref24.constants,
571
+ nextTick = _ref24.nextTick,
572
+ props = _ref24.props,
573
+ refs = _ref24.refs,
574
+ state = _ref24.state;
563
575
  return function () {
564
- if (state.collapseTags && !props.filterable) {
576
+ if (state.collapseTags && (!props.filterable || !props.searchable)) {
565
577
  return;
566
578
  }
567
579
  nextTick(function () {
@@ -585,9 +597,9 @@ export var resetInputHeight = function resetInputHeight(_ref23) {
585
597
  });
586
598
  };
587
599
  };
588
- export var resetHoverIndex = function resetHoverIndex(_ref24) {
589
- var props = _ref24.props,
590
- state = _ref24.state;
600
+ export var resetHoverIndex = function resetHoverIndex(_ref25) {
601
+ var props = _ref25.props,
602
+ state = _ref25.state;
591
603
  return function () {
592
604
  if (!props.showOverflowTooltip) {
593
605
  state.hoverIndex = -1;
@@ -604,13 +616,13 @@ export var resetHoverIndex = function resetHoverIndex(_ref24) {
604
616
  }
605
617
  };
606
618
  };
607
- export var handleOptionSelect = function handleOptionSelect(_ref25) {
608
- var api = _ref25.api,
609
- emit = _ref25.emit,
610
- nextTick = _ref25.nextTick,
611
- props = _ref25.props,
612
- refs = _ref25.refs,
613
- state = _ref25.state;
619
+ export var handleOptionSelect = function handleOptionSelect(_ref26) {
620
+ var api = _ref26.api,
621
+ emit = _ref26.emit,
622
+ nextTick = _ref26.nextTick,
623
+ props = _ref26.props,
624
+ refs = _ref26.refs,
625
+ state = _ref26.state;
614
626
  return function (option, byClick) {
615
627
  state.memorize && state.memorize.updateByKey(option[state.memorize._dataKey] || option.value);
616
628
  if (props.multiple) {
@@ -629,7 +641,12 @@ export var handleOptionSelect = function handleOptionSelect(_ref25) {
629
641
  state.inputLength = 20;
630
642
  }
631
643
  if (props.filterable) {
632
- refs.input.focus();
644
+ var _refs$input;
645
+ (_refs$input = refs.input) === null || _refs$input === void 0 ? void 0 : _refs$input.focus();
646
+ }
647
+ if (props.searchable) {
648
+ var _refs$reference3;
649
+ (_refs$reference3 = refs.reference) === null || _refs$reference3 === void 0 ? void 0 : _refs$reference3.focus();
633
650
  }
634
651
  if (props.autoClose) {
635
652
  state.visible = false;
@@ -637,6 +654,10 @@ export var handleOptionSelect = function handleOptionSelect(_ref25) {
637
654
  } else {
638
655
  emit('update:modelValue', option.value);
639
656
  api.emitChange(option.value);
657
+ if (option.created) {
658
+ state.createdSelected = true;
659
+ state.createdLabel = option.value;
660
+ }
640
661
  state.visible = false;
641
662
  }
642
663
  state.isSilentBlur = byClick;
@@ -649,15 +670,13 @@ export var handleOptionSelect = function handleOptionSelect(_ref25) {
649
670
  });
650
671
  };
651
672
  };
652
- export var setSoftFocus = function setSoftFocus(_ref26) {
653
- var refs = _ref26.refs,
654
- state = _ref26.state;
673
+ export var setSoftFocus = function setSoftFocus(_ref27) {
674
+ var refs = _ref27.refs,
675
+ state = _ref27.state;
655
676
  return function () {
656
677
  state.softFocus = true;
657
678
  var input = refs.input || refs.reference;
658
- if (input) {
659
- input.focus();
660
- }
679
+ input === null || input === void 0 ? void 0 : input.focus();
661
680
  };
662
681
  };
663
682
  export var getValueIndex = function getValueIndex(props) {
@@ -681,28 +700,28 @@ export var getValueIndex = function getValueIndex(props) {
681
700
  }
682
701
  };
683
702
  };
684
- export var toggleMenu = function toggleMenu(_ref27) {
685
- var refs = _ref27.refs,
686
- state = _ref27.state,
687
- props = _ref27.props;
703
+ export var toggleMenu = function toggleMenu(_ref28) {
704
+ var refs = _ref28.refs,
705
+ state = _ref28.state,
706
+ props = _ref28.props;
688
707
  return function () {
689
708
  if (!state.selectDisabled) {
690
709
  !props.ignoreEnter && (state.visible = !state.visible);
691
- if (state.softFocus) {
710
+ if (state.softFocus && refs.reference) {
692
711
  !props.ignoreEnter && (state.visible = !state.visible);
693
712
  state.softFocus = false;
694
713
  }
695
714
  if (state.visible) {
696
715
  var dom = refs.input || refs.reference;
697
- dom.focus();
716
+ dom === null || dom === void 0 ? void 0 : dom.focus();
698
717
  }
699
718
  }
700
719
  };
701
720
  };
702
- export var selectOption = function selectOption(_ref28) {
703
- var api = _ref28.api,
704
- state = _ref28.state,
705
- props = _ref28.props;
721
+ export var selectOption = function selectOption(_ref29) {
722
+ var api = _ref29.api,
723
+ state = _ref29.state,
724
+ props = _ref29.props;
706
725
  return function () {
707
726
  if (!state.visible || props.hideDrop) {
708
727
  api.toggleMenu();
@@ -713,13 +732,13 @@ export var selectOption = function selectOption(_ref28) {
713
732
  }
714
733
  };
715
734
  };
716
- export var deleteSelected = function deleteSelected(_ref29) {
717
- var api = _ref29.api,
718
- constants = _ref29.constants,
719
- emit = _ref29.emit,
720
- props = _ref29.props,
721
- vm = _ref29.vm,
722
- state = _ref29.state;
735
+ export var deleteSelected = function deleteSelected(_ref30) {
736
+ var api = _ref30.api,
737
+ constants = _ref30.constants,
738
+ emit = _ref30.emit,
739
+ props = _ref30.props,
740
+ vm = _ref30.vm,
741
+ state = _ref30.state;
723
742
  return function (event) {
724
743
  event.stopPropagation();
725
744
  var value = props.multiple ? [] : '';
@@ -740,13 +759,13 @@ export var deleteSelected = function deleteSelected(_ref29) {
740
759
  emit('clear');
741
760
  };
742
761
  };
743
- export var deleteTag = function deleteTag(_ref30) {
744
- var api = _ref30.api,
745
- constants = _ref30.constants,
746
- emit = _ref30.emit,
747
- props = _ref30.props,
748
- state = _ref30.state,
749
- vm = _ref30.vm;
762
+ export var deleteTag = function deleteTag(_ref31) {
763
+ var api = _ref31.api,
764
+ constants = _ref31.constants,
765
+ emit = _ref31.emit,
766
+ props = _ref31.props,
767
+ state = _ref31.state,
768
+ vm = _ref31.vm;
750
769
  return function (event, tag) {
751
770
  var refs = vm.$refs;
752
771
  var isTree = props.renderType === constants.TYPE.Tree;
@@ -786,12 +805,12 @@ export var deleteTag = function deleteTag(_ref30) {
786
805
  event.stopPropagation();
787
806
  };
788
807
  };
789
- export var onInputChange = function onInputChange(_ref31) {
790
- var api = _ref31.api,
791
- props = _ref31.props,
792
- state = _ref31.state,
793
- constants = _ref31.constants,
794
- nextTick = _ref31.nextTick;
808
+ export var onInputChange = function onInputChange(_ref32) {
809
+ var api = _ref32.api,
810
+ props = _ref32.props,
811
+ state = _ref32.state,
812
+ constants = _ref32.constants,
813
+ nextTick = _ref32.nextTick;
795
814
  return function () {
796
815
  if (!props.delay) {
797
816
  if (props.filterable && state.query !== state.selectedLabel) {
@@ -818,16 +837,17 @@ export var onOptionDestroy = function onOptionDestroy(state) {
818
837
  }
819
838
  };
820
839
  };
821
- export var resetInputWidth = function resetInputWidth(_ref32) {
822
- var refs = _ref32.refs,
823
- state = _ref32.state;
840
+ export var resetInputWidth = function resetInputWidth(_ref33) {
841
+ var refs = _ref33.refs,
842
+ state = _ref33.state;
824
843
  return function () {
825
- state.inputWidth = refs.reference.$el.getBoundingClientRect().width;
844
+ var _refs$reference4, _refs$reference4$$el, _refs$reference4$$el$;
845
+ state.inputWidth = ((_refs$reference4 = refs.reference) === null || _refs$reference4 === void 0 ? void 0 : (_refs$reference4$$el = _refs$reference4.$el) === null || _refs$reference4$$el === void 0 ? void 0 : (_refs$reference4$$el$ = _refs$reference4$$el.getBoundingClientRect()) === null || _refs$reference4$$el$ === void 0 ? void 0 : _refs$reference4$$el$.width) || 0;
826
846
  };
827
847
  };
828
- export var handleResize = function handleResize(_ref33) {
829
- var api = _ref33.api,
830
- props = _ref33.props;
848
+ export var handleResize = function handleResize(_ref34) {
849
+ var api = _ref34.api,
850
+ props = _ref34.props;
831
851
  return function () {
832
852
  api.resetInputWidth();
833
853
  if (props.multiple) {
@@ -873,10 +893,10 @@ export var getValueKey = function getValueKey(props) {
873
893
  return getObj(item.value, props.valueKey);
874
894
  };
875
895
  };
876
- export var navigateOptions = function navigateOptions(_ref34) {
877
- var api = _ref34.api,
878
- nextTick = _ref34.nextTick,
879
- state = _ref34.state;
896
+ export var navigateOptions = function navigateOptions(_ref35) {
897
+ var api = _ref35.api,
898
+ nextTick = _ref35.nextTick,
899
+ state = _ref35.state;
880
900
  return function (direction) {
881
901
  var len = state.options.length;
882
902
  if (!state.visible) {
@@ -908,11 +928,11 @@ export var navigateOptions = function navigateOptions(_ref34) {
908
928
  }
909
929
  };
910
930
  };
911
- export var emptyText = function emptyText(_ref35) {
912
- var I18N = _ref35.I18N,
913
- props = _ref35.props,
914
- state = _ref35.state,
915
- t = _ref35.t;
931
+ export var emptyText = function emptyText(_ref36) {
932
+ var I18N = _ref36.I18N,
933
+ props = _ref36.props,
934
+ state = _ref36.state,
935
+ t = _ref36.t;
916
936
  return function () {
917
937
  if (props.loading) {
918
938
  return props.loadingText || t(I18N.loading);
@@ -926,7 +946,7 @@ export var emptyText = function emptyText(_ref35) {
926
946
  if (props.remote && state.query === '' && state.options.length === 0) {
927
947
  return false;
928
948
  }
929
- if (props.filterable && state.query && state.options.length > 0 && state.filteredOptionsCount === 0) {
949
+ if (state.filterOrSearch && state.query && state.options.length > 0 && state.filteredOptionsCount === 0) {
930
950
  return props.noMatchText || t(I18N.noMatch);
931
951
  }
932
952
  if (!state.options.some(function (option) {
@@ -957,15 +977,17 @@ var optmzApis = {
957
977
  if (optmzApis.exist(modelValue, multiple)) {
958
978
  var lastVal = multiple ? modelValue[modelValue.length - 1] : modelValue;
959
979
  for (var i = 0; i < options.length; i++) {
960
- if (!equal(lastVal, options[i])) continue;
980
+ if (!equal(lastVal, options[i])) {
981
+ continue;
982
+ }
961
983
  return i;
962
984
  }
963
985
  }
964
986
  return start;
965
987
  },
966
- getStartIndex: function getStartIndex(_ref36) {
967
- var props = _ref36.props,
968
- state = _ref36.state;
988
+ getStartIndex: function getStartIndex(_ref37) {
989
+ var props = _ref37.props,
990
+ state = _ref37.state;
969
991
  var options = props.options;
970
992
  var optimizeOpts = state.optimizeOpts,
971
993
  optimizeStore = state.optimizeStore;
@@ -973,17 +995,17 @@ var optmzApis = {
973
995
  var valueIndex = optimizeStore.valueIndex;
974
996
  return valueIndex + rSize > options.length ? options.length - rSize : valueIndex;
975
997
  },
976
- getViewStyle: function getViewStyle(_ref37) {
977
- var props = _ref37.props,
978
- state = _ref37.state;
998
+ getViewStyle: function getViewStyle(_ref38) {
999
+ var props = _ref38.props,
1000
+ state = _ref38.state;
979
1001
  var options = props.options;
980
1002
  var optimizeOpts = state.optimizeOpts;
981
1003
  var optionHeight = optimizeOpts.optionHeight;
982
1004
  return "height:".concat(optionHeight * options.length, "px");
983
1005
  },
984
- getStoreDatas: function getStoreDatas(_ref38) {
985
- var props = _ref38.props,
986
- state = _ref38.state;
1006
+ getStoreDatas: function getStoreDatas(_ref39) {
1007
+ var props = _ref39.props,
1008
+ state = _ref39.state;
987
1009
  var options = props.options,
988
1010
  valueField = props.valueField,
989
1011
  modelValue = props.modelValue,
@@ -1022,39 +1044,39 @@ var optmzApis = {
1022
1044
  createMacro: function createMacro(cb) {
1023
1045
  return setTimeout(cb);
1024
1046
  },
1025
- setScrollTop: function setScrollTop(_ref39) {
1026
- var refs = _ref39.refs,
1027
- state = _ref39.state;
1047
+ setScrollTop: function setScrollTop(_ref40) {
1048
+ var refs = _ref40.refs,
1049
+ state = _ref40.state;
1028
1050
  var optimizeOpts = state.optimizeOpts,
1029
1051
  optimizeStore = state.optimizeStore;
1030
1052
  var optionHeight = optimizeOpts.optionHeight;
1031
1053
  var wrap = optmzApis.queryWrap(refs);
1032
1054
  wrap.scrollTop = optionHeight * optimizeStore.valueIndex;
1033
1055
  },
1034
- setValueIndex: function setValueIndex(_ref40) {
1035
- var props = _ref40.props,
1036
- state = _ref40.state;
1056
+ setValueIndex: function setValueIndex(_ref41) {
1057
+ var props = _ref41.props,
1058
+ state = _ref41.state;
1037
1059
  return state.optimizeStore.valueIndex = optmzApis.getValueIndex(props);
1038
1060
  },
1039
- addScrollListener: function addScrollListener(_ref41) {
1040
- var api = _ref41.api,
1041
- refs = _ref41.refs,
1042
- state = _ref41.state;
1061
+ addScrollListener: function addScrollListener(_ref42) {
1062
+ var api = _ref42.api,
1063
+ refs = _ref42.refs,
1064
+ state = _ref42.state;
1043
1065
  var optimizeStore = state.optimizeStore;
1044
1066
  var wrap = optmzApis.queryWrap(refs);
1045
1067
  !optimizeStore.bind && wrap.addEventListener('scroll', api.getScrollListener) && (optimizeStore.bind = true);
1046
1068
  },
1047
- removeScrollListener: function removeScrollListener(_ref42) {
1048
- var api = _ref42.api,
1049
- refs = _ref42.refs,
1050
- state = _ref42.state;
1069
+ removeScrollListener: function removeScrollListener(_ref43) {
1070
+ var api = _ref43.api,
1071
+ refs = _ref43.refs,
1072
+ state = _ref43.state;
1051
1073
  var optimizeStore = state.optimizeStore;
1052
1074
  var wrap = optmzApis.queryWrap(refs);
1053
1075
  optimizeStore.bind && wrap.removeEventListener('scroll', api.getScrollListener) && (optimizeStore.bind = false);
1054
1076
  },
1055
- isFirstPage: function isFirstPage(_ref43) {
1056
- var props = _ref43.props,
1057
- state = _ref43.state;
1077
+ isFirstPage: function isFirstPage(_ref44) {
1078
+ var props = _ref44.props,
1079
+ state = _ref44.state;
1058
1080
  var optimizeStore = state.optimizeStore;
1059
1081
  var datas = optimizeStore.datas;
1060
1082
  var options = props.options;
@@ -1063,10 +1085,10 @@ var optmzApis = {
1063
1085
  natural: function natural(val) {
1064
1086
  return val < 0 ? 0 : val;
1065
1087
  },
1066
- updateItems: function updateItems(_ref44) {
1067
- var refs = _ref44.refs,
1068
- state = _ref44.state,
1069
- itemFn = _ref44.itemFn;
1088
+ updateItems: function updateItems(_ref45) {
1089
+ var refs = _ref45.refs,
1090
+ state = _ref45.state,
1091
+ itemFn = _ref45.itemFn;
1070
1092
  var optimizeOpts = state.optimizeOpts;
1071
1093
  var optionHeight = optimizeOpts.optionHeight;
1072
1094
  var items = optmzApis.queryItems(refs);
@@ -1076,10 +1098,10 @@ var optmzApis = {
1076
1098
  item.style.top = flag ? "-".concat(optionHeight, "px") : "".concat(itemFn(i), "px");
1077
1099
  }
1078
1100
  },
1079
- process: function process(_ref45) {
1080
- var props = _ref45.props,
1081
- start = _ref45.start,
1082
- state = _ref45.state;
1101
+ process: function process(_ref46) {
1102
+ var props = _ref46.props,
1103
+ start = _ref46.start,
1104
+ state = _ref46.state;
1083
1105
  var optimizeStore = state.optimizeStore;
1084
1106
  optimizeStore.startIndex = typeof start !== 'undefined' ? start : optmzApis.getStartIndex({
1085
1107
  props: props,
@@ -1095,13 +1117,13 @@ var optmzApis = {
1095
1117
  });
1096
1118
  }
1097
1119
  };
1098
- export var watchValue = function watchValue(_ref46) {
1099
- var api = _ref46.api,
1100
- constants = _ref46.constants,
1101
- dispatch = _ref46.dispatch,
1102
- props = _ref46.props,
1103
- refs = _ref46.refs,
1104
- state = _ref46.state;
1120
+ export var watchValue = function watchValue(_ref47) {
1121
+ var api = _ref47.api,
1122
+ constants = _ref47.constants,
1123
+ dispatch = _ref47.dispatch,
1124
+ props = _ref47.props,
1125
+ refs = _ref47.refs,
1126
+ state = _ref47.state;
1105
1127
  return function (value, oldValue) {
1106
1128
  if (props.multiple) {
1107
1129
  api.resetInputHeight();
@@ -1110,7 +1132,7 @@ export var watchValue = function watchValue(_ref46) {
1110
1132
  } else {
1111
1133
  state.currentPlaceholder = state.cachedPlaceHolder;
1112
1134
  }
1113
- if (props.filterable && !props.reserveKeyword) {
1135
+ if (state.filterOrSearch && !props.reserveKeyword) {
1114
1136
  props.renderType !== constants.TYPE.Grid && (state.query = '');
1115
1137
  api.handleQueryChange(state.query);
1116
1138
  }
@@ -1128,10 +1150,10 @@ export var watchValue = function watchValue(_ref46) {
1128
1150
  });
1129
1151
  };
1130
1152
  };
1131
- export var calcOverFlow = function calcOverFlow(_ref47) {
1132
- var refs = _ref47.refs,
1133
- props = _ref47.props,
1134
- state = _ref47.state;
1153
+ export var calcOverFlow = function calcOverFlow(_ref48) {
1154
+ var refs = _ref48.refs,
1155
+ props = _ref48.props,
1156
+ state = _ref48.state;
1135
1157
  return function (height) {
1136
1158
  if (!props.multiple || !props.showOverflowTooltip) {
1137
1159
  return;
@@ -1171,10 +1193,10 @@ export var calcOverFlow = function calcOverFlow(_ref47) {
1171
1193
  state.inputWidth = inputWidth;
1172
1194
  };
1173
1195
  };
1174
- var postOperOfToVisible = function postOperOfToVisible(_ref48) {
1175
- var props = _ref48.props,
1176
- state = _ref48.state,
1177
- constants = _ref48.constants;
1196
+ var postOperOfToVisible = function postOperOfToVisible(_ref49) {
1197
+ var props = _ref49.props,
1198
+ state = _ref49.state,
1199
+ constants = _ref49.constants;
1178
1200
  if (props.multiple) {
1179
1201
  return;
1180
1202
  }
@@ -1191,25 +1213,24 @@ var postOperOfToVisible = function postOperOfToVisible(_ref48) {
1191
1213
  state.query = state.selectedLabel;
1192
1214
  }
1193
1215
  }
1194
- if (props.filterable) {
1216
+ if (state.filterOrSearch) {
1195
1217
  state.currentPlaceholder = state.cachedPlaceHolder;
1196
1218
  }
1197
1219
  }
1198
1220
  };
1199
- export var toVisible = function toVisible(_ref49) {
1200
- var constants = _ref49.constants,
1201
- state = _ref49.state,
1202
- props = _ref49.props,
1203
- vm = _ref49.vm,
1204
- api = _ref49.api,
1205
- nextTick = _ref49.nextTick;
1221
+ export var toVisible = function toVisible(_ref50) {
1222
+ var constants = _ref50.constants,
1223
+ state = _ref50.state,
1224
+ props = _ref50.props,
1225
+ vm = _ref50.vm,
1226
+ api = _ref50.api,
1227
+ nextTick = _ref50.nextTick;
1206
1228
  return function () {
1229
+ var _refs$input2;
1207
1230
  var refs = vm.$refs;
1208
1231
  state.selectEmitter.emit(constants.EVENT_NAME.destroyPopper);
1209
1232
  props.remote && props.dropOnlySearch && (state.showWarper = false);
1210
- if (refs.input) {
1211
- refs.input.blur();
1212
- }
1233
+ (_refs$input2 = refs.input) === null || _refs$input2 === void 0 ? void 0 : _refs$input2.blur();
1213
1234
  state.query = '';
1214
1235
  state.selectedLabel = '';
1215
1236
  state.inputLength = 20;
@@ -1232,20 +1253,21 @@ export var toVisible = function toVisible(_ref49) {
1232
1253
  });
1233
1254
  };
1234
1255
  };
1235
- export var toHide = function toHide(_ref50) {
1236
- var constants = _ref50.constants,
1237
- state = _ref50.state,
1238
- props = _ref50.props,
1239
- vm = _ref50.vm,
1240
- api = _ref50.api;
1256
+ export var toHide = function toHide(_ref51) {
1257
+ var constants = _ref51.constants,
1258
+ state = _ref51.state,
1259
+ props = _ref51.props,
1260
+ vm = _ref51.vm,
1261
+ api = _ref51.api;
1241
1262
  return function () {
1242
1263
  var refs = vm.$refs;
1243
1264
  state.selectEmitter.emit(constants.COMPONENT_NAME.SelectDropdown, constants.EVENT_NAME.updatePopper);
1244
- if (props.filterable) {
1245
- state.query = props.remote ? '' : props.renderType !== constants.TYPE.Tree ? state.selectedLabel : '';
1265
+ if (state.filterOrSearch) {
1266
+ state.query = props.remote || props.searchable ? '' : props.renderType !== constants.TYPE.Tree ? state.selectedLabel : '';
1246
1267
  state.previousQuery !== state.query && api.handleQueryChange(state.query);
1247
1268
  if (props.multiple) {
1248
- refs.input.focus();
1269
+ var _refs$input3, _refs$reference5;
1270
+ props.filterable ? (_refs$input3 = refs.input) === null || _refs$input3 === void 0 ? void 0 : _refs$input3.focus() : (_refs$reference5 = refs.reference) === null || _refs$reference5 === void 0 ? void 0 : _refs$reference5.focus();
1249
1271
  } else {
1250
1272
  if (!props.remote) {
1251
1273
  state.selectEmitter.emit(constants.EVENT_NAME.queryChange, '');
@@ -1260,20 +1282,20 @@ export var toHide = function toHide(_ref50) {
1260
1282
  if (refs.selectGrid) {
1261
1283
  refs.selectGrid.clearSelection();
1262
1284
  refs.selectGrid.setSelection(state.selected, true);
1263
- if (props.filterable && typeof props.filterMethod === 'function') {
1285
+ if (state.filterOrSearch && typeof props.filterMethod === 'function') {
1264
1286
  refs.selectGrid.handleTableData(true);
1265
- } else if (props.filterable && props.remote && typeof props.remoteMethod === 'function') {
1287
+ } else if (state.filterOrSearch && props.remote && typeof props.remoteMethod === 'function') {
1266
1288
  refs.selectGrid.handleTableData();
1267
1289
  }
1268
1290
  }
1269
1291
  };
1270
1292
  };
1271
- export var watchVisible = function watchVisible(_ref51) {
1272
- var api = _ref51.api,
1273
- constants = _ref51.constants,
1274
- emit = _ref51.emit,
1275
- state = _ref51.state,
1276
- refs = _ref51.refs;
1293
+ export var watchVisible = function watchVisible(_ref52) {
1294
+ var api = _ref52.api,
1295
+ constants = _ref52.constants,
1296
+ emit = _ref52.emit,
1297
+ state = _ref52.state,
1298
+ refs = _ref52.refs;
1277
1299
  return function (value) {
1278
1300
  if (api.onCopying()) {
1279
1301
  return;
@@ -1294,13 +1316,13 @@ export var watchVisible = function watchVisible(_ref51) {
1294
1316
  }
1295
1317
  };
1296
1318
  };
1297
- export var watchOptions = function watchOptions(_ref52) {
1298
- var api = _ref52.api,
1299
- constants = _ref52.constants,
1300
- nextTick = _ref52.nextTick,
1301
- parent = _ref52.parent,
1302
- props = _ref52.props,
1303
- state = _ref52.state;
1319
+ export var watchOptions = function watchOptions(_ref53) {
1320
+ var api = _ref53.api,
1321
+ constants = _ref53.constants,
1322
+ nextTick = _ref53.nextTick,
1323
+ parent = _ref53.parent,
1324
+ props = _ref53.props,
1325
+ state = _ref53.state;
1304
1326
  return function () {
1305
1327
  if (typeof window === 'undefined') {
1306
1328
  return;
@@ -1316,15 +1338,15 @@ export var watchOptions = function watchOptions(_ref52) {
1316
1338
  api.setSelected();
1317
1339
  }
1318
1340
  });
1319
- if (props.defaultFirstOption && (props.filterable || props.remote) && state.filteredOptionsCount) {
1341
+ if (props.defaultFirstOption && (props.filterabl || props.searchable || props.remote) && state.filteredOptionsCount) {
1320
1342
  api.checkDefaultFirstOption();
1321
1343
  }
1322
1344
  };
1323
1345
  };
1324
- export var handleCopyClick = function handleCopyClick(_ref53) {
1325
- var parent = _ref53.parent,
1326
- props = _ref53.props,
1327
- state = _ref53.state;
1346
+ export var handleCopyClick = function handleCopyClick(_ref54) {
1347
+ var parent = _ref54.parent,
1348
+ props = _ref54.props,
1349
+ state = _ref54.state;
1328
1350
  return function () {
1329
1351
  var input = document.createElement('input');
1330
1352
  input.style.height = 0;
@@ -1339,15 +1361,15 @@ export var handleCopyClick = function handleCopyClick(_ref53) {
1339
1361
  parent.$el.removeChild(input);
1340
1362
  };
1341
1363
  };
1342
- export var selectChange = function selectChange(_ref54) {
1343
- var emit = _ref54.emit,
1344
- props = _ref54.props,
1345
- state = _ref54.state;
1346
- return function (_ref55) {
1347
- var $table = _ref55.$table,
1348
- selection = _ref55.selection,
1349
- checked = _ref55.checked,
1350
- row = _ref55.row;
1364
+ export var selectChange = function selectChange(_ref55) {
1365
+ var emit = _ref55.emit,
1366
+ props = _ref55.props,
1367
+ state = _ref55.state;
1368
+ return function (_ref56) {
1369
+ var $table = _ref56.$table,
1370
+ selection = _ref56.selection,
1371
+ checked = _ref56.checked,
1372
+ row = _ref56.row;
1351
1373
  var textField = props.textField,
1352
1374
  valueField = props.valueField;
1353
1375
  var remoteItem = function remoteItem(row) {
@@ -1375,9 +1397,9 @@ export var selectChange = function selectChange(_ref54) {
1375
1397
  emit('change', keys, state.selected);
1376
1398
  };
1377
1399
  };
1378
- export var getcheckedData = function getcheckedData(_ref56) {
1379
- var props = _ref56.props,
1380
- state = _ref56.state;
1400
+ export var getcheckedData = function getcheckedData(_ref57) {
1401
+ var props = _ref57.props,
1402
+ state = _ref57.state;
1381
1403
  return function () {
1382
1404
  var checkedKey = [];
1383
1405
  if (!Array.isArray(state.selected)) {
@@ -1390,12 +1412,12 @@ export var getcheckedData = function getcheckedData(_ref56) {
1390
1412
  }
1391
1413
  };
1392
1414
  };
1393
- export var radioChange = function radioChange(_ref57) {
1394
- var emit = _ref57.emit,
1395
- props = _ref57.props,
1396
- state = _ref57.state;
1397
- return function (_ref58) {
1398
- var row = _ref58.row;
1415
+ export var radioChange = function radioChange(_ref58) {
1416
+ var emit = _ref58.emit,
1417
+ props = _ref58.props,
1418
+ state = _ref58.state;
1419
+ return function (_ref59) {
1420
+ var row = _ref59.row;
1399
1421
  row.value = row[props.valueField];
1400
1422
  row.currentLabel = row[props.textField];
1401
1423
  state.selected = row;
@@ -1421,10 +1443,10 @@ export var getTreeData = function getTreeData(props) {
1421
1443
  return nodes;
1422
1444
  };
1423
1445
  };
1424
- export var treeNodeClick = function treeNodeClick(_ref59) {
1425
- var emit = _ref59.emit,
1426
- props = _ref59.props,
1427
- state = _ref59.state;
1446
+ export var treeNodeClick = function treeNodeClick(_ref60) {
1447
+ var emit = _ref60.emit,
1448
+ props = _ref60.props,
1449
+ state = _ref60.state;
1428
1450
  return function (data) {
1429
1451
  if (!props.multiple) {
1430
1452
  data.currentLabel = data[props.textField];
@@ -1436,13 +1458,12 @@ export var treeNodeClick = function treeNodeClick(_ref59) {
1436
1458
  }
1437
1459
  };
1438
1460
  };
1439
- export var nodeCheckClick = function nodeCheckClick(_ref60) {
1440
- var emit = _ref60.emit,
1441
- props = _ref60.props,
1442
- state = _ref60.state;
1443
- return function (data, _ref61) {
1444
- var checkedKeys = _ref61.checkedKeys,
1445
- checkedNodes = _ref61.checkedNodes;
1461
+ export var nodeCheckClick = function nodeCheckClick(_ref61) {
1462
+ var emit = _ref61.emit,
1463
+ props = _ref61.props;
1464
+ return function (data, _ref62) {
1465
+ var checkedKeys = _ref62.checkedKeys,
1466
+ checkedNodes = _ref62.checkedNodes;
1446
1467
  checkedNodes.forEach(function (node) {
1447
1468
  node.currentLabel = node[props.textField];
1448
1469
  node.value = node[props.valueField];
@@ -1451,30 +1472,30 @@ export var nodeCheckClick = function nodeCheckClick(_ref60) {
1451
1472
  emit('change', checkedKeys, checkedNodes);
1452
1473
  };
1453
1474
  };
1454
- export var nodeCollapse = function nodeCollapse(_ref62) {
1455
- var state = _ref62.state,
1456
- constants = _ref62.constants;
1475
+ export var nodeCollapse = function nodeCollapse(_ref63) {
1476
+ var state = _ref63.state,
1477
+ constants = _ref63.constants;
1457
1478
  return function () {
1458
1479
  setTimeout(function () {
1459
1480
  state.selectEmitter.emit(constants.EVENT_NAME.updatePopper);
1460
1481
  }, 310);
1461
1482
  };
1462
1483
  };
1463
- export var nodeExpand = function nodeExpand(_ref63) {
1464
- var state = _ref63.state,
1465
- constants = _ref63.constants;
1484
+ export var nodeExpand = function nodeExpand(_ref64) {
1485
+ var state = _ref64.state,
1486
+ constants = _ref64.constants;
1466
1487
  return function () {
1467
1488
  setTimeout(function () {
1468
1489
  state.selectEmitter.emit(constants.EVENT_NAME.updatePopper);
1469
1490
  }, 310);
1470
1491
  };
1471
1492
  };
1472
- export var debouncRquest = function debouncRquest(_ref64) {
1473
- var api = _ref64.api,
1474
- state = _ref64.state,
1475
- props = _ref64.props;
1493
+ export var debouncRquest = function debouncRquest(_ref65) {
1494
+ var api = _ref65.api,
1495
+ state = _ref65.state,
1496
+ props = _ref65.props;
1476
1497
  return debounce(props.delay, function () {
1477
- if (props.filterable && state.query !== state.selectedLabel) {
1498
+ if (state.filterOrSearch && state.query !== state.selectedLabel) {
1478
1499
  state.query = state.selectedLabel;
1479
1500
  api.handleQueryChange(state.query);
1480
1501
  }
@@ -1495,11 +1516,11 @@ export var getChildValue = function getChildValue() {
1495
1516
  return ids;
1496
1517
  };
1497
1518
  };
1498
- export var watchPropsOption = function watchPropsOption(_ref65) {
1499
- var constants = _ref65.constants,
1500
- parent = _ref65.parent,
1501
- props = _ref65.props,
1502
- state = _ref65.state;
1519
+ export var watchPropsOption = function watchPropsOption(_ref66) {
1520
+ var constants = _ref66.constants,
1521
+ parent = _ref66.parent,
1522
+ props = _ref66.props,
1523
+ state = _ref66.state;
1503
1524
  return function () {
1504
1525
  var renderType = props.renderType;
1505
1526
  var _props$treeOp = props.treeOp,
@@ -1529,9 +1550,9 @@ export var watchPropsOption = function watchPropsOption(_ref65) {
1529
1550
  });
1530
1551
  };
1531
1552
  };
1532
- export var buildSelectConfig = function buildSelectConfig(_ref66) {
1533
- var props = _ref66.props,
1534
- state = _ref66.state;
1553
+ export var buildSelectConfig = function buildSelectConfig(_ref67) {
1554
+ var props = _ref67.props,
1555
+ state = _ref67.state;
1535
1556
  return function () {
1536
1557
  var checkRowKeys = state.gridCheckedData;
1537
1558
  var selectConfig = props.selectConfig;
@@ -1540,9 +1561,9 @@ export var buildSelectConfig = function buildSelectConfig(_ref66) {
1540
1561
  });
1541
1562
  };
1542
1563
  };
1543
- export var buildRadioConfig = function buildRadioConfig(_ref67) {
1544
- var props = _ref67.props,
1545
- state = _ref67.state;
1564
+ export var buildRadioConfig = function buildRadioConfig(_ref68) {
1565
+ var props = _ref68.props,
1566
+ state = _ref68.state;
1546
1567
  return function () {
1547
1568
  var checkRowKey = state.currentKey;
1548
1569
  var highlight = true;
@@ -1553,8 +1574,8 @@ export var buildRadioConfig = function buildRadioConfig(_ref67) {
1553
1574
  });
1554
1575
  };
1555
1576
  };
1556
- export var onMouseenterNative = function onMouseenterNative(_ref68) {
1557
- var state = _ref68.state;
1577
+ export var onMouseenterNative = function onMouseenterNative(_ref69) {
1578
+ var state = _ref69.state;
1558
1579
  return function () {
1559
1580
  state.inputHovering = true;
1560
1581
  if (state.searchSingleCopy && state.selectedLabel) {
@@ -1562,8 +1583,8 @@ export var onMouseenterNative = function onMouseenterNative(_ref68) {
1562
1583
  }
1563
1584
  };
1564
1585
  };
1565
- export var onMouseleaveNative = function onMouseleaveNative(_ref69) {
1566
- var state = _ref69.state;
1586
+ export var onMouseleaveNative = function onMouseleaveNative(_ref70) {
1587
+ var state = _ref70.state;
1567
1588
  return function () {
1568
1589
  state.inputHovering = false;
1569
1590
  if (state.searchSingleCopy && state.selectedLabel) {
@@ -1571,15 +1592,15 @@ export var onMouseleaveNative = function onMouseleaveNative(_ref69) {
1571
1592
  }
1572
1593
  };
1573
1594
  };
1574
- export var onCopying = function onCopying(_ref70) {
1575
- var state = _ref70.state,
1576
- refs = _ref70.refs;
1595
+ export var onCopying = function onCopying(_ref71) {
1596
+ var state = _ref71.state,
1597
+ refs = _ref71.refs;
1577
1598
  return function () {
1578
1599
  return state.searchSingleCopy && state.selectedLabel && refs.reference && refs.reference.hasSelection && refs.reference.hasSelection();
1579
1600
  };
1580
1601
  };
1581
- export var watchHoverIndex = function watchHoverIndex(_ref71) {
1582
- var state = _ref71.state;
1602
+ export var watchHoverIndex = function watchHoverIndex(_ref72) {
1603
+ var state = _ref72.state;
1583
1604
  return function (value) {
1584
1605
  if (typeof value === 'number' && value > -1) {
1585
1606
  state.hoverOption = state.options[value] || {};
@@ -1591,18 +1612,19 @@ export var watchHoverIndex = function watchHoverIndex(_ref71) {
1591
1612
  });
1592
1613
  };
1593
1614
  };
1594
- export var mounted = function mounted(_ref72) {
1595
- var api = _ref72.api,
1596
- parent = _ref72.parent,
1597
- state = _ref72.state,
1598
- props = _ref72.props,
1599
- refs = _ref72.refs;
1615
+ export var mounted = function mounted(_ref73) {
1616
+ var api = _ref73.api,
1617
+ parent = _ref73.parent,
1618
+ state = _ref73.state,
1619
+ props = _ref73.props,
1620
+ refs = _ref73.refs;
1600
1621
  return function () {
1601
1622
  var parentEl = parent.$el;
1602
- var inputEl = parentEl.querySelector('input.tiny-input__inner');
1603
- var inputClientRect = inputEl.getBoundingClientRect();
1623
+ var inputEl = parentEl.querySelector('input.tiny-input__inner') || parentEl.querySelector('input.tiny-mobile-input__inner');
1624
+ var inputClientRect = inputEl === null || inputEl === void 0 ? void 0 : inputEl.getBoundingClientRect();
1604
1625
  if (inputEl === document.activeElement) {
1605
- document.activeElement.blur();
1626
+ var _document$activeEleme;
1627
+ (_document$activeEleme = document.activeElement) === null || _document$activeEleme === void 0 ? void 0 : _document$activeEleme.blur();
1606
1628
  }
1607
1629
  state.completed = true;
1608
1630
  var sizeMap = {
@@ -1613,26 +1635,28 @@ export var mounted = function mounted(_ref72) {
1613
1635
  if (props.multiple && Array.isArray(props.modelValue) && props.modelValue.length > 0) {
1614
1636
  state.currentPlaceholder = '';
1615
1637
  }
1616
- state.initialInputHeight = inputClientRect.height || sizeMap[state.selectSize];
1617
- addResizeListener(parentEl, api.handleResize);
1618
- if (refs.tags) {
1619
- addResizeListener(refs.tags, api.resetInputHeight);
1620
- }
1621
- if (props.remote && props.multiple) {
1622
- api.resetInputHeight();
1638
+ if (inputClientRect) {
1639
+ state.initialInputHeight = inputClientRect.height || sizeMap[state.selectSize];
1640
+ addResizeListener(parentEl, api.handleResize);
1641
+ if (refs.tags) {
1642
+ addResizeListener(refs.tags, api.resetInputHeight);
1643
+ }
1644
+ if (props.remote && props.multiple) {
1645
+ api.resetInputHeight();
1646
+ }
1647
+ state.inputWidth = inputClientRect.width;
1623
1648
  }
1624
- state.inputWidth = inputClientRect.width;
1625
1649
  api.setSelected();
1626
1650
  if (props.dataset) {
1627
1651
  api.watchPropsOption();
1628
1652
  }
1629
1653
  };
1630
1654
  };
1631
- export var unMount = function unMount(_ref73) {
1632
- var api = _ref73.api,
1633
- parent = _ref73.parent,
1634
- refs = _ref73.refs,
1635
- state = _ref73.state;
1655
+ export var unMount = function unMount(_ref74) {
1656
+ var api = _ref74.api,
1657
+ parent = _ref74.parent,
1658
+ refs = _ref74.refs,
1659
+ state = _ref74.state;
1636
1660
  return function () {
1637
1661
  if (parent.$el && api.handleResize) {
1638
1662
  removeResizeListener(parent.$el, api.handleResize);
@@ -1648,9 +1672,9 @@ export var unMount = function unMount(_ref73) {
1648
1672
  });
1649
1673
  };
1650
1674
  };
1651
- export var computeOptimizeOpts = function computeOptimizeOpts(_ref74) {
1652
- var props = _ref74.props,
1653
- state = _ref74.state;
1675
+ export var computeOptimizeOpts = function computeOptimizeOpts(_ref75) {
1676
+ var props = _ref75.props,
1677
+ state = _ref75.state;
1654
1678
  return function () {
1655
1679
  var optimization = props.optimization;
1656
1680
  var baseOpts = {
@@ -1671,11 +1695,11 @@ export var computeOptimizeOpts = function computeOptimizeOpts(_ref74) {
1671
1695
  }
1672
1696
  };
1673
1697
  };
1674
- export var watchOptimizeOpts = function watchOptimizeOpts(_ref75) {
1675
- var api = _ref75.api,
1676
- props = _ref75.props,
1677
- refs = _ref75.refs,
1678
- state = _ref75.state;
1698
+ export var watchOptimizeOpts = function watchOptimizeOpts(_ref76) {
1699
+ var api = _ref76.api,
1700
+ props = _ref76.props,
1701
+ refs = _ref76.refs,
1702
+ state = _ref76.state;
1679
1703
  return function () {
1680
1704
  var optimizeOpts = state.optimizeOpts,
1681
1705
  optimizeStore = state.optimizeStore;
@@ -1712,10 +1736,10 @@ export var watchOptimizeOpts = function watchOptimizeOpts(_ref75) {
1712
1736
  }
1713
1737
  };
1714
1738
  };
1715
- export var getScrollListener = function getScrollListener(_ref76) {
1716
- var props = _ref76.props,
1717
- refs = _ref76.refs,
1718
- state = _ref76.state;
1739
+ export var getScrollListener = function getScrollListener(_ref77) {
1740
+ var props = _ref77.props,
1741
+ refs = _ref77.refs,
1742
+ state = _ref77.state;
1719
1743
  var listener = function listener() {
1720
1744
  var options = props.options;
1721
1745
  var optimizeOpts = state.optimizeOpts;
@@ -1753,9 +1777,9 @@ export var computeCollapseTags = function computeCollapseTags(props) {
1753
1777
  return props.collapseTags;
1754
1778
  };
1755
1779
  };
1756
- export var computeMultipleLimit = function computeMultipleLimit(_ref77) {
1757
- var props = _ref77.props,
1758
- state = _ref77.state;
1780
+ export var computeMultipleLimit = function computeMultipleLimit(_ref78) {
1781
+ var props = _ref78.props,
1782
+ state = _ref78.state;
1759
1783
  return function () {
1760
1784
  var multipleLimit = props.multipleLimit,
1761
1785
  multiple = props.multiple;