bkui-vue 0.0.2-beta.75 → 0.0.2-beta.78
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/dist/index.cjs.js +48 -48
- package/dist/index.esm.js +8323 -8377
- package/dist/index.umd.js +48 -48
- package/lib/affix/index.js +5 -3
- package/lib/alert/index.js +2 -3
- package/lib/backtop/index.js +2 -2
- package/lib/badge/index.js +3 -4
- package/lib/breadcrumb/index.js +4 -4
- package/lib/button/index.js +6 -6
- package/lib/card/index.js +16 -5
- package/lib/cascader/index.js +70 -53
- package/lib/checkbox/index.js +4 -4
- package/lib/collapse/index.js +58 -6
- package/lib/color-picker/index.js +14 -11
- package/lib/config-provider/index.js +51 -3
- package/lib/container/index.js +55 -7
- package/lib/date-picker/index.js +202 -156
- package/lib/dialog/index.js +140 -431
- package/lib/directives/index.js +59 -19
- package/lib/dropdown/index.js +8 -8
- package/lib/exception/index.js +5 -5
- package/lib/form/index.js +22 -16
- package/lib/icon/angle-double-down-line.js +84 -374
- package/lib/icon/angle-double-left-line.js +84 -374
- package/lib/icon/angle-double-left.js +84 -374
- package/lib/icon/angle-double-right-line.js +84 -374
- package/lib/icon/angle-double-right.js +84 -374
- package/lib/icon/angle-double-up-line.js +84 -374
- package/lib/icon/angle-down-fill.js +84 -374
- package/lib/icon/angle-down-line.js +84 -374
- package/lib/icon/angle-down.js +84 -374
- package/lib/icon/angle-left.js +84 -374
- package/lib/icon/angle-right.js +84 -374
- package/lib/icon/angle-up-fill.js +84 -374
- package/lib/icon/angle-up.js +84 -374
- package/lib/icon/archive-fill.js +84 -374
- package/lib/icon/arrows-left.js +84 -374
- package/lib/icon/arrows-right.js +84 -374
- package/lib/icon/assistant.js +84 -374
- package/lib/icon/audio-fill.js +84 -374
- package/lib/icon/bk.js +84 -374
- package/lib/icon/circle.js +84 -374
- package/lib/icon/close-line.js +84 -374
- package/lib/icon/close.js +84 -374
- package/lib/icon/code.js +84 -374
- package/lib/icon/cog-shape.js +84 -374
- package/lib/icon/collapse-left.js +84 -374
- package/lib/icon/copy-shape.js +84 -374
- package/lib/icon/copy.js +84 -374
- package/lib/icon/data-shape.js +84 -374
- package/lib/icon/del.js +84 -374
- package/lib/icon/doc-fill.js +84 -374
- package/lib/icon/done.js +84 -374
- package/lib/icon/down-shape.js +84 -374
- package/lib/icon/down-small.js +84 -374
- package/lib/icon/edit-line.js +84 -374
- package/lib/icon/ellipsis.js +84 -374
- package/lib/icon/enlarge-line.js +84 -374
- package/lib/icon/error.js +84 -374
- package/lib/icon/excel-fill.js +84 -374
- package/lib/icon/exclamation-circle-shape.js +84 -374
- package/lib/icon/eye.js +84 -374
- package/lib/icon/filliscreen-line.js +84 -374
- package/lib/icon/fix-line.js +84 -374
- package/lib/icon/fix-shape.js +84 -374
- package/lib/icon/folder-open.js +84 -374
- package/lib/icon/folder-shape-open.js +84 -374
- package/lib/icon/folder-shape.js +84 -374
- package/lib/icon/folder.js +84 -374
- package/lib/icon/funnel.js +84 -374
- package/lib/icon/help-document-fill.js +84 -374
- package/lib/icon/help-fill.js +84 -374
- package/lib/icon/help.js +84 -374
- package/lib/icon/image-fill.js +131 -382
- package/lib/icon/img-error.js +131 -382
- package/lib/icon/img-placehoulder.js +131 -382
- package/lib/icon/index.js +563 -531
- package/lib/icon/info-line.js +131 -382
- package/lib/icon/info.js +131 -382
- package/lib/icon/left-shape.js +131 -382
- package/lib/icon/left-turn-line.js +131 -382
- package/lib/icon/narrow-line.js +131 -382
- package/lib/icon/original.js +131 -382
- package/lib/icon/pdf-fill.js +131 -382
- package/lib/icon/play-shape.js +131 -382
- package/lib/icon/plus.js +131 -382
- package/lib/icon/ppt-fill.js +131 -382
- package/lib/icon/qq.js +131 -382
- package/lib/icon/right-shape.js +131 -382
- package/lib/icon/right-turn-line.js +131 -382
- package/lib/icon/search.js +131 -382
- package/lib/icon/share.js +131 -382
- package/lib/icon/spinner.js +131 -382
- package/lib/icon/success.js +131 -382
- package/lib/icon/switcher-loading.js +131 -382
- package/lib/icon/text-file.js +131 -382
- package/lib/icon/text-fill.js +131 -382
- package/lib/icon/transfer.js +131 -382
- package/lib/icon/tree-application-shape.js +131 -382
- package/lib/icon/unfull-screen.js +131 -382
- package/lib/icon/unvisible.js +131 -382
- package/lib/icon/up-shape.js +131 -382
- package/lib/icon/upload.js +131 -382
- package/lib/icon/video-fill.js +131 -382
- package/lib/icon/warn.js +131 -382
- package/lib/icon/weixin-pro.js +131 -382
- package/lib/icon/weixin.js +131 -382
- package/lib/image/index.js +57 -9
- package/lib/info-box/index.js +145 -436
- package/lib/input/index.js +105 -415
- package/lib/link/index.js +2 -2
- package/lib/loading/index.js +18 -16
- package/lib/menu/index.js +22 -23
- package/lib/message/index.js +62 -57
- package/lib/modal/index.js +77 -18
- package/lib/navigation/index.js +11 -11
- package/lib/notify/index.js +51 -48
- package/lib/overflow-title/index.js +6 -5
- package/lib/plugin-popover/index.js +202 -364
- package/lib/popover/index.js +202 -364
- package/lib/process/index.js +55 -395
- package/lib/progress/index.js +51 -48
- package/lib/radio/index.js +4 -4
- package/lib/rate/index.js +2 -2
- package/lib/resize-layout/index.js +4 -5
- package/lib/search-select/index.js +179 -486
- package/lib/select/index.js +148 -479
- package/lib/shared/index.js +176 -352
- package/lib/sideslider/index.js +82 -373
- package/lib/slider/index.js +48 -386
- package/lib/steps/index.js +67 -405
- package/lib/swiper/index.js +10 -10
- package/lib/switcher/index.js +2 -2
- package/lib/tab/index.js +63 -8
- package/lib/table/index.js +262 -424
- package/lib/table-column/index.js +7 -6
- package/lib/tag/index.js +2 -2
- package/lib/tag-input/index.js +29 -21
- package/lib/timeline/index.js +6 -7
- package/lib/transfer/index.js +8 -8
- package/lib/tree/index.js +139 -319
- package/lib/upload/index.js +104 -423
- package/lib/virtual-render/index.js +60 -16
- package/package.json +2 -1
package/lib/select/index.js
CHANGED
@@ -481,7 +481,7 @@ function _defineProperty(obj, key, value) {
|
|
481
481
|
;// CONCATENATED MODULE: external "vue"
|
482
482
|
var external_vue_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
483
483
|
var external_vue_y = x => () => x
|
484
|
-
const external_vue_namespaceObject = external_vue_x({ ["computed"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.computed, ["createTextVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.createTextVNode, ["createVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.createVNode, ["customRef"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.customRef, ["defineComponent"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.defineComponent, ["getCurrentInstance"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.getCurrentInstance, ["inject"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.inject, ["
|
484
|
+
const external_vue_namespaceObject = external_vue_x({ ["computed"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.computed, ["createTextVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.createTextVNode, ["createVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.createVNode, ["customRef"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.customRef, ["defineComponent"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.defineComponent, ["getCurrentInstance"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.getCurrentInstance, ["inject"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.inject, ["mergeProps"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.mergeProps, ["onBeforeMount"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.onBeforeMount, ["onBeforeUnmount"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.onBeforeUnmount, ["onMounted"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.onMounted, ["provide"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.provide, ["reactive"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.reactive, ["ref"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.ref, ["toRef"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.toRef, ["toRefs"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.toRefs, ["vModelText"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.vModelText, ["vShow"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.vShow, ["watch"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.watch, ["withDirectives"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.withDirectives });
|
485
485
|
;// CONCATENATED MODULE: external "lodash"
|
486
486
|
var external_lodash_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
487
487
|
var external_lodash_y = x => () => x
|
@@ -498,381 +498,40 @@ const external_config_provider_namespaceObject = external_config_provider_x({ ["
|
|
498
498
|
var external_icon_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
499
499
|
var external_icon_y = x => () => x
|
500
500
|
const external_icon_namespaceObject = external_icon_x({ ["AngleUp"]: () => __WEBPACK_EXTERNAL_MODULE__icon_85385c3e__.AngleUp, ["AngleUpFill"]: () => __WEBPACK_EXTERNAL_MODULE__icon_85385c3e__.AngleUpFill, ["Close"]: () => __WEBPACK_EXTERNAL_MODULE__icon_85385c3e__.Close, ["Done"]: () => __WEBPACK_EXTERNAL_MODULE__icon_85385c3e__.Done, ["Search"]: () => __WEBPACK_EXTERNAL_MODULE__icon_85385c3e__.Search });
|
501
|
-
|
502
|
-
|
503
|
-
var regenerator_default = /*#__PURE__*/__webpack_require__.n(regenerator);
|
504
|
-
;// CONCATENATED MODULE: ../../node_modules/tslib/tslib.es6.mjs
|
505
|
-
/******************************************************************************
|
506
|
-
Copyright (c) Microsoft Corporation.
|
507
|
-
|
508
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
509
|
-
purpose with or without fee is hereby granted.
|
510
|
-
|
511
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
512
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
513
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
514
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
515
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
516
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
517
|
-
PERFORMANCE OF THIS SOFTWARE.
|
518
|
-
***************************************************************************** */
|
519
|
-
/* global Reflect, Promise, SuppressedError, Symbol */
|
520
|
-
|
521
|
-
var extendStatics = function(d, b) {
|
522
|
-
extendStatics = Object.setPrototypeOf ||
|
523
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
524
|
-
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
525
|
-
return extendStatics(d, b);
|
526
|
-
};
|
527
|
-
|
528
|
-
function __extends(d, b) {
|
529
|
-
if (typeof b !== "function" && b !== null)
|
530
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
531
|
-
extendStatics(d, b);
|
532
|
-
function __() { this.constructor = d; }
|
533
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
534
|
-
}
|
535
|
-
|
536
|
-
var __assign = function() {
|
537
|
-
__assign = Object.assign || function __assign(t) {
|
538
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
539
|
-
s = arguments[i];
|
540
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
541
|
-
}
|
542
|
-
return t;
|
543
|
-
}
|
544
|
-
return __assign.apply(this, arguments);
|
545
|
-
}
|
546
|
-
|
547
|
-
function __rest(s, e) {
|
548
|
-
var t = {};
|
549
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
550
|
-
t[p] = s[p];
|
551
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
552
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
553
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
554
|
-
t[p[i]] = s[p[i]];
|
555
|
-
}
|
556
|
-
return t;
|
557
|
-
}
|
558
|
-
|
559
|
-
function __decorate(decorators, target, key, desc) {
|
560
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
561
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
562
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
563
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
564
|
-
}
|
565
|
-
|
566
|
-
function __param(paramIndex, decorator) {
|
567
|
-
return function (target, key) { decorator(target, key, paramIndex); }
|
568
|
-
}
|
569
|
-
|
570
|
-
function __esDecorate(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {
|
571
|
-
function accept(f) { if (f !== void 0 && typeof f !== "function") throw new TypeError("Function expected"); return f; }
|
572
|
-
var kind = contextIn.kind, key = kind === "getter" ? "get" : kind === "setter" ? "set" : "value";
|
573
|
-
var target = !descriptorIn && ctor ? contextIn["static"] ? ctor : ctor.prototype : null;
|
574
|
-
var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});
|
575
|
-
var _, done = false;
|
576
|
-
for (var i = decorators.length - 1; i >= 0; i--) {
|
577
|
-
var context = {};
|
578
|
-
for (var p in contextIn) context[p] = p === "access" ? {} : contextIn[p];
|
579
|
-
for (var p in contextIn.access) context.access[p] = contextIn.access[p];
|
580
|
-
context.addInitializer = function (f) { if (done) throw new TypeError("Cannot add initializers after decoration has completed"); extraInitializers.push(accept(f || null)); };
|
581
|
-
var result = (0, decorators[i])(kind === "accessor" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context);
|
582
|
-
if (kind === "accessor") {
|
583
|
-
if (result === void 0) continue;
|
584
|
-
if (result === null || typeof result !== "object") throw new TypeError("Object expected");
|
585
|
-
if (_ = accept(result.get)) descriptor.get = _;
|
586
|
-
if (_ = accept(result.set)) descriptor.set = _;
|
587
|
-
if (_ = accept(result.init)) initializers.unshift(_);
|
588
|
-
}
|
589
|
-
else if (_ = accept(result)) {
|
590
|
-
if (kind === "field") initializers.unshift(_);
|
591
|
-
else descriptor[key] = _;
|
592
|
-
}
|
593
|
-
}
|
594
|
-
if (target) Object.defineProperty(target, contextIn.name, descriptor);
|
595
|
-
done = true;
|
596
|
-
};
|
597
|
-
|
598
|
-
function __runInitializers(thisArg, initializers, value) {
|
599
|
-
var useValue = arguments.length > 2;
|
600
|
-
for (var i = 0; i < initializers.length; i++) {
|
601
|
-
value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);
|
602
|
-
}
|
603
|
-
return useValue ? value : void 0;
|
604
|
-
};
|
605
|
-
|
606
|
-
function __propKey(x) {
|
607
|
-
return typeof x === "symbol" ? x : "".concat(x);
|
608
|
-
};
|
609
|
-
|
610
|
-
function __setFunctionName(f, name, prefix) {
|
611
|
-
if (typeof name === "symbol") name = name.description ? "[".concat(name.description, "]") : "";
|
612
|
-
return Object.defineProperty(f, "name", { configurable: true, value: prefix ? "".concat(prefix, " ", name) : name });
|
613
|
-
};
|
614
|
-
|
615
|
-
function __metadata(metadataKey, metadataValue) {
|
616
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(metadataKey, metadataValue);
|
617
|
-
}
|
618
|
-
|
619
|
-
function __awaiter(thisArg, _arguments, P, generator) {
|
620
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
621
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
622
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
623
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
624
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
625
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
626
|
-
});
|
627
|
-
}
|
628
|
-
|
629
|
-
function __generator(thisArg, body) {
|
630
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
631
|
-
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
632
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
633
|
-
function step(op) {
|
634
|
-
if (f) throw new TypeError("Generator is already executing.");
|
635
|
-
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
636
|
-
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
637
|
-
if (y = 0, t) op = [op[0] & 2, t.value];
|
638
|
-
switch (op[0]) {
|
639
|
-
case 0: case 1: t = op; break;
|
640
|
-
case 4: _.label++; return { value: op[1], done: false };
|
641
|
-
case 5: _.label++; y = op[1]; op = [0]; continue;
|
642
|
-
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
643
|
-
default:
|
644
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
645
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
646
|
-
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
647
|
-
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
648
|
-
if (t[2]) _.ops.pop();
|
649
|
-
_.trys.pop(); continue;
|
650
|
-
}
|
651
|
-
op = body.call(thisArg, _);
|
652
|
-
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
653
|
-
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
654
|
-
}
|
655
|
-
}
|
656
|
-
|
657
|
-
var __createBinding = Object.create ? (function(o, m, k, k2) {
|
658
|
-
if (k2 === undefined) k2 = k;
|
659
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
660
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
661
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
662
|
-
}
|
663
|
-
Object.defineProperty(o, k2, desc);
|
664
|
-
}) : (function(o, m, k, k2) {
|
665
|
-
if (k2 === undefined) k2 = k;
|
666
|
-
o[k2] = m[k];
|
667
|
-
});
|
668
|
-
|
669
|
-
function __exportStar(m, o) {
|
670
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p);
|
671
|
-
}
|
672
|
-
|
673
|
-
function __values(o) {
|
674
|
-
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
675
|
-
if (m) return m.call(o);
|
676
|
-
if (o && typeof o.length === "number") return {
|
677
|
-
next: function () {
|
678
|
-
if (o && i >= o.length) o = void 0;
|
679
|
-
return { value: o && o[i++], done: !o };
|
680
|
-
}
|
681
|
-
};
|
682
|
-
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
683
|
-
}
|
684
|
-
|
685
|
-
function __read(o, n) {
|
686
|
-
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
687
|
-
if (!m) return o;
|
688
|
-
var i = m.call(o), r, ar = [], e;
|
501
|
+
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js
|
502
|
+
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
689
503
|
try {
|
690
|
-
|
691
|
-
|
692
|
-
catch (error) {
|
693
|
-
|
694
|
-
|
695
|
-
if (r && !r.done && (m = i["return"])) m.call(i);
|
696
|
-
}
|
697
|
-
finally { if (e) throw e.error; }
|
698
|
-
}
|
699
|
-
return ar;
|
700
|
-
}
|
701
|
-
|
702
|
-
/** @deprecated */
|
703
|
-
function __spread() {
|
704
|
-
for (var ar = [], i = 0; i < arguments.length; i++)
|
705
|
-
ar = ar.concat(__read(arguments[i]));
|
706
|
-
return ar;
|
707
|
-
}
|
708
|
-
|
709
|
-
/** @deprecated */
|
710
|
-
function __spreadArrays() {
|
711
|
-
for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;
|
712
|
-
for (var r = Array(s), k = 0, i = 0; i < il; i++)
|
713
|
-
for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
|
714
|
-
r[k] = a[j];
|
715
|
-
return r;
|
716
|
-
}
|
717
|
-
|
718
|
-
function __spreadArray(to, from, pack) {
|
719
|
-
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
720
|
-
if (ar || !(i in from)) {
|
721
|
-
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
722
|
-
ar[i] = from[i];
|
723
|
-
}
|
504
|
+
var info = gen[key](arg);
|
505
|
+
var value = info.value;
|
506
|
+
} catch (error) {
|
507
|
+
reject(error);
|
508
|
+
return;
|
724
509
|
}
|
725
|
-
|
726
|
-
|
727
|
-
|
728
|
-
|
729
|
-
return this instanceof __await ? (this.v = v, this) : new __await(v);
|
730
|
-
}
|
731
|
-
|
732
|
-
function __asyncGenerator(thisArg, _arguments, generator) {
|
733
|
-
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
|
734
|
-
var g = generator.apply(thisArg, _arguments || []), i, q = [];
|
735
|
-
return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
|
736
|
-
function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
|
737
|
-
function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }
|
738
|
-
function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
|
739
|
-
function fulfill(value) { resume("next", value); }
|
740
|
-
function reject(value) { resume("throw", value); }
|
741
|
-
function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }
|
742
|
-
}
|
743
|
-
|
744
|
-
function __asyncDelegator(o) {
|
745
|
-
var i, p;
|
746
|
-
return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
|
747
|
-
function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: false } : f ? f(v) : v; } : f; }
|
748
|
-
}
|
749
|
-
|
750
|
-
function __asyncValues(o) {
|
751
|
-
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
|
752
|
-
var m = o[Symbol.asyncIterator], i;
|
753
|
-
return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);
|
754
|
-
function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }
|
755
|
-
function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }
|
756
|
-
}
|
757
|
-
|
758
|
-
function __makeTemplateObject(cooked, raw) {
|
759
|
-
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
|
760
|
-
return cooked;
|
761
|
-
};
|
762
|
-
|
763
|
-
var __setModuleDefault = Object.create ? (function(o, v) {
|
764
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
765
|
-
}) : function(o, v) {
|
766
|
-
o["default"] = v;
|
767
|
-
};
|
768
|
-
|
769
|
-
function __importStar(mod) {
|
770
|
-
if (mod && mod.__esModule) return mod;
|
771
|
-
var result = {};
|
772
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
773
|
-
__setModuleDefault(result, mod);
|
774
|
-
return result;
|
775
|
-
}
|
776
|
-
|
777
|
-
function __importDefault(mod) {
|
778
|
-
return (mod && mod.__esModule) ? mod : { default: mod };
|
779
|
-
}
|
780
|
-
|
781
|
-
function __classPrivateFieldGet(receiver, state, kind, f) {
|
782
|
-
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
783
|
-
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
784
|
-
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
785
|
-
}
|
786
|
-
|
787
|
-
function __classPrivateFieldSet(receiver, state, value, kind, f) {
|
788
|
-
if (kind === "m") throw new TypeError("Private method is not writable");
|
789
|
-
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
|
790
|
-
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
791
|
-
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
792
|
-
}
|
793
|
-
|
794
|
-
function __classPrivateFieldIn(state, receiver) {
|
795
|
-
if (receiver === null || (typeof receiver !== "object" && typeof receiver !== "function")) throw new TypeError("Cannot use 'in' operator on non-object");
|
796
|
-
return typeof state === "function" ? receiver === state : state.has(receiver);
|
797
|
-
}
|
798
|
-
|
799
|
-
function __addDisposableResource(env, value, async) {
|
800
|
-
if (value !== null && value !== void 0) {
|
801
|
-
if (typeof value !== "object" && typeof value !== "function") throw new TypeError("Object expected.");
|
802
|
-
var dispose;
|
803
|
-
if (async) {
|
804
|
-
if (!Symbol.asyncDispose) throw new TypeError("Symbol.asyncDispose is not defined.");
|
805
|
-
dispose = value[Symbol.asyncDispose];
|
806
|
-
}
|
807
|
-
if (dispose === void 0) {
|
808
|
-
if (!Symbol.dispose) throw new TypeError("Symbol.dispose is not defined.");
|
809
|
-
dispose = value[Symbol.dispose];
|
810
|
-
}
|
811
|
-
if (typeof dispose !== "function") throw new TypeError("Object not disposable.");
|
812
|
-
env.stack.push({ value: value, dispose: dispose, async: async });
|
813
|
-
}
|
814
|
-
else if (async) {
|
815
|
-
env.stack.push({ async: true });
|
510
|
+
if (info.done) {
|
511
|
+
resolve(value);
|
512
|
+
} else {
|
513
|
+
Promise.resolve(value).then(_next, _throw);
|
816
514
|
}
|
817
|
-
return value;
|
818
515
|
}
|
819
|
-
|
820
|
-
|
821
|
-
|
822
|
-
|
823
|
-
|
824
|
-
|
825
|
-
function
|
826
|
-
|
827
|
-
env.error = env.hasError ? new _SuppressedError(e, env.error, "An error was suppressed during disposal.") : e;
|
828
|
-
env.hasError = true;
|
829
|
-
}
|
830
|
-
function next() {
|
831
|
-
while (env.stack.length) {
|
832
|
-
var rec = env.stack.pop();
|
833
|
-
try {
|
834
|
-
var result = rec.dispose && rec.dispose.call(rec.value);
|
835
|
-
if (rec.async) return Promise.resolve(result).then(next, function(e) { fail(e); return next(); });
|
516
|
+
function _asyncToGenerator(fn) {
|
517
|
+
return function () {
|
518
|
+
var self = this,
|
519
|
+
args = arguments;
|
520
|
+
return new Promise(function (resolve, reject) {
|
521
|
+
var gen = fn.apply(self, args);
|
522
|
+
function _next(value) {
|
523
|
+
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
|
836
524
|
}
|
837
|
-
|
838
|
-
|
525
|
+
function _throw(err) {
|
526
|
+
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
|
839
527
|
}
|
840
|
-
|
841
|
-
|
842
|
-
}
|
843
|
-
return next();
|
528
|
+
_next(undefined);
|
529
|
+
});
|
530
|
+
};
|
844
531
|
}
|
845
|
-
|
846
|
-
|
847
|
-
|
848
|
-
__assign,
|
849
|
-
__rest,
|
850
|
-
__decorate,
|
851
|
-
__param,
|
852
|
-
__metadata,
|
853
|
-
__awaiter,
|
854
|
-
__generator,
|
855
|
-
__createBinding,
|
856
|
-
__exportStar,
|
857
|
-
__values,
|
858
|
-
__read,
|
859
|
-
__spread,
|
860
|
-
__spreadArrays,
|
861
|
-
__spreadArray,
|
862
|
-
__await,
|
863
|
-
__asyncGenerator,
|
864
|
-
__asyncDelegator,
|
865
|
-
__asyncValues,
|
866
|
-
__makeTemplateObject,
|
867
|
-
__importStar,
|
868
|
-
__importDefault,
|
869
|
-
__classPrivateFieldGet,
|
870
|
-
__classPrivateFieldSet,
|
871
|
-
__classPrivateFieldIn,
|
872
|
-
__addDisposableResource,
|
873
|
-
__disposeResources,
|
874
|
-
});
|
875
|
-
|
532
|
+
// EXTERNAL MODULE: ../../node_modules/@babel/runtime/regenerator/index.js
|
533
|
+
var regenerator = __webpack_require__(2841);
|
534
|
+
var regenerator_default = /*#__PURE__*/__webpack_require__.n(regenerator);
|
876
535
|
;// CONCATENATED MODULE: ../../packages/select/src/common.ts
|
877
536
|
|
878
537
|
|
@@ -978,8 +637,8 @@ function usePopover(config, triggerRef) {
|
|
978
637
|
isPopoverShow.value = true;
|
979
638
|
};
|
980
639
|
var triggerRefResize = function triggerRefResize() {
|
981
|
-
var
|
982
|
-
popperWidth.value = Math.max((
|
640
|
+
var _triggerRef$value;
|
641
|
+
popperWidth.value = Math.max((_triggerRef$value = triggerRef.value) === null || _triggerRef$value === void 0 ? void 0 : _triggerRef$value.offsetWidth, popoverMinWidth);
|
983
642
|
};
|
984
643
|
(0,external_vue_namespaceObject.onMounted)(function () {
|
985
644
|
if (!triggerRef.value) return;
|
@@ -987,7 +646,8 @@ function usePopover(config, triggerRef) {
|
|
987
646
|
observerIns.start();
|
988
647
|
});
|
989
648
|
(0,external_vue_namespaceObject.onBeforeUnmount)(function () {
|
990
|
-
|
649
|
+
var _observerIns;
|
650
|
+
(_observerIns = observerIns) === null || _observerIns === void 0 ? void 0 : _observerIns.stop();
|
991
651
|
observerIns = null;
|
992
652
|
});
|
993
653
|
return {
|
@@ -999,37 +659,34 @@ function usePopover(config, triggerRef) {
|
|
999
659
|
};
|
1000
660
|
}
|
1001
661
|
function useRemoteSearch(method, callBack) {
|
1002
|
-
var _this = this;
|
1003
662
|
var searchKey = useDebouncedRef('');
|
1004
663
|
var searchLoading = (0,external_vue_namespaceObject.ref)(false);
|
1005
|
-
(0,external_vue_namespaceObject.watch)(searchKey, function () {
|
1006
|
-
return
|
1007
|
-
|
1008
|
-
|
1009
|
-
|
1010
|
-
|
1011
|
-
|
1012
|
-
|
1013
|
-
|
1014
|
-
|
1015
|
-
|
1016
|
-
|
1017
|
-
|
1018
|
-
|
1019
|
-
|
1020
|
-
|
1021
|
-
|
1022
|
-
|
1023
|
-
|
1024
|
-
|
1025
|
-
|
1026
|
-
|
1027
|
-
|
1028
|
-
|
1029
|
-
|
1030
|
-
|
1031
|
-
}));
|
1032
|
-
});
|
664
|
+
(0,external_vue_namespaceObject.watch)(searchKey, /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee() {
|
665
|
+
return regenerator_default().wrap(function _callee$(_context) {
|
666
|
+
while (1) switch (_context.prev = _context.next) {
|
667
|
+
case 0:
|
668
|
+
_context.prev = 0;
|
669
|
+
searchLoading.value = true;
|
670
|
+
_context.next = 4;
|
671
|
+
return method(searchKey.value);
|
672
|
+
case 4:
|
673
|
+
searchLoading.value = false;
|
674
|
+
_context.next = 10;
|
675
|
+
break;
|
676
|
+
case 7:
|
677
|
+
_context.prev = 7;
|
678
|
+
_context.t0 = _context["catch"](0);
|
679
|
+
console.error(_context.t0);
|
680
|
+
case 10:
|
681
|
+
_context.prev = 10;
|
682
|
+
callBack === null || callBack === void 0 ? void 0 : callBack();
|
683
|
+
return _context.finish(10);
|
684
|
+
case 13:
|
685
|
+
case "end":
|
686
|
+
return _context.stop();
|
687
|
+
}
|
688
|
+
}, _callee, null, [[0, 7, 10, 13]]);
|
689
|
+
})));
|
1033
690
|
return {
|
1034
691
|
searchKey: searchKey,
|
1035
692
|
searchLoading: searchLoading
|
@@ -1053,6 +710,8 @@ function isInViewPort(el, client) {
|
|
1053
710
|
;// CONCATENATED MODULE: ../../packages/select/src/option.tsx
|
1054
711
|
|
1055
712
|
|
713
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
714
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
1056
715
|
/* eslint-disable vue/no-reserved-component-names */
|
1057
716
|
/*
|
1058
717
|
* Tencent is pleased to support the open source community by making
|
@@ -1119,8 +778,8 @@ function isInViewPort(el, client) {
|
|
1119
778
|
var select = (0,external_vue_namespaceObject.inject)(selectKey, null);
|
1120
779
|
var group = (0,external_vue_namespaceObject.inject)(optionGroupKey, null);
|
1121
780
|
var selected = (0,external_vue_namespaceObject.computed)(function () {
|
1122
|
-
var
|
1123
|
-
return
|
781
|
+
var _select$selected;
|
782
|
+
return select === null || select === void 0 || (_select$selected = select.selected) === null || _select$selected === void 0 ? void 0 : _select$selected.some(function (item) {
|
1124
783
|
return (0,external_lodash_namespaceObject.isEqual)(item.value, optionID.value);
|
1125
784
|
});
|
1126
785
|
});
|
@@ -1153,7 +812,7 @@ function isInViewPort(el, client) {
|
|
1153
812
|
});
|
1154
813
|
var _usePrefix = (0,external_config_provider_namespaceObject.usePrefix)(),
|
1155
814
|
resolveClassName = _usePrefix.resolveClassName;
|
1156
|
-
return
|
815
|
+
return _objectSpread(_objectSpread({}, (0,external_vue_namespaceObject.toRefs)(states)), {}, {
|
1157
816
|
selected: selected,
|
1158
817
|
multiple: multiple,
|
1159
818
|
isHover: isHover,
|
@@ -1167,7 +826,7 @@ function isInViewPort(el, client) {
|
|
1167
826
|
});
|
1168
827
|
},
|
1169
828
|
render: function render() {
|
1170
|
-
var
|
829
|
+
var _this$$slots$default, _this$$slots$default2, _this$$slots;
|
1171
830
|
var selectItemClass = (0,external_shared_namespaceObject.classes)(_defineProperty({
|
1172
831
|
'is-selected': this.selected,
|
1173
832
|
'is-disabled': this.disabled,
|
@@ -1183,7 +842,7 @@ function isInViewPort(el, client) {
|
|
1183
842
|
"disabled": this.disabled,
|
1184
843
|
"class": this.resolveClassName('select-checkbox'),
|
1185
844
|
"modelValue": this.selected
|
1186
|
-
}, null), (
|
845
|
+
}, null), (_this$$slots$default = (_this$$slots$default2 = (_this$$slots = this.$slots)["default"]) === null || _this$$slots$default2 === void 0 ? void 0 : _this$$slots$default2.call(_this$$slots)) !== null && _this$$slots$default !== void 0 ? _this$$slots$default : (0,external_vue_namespaceObject.createVNode)("span", {
|
1187
846
|
"class": this.resolveClassName('select-option-item'),
|
1188
847
|
"title": String(this.optionName)
|
1189
848
|
}, [this.optionName]), this.showSelectedIcon && this.selected && this.selectedStyle === external_shared_namespaceObject.SelectedTypeEnum.CHECK && (0,external_vue_namespaceObject.createVNode)(external_icon_namespaceObject.Done, {
|
@@ -1234,6 +893,8 @@ function _toConsumableArray(arr) {
|
|
1234
893
|
|
1235
894
|
|
1236
895
|
|
896
|
+
function optionGroup_ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
897
|
+
function optionGroup_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? optionGroup_ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : optionGroup_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
1237
898
|
/*
|
1238
899
|
* Tencent is pleased to support the open source community by making
|
1239
900
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
@@ -1295,7 +956,7 @@ function _toConsumableArray(arr) {
|
|
1295
956
|
states.groupCollapse = !states.groupCollapse;
|
1296
957
|
emit('update:collapse', states.groupCollapse);
|
1297
958
|
};
|
1298
|
-
(0,external_vue_namespaceObject.provide)(optionGroupKey, (0,external_vue_namespaceObject.reactive)(
|
959
|
+
(0,external_vue_namespaceObject.provide)(optionGroupKey, (0,external_vue_namespaceObject.reactive)(optionGroup_objectSpread(optionGroup_objectSpread({}, (0,external_vue_namespaceObject.toRefs)(props)), {}, {
|
1299
960
|
register: register,
|
1300
961
|
unregister: unregister,
|
1301
962
|
groupCollapse: (0,external_vue_namespaceObject.toRef)(states, 'groupCollapse')
|
@@ -1308,15 +969,14 @@ function _toConsumableArray(arr) {
|
|
1308
969
|
});
|
1309
970
|
var _usePrefix = (0,external_config_provider_namespaceObject.usePrefix)(),
|
1310
971
|
resolveClassName = _usePrefix.resolveClassName;
|
1311
|
-
return
|
972
|
+
return optionGroup_objectSpread(optionGroup_objectSpread({}, (0,external_vue_namespaceObject.toRefs)(states)), {}, {
|
1312
973
|
groupLabel: groupLabel,
|
1313
974
|
handleToggleCollapse: handleToggleCollapse,
|
1314
975
|
resolveClassName: resolveClassName
|
1315
976
|
});
|
1316
977
|
},
|
1317
978
|
render: function render() {
|
1318
|
-
var _classes, _classes2;
|
1319
|
-
var _a, _b;
|
979
|
+
var _classes, _classes2, _this$$slots$default, _this$$slots;
|
1320
980
|
var groupClass = (0,external_shared_namespaceObject.classes)((_classes = {}, _defineProperty(_classes, this.resolveClassName('option-group'), true), _defineProperty(_classes, "collapsible", this.collapsible), _defineProperty(_classes, "disabled", this.disabled), _classes));
|
1321
981
|
var groupLabelClass = (0,external_shared_namespaceObject.classes)((_classes2 = {}, _defineProperty(_classes2, this.resolveClassName('option-group-label'), true), _defineProperty(_classes2, "collapsible", this.collapsible), _classes2));
|
1322
982
|
var groupLabelIconClass = (0,external_shared_namespaceObject.classes)({
|
@@ -1336,7 +996,7 @@ function _toConsumableArray(arr) {
|
|
1336
996
|
"class": "default-group-label-title"
|
1337
997
|
}, [this.groupLabel])])]), (0,external_vue_namespaceObject.withDirectives)((0,external_vue_namespaceObject.createVNode)("ul", {
|
1338
998
|
"class": this.resolveClassName('option-group-content')
|
1339
|
-
}, [(
|
999
|
+
}, [(_this$$slots$default = (_this$$slots = this.$slots)["default"]) === null || _this$$slots$default === void 0 ? void 0 : _this$$slots$default.call(_this$$slots)]), [[external_vue_namespaceObject.vShow, !this.groupCollapse]])]), [[external_vue_namespaceObject.vShow, this.visible]]);
|
1340
1000
|
}
|
1341
1001
|
}));
|
1342
1002
|
;// CONCATENATED MODULE: external "../directives"
|
@@ -1439,8 +1099,8 @@ const external_tag_namespaceObject = external_tag_x({ ["default"]: () => __WEBPA
|
|
1439
1099
|
emit('remove', val);
|
1440
1100
|
};
|
1441
1101
|
var focus = function focus() {
|
1442
|
-
var
|
1443
|
-
(
|
1102
|
+
var _inputRef$value;
|
1103
|
+
(_inputRef$value = inputRef.value) === null || _inputRef$value === void 0 ? void 0 : _inputRef$value.focus();
|
1444
1104
|
};
|
1445
1105
|
var handleInput = function handleInput(e) {
|
1446
1106
|
emit('update:modelValue', e.target.value);
|
@@ -1470,7 +1130,7 @@ const external_tag_namespaceObject = external_tag_x({ ["default"]: () => __WEBPA
|
|
1470
1130
|
if (!collapseTags.value) return;
|
1471
1131
|
overflowTagIndex.value = null;
|
1472
1132
|
setTimeout(function () {
|
1473
|
-
var
|
1133
|
+
var _tags$overflowTagInde, _collapseTagRef$value;
|
1474
1134
|
var tags = getTagDOM();
|
1475
1135
|
// 出现换行的Index位置
|
1476
1136
|
var tagIndexInSecondRow = tags.findIndex(function (currentTag, index) {
|
@@ -1482,7 +1142,7 @@ const external_tag_namespaceObject = external_tag_x({ ["default"]: () => __WEBPA
|
|
1482
1142
|
});
|
1483
1143
|
overflowTagIndex.value = tagIndexInSecondRow > 0 ? tagIndexInSecondRow : null;
|
1484
1144
|
// 剩余位置能否放下数字tag
|
1485
|
-
if (((
|
1145
|
+
if (((_tags$overflowTagInde = tags[overflowTagIndex.value]) === null || _tags$overflowTagInde === void 0 ? void 0 : _tags$overflowTagInde.offsetTop) !== ((_collapseTagRef$value = collapseTagRef.value) === null || _collapseTagRef$value === void 0 ? void 0 : _collapseTagRef$value.offsetTop) && overflowTagIndex.value > 1) {
|
1486
1146
|
overflowTagIndex.value -= 1;
|
1487
1147
|
}
|
1488
1148
|
});
|
@@ -1515,10 +1175,18 @@ const external_tag_namespaceObject = external_tag_x({ ["default"]: () => __WEBPA
|
|
1515
1175
|
};
|
1516
1176
|
},
|
1517
1177
|
render: function render() {
|
1518
|
-
var
|
1519
|
-
_this
|
1520
|
-
|
1521
|
-
|
1178
|
+
var _this$$slots,
|
1179
|
+
_this$$slots$prefix,
|
1180
|
+
_classes,
|
1181
|
+
_this$$slots2,
|
1182
|
+
_this$$slots2$prefix,
|
1183
|
+
_this$$slots$default,
|
1184
|
+
_this$$slots$default2,
|
1185
|
+
_this$$slots3,
|
1186
|
+
_this = this,
|
1187
|
+
_this$$slots4,
|
1188
|
+
_this$$slots4$suffix;
|
1189
|
+
var prefix = (_this$$slots = this.$slots) === null || _this$$slots === void 0 || (_this$$slots$prefix = _this$$slots.prefix) === null || _this$$slots$prefix === void 0 ? void 0 : _this$$slots$prefix.call(_this$$slots);
|
1522
1190
|
var selectTagClass = (0,external_shared_namespaceObject.classes)((_classes = {}, _defineProperty(_classes, this.resolveClassName('select-tag'), true), _defineProperty(_classes, this.resolveClassName('select-tag--default'), true), _defineProperty(_classes, 'is-disabled', this.disabled), _defineProperty(_classes, 'collapse-tag', this.collapseTags), _defineProperty(_classes, 'has-prefix', !!prefix), _classes));
|
1523
1191
|
var tagWrapperClass = (0,external_shared_namespaceObject.classes)(_defineProperty({}, this.resolveClassName('select-tag-wrapper'), true));
|
1524
1192
|
var inputStyle = {
|
@@ -1527,10 +1195,10 @@ const external_tag_namespaceObject = external_tag_x({ ["default"]: () => __WEBPA
|
|
1527
1195
|
return (0,external_vue_namespaceObject.createVNode)("div", {
|
1528
1196
|
"class": selectTagClass,
|
1529
1197
|
"ref": "tagWrapperRef"
|
1530
|
-
}, [(
|
1198
|
+
}, [(_this$$slots2 = this.$slots) === null || _this$$slots2 === void 0 || (_this$$slots2$prefix = _this$$slots2.prefix) === null || _this$$slots2$prefix === void 0 ? void 0 : _this$$slots2$prefix.call(_this$$slots2), (0,external_vue_namespaceObject.createVNode)("div", {
|
1531
1199
|
"class": tagWrapperClass
|
1532
|
-
}, [(
|
1533
|
-
var
|
1200
|
+
}, [(_this$$slots$default = (_this$$slots$default2 = (_this$$slots3 = this.$slots)["default"]) === null || _this$$slots$default2 === void 0 ? void 0 : _this$$slots$default2.call(_this$$slots3)) !== null && _this$$slots$default !== void 0 ? _this$$slots$default : this.selected.map(function (item, index) {
|
1201
|
+
var _this$select;
|
1534
1202
|
return (0,external_vue_namespaceObject.createVNode)(external_tag_namespaceObject["default"], {
|
1535
1203
|
"closable": true,
|
1536
1204
|
"theme": _this.tagTheme,
|
@@ -1545,7 +1213,7 @@ const external_tag_namespaceObject = external_tag_x({ ["default"]: () => __WEBPA
|
|
1545
1213
|
}
|
1546
1214
|
}, {
|
1547
1215
|
"default": function _default() {
|
1548
|
-
return [(
|
1216
|
+
return [(_this$select = _this.select) === null || _this$select === void 0 ? void 0 : _this$select.handleGetLabelByValue(item.value)];
|
1549
1217
|
}
|
1550
1218
|
});
|
1551
1219
|
}), (0,external_vue_namespaceObject.createVNode)(external_tag_namespaceObject["default"], {
|
@@ -1569,7 +1237,7 @@ const external_tag_namespaceObject = external_tag_x({ ["default"]: () => __WEBPA
|
|
1569
1237
|
"value": !this.filterable ? '' : this.value,
|
1570
1238
|
"onInput": this.handleInput,
|
1571
1239
|
"onKeydown": this.handleKeydown
|
1572
|
-
}, null)]), (
|
1240
|
+
}, null)]), (_this$$slots4 = this.$slots) === null || _this$$slots4 === void 0 || (_this$$slots4$suffix = _this$$slots4.suffix) === null || _this$$slots4$suffix === void 0 ? void 0 : _this$$slots4$suffix.call(_this$$slots4)]);
|
1573
1241
|
}
|
1574
1242
|
}));
|
1575
1243
|
;// CONCATENATED MODULE: ../../packages/select/src/select.tsx
|
@@ -1580,6 +1248,8 @@ const external_tag_namespaceObject = external_tag_x({ ["default"]: () => __WEBPA
|
|
1580
1248
|
function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = select_unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }
|
1581
1249
|
function select_unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return select_arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return select_arrayLikeToArray(o, minLen); }
|
1582
1250
|
function select_arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
1251
|
+
function select_ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
1252
|
+
function select_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? select_ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : select_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
1583
1253
|
/* eslint-disable vue/no-reserved-component-names */
|
1584
1254
|
/*
|
1585
1255
|
* Tencent is pleased to support the open source community by making
|
@@ -1619,9 +1289,6 @@ function select_arrayLikeToArray(arr, len) { if (len == null || len > arr.length
|
|
1619
1289
|
|
1620
1290
|
|
1621
1291
|
|
1622
|
-
function _isSlot(s) {
|
1623
|
-
return typeof s === 'function' || Object.prototype.toString.call(s) === '[object Object]' && !(0,external_vue_namespaceObject.isVNode)(s);
|
1624
|
-
}
|
1625
1292
|
/* harmony default export */ const src_select = ((0,external_vue_namespaceObject.defineComponent)({
|
1626
1293
|
name: 'Select',
|
1627
1294
|
directives: {
|
@@ -1773,23 +1440,23 @@ function _isSlot(s) {
|
|
1773
1440
|
}, {});
|
1774
1441
|
});
|
1775
1442
|
(0,external_vue_namespaceObject.watch)(modelValue, function () {
|
1776
|
-
var _a;
|
1777
1443
|
handleSetSelectedData();
|
1778
1444
|
if (props.withValidate) {
|
1779
|
-
|
1445
|
+
var _formItem$validate;
|
1446
|
+
formItem === null || formItem === void 0 || (_formItem$validate = formItem.validate) === null || _formItem$validate === void 0 ? void 0 : _formItem$validate.call(formItem, 'change');
|
1780
1447
|
}
|
1781
1448
|
}, {
|
1782
1449
|
deep: true
|
1783
1450
|
});
|
1784
1451
|
(0,external_vue_namespaceObject.watch)(selected, function () {
|
1785
|
-
var
|
1786
|
-
(
|
1452
|
+
var _popoverRef$value;
|
1453
|
+
(_popoverRef$value = popoverRef.value) === null || _popoverRef$value === void 0 ? void 0 : _popoverRef$value.updatePopover(null, popoverConfig.value);
|
1787
1454
|
});
|
1788
1455
|
// 虚拟滚动模式下搜索后的值
|
1789
1456
|
var virtualList = (0,external_vue_namespaceObject.computed)(function () {
|
1790
1457
|
return isRemoteSearch.value ? list.value : list.value.filter(function (item) {
|
1791
|
-
var
|
1792
|
-
return filterOptionFunc.value(searchKey.value, item) && ((
|
1458
|
+
var _toLowerCase;
|
1459
|
+
return filterOptionFunc.value(searchKey.value, item) && ((_toLowerCase = toLowerCase(String(item[displayKey.value]))) === null || _toLowerCase === void 0 ? void 0 : _toLowerCase.includes(toLowerCase(searchKey.value)));
|
1793
1460
|
});
|
1794
1461
|
});
|
1795
1462
|
// select组件是否禁用
|
@@ -1799,8 +1466,8 @@ function _isSlot(s) {
|
|
1799
1466
|
// modelValue对应的label
|
1800
1467
|
var selectedLabel = (0,external_vue_namespaceObject.computed)(function () {
|
1801
1468
|
return selected.value.map(function (item) {
|
1802
|
-
var
|
1803
|
-
return ((
|
1469
|
+
var _optionsMap$value;
|
1470
|
+
return ((_optionsMap$value = optionsMap.value) === null || _optionsMap$value === void 0 || (_optionsMap$value = _optionsMap$value.get(item.value)) === null || _optionsMap$value === void 0 ? void 0 : _optionsMap$value.optionName) || listMap.value[item.value] || item.label;
|
1804
1471
|
});
|
1805
1472
|
});
|
1806
1473
|
// 是否全选(todo: 优化)
|
@@ -1935,15 +1602,15 @@ function _isSlot(s) {
|
|
1935
1602
|
});
|
1936
1603
|
// 初始化当前悬浮的option项
|
1937
1604
|
var initActiveOptionValue = function initActiveOptionValue() {
|
1938
|
-
var _a;
|
1939
1605
|
var firstSelected = selected.value[0];
|
1940
1606
|
var option = optionsMap.value.get(firstSelected === null || firstSelected === void 0 ? void 0 : firstSelected.value);
|
1941
1607
|
if (option && !option.disabled && option.visible) {
|
1942
1608
|
activeOptionValue.value = firstSelected === null || firstSelected === void 0 ? void 0 : firstSelected.value;
|
1943
1609
|
} else {
|
1944
|
-
|
1610
|
+
var _options$value$find;
|
1611
|
+
activeOptionValue.value = (_options$value$find = options.value.find(function (option) {
|
1945
1612
|
return !option.disabled && option.visible;
|
1946
|
-
})) === null ||
|
1613
|
+
})) === null || _options$value$find === void 0 ? void 0 : _options$value$find.optionID;
|
1947
1614
|
}
|
1948
1615
|
};
|
1949
1616
|
// 默认搜索方法
|
@@ -1955,8 +1622,8 @@ function _isSlot(s) {
|
|
1955
1622
|
});
|
1956
1623
|
} else {
|
1957
1624
|
options.value.forEach(function (option) {
|
1958
|
-
var
|
1959
|
-
option.visible = filterOptionFunc.value(value,
|
1625
|
+
var _toLowerCase2;
|
1626
|
+
option.visible = filterOptionFunc.value(value, select_objectSpread({}, option.$props)) && ((_toLowerCase2 = toLowerCase(String(option.optionName))) === null || _toLowerCase2 === void 0 ? void 0 : _toLowerCase2.includes(toLowerCase(value)));
|
1960
1627
|
});
|
1961
1628
|
}
|
1962
1629
|
};
|
@@ -2052,14 +1719,16 @@ function _isSlot(s) {
|
|
2052
1719
|
// 聚焦输入框
|
2053
1720
|
var focusInput = function focusInput() {
|
2054
1721
|
setTimeout(function () {
|
2055
|
-
var _a, _b, _c;
|
2056
1722
|
if (!inputSearch.value && !allowCreate.value) {
|
2057
|
-
|
1723
|
+
var _searchRef$value;
|
1724
|
+
(_searchRef$value = searchRef.value) === null || _searchRef$value === void 0 ? void 0 : _searchRef$value.focus();
|
2058
1725
|
} else {
|
2059
1726
|
if (multipleMode.value === 'tag') {
|
2060
|
-
|
1727
|
+
var _selectTagInputRef$va;
|
1728
|
+
(_selectTagInputRef$va = selectTagInputRef.value) === null || _selectTagInputRef$va === void 0 ? void 0 : _selectTagInputRef$va.focus();
|
2061
1729
|
} else {
|
2062
|
-
|
1730
|
+
var _inputRef$value;
|
1731
|
+
(_inputRef$value = inputRef.value) === null || _inputRef$value === void 0 ? void 0 : _inputRef$value.focus();
|
2063
1732
|
}
|
2064
1733
|
}
|
2065
1734
|
}, 0);
|
@@ -2077,10 +1746,10 @@ function _isSlot(s) {
|
|
2077
1746
|
activeOptionValue.value = '';
|
2078
1747
|
};
|
2079
1748
|
var handleToggleAll = function handleToggleAll() {
|
2080
|
-
var _a;
|
2081
1749
|
if (isAllSelected.value) {
|
2082
1750
|
selected.value = [];
|
2083
1751
|
} else {
|
1752
|
+
var _list$value;
|
2084
1753
|
options.value.forEach(function (option) {
|
2085
1754
|
if (option.disabled || option.optionID in cacheSelectedMap.value) return;
|
2086
1755
|
selected.value.push({
|
@@ -2088,7 +1757,7 @@ function _isSlot(s) {
|
|
2088
1757
|
label: option.optionName || option.optionID
|
2089
1758
|
});
|
2090
1759
|
});
|
2091
|
-
(
|
1760
|
+
(_list$value = list.value) === null || _list$value === void 0 ? void 0 : _list$value.forEach(function (item) {
|
2092
1761
|
if (item.disabled || item[idKey.value] in cacheSelectedMap.value) return;
|
2093
1762
|
selected.value.push({
|
2094
1763
|
value: item[idKey.value],
|
@@ -2127,7 +1796,7 @@ function _isSlot(s) {
|
|
2127
1796
|
};
|
2128
1797
|
// options存在 > 上一次选择的label > 当前值
|
2129
1798
|
var handleGetLabelByValue = function handleGetLabelByValue(value) {
|
2130
|
-
var
|
1799
|
+
var _optionsMap$value2;
|
2131
1800
|
// 处理options value为对象类型,引用类型变更后,回显不对问题
|
2132
1801
|
var tmpValue = value;
|
2133
1802
|
if (_typeof(tmpValue) === 'object') {
|
@@ -2147,7 +1816,7 @@ function _isSlot(s) {
|
|
2147
1816
|
_iterator.f();
|
2148
1817
|
}
|
2149
1818
|
}
|
2150
|
-
return ((
|
1819
|
+
return ((_optionsMap$value2 = optionsMap.value) === null || _optionsMap$value2 === void 0 || (_optionsMap$value2 = _optionsMap$value2.get(tmpValue)) === null || _optionsMap$value2 === void 0 ? void 0 : _optionsMap$value2.optionName) || listMap.value[tmpValue] || cacheSelectedMap.value[tmpValue] || tmpValue;
|
2151
1820
|
};
|
2152
1821
|
// 设置selected选项
|
2153
1822
|
var handleSetSelectedData = function handleSetSelectedData() {
|
@@ -2172,7 +1841,6 @@ function _isSlot(s) {
|
|
2172
1841
|
};
|
2173
1842
|
// 处理键盘事件
|
2174
1843
|
var handleDocumentKeydown = function handleDocumentKeydown(e) {
|
2175
|
-
var _a, _b, _c, _d;
|
2176
1844
|
if (!isPopoverShow.value) return;
|
2177
1845
|
var availableOptions = options.value.filter(function (option) {
|
2178
1846
|
return !option.disabled && option.visible;
|
@@ -2186,6 +1854,7 @@ function _isSlot(s) {
|
|
2186
1854
|
case 'ArrowUp':
|
2187
1855
|
case 'ArrowDown':
|
2188
1856
|
{
|
1857
|
+
var _availableOptions$act, _availableOptions$act3;
|
2189
1858
|
e.preventDefault(); // 阻止滚动屏幕
|
2190
1859
|
var activeIndex = 0;
|
2191
1860
|
if (e.code === 'ArrowDown') {
|
@@ -2193,10 +1862,11 @@ function _isSlot(s) {
|
|
2193
1862
|
} else {
|
2194
1863
|
activeIndex = index === 0 ? availableOptions.length - 1 : index - 1;
|
2195
1864
|
}
|
2196
|
-
if (!isInViewPort((
|
2197
|
-
|
1865
|
+
if (!isInViewPort((_availableOptions$act = availableOptions[activeIndex]) === null || _availableOptions$act === void 0 ? void 0 : _availableOptions$act.$el, contentRef.value)) {
|
1866
|
+
var _availableOptions$act2;
|
1867
|
+
(_availableOptions$act2 = availableOptions[activeIndex]) === null || _availableOptions$act2 === void 0 || (_availableOptions$act2 = _availableOptions$act2.$el) === null || _availableOptions$act2 === void 0 ? void 0 : _availableOptions$act2.scrollIntoView();
|
2198
1868
|
}
|
2199
|
-
activeOptionValue.value = (
|
1869
|
+
activeOptionValue.value = (_availableOptions$act3 = availableOptions[activeIndex]) === null || _availableOptions$act3 === void 0 ? void 0 : _availableOptions$act3.optionID;
|
2200
1870
|
break;
|
2201
1871
|
}
|
2202
1872
|
// 删除选项
|
@@ -2221,18 +1891,18 @@ function _isSlot(s) {
|
|
2221
1891
|
}
|
2222
1892
|
};
|
2223
1893
|
var handleClickOutside = function handleClickOutside(_ref2) {
|
1894
|
+
var _triggerRef$value;
|
2224
1895
|
var event = _ref2.event;
|
2225
|
-
var _a;
|
2226
1896
|
var target = event.target;
|
2227
|
-
if ((
|
1897
|
+
if ((_triggerRef$value = triggerRef.value) !== null && _triggerRef$value !== void 0 && _triggerRef$value.contains(target) || triggerRef.value === target) return;
|
2228
1898
|
hidePopover();
|
2229
1899
|
handleBlur();
|
2230
1900
|
};
|
2231
1901
|
var handlePopoverShow = function handlePopoverShow() {
|
2232
1902
|
setTimeout(function () {
|
2233
|
-
var
|
1903
|
+
var _virtualRenderRef$val, _virtualRenderRef$val2;
|
2234
1904
|
// 虚拟滚动首次未更新问题
|
2235
|
-
enableVirtualRender.value && ((
|
1905
|
+
enableVirtualRender.value && ((_virtualRenderRef$val = virtualRenderRef.value) === null || _virtualRenderRef$val === void 0 || (_virtualRenderRef$val2 = _virtualRenderRef$val.reset) === null || _virtualRenderRef$val2 === void 0 ? void 0 : _virtualRenderRef$val2.call(_virtualRenderRef$val));
|
2236
1906
|
});
|
2237
1907
|
};
|
2238
1908
|
(0,external_vue_namespaceObject.provide)(selectKey, (0,external_vue_namespaceObject.reactive)({
|
@@ -2342,12 +2012,11 @@ function _isSlot(s) {
|
|
2342
2012
|
};
|
2343
2013
|
}
|
2344
2014
|
return _this.$slots.prefix ? function () {
|
2345
|
-
var
|
2346
|
-
return (
|
2015
|
+
var _this$$slots$prefix, _this$$slots;
|
2016
|
+
return (_this$$slots$prefix = (_this$$slots = _this.$slots).prefix) === null || _this$$slots$prefix === void 0 ? void 0 : _this$$slots$prefix.call(_this$$slots);
|
2347
2017
|
} : undefined;
|
2348
2018
|
};
|
2349
2019
|
var renderTriggerInput = function renderTriggerInput() {
|
2350
|
-
var _slot;
|
2351
2020
|
if (_this.multipleMode === 'tag') {
|
2352
2021
|
return (0,external_vue_namespaceObject.createVNode)(selectTagInput, {
|
2353
2022
|
"ref": "selectTagInputRef",
|
@@ -2391,23 +2060,23 @@ function _isSlot(s) {
|
|
2391
2060
|
"onEnter": _this.handleCreateCustomOption
|
2392
2061
|
}, _this.prefix ? {
|
2393
2062
|
prefix: _this.prefix
|
2394
|
-
} : null), _isSlot(_slot = Object.assign(Object.assign({}, typeof _this.$slots.prefix === 'function' ? {
|
2395
|
-
prefix: function prefix() {
|
2396
|
-
var _a, _b;
|
2397
|
-
return (_b = (_a = _this.$slots).prefix) === null || _b === void 0 ? void 0 : _b.call(_a);
|
2398
|
-
}
|
2399
2063
|
} : null), {
|
2400
|
-
suffix: function suffix() {
|
2401
|
-
return suffixIcon();
|
2402
|
-
}
|
2403
|
-
})) ? _slot : {
|
2404
2064
|
"default": function _default() {
|
2405
|
-
return [
|
2065
|
+
return [select_objectSpread(select_objectSpread({}, typeof _this.$slots.prefix === 'function' ? {
|
2066
|
+
prefix: function prefix() {
|
2067
|
+
var _this$$slots$prefix2, _this$$slots2;
|
2068
|
+
return (_this$$slots$prefix2 = (_this$$slots2 = _this.$slots).prefix) === null || _this$$slots$prefix2 === void 0 ? void 0 : _this$$slots$prefix2.call(_this$$slots2);
|
2069
|
+
}
|
2070
|
+
} : null), {}, {
|
2071
|
+
suffix: function suffix() {
|
2072
|
+
return suffixIcon();
|
2073
|
+
}
|
2074
|
+
})];
|
2406
2075
|
}
|
2407
2076
|
});
|
2408
2077
|
};
|
2409
2078
|
var renderSelectTrigger = function renderSelectTrigger() {
|
2410
|
-
var
|
2079
|
+
var _this$$slots$trigger, _this$$slots3;
|
2411
2080
|
return (0,external_vue_namespaceObject.createVNode)("div", {
|
2412
2081
|
"class": _this.resolveClassName('select-trigger'),
|
2413
2082
|
"style": {
|
@@ -2417,12 +2086,12 @@ function _isSlot(s) {
|
|
2417
2086
|
"onClick": _this.handleTogglePopover,
|
2418
2087
|
"onMouseenter": _this.setHover,
|
2419
2088
|
"onMouseleave": _this.cancelHover
|
2420
|
-
}, [((
|
2089
|
+
}, [((_this$$slots$trigger = (_this$$slots3 = _this.$slots).trigger) === null || _this$$slots$trigger === void 0 ? void 0 : _this$$slots$trigger.call(_this$$slots3, {
|
2421
2090
|
selected: _this.selected
|
2422
2091
|
})) || renderTriggerInput()]);
|
2423
2092
|
};
|
2424
2093
|
var renderSelectContent = function renderSelectContent() {
|
2425
|
-
var
|
2094
|
+
var _this$$slots$default, _this$$slots8;
|
2426
2095
|
return (0,external_vue_namespaceObject.createVNode)("div", {
|
2427
2096
|
"class": _this.resolveClassName('select-content-wrapper'),
|
2428
2097
|
"ref": "contentRef"
|
@@ -2468,9 +2137,9 @@ function _isSlot(s) {
|
|
2468
2137
|
"ref": "virtualRenderRef"
|
2469
2138
|
}, {
|
2470
2139
|
"default": function _default(_ref3) {
|
2140
|
+
var _this$$slots4, _this$$slots5;
|
2471
2141
|
var data = _ref3.data;
|
2472
|
-
var
|
2473
|
-
var optionRender = ((_a = _this.$slots) === null || _a === void 0 ? void 0 : _a.optionRender) || ((_b = _this.$slots) === null || _b === void 0 ? void 0 : _b.virtualScrollRender);
|
2142
|
+
var optionRender = ((_this$$slots4 = _this.$slots) === null || _this$$slots4 === void 0 ? void 0 : _this$$slots4.optionRender) || ((_this$$slots5 = _this.$slots) === null || _this$$slots5 === void 0 ? void 0 : _this$$slots5.virtualScrollRender);
|
2474
2143
|
return data.map(function (item) {
|
2475
2144
|
return (0,external_vue_namespaceObject.createVNode)(src_option, {
|
2476
2145
|
"key": item[_this.idKey],
|
@@ -2486,19 +2155,19 @@ function _isSlot(s) {
|
|
2486
2155
|
});
|
2487
2156
|
}
|
2488
2157
|
}) : _this.list.map(function (item) {
|
2489
|
-
var
|
2158
|
+
var _this$$slots6;
|
2490
2159
|
return (0,external_vue_namespaceObject.createVNode)(src_option, {
|
2491
2160
|
"id": item[_this.idKey],
|
2492
2161
|
"name": item[_this.displayKey]
|
2493
|
-
}, (
|
2162
|
+
}, (_this$$slots6 = _this.$slots) !== null && _this$$slots6 !== void 0 && _this$$slots6.optionRender ? {
|
2494
2163
|
"default": function _default() {
|
2495
|
-
var
|
2496
|
-
return (
|
2164
|
+
var _this$$slots7, _this$$slots7$optionR;
|
2165
|
+
return (_this$$slots7 = _this.$slots) === null || _this$$slots7 === void 0 || (_this$$slots7$optionR = _this$$slots7.optionRender) === null || _this$$slots7$optionR === void 0 ? void 0 : _this$$slots7$optionR.call(_this$$slots7, {
|
2497
2166
|
item: item
|
2498
2167
|
});
|
2499
2168
|
}
|
2500
2169
|
} : null);
|
2501
|
-
}), (
|
2170
|
+
}), (_this$$slots$default = (_this$$slots8 = _this.$slots)["default"]) === null || _this$$slots$default === void 0 ? void 0 : _this$$slots$default.call(_this$$slots8), _this.scrollLoading && (0,external_vue_namespaceObject.createVNode)("li", {
|
2502
2171
|
"class": _this.resolveClassName('select-options-loading')
|
2503
2172
|
}, [(0,external_vue_namespaceObject.createVNode)(external_loading_namespaceObject["default"], {
|
2504
2173
|
"class": "spinner mr5",
|