1 | "use strict";
|
2 |
|
3 | function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
|
4 |
|
5 | Object.defineProperty(exports, "__esModule", {
|
6 | value: true
|
7 | });
|
8 | exports.default = void 0;
|
9 |
|
10 | var _vue = require("vue");
|
11 |
|
12 | var _select = _interopRequireWildcard(require("../select"));
|
13 |
|
14 | var _propsUtil = require("../_util/props-util");
|
15 |
|
16 | function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; }
|
17 |
|
18 | function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
19 |
|
20 | function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
21 |
|
22 | function _isSlot(s) {
|
23 | return typeof s === 'function' || Object.prototype.toString.call(s) === '[object Object]' && !(0, _vue.isVNode)(s);
|
24 | }
|
25 |
|
26 | var _default2 = (0, _vue.defineComponent)({
|
27 | inheritAttrs: false,
|
28 | props: (0, _select.SelectProps)(),
|
29 | Option: _select.default.Option,
|
30 | render: function render() {
|
31 | var _slot;
|
32 |
|
33 | var selectOptionsProps = (0, _propsUtil.getOptionProps)(this);
|
34 |
|
35 | var selelctProps = _extends(_extends(_extends({}, selectOptionsProps), {
|
36 | size: 'small'
|
37 | }), this.$attrs);
|
38 |
|
39 | return (0, _vue.createVNode)(_select.default, selelctProps, _isSlot(_slot = (0, _propsUtil.getSlot)(this)) ? _slot : {
|
40 | default: function _default() {
|
41 | return [_slot];
|
42 | }
|
43 | });
|
44 | }
|
45 | });
|
46 |
|
47 | exports.default = _default2; |
\ | No newline at end of file |