cy-element-ui 1.1.19 → 1.1.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/index.js +1 -1
- package/package.json +1 -1
- package/src/index.js +1 -1
- package/lib/Alert.js +0 -420
- package/lib/Aside.js +0 -277
- package/lib/Autocomplete.js +0 -2051
- package/lib/Avatar.js +0 -363
- package/lib/Backtop.js +0 -404
- package/lib/Badge.js +0 -334
- package/lib/Breadcrumb.js +0 -293
- package/lib/BreadcrumbItem.js +0 -322
- package/lib/Button.js +0 -357
- package/lib/ButtonGroup.js +0 -262
- package/lib/Calendar.js +0 -1146
- package/lib/Card.js +0 -297
- package/lib/Carousel.js +0 -707
- package/lib/CarouselItem.js +0 -434
- package/lib/Cascader.js +0 -4641
- package/lib/CascaderPanel.js +0 -2602
- package/lib/Checkbox.js +0 -627
- package/lib/CheckboxButton.js +0 -583
- package/lib/CheckboxGroup.js +0 -313
- package/lib/Col.js +0 -177
- package/lib/Collapse.js +0 -329
- package/lib/CollapseItem.js +0 -497
- package/lib/ColorPicker.js +0 -2885
- package/lib/Container.js +0 -288
- package/lib/CySelectDisplayInput.js +0 -367
- package/lib/CySubTitle.js +0 -295
- package/lib/CyTabDialog.js +0 -1184
- package/lib/CyTreeSelect.js +0 -4422
- package/lib/DatePicker.js +0 -7574
- package/lib/Descriptions.js +0 -457
- package/lib/DescriptionsItem.js +0 -140
- package/lib/Dialog.js +0 -598
- package/lib/Divider.js +0 -313
- package/lib/Drawer.js +0 -592
- package/lib/Dropdown.js +0 -856
- package/lib/DropdownItem.js +0 -316
- package/lib/DropdownMenu.js +0 -351
- package/lib/Empty.js +0 -730
- package/lib/Footer.js +0 -277
- package/lib/Form.js +0 -466
- package/lib/FormItem.js +0 -826
- package/lib/Header.js +0 -277
- package/lib/Icon.js +0 -265
- package/lib/Image.js +0 -1138
- package/lib/InfiniteScroll.js +0 -301
- package/lib/Input.js +0 -999
- package/lib/InputNumber.js +0 -1552
- package/lib/Link.js +0 -332
- package/lib/Loading.js +0 -631
- package/lib/Main.js +0 -264
- package/lib/Menu.js +0 -865
- package/lib/MenuItem.js +0 -818
- package/lib/MenuItemGroup.js +0 -308
- package/lib/Message.js +0 -548
- package/lib/MessageBox.js +0 -2134
- package/lib/Notification.js +0 -615
- package/lib/Option.js +0 -474
- package/lib/OptionGroup.js +0 -344
- package/lib/PageHeader.js +0 -319
- package/lib/Pagination.js +0 -4123
- package/lib/Popconfirm.js +0 -1025
- package/lib/Popover.js +0 -617
- package/lib/Progress.js +0 -595
- package/lib/Radio.js +0 -497
- package/lib/RadioButton.js +0 -463
- package/lib/RadioGroup.js +0 -391
- package/lib/Rate.js +0 -670
- package/lib/Result.js +0 -578
- package/lib/Row.js +0 -149
- package/lib/Scrollbar.js +0 -423
- package/lib/Select.js +0 -3368
- package/lib/Skeleton.js +0 -372
- package/lib/SkeletonItem.js +0 -342
- package/lib/Slider.js +0 -2854
- package/lib/Spinner.js +0 -301
- package/lib/Statistic.js +0 -533
- package/lib/Step.js +0 -522
- package/lib/Steps.js +0 -342
- package/lib/Submenu.js +0 -700
- package/lib/Switch.js +0 -554
- package/lib/TabPane.js +0 -332
- package/lib/Table.js +0 -6125
- package/lib/TableColumn.js +0 -1481
- package/lib/Tabs.js +0 -920
- package/lib/Tag.js +0 -304
- package/lib/TimePicker.js +0 -4059
- package/lib/TimeSelect.js +0 -2871
- package/lib/Timeline.js +0 -275
- package/lib/TimelineItem.js +0 -371
- package/lib/Tooltip.js +0 -425
- package/lib/Transfer.js +0 -2557
- package/lib/Tree.js +0 -2680
- package/lib/Upload.js +0 -1782
package/lib/MenuItem.js
DELETED
|
@@ -1,818 +0,0 @@
|
|
|
1
|
-
module.exports =
|
|
2
|
-
/******/ (function(modules) { // webpackBootstrap
|
|
3
|
-
/******/ // The module cache
|
|
4
|
-
/******/ var installedModules = {};
|
|
5
|
-
/******/
|
|
6
|
-
/******/ // The require function
|
|
7
|
-
/******/ function __webpack_require__(moduleId) {
|
|
8
|
-
/******/
|
|
9
|
-
/******/ // Check if module is in cache
|
|
10
|
-
/******/ if(installedModules[moduleId]) {
|
|
11
|
-
/******/ return installedModules[moduleId].exports;
|
|
12
|
-
/******/ }
|
|
13
|
-
/******/ // Create a new module (and put it into the cache)
|
|
14
|
-
/******/ var module = installedModules[moduleId] = {
|
|
15
|
-
/******/ i: moduleId,
|
|
16
|
-
/******/ l: false,
|
|
17
|
-
/******/ exports: {}
|
|
18
|
-
/******/ };
|
|
19
|
-
/******/
|
|
20
|
-
/******/ // Execute the module function
|
|
21
|
-
/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
|
|
22
|
-
/******/
|
|
23
|
-
/******/ // Flag the module as loaded
|
|
24
|
-
/******/ module.l = true;
|
|
25
|
-
/******/
|
|
26
|
-
/******/ // Return the exports of the module
|
|
27
|
-
/******/ return module.exports;
|
|
28
|
-
/******/ }
|
|
29
|
-
/******/
|
|
30
|
-
/******/
|
|
31
|
-
/******/ // expose the modules object (__webpack_modules__)
|
|
32
|
-
/******/ __webpack_require__.m = modules;
|
|
33
|
-
/******/
|
|
34
|
-
/******/ // expose the module cache
|
|
35
|
-
/******/ __webpack_require__.c = installedModules;
|
|
36
|
-
/******/
|
|
37
|
-
/******/ // define getter function for harmony exports
|
|
38
|
-
/******/ __webpack_require__.d = function(exports, name, getter) {
|
|
39
|
-
/******/ if(!__webpack_require__.o(exports, name)) {
|
|
40
|
-
/******/ Object.defineProperty(exports, name, { enumerable: true, get: getter });
|
|
41
|
-
/******/ }
|
|
42
|
-
/******/ };
|
|
43
|
-
/******/
|
|
44
|
-
/******/ // define __esModule on exports
|
|
45
|
-
/******/ __webpack_require__.r = function(exports) {
|
|
46
|
-
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
|
|
47
|
-
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
48
|
-
/******/ }
|
|
49
|
-
/******/ Object.defineProperty(exports, '__esModule', { value: true });
|
|
50
|
-
/******/ };
|
|
51
|
-
/******/
|
|
52
|
-
/******/ // create a fake namespace object
|
|
53
|
-
/******/ // mode & 1: value is a module id, require it
|
|
54
|
-
/******/ // mode & 2: merge all properties of value into the ns
|
|
55
|
-
/******/ // mode & 4: return value when already ns object
|
|
56
|
-
/******/ // mode & 8|1: behave like require
|
|
57
|
-
/******/ __webpack_require__.t = function(value, mode) {
|
|
58
|
-
/******/ if(mode & 1) value = __webpack_require__(value);
|
|
59
|
-
/******/ if(mode & 8) return value;
|
|
60
|
-
/******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
|
|
61
|
-
/******/ var ns = Object.create(null);
|
|
62
|
-
/******/ __webpack_require__.r(ns);
|
|
63
|
-
/******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value });
|
|
64
|
-
/******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
|
|
65
|
-
/******/ return ns;
|
|
66
|
-
/******/ };
|
|
67
|
-
/******/
|
|
68
|
-
/******/ // getDefaultExport function for compatibility with non-harmony modules
|
|
69
|
-
/******/ __webpack_require__.n = function(module) {
|
|
70
|
-
/******/ var getter = module && module.__esModule ?
|
|
71
|
-
/******/ function getDefault() { return module['default']; } :
|
|
72
|
-
/******/ function getModuleExports() { return module; };
|
|
73
|
-
/******/ __webpack_require__.d(getter, 'a', getter);
|
|
74
|
-
/******/ return getter;
|
|
75
|
-
/******/ };
|
|
76
|
-
/******/
|
|
77
|
-
/******/ // Object.prototype.hasOwnProperty.call
|
|
78
|
-
/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
|
|
79
|
-
/******/
|
|
80
|
-
/******/ // __webpack_public_path__
|
|
81
|
-
/******/ __webpack_require__.p = "/dist/";
|
|
82
|
-
/******/
|
|
83
|
-
/******/
|
|
84
|
-
/******/ // Load entry module and return exports
|
|
85
|
-
/******/ return __webpack_require__(__webpack_require__.s = 81);
|
|
86
|
-
/******/ })
|
|
87
|
-
/************************************************************************/
|
|
88
|
-
/******/ ({
|
|
89
|
-
|
|
90
|
-
/***/ 0:
|
|
91
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
92
|
-
|
|
93
|
-
"use strict";
|
|
94
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return normalizeComponent; });
|
|
95
|
-
/* globals __VUE_SSR_CONTEXT__ */
|
|
96
|
-
|
|
97
|
-
// IMPORTANT: Do NOT use ES2015 features in this file (except for modules).
|
|
98
|
-
// This module is a runtime utility for cleaner component module output and will
|
|
99
|
-
// be included in the final webpack user bundle.
|
|
100
|
-
|
|
101
|
-
function normalizeComponent(
|
|
102
|
-
scriptExports,
|
|
103
|
-
render,
|
|
104
|
-
staticRenderFns,
|
|
105
|
-
functionalTemplate,
|
|
106
|
-
injectStyles,
|
|
107
|
-
scopeId,
|
|
108
|
-
moduleIdentifier /* server only */,
|
|
109
|
-
shadowMode /* vue-cli only */
|
|
110
|
-
) {
|
|
111
|
-
// Vue.extend constructor export interop
|
|
112
|
-
var options =
|
|
113
|
-
typeof scriptExports === 'function' ? scriptExports.options : scriptExports
|
|
114
|
-
|
|
115
|
-
// render functions
|
|
116
|
-
if (render) {
|
|
117
|
-
options.render = render
|
|
118
|
-
options.staticRenderFns = staticRenderFns
|
|
119
|
-
options._compiled = true
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
// functional template
|
|
123
|
-
if (functionalTemplate) {
|
|
124
|
-
options.functional = true
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
// scopedId
|
|
128
|
-
if (scopeId) {
|
|
129
|
-
options._scopeId = 'data-v-' + scopeId
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
var hook
|
|
133
|
-
if (moduleIdentifier) {
|
|
134
|
-
// server build
|
|
135
|
-
hook = function (context) {
|
|
136
|
-
// 2.3 injection
|
|
137
|
-
context =
|
|
138
|
-
context || // cached call
|
|
139
|
-
(this.$vnode && this.$vnode.ssrContext) || // stateful
|
|
140
|
-
(this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional
|
|
141
|
-
// 2.2 with runInNewContext: true
|
|
142
|
-
if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
|
|
143
|
-
context = __VUE_SSR_CONTEXT__
|
|
144
|
-
}
|
|
145
|
-
// inject component styles
|
|
146
|
-
if (injectStyles) {
|
|
147
|
-
injectStyles.call(this, context)
|
|
148
|
-
}
|
|
149
|
-
// register component module identifier for async chunk inferrence
|
|
150
|
-
if (context && context._registeredComponents) {
|
|
151
|
-
context._registeredComponents.add(moduleIdentifier)
|
|
152
|
-
}
|
|
153
|
-
}
|
|
154
|
-
// used by ssr in case component is cached and beforeCreate
|
|
155
|
-
// never gets called
|
|
156
|
-
options._ssrRegister = hook
|
|
157
|
-
} else if (injectStyles) {
|
|
158
|
-
hook = shadowMode
|
|
159
|
-
? function () {
|
|
160
|
-
injectStyles.call(
|
|
161
|
-
this,
|
|
162
|
-
(options.functional ? this.parent : this).$root.$options.shadowRoot
|
|
163
|
-
)
|
|
164
|
-
}
|
|
165
|
-
: injectStyles
|
|
166
|
-
}
|
|
167
|
-
|
|
168
|
-
if (hook) {
|
|
169
|
-
if (options.functional) {
|
|
170
|
-
// for template-only hot-reload because in that case the render fn doesn't
|
|
171
|
-
// go through the normalizer
|
|
172
|
-
options._injectStyles = hook
|
|
173
|
-
// register for functional component in vue file
|
|
174
|
-
var originalRender = options.render
|
|
175
|
-
options.render = function renderWithStyleInjection(h, context) {
|
|
176
|
-
hook.call(context)
|
|
177
|
-
return originalRender(h, context)
|
|
178
|
-
}
|
|
179
|
-
} else {
|
|
180
|
-
// inject component registration as beforeCreate hook
|
|
181
|
-
var existing = options.beforeCreate
|
|
182
|
-
options.beforeCreate = existing ? [].concat(existing, hook) : [hook]
|
|
183
|
-
}
|
|
184
|
-
}
|
|
185
|
-
|
|
186
|
-
return {
|
|
187
|
-
exports: scriptExports,
|
|
188
|
-
options: options
|
|
189
|
-
}
|
|
190
|
-
}
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
/***/ }),
|
|
194
|
-
|
|
195
|
-
/***/ 1:
|
|
196
|
-
/***/ (function(module, exports) {
|
|
197
|
-
|
|
198
|
-
module.exports = require("element-ui/lib/utils/dom");
|
|
199
|
-
|
|
200
|
-
/***/ }),
|
|
201
|
-
|
|
202
|
-
/***/ 15:
|
|
203
|
-
/***/ (function(module, exports) {
|
|
204
|
-
|
|
205
|
-
module.exports = require("throttle-debounce/debounce");
|
|
206
|
-
|
|
207
|
-
/***/ }),
|
|
208
|
-
|
|
209
|
-
/***/ 3:
|
|
210
|
-
/***/ (function(module, exports) {
|
|
211
|
-
|
|
212
|
-
module.exports = require("element-ui/lib/utils/util");
|
|
213
|
-
|
|
214
|
-
/***/ }),
|
|
215
|
-
|
|
216
|
-
/***/ 31:
|
|
217
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
218
|
-
|
|
219
|
-
"use strict";
|
|
220
|
-
// ESM COMPAT FLAG
|
|
221
|
-
__webpack_require__.r(__webpack_exports__);
|
|
222
|
-
|
|
223
|
-
// EXTERNAL MODULE: external "element-ui/lib/utils/vue-popper"
|
|
224
|
-
var vue_popper_ = __webpack_require__(5);
|
|
225
|
-
var vue_popper_default = /*#__PURE__*/__webpack_require__.n(vue_popper_);
|
|
226
|
-
|
|
227
|
-
// EXTERNAL MODULE: external "throttle-debounce/debounce"
|
|
228
|
-
var debounce_ = __webpack_require__(15);
|
|
229
|
-
var debounce_default = /*#__PURE__*/__webpack_require__.n(debounce_);
|
|
230
|
-
|
|
231
|
-
// EXTERNAL MODULE: external "element-ui/lib/utils/dom"
|
|
232
|
-
var dom_ = __webpack_require__(1);
|
|
233
|
-
|
|
234
|
-
// EXTERNAL MODULE: external "element-ui/lib/utils/util"
|
|
235
|
-
var util_ = __webpack_require__(3);
|
|
236
|
-
|
|
237
|
-
// EXTERNAL MODULE: external "vue"
|
|
238
|
-
var external_vue_ = __webpack_require__(8);
|
|
239
|
-
var external_vue_default = /*#__PURE__*/__webpack_require__.n(external_vue_);
|
|
240
|
-
|
|
241
|
-
// CONCATENATED MODULE: ./packages/tooltip/src/main.js
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
/* harmony default export */ var main = ({
|
|
249
|
-
name: 'ElTooltip',
|
|
250
|
-
|
|
251
|
-
mixins: [vue_popper_default.a],
|
|
252
|
-
|
|
253
|
-
props: {
|
|
254
|
-
openDelay: {
|
|
255
|
-
type: Number,
|
|
256
|
-
default: 0
|
|
257
|
-
},
|
|
258
|
-
disabled: Boolean,
|
|
259
|
-
manual: Boolean,
|
|
260
|
-
effect: {
|
|
261
|
-
type: String,
|
|
262
|
-
default: 'dark'
|
|
263
|
-
},
|
|
264
|
-
arrowOffset: {
|
|
265
|
-
type: Number,
|
|
266
|
-
default: 0
|
|
267
|
-
},
|
|
268
|
-
popperClass: String,
|
|
269
|
-
content: String,
|
|
270
|
-
visibleArrow: {
|
|
271
|
-
default: true
|
|
272
|
-
},
|
|
273
|
-
transition: {
|
|
274
|
-
type: String,
|
|
275
|
-
default: 'el-fade-in-linear'
|
|
276
|
-
},
|
|
277
|
-
popperOptions: {
|
|
278
|
-
default: function _default() {
|
|
279
|
-
return {
|
|
280
|
-
boundariesPadding: 10,
|
|
281
|
-
gpuAcceleration: false
|
|
282
|
-
};
|
|
283
|
-
}
|
|
284
|
-
},
|
|
285
|
-
enterable: {
|
|
286
|
-
type: Boolean,
|
|
287
|
-
default: true
|
|
288
|
-
},
|
|
289
|
-
hideAfter: {
|
|
290
|
-
type: Number,
|
|
291
|
-
default: 0
|
|
292
|
-
},
|
|
293
|
-
tabindex: {
|
|
294
|
-
type: Number,
|
|
295
|
-
default: 0
|
|
296
|
-
}
|
|
297
|
-
},
|
|
298
|
-
|
|
299
|
-
data: function data() {
|
|
300
|
-
return {
|
|
301
|
-
tooltipId: 'el-tooltip-' + Object(util_["generateId"])(),
|
|
302
|
-
timeoutPending: null,
|
|
303
|
-
focusing: false
|
|
304
|
-
};
|
|
305
|
-
},
|
|
306
|
-
beforeCreate: function beforeCreate() {
|
|
307
|
-
var _this = this;
|
|
308
|
-
|
|
309
|
-
if (this.$isServer) return;
|
|
310
|
-
|
|
311
|
-
this.popperVM = new external_vue_default.a({
|
|
312
|
-
data: { node: '' },
|
|
313
|
-
render: function render(h) {
|
|
314
|
-
return this.node;
|
|
315
|
-
}
|
|
316
|
-
}).$mount();
|
|
317
|
-
|
|
318
|
-
this.debounceClose = debounce_default()(200, function () {
|
|
319
|
-
return _this.handleClosePopper();
|
|
320
|
-
});
|
|
321
|
-
},
|
|
322
|
-
render: function render(h) {
|
|
323
|
-
var _this2 = this;
|
|
324
|
-
|
|
325
|
-
if (this.popperVM) {
|
|
326
|
-
this.popperVM.node = h(
|
|
327
|
-
'transition',
|
|
328
|
-
{
|
|
329
|
-
attrs: {
|
|
330
|
-
name: this.transition
|
|
331
|
-
},
|
|
332
|
-
on: {
|
|
333
|
-
'afterLeave': this.doDestroy
|
|
334
|
-
}
|
|
335
|
-
},
|
|
336
|
-
[h(
|
|
337
|
-
'div',
|
|
338
|
-
{
|
|
339
|
-
on: {
|
|
340
|
-
'mouseleave': function mouseleave() {
|
|
341
|
-
_this2.setExpectedState(false);_this2.debounceClose();
|
|
342
|
-
},
|
|
343
|
-
'mouseenter': function mouseenter() {
|
|
344
|
-
_this2.setExpectedState(true);
|
|
345
|
-
}
|
|
346
|
-
},
|
|
347
|
-
|
|
348
|
-
ref: 'popper',
|
|
349
|
-
attrs: { role: 'tooltip',
|
|
350
|
-
id: this.tooltipId,
|
|
351
|
-
'aria-hidden': this.disabled || !this.showPopper ? 'true' : 'false'
|
|
352
|
-
},
|
|
353
|
-
directives: [{
|
|
354
|
-
name: 'show',
|
|
355
|
-
value: !this.disabled && this.showPopper
|
|
356
|
-
}],
|
|
357
|
-
|
|
358
|
-
'class': ['el-tooltip__popper', 'is-' + this.effect, this.popperClass] },
|
|
359
|
-
[this.$slots.content || this.content]
|
|
360
|
-
)]
|
|
361
|
-
);
|
|
362
|
-
}
|
|
363
|
-
|
|
364
|
-
var firstElement = this.getFirstElement();
|
|
365
|
-
if (!firstElement) return null;
|
|
366
|
-
|
|
367
|
-
var data = firstElement.data = firstElement.data || {};
|
|
368
|
-
data.staticClass = this.addTooltipClass(data.staticClass);
|
|
369
|
-
|
|
370
|
-
return firstElement;
|
|
371
|
-
},
|
|
372
|
-
mounted: function mounted() {
|
|
373
|
-
var _this3 = this;
|
|
374
|
-
|
|
375
|
-
this.referenceElm = this.$el;
|
|
376
|
-
if (this.$el.nodeType === 1) {
|
|
377
|
-
this.$el.setAttribute('aria-describedby', this.tooltipId);
|
|
378
|
-
this.$el.setAttribute('tabindex', this.tabindex);
|
|
379
|
-
Object(dom_["on"])(this.referenceElm, 'mouseenter', this.show);
|
|
380
|
-
Object(dom_["on"])(this.referenceElm, 'mouseleave', this.hide);
|
|
381
|
-
Object(dom_["on"])(this.referenceElm, 'focus', function () {
|
|
382
|
-
if (!_this3.$slots.default || !_this3.$slots.default.length) {
|
|
383
|
-
_this3.handleFocus();
|
|
384
|
-
return;
|
|
385
|
-
}
|
|
386
|
-
var instance = _this3.$slots.default[0].componentInstance;
|
|
387
|
-
if (instance && instance.focus) {
|
|
388
|
-
instance.focus();
|
|
389
|
-
} else {
|
|
390
|
-
_this3.handleFocus();
|
|
391
|
-
}
|
|
392
|
-
});
|
|
393
|
-
Object(dom_["on"])(this.referenceElm, 'blur', this.handleBlur);
|
|
394
|
-
Object(dom_["on"])(this.referenceElm, 'click', this.removeFocusing);
|
|
395
|
-
}
|
|
396
|
-
// fix issue https://github.com/ElemeFE/element/issues/14424
|
|
397
|
-
if (this.value && this.popperVM) {
|
|
398
|
-
this.popperVM.$nextTick(function () {
|
|
399
|
-
if (_this3.value) {
|
|
400
|
-
_this3.updatePopper();
|
|
401
|
-
}
|
|
402
|
-
});
|
|
403
|
-
}
|
|
404
|
-
},
|
|
405
|
-
|
|
406
|
-
watch: {
|
|
407
|
-
focusing: function focusing(val) {
|
|
408
|
-
if (val) {
|
|
409
|
-
Object(dom_["addClass"])(this.referenceElm, 'focusing');
|
|
410
|
-
} else {
|
|
411
|
-
Object(dom_["removeClass"])(this.referenceElm, 'focusing');
|
|
412
|
-
}
|
|
413
|
-
}
|
|
414
|
-
},
|
|
415
|
-
methods: {
|
|
416
|
-
show: function show() {
|
|
417
|
-
this.setExpectedState(true);
|
|
418
|
-
this.handleShowPopper();
|
|
419
|
-
},
|
|
420
|
-
hide: function hide() {
|
|
421
|
-
this.setExpectedState(false);
|
|
422
|
-
this.debounceClose();
|
|
423
|
-
},
|
|
424
|
-
handleFocus: function handleFocus() {
|
|
425
|
-
this.focusing = true;
|
|
426
|
-
this.show();
|
|
427
|
-
},
|
|
428
|
-
handleBlur: function handleBlur() {
|
|
429
|
-
this.focusing = false;
|
|
430
|
-
this.hide();
|
|
431
|
-
},
|
|
432
|
-
removeFocusing: function removeFocusing() {
|
|
433
|
-
this.focusing = false;
|
|
434
|
-
},
|
|
435
|
-
addTooltipClass: function addTooltipClass(prev) {
|
|
436
|
-
if (!prev) {
|
|
437
|
-
return 'el-tooltip';
|
|
438
|
-
} else {
|
|
439
|
-
return 'el-tooltip ' + prev.replace('el-tooltip', '');
|
|
440
|
-
}
|
|
441
|
-
},
|
|
442
|
-
handleShowPopper: function handleShowPopper() {
|
|
443
|
-
var _this4 = this;
|
|
444
|
-
|
|
445
|
-
if (!this.expectedState || this.manual) return;
|
|
446
|
-
clearTimeout(this.timeout);
|
|
447
|
-
this.timeout = setTimeout(function () {
|
|
448
|
-
_this4.showPopper = true;
|
|
449
|
-
}, this.openDelay);
|
|
450
|
-
|
|
451
|
-
if (this.hideAfter > 0) {
|
|
452
|
-
this.timeoutPending = setTimeout(function () {
|
|
453
|
-
_this4.showPopper = false;
|
|
454
|
-
}, this.hideAfter);
|
|
455
|
-
}
|
|
456
|
-
},
|
|
457
|
-
handleClosePopper: function handleClosePopper() {
|
|
458
|
-
if (this.enterable && this.expectedState || this.manual) return;
|
|
459
|
-
clearTimeout(this.timeout);
|
|
460
|
-
|
|
461
|
-
if (this.timeoutPending) {
|
|
462
|
-
clearTimeout(this.timeoutPending);
|
|
463
|
-
}
|
|
464
|
-
this.showPopper = false;
|
|
465
|
-
|
|
466
|
-
if (this.disabled) {
|
|
467
|
-
this.doDestroy();
|
|
468
|
-
}
|
|
469
|
-
},
|
|
470
|
-
setExpectedState: function setExpectedState(expectedState) {
|
|
471
|
-
if (expectedState === false) {
|
|
472
|
-
clearTimeout(this.timeoutPending);
|
|
473
|
-
}
|
|
474
|
-
this.expectedState = expectedState;
|
|
475
|
-
},
|
|
476
|
-
getFirstElement: function getFirstElement() {
|
|
477
|
-
var slots = this.$slots.default;
|
|
478
|
-
if (!Array.isArray(slots)) return null;
|
|
479
|
-
var element = null;
|
|
480
|
-
for (var index = 0; index < slots.length; index++) {
|
|
481
|
-
if (slots[index] && slots[index].tag) {
|
|
482
|
-
element = slots[index];
|
|
483
|
-
break;
|
|
484
|
-
};
|
|
485
|
-
}
|
|
486
|
-
return element;
|
|
487
|
-
}
|
|
488
|
-
},
|
|
489
|
-
|
|
490
|
-
beforeDestroy: function beforeDestroy() {
|
|
491
|
-
this.popperVM && this.popperVM.$destroy();
|
|
492
|
-
},
|
|
493
|
-
destroyed: function destroyed() {
|
|
494
|
-
var reference = this.referenceElm;
|
|
495
|
-
if (reference.nodeType === 1) {
|
|
496
|
-
Object(dom_["off"])(reference, 'mouseenter', this.show);
|
|
497
|
-
Object(dom_["off"])(reference, 'mouseleave', this.hide);
|
|
498
|
-
Object(dom_["off"])(reference, 'focus', this.handleFocus);
|
|
499
|
-
Object(dom_["off"])(reference, 'blur', this.handleBlur);
|
|
500
|
-
Object(dom_["off"])(reference, 'click', this.removeFocusing);
|
|
501
|
-
}
|
|
502
|
-
}
|
|
503
|
-
});
|
|
504
|
-
// CONCATENATED MODULE: ./packages/tooltip/index.js
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
/* istanbul ignore next */
|
|
508
|
-
main.install = function (Vue) {
|
|
509
|
-
Vue.component(main.name, main);
|
|
510
|
-
};
|
|
511
|
-
|
|
512
|
-
/* harmony default export */ var tooltip = __webpack_exports__["default"] = (main);
|
|
513
|
-
|
|
514
|
-
/***/ }),
|
|
515
|
-
|
|
516
|
-
/***/ 4:
|
|
517
|
-
/***/ (function(module, exports) {
|
|
518
|
-
|
|
519
|
-
module.exports = require("element-ui/lib/mixins/emitter");
|
|
520
|
-
|
|
521
|
-
/***/ }),
|
|
522
|
-
|
|
523
|
-
/***/ 44:
|
|
524
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
525
|
-
|
|
526
|
-
"use strict";
|
|
527
|
-
/* harmony default export */ __webpack_exports__["a"] = ({
|
|
528
|
-
inject: ['rootMenu'],
|
|
529
|
-
computed: {
|
|
530
|
-
indexPath: function indexPath() {
|
|
531
|
-
var path = [this.index];
|
|
532
|
-
var parent = this.$parent;
|
|
533
|
-
while (parent.$options.componentName !== 'ElMenu') {
|
|
534
|
-
if (parent.index) {
|
|
535
|
-
path.unshift(parent.index);
|
|
536
|
-
}
|
|
537
|
-
parent = parent.$parent;
|
|
538
|
-
}
|
|
539
|
-
return path;
|
|
540
|
-
},
|
|
541
|
-
parentMenu: function parentMenu() {
|
|
542
|
-
var parent = this.$parent;
|
|
543
|
-
while (parent && ['ElMenu', 'ElSubmenu'].indexOf(parent.$options.componentName) === -1) {
|
|
544
|
-
parent = parent.$parent;
|
|
545
|
-
}
|
|
546
|
-
return parent;
|
|
547
|
-
},
|
|
548
|
-
paddingStyle: function paddingStyle() {
|
|
549
|
-
if (this.rootMenu.mode !== 'vertical') return {};
|
|
550
|
-
|
|
551
|
-
var padding = 20;
|
|
552
|
-
var parent = this.$parent;
|
|
553
|
-
|
|
554
|
-
if (this.rootMenu.collapse) {
|
|
555
|
-
padding = 20;
|
|
556
|
-
} else {
|
|
557
|
-
while (parent && parent.$options.componentName !== 'ElMenu') {
|
|
558
|
-
if (parent.$options.componentName === 'ElSubmenu') {
|
|
559
|
-
padding += 20;
|
|
560
|
-
}
|
|
561
|
-
parent = parent.$parent;
|
|
562
|
-
}
|
|
563
|
-
}
|
|
564
|
-
return { paddingLeft: padding + 'px' };
|
|
565
|
-
}
|
|
566
|
-
}
|
|
567
|
-
});
|
|
568
|
-
|
|
569
|
-
/***/ }),
|
|
570
|
-
|
|
571
|
-
/***/ 5:
|
|
572
|
-
/***/ (function(module, exports) {
|
|
573
|
-
|
|
574
|
-
module.exports = require("element-ui/lib/utils/vue-popper");
|
|
575
|
-
|
|
576
|
-
/***/ }),
|
|
577
|
-
|
|
578
|
-
/***/ 8:
|
|
579
|
-
/***/ (function(module, exports) {
|
|
580
|
-
|
|
581
|
-
module.exports = require("vue");
|
|
582
|
-
|
|
583
|
-
/***/ }),
|
|
584
|
-
|
|
585
|
-
/***/ 81:
|
|
586
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
587
|
-
|
|
588
|
-
"use strict";
|
|
589
|
-
// ESM COMPAT FLAG
|
|
590
|
-
__webpack_require__.r(__webpack_exports__);
|
|
591
|
-
|
|
592
|
-
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/menu/src/menu-item.vue?vue&type=template&id=2fbffaa3
|
|
593
|
-
var render = function () {
|
|
594
|
-
var _vm = this
|
|
595
|
-
var _h = _vm.$createElement
|
|
596
|
-
var _c = _vm._self._c || _h
|
|
597
|
-
return _c(
|
|
598
|
-
"li",
|
|
599
|
-
{
|
|
600
|
-
staticClass: "el-menu-item",
|
|
601
|
-
class: {
|
|
602
|
-
"is-active": _vm.active,
|
|
603
|
-
"is-disabled": _vm.disabled,
|
|
604
|
-
},
|
|
605
|
-
style: [
|
|
606
|
-
_vm.paddingStyle,
|
|
607
|
-
_vm.itemStyle,
|
|
608
|
-
{ backgroundColor: _vm.backgroundColor },
|
|
609
|
-
],
|
|
610
|
-
attrs: { role: "menuitem", tabindex: "-1" },
|
|
611
|
-
on: {
|
|
612
|
-
click: _vm.handleClick,
|
|
613
|
-
mouseenter: _vm.onMouseEnter,
|
|
614
|
-
focus: _vm.onMouseEnter,
|
|
615
|
-
blur: _vm.onMouseLeave,
|
|
616
|
-
mouseleave: _vm.onMouseLeave,
|
|
617
|
-
},
|
|
618
|
-
},
|
|
619
|
-
[
|
|
620
|
-
_vm.parentMenu.$options.componentName === "ElMenu" &&
|
|
621
|
-
_vm.rootMenu.collapse &&
|
|
622
|
-
_vm.$slots.title
|
|
623
|
-
? _c("el-tooltip", { attrs: { effect: "dark", placement: "right" } }, [
|
|
624
|
-
_c(
|
|
625
|
-
"div",
|
|
626
|
-
{ attrs: { slot: "content" }, slot: "content" },
|
|
627
|
-
[_vm._t("title")],
|
|
628
|
-
2
|
|
629
|
-
),
|
|
630
|
-
_c(
|
|
631
|
-
"div",
|
|
632
|
-
{
|
|
633
|
-
staticStyle: {
|
|
634
|
-
position: "absolute",
|
|
635
|
-
left: "0",
|
|
636
|
-
top: "0",
|
|
637
|
-
height: "100%",
|
|
638
|
-
width: "100%",
|
|
639
|
-
display: "inline-block",
|
|
640
|
-
"box-sizing": "border-box",
|
|
641
|
-
padding: "0 20px",
|
|
642
|
-
},
|
|
643
|
-
},
|
|
644
|
-
[_vm._t("default")],
|
|
645
|
-
2
|
|
646
|
-
),
|
|
647
|
-
])
|
|
648
|
-
: [_vm._t("default"), _vm._t("title")],
|
|
649
|
-
],
|
|
650
|
-
2
|
|
651
|
-
)
|
|
652
|
-
}
|
|
653
|
-
var staticRenderFns = []
|
|
654
|
-
render._withStripped = true
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
// CONCATENATED MODULE: ./packages/menu/src/menu-item.vue?vue&type=template&id=2fbffaa3
|
|
658
|
-
|
|
659
|
-
// EXTERNAL MODULE: ./packages/menu/src/menu-mixin.js
|
|
660
|
-
var menu_mixin = __webpack_require__(44);
|
|
661
|
-
|
|
662
|
-
// EXTERNAL MODULE: ./packages/tooltip/index.js + 1 modules
|
|
663
|
-
var tooltip = __webpack_require__(31);
|
|
664
|
-
|
|
665
|
-
// EXTERNAL MODULE: external "element-ui/lib/mixins/emitter"
|
|
666
|
-
var emitter_ = __webpack_require__(4);
|
|
667
|
-
var emitter_default = /*#__PURE__*/__webpack_require__.n(emitter_);
|
|
668
|
-
|
|
669
|
-
// CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/menu/src/menu-item.vue?vue&type=script&lang=js
|
|
670
|
-
//
|
|
671
|
-
//
|
|
672
|
-
//
|
|
673
|
-
//
|
|
674
|
-
//
|
|
675
|
-
//
|
|
676
|
-
//
|
|
677
|
-
//
|
|
678
|
-
//
|
|
679
|
-
//
|
|
680
|
-
//
|
|
681
|
-
//
|
|
682
|
-
//
|
|
683
|
-
//
|
|
684
|
-
//
|
|
685
|
-
//
|
|
686
|
-
//
|
|
687
|
-
//
|
|
688
|
-
//
|
|
689
|
-
//
|
|
690
|
-
//
|
|
691
|
-
//
|
|
692
|
-
//
|
|
693
|
-
//
|
|
694
|
-
//
|
|
695
|
-
//
|
|
696
|
-
//
|
|
697
|
-
//
|
|
698
|
-
//
|
|
699
|
-
//
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
/* harmony default export */ var menu_itemvue_type_script_lang_js = ({
|
|
706
|
-
name: 'ElMenuItem',
|
|
707
|
-
|
|
708
|
-
componentName: 'ElMenuItem',
|
|
709
|
-
|
|
710
|
-
mixins: [menu_mixin["a" /* default */], emitter_default.a],
|
|
711
|
-
|
|
712
|
-
components: { ElTooltip: tooltip["default"] },
|
|
713
|
-
|
|
714
|
-
props: {
|
|
715
|
-
index: {
|
|
716
|
-
default: null,
|
|
717
|
-
validator: function validator(val) {
|
|
718
|
-
return typeof val === 'string' || val === null;
|
|
719
|
-
}
|
|
720
|
-
},
|
|
721
|
-
route: [String, Object],
|
|
722
|
-
disabled: Boolean
|
|
723
|
-
},
|
|
724
|
-
computed: {
|
|
725
|
-
active: function active() {
|
|
726
|
-
return this.index === this.rootMenu.activeIndex;
|
|
727
|
-
},
|
|
728
|
-
hoverBackground: function hoverBackground() {
|
|
729
|
-
return this.rootMenu.hoverBackground;
|
|
730
|
-
},
|
|
731
|
-
backgroundColor: function backgroundColor() {
|
|
732
|
-
return this.rootMenu.backgroundColor || '';
|
|
733
|
-
},
|
|
734
|
-
activeTextColor: function activeTextColor() {
|
|
735
|
-
return this.rootMenu.activeTextColor || '';
|
|
736
|
-
},
|
|
737
|
-
textColor: function textColor() {
|
|
738
|
-
return this.rootMenu.textColor || '';
|
|
739
|
-
},
|
|
740
|
-
mode: function mode() {
|
|
741
|
-
return this.rootMenu.mode;
|
|
742
|
-
},
|
|
743
|
-
itemStyle: function itemStyle() {
|
|
744
|
-
var style = {
|
|
745
|
-
color: this.active ? this.activeTextColor : this.textColor
|
|
746
|
-
};
|
|
747
|
-
if (this.mode === 'horizontal' && !this.isNested) {
|
|
748
|
-
style.borderBottomColor = this.active ? this.rootMenu.activeTextColor ? this.activeTextColor : '' : 'transparent';
|
|
749
|
-
}
|
|
750
|
-
return style;
|
|
751
|
-
},
|
|
752
|
-
isNested: function isNested() {
|
|
753
|
-
return this.parentMenu !== this.rootMenu;
|
|
754
|
-
}
|
|
755
|
-
},
|
|
756
|
-
methods: {
|
|
757
|
-
onMouseEnter: function onMouseEnter() {
|
|
758
|
-
if (this.mode === 'horizontal' && !this.rootMenu.backgroundColor) return;
|
|
759
|
-
this.$el.style.backgroundColor = this.hoverBackground;
|
|
760
|
-
},
|
|
761
|
-
onMouseLeave: function onMouseLeave() {
|
|
762
|
-
if (this.mode === 'horizontal' && !this.rootMenu.backgroundColor) return;
|
|
763
|
-
this.$el.style.backgroundColor = this.backgroundColor;
|
|
764
|
-
},
|
|
765
|
-
handleClick: function handleClick() {
|
|
766
|
-
if (!this.disabled) {
|
|
767
|
-
this.dispatch('ElMenu', 'item-click', this);
|
|
768
|
-
this.$emit('click', this);
|
|
769
|
-
}
|
|
770
|
-
}
|
|
771
|
-
},
|
|
772
|
-
mounted: function mounted() {
|
|
773
|
-
this.parentMenu.addItem(this);
|
|
774
|
-
this.rootMenu.addItem(this);
|
|
775
|
-
},
|
|
776
|
-
beforeDestroy: function beforeDestroy() {
|
|
777
|
-
this.parentMenu.removeItem(this);
|
|
778
|
-
this.rootMenu.removeItem(this);
|
|
779
|
-
}
|
|
780
|
-
});
|
|
781
|
-
// CONCATENATED MODULE: ./packages/menu/src/menu-item.vue?vue&type=script&lang=js
|
|
782
|
-
/* harmony default export */ var src_menu_itemvue_type_script_lang_js = (menu_itemvue_type_script_lang_js);
|
|
783
|
-
// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
|
|
784
|
-
var componentNormalizer = __webpack_require__(0);
|
|
785
|
-
|
|
786
|
-
// CONCATENATED MODULE: ./packages/menu/src/menu-item.vue
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
/* normalize component */
|
|
793
|
-
|
|
794
|
-
var component = Object(componentNormalizer["a" /* default */])(
|
|
795
|
-
src_menu_itemvue_type_script_lang_js,
|
|
796
|
-
render,
|
|
797
|
-
staticRenderFns,
|
|
798
|
-
false,
|
|
799
|
-
null,
|
|
800
|
-
null,
|
|
801
|
-
null
|
|
802
|
-
|
|
803
|
-
)
|
|
804
|
-
|
|
805
|
-
/* harmony default export */ var menu_item = (component.exports);
|
|
806
|
-
// CONCATENATED MODULE: ./packages/menu-item/index.js
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
/* istanbul ignore next */
|
|
810
|
-
menu_item.install = function (Vue) {
|
|
811
|
-
Vue.component(menu_item.name, menu_item);
|
|
812
|
-
};
|
|
813
|
-
|
|
814
|
-
/* harmony default export */ var packages_menu_item = __webpack_exports__["default"] = (menu_item);
|
|
815
|
-
|
|
816
|
-
/***/ })
|
|
817
|
-
|
|
818
|
-
/******/ });
|