cy-element-ui 1.1.18 → 1.1.20
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/lib/theme-chalk/BreadcrumbItem.css +0 -0
- package/lib/theme-chalk/ButtonGroup.css +0 -0
- package/lib/theme-chalk/CarouselItem.css +0 -0
- package/lib/theme-chalk/CascaderPanel.css +0 -0
- package/lib/theme-chalk/CheckboxButton.css +0 -0
- package/lib/theme-chalk/CheckboxGroup.css +0 -0
- package/lib/theme-chalk/CollapseItem.css +0 -0
- package/lib/theme-chalk/ColorPicker.css +0 -0
- package/lib/theme-chalk/DatePicker.css +0 -0
- package/lib/theme-chalk/DescriptionsItem.css +0 -0
- package/lib/theme-chalk/DropdownItem.css +0 -0
- package/lib/theme-chalk/DropdownMenu.css +0 -0
- package/lib/theme-chalk/FormItem.css +0 -0
- package/lib/theme-chalk/InputNumber.css +0 -0
- package/lib/theme-chalk/MenuItem.css +0 -0
- package/lib/theme-chalk/MenuItemGroup.css +0 -0
- package/lib/theme-chalk/MessageBox.css +0 -0
- package/lib/theme-chalk/OptionGroup.css +0 -0
- package/lib/theme-chalk/PageHeader.css +0 -0
- package/lib/theme-chalk/RadioButton.css +0 -0
- package/lib/theme-chalk/RadioGroup.css +0 -0
- package/lib/theme-chalk/SkeletonItem.css +0 -0
- package/lib/theme-chalk/TabPane.css +0 -0
- package/lib/theme-chalk/TableColumn.css +0 -0
- package/lib/theme-chalk/TimePicker.css +0 -0
- package/lib/theme-chalk/TimeSelect.css +0 -0
- package/lib/theme-chalk/TimelineItem.css +0 -0
- package/lib/theme-chalk/alert.css +1 -0
- package/lib/theme-chalk/aside.css +1 -0
- package/lib/theme-chalk/autocomplete.css +1 -0
- package/lib/theme-chalk/avatar.css +1 -0
- package/lib/theme-chalk/backtop.css +1 -0
- package/lib/theme-chalk/badge.css +1 -0
- package/lib/theme-chalk/base.css +1 -0
- package/lib/theme-chalk/breadcrumb-item.css +0 -0
- package/lib/theme-chalk/breadcrumb.css +1 -0
- package/lib/theme-chalk/button-group.css +0 -0
- package/lib/theme-chalk/button.css +1 -0
- package/lib/theme-chalk/calendar.css +1 -0
- package/lib/theme-chalk/card.css +1 -0
- package/lib/theme-chalk/carousel-item.css +1 -0
- package/lib/theme-chalk/carousel.css +1 -0
- package/lib/theme-chalk/cascader-panel.css +1 -0
- package/lib/theme-chalk/cascader.css +1 -0
- package/lib/theme-chalk/checkbox-button.css +0 -0
- package/lib/theme-chalk/checkbox-group.css +0 -0
- package/lib/theme-chalk/checkbox.css +1 -0
- package/lib/theme-chalk/col.css +1 -0
- package/lib/theme-chalk/collapse-item.css +0 -0
- package/lib/theme-chalk/collapse.css +1 -0
- package/lib/theme-chalk/color-picker.css +1 -0
- package/lib/theme-chalk/container.css +1 -0
- package/lib/theme-chalk/date-picker.css +1 -0
- package/lib/theme-chalk/descriptions-item.css +1 -0
- package/lib/theme-chalk/descriptions.css +1 -0
- package/lib/theme-chalk/dialog.css +1 -0
- package/lib/theme-chalk/display.css +1 -0
- package/lib/theme-chalk/divider.css +1 -0
- package/lib/theme-chalk/drawer.css +1 -0
- package/lib/theme-chalk/dropdown-item.css +0 -0
- package/lib/theme-chalk/dropdown-menu.css +0 -0
- package/lib/theme-chalk/dropdown.css +1 -0
- package/lib/theme-chalk/element.css +1 -0
- package/lib/theme-chalk/empty.css +1 -0
- package/lib/theme-chalk/fonts/element-icons.ttf +0 -0
- package/lib/theme-chalk/fonts/element-icons.woff +0 -0
- package/lib/theme-chalk/footer.css +1 -0
- package/lib/theme-chalk/form-item.css +0 -0
- package/lib/theme-chalk/form.css +1 -0
- package/lib/theme-chalk/header.css +1 -0
- package/lib/theme-chalk/icon.css +1 -0
- package/lib/theme-chalk/image.css +1 -0
- package/lib/theme-chalk/index.css +1 -0
- package/lib/theme-chalk/infinite-scroll.css +0 -0
- package/lib/theme-chalk/infiniteScroll.css +0 -0
- package/lib/theme-chalk/input-number.css +1 -0
- package/lib/theme-chalk/input.css +1 -0
- package/lib/theme-chalk/link.css +1 -0
- package/lib/theme-chalk/loading.css +1 -0
- package/lib/theme-chalk/main.css +1 -0
- package/lib/theme-chalk/menu-item-group.css +0 -0
- package/lib/theme-chalk/menu-item.css +0 -0
- package/lib/theme-chalk/menu.css +1 -0
- package/lib/theme-chalk/message-box.css +1 -0
- package/lib/theme-chalk/message.css +1 -0
- package/lib/theme-chalk/notification.css +1 -0
- package/lib/theme-chalk/option-group.css +1 -0
- package/lib/theme-chalk/option.css +1 -0
- package/lib/theme-chalk/page-header.css +1 -0
- package/lib/theme-chalk/pagination.css +1 -0
- package/lib/theme-chalk/popconfirm.css +1 -0
- package/lib/theme-chalk/popover.css +1 -0
- package/lib/theme-chalk/popper.css +1 -0
- package/lib/theme-chalk/progress.css +1 -0
- package/lib/theme-chalk/radio-button.css +1 -0
- package/lib/theme-chalk/radio-group.css +1 -0
- package/lib/theme-chalk/radio.css +1 -0
- package/lib/theme-chalk/rate.css +1 -0
- package/lib/theme-chalk/reset.css +1 -0
- package/lib/theme-chalk/result.css +1 -0
- package/lib/theme-chalk/row.css +1 -0
- package/lib/theme-chalk/scrollbar.css +1 -0
- package/lib/theme-chalk/select-dropdown.css +1 -0
- package/lib/theme-chalk/select.css +1 -0
- package/lib/theme-chalk/selectDisplayInput.css +1 -0
- package/lib/theme-chalk/skeleton-item.css +1 -0
- package/lib/theme-chalk/skeleton.css +1 -0
- package/lib/theme-chalk/slider.css +1 -0
- package/lib/theme-chalk/spinner.css +1 -0
- package/lib/theme-chalk/statistic.css +1 -0
- package/lib/theme-chalk/step.css +1 -0
- package/lib/theme-chalk/steps.css +1 -0
- package/lib/theme-chalk/subTitle.css +1 -0
- package/lib/theme-chalk/submenu.css +0 -0
- package/lib/theme-chalk/switch.css +1 -0
- package/lib/theme-chalk/tab-pane.css +0 -0
- package/lib/theme-chalk/tabDialog.css +1 -0
- package/lib/theme-chalk/table-column.css +1 -0
- package/lib/theme-chalk/table.css +1 -0
- package/lib/theme-chalk/tabs.css +1 -0
- package/lib/theme-chalk/tag.css +1 -0
- package/lib/theme-chalk/time-picker.css +1 -0
- package/lib/theme-chalk/time-select.css +1 -0
- package/lib/theme-chalk/timeline-item.css +1 -0
- package/lib/theme-chalk/timeline.css +1 -0
- package/lib/theme-chalk/tooltip.css +1 -0
- package/lib/theme-chalk/transfer.css +1 -0
- package/lib/theme-chalk/tree.css +1 -0
- package/lib/theme-chalk/treeSelect.css +1 -0
- package/lib/theme-chalk/upload.css +1 -0
- package/package.json +1 -1
- package/packages/theme-chalk/gulpfile.js +0 -1
- package/packages/theme-chalk/src/BreadcrumbItem.scss +0 -0
- package/packages/theme-chalk/src/ButtonGroup.scss +0 -0
- package/packages/theme-chalk/src/CarouselItem.scss +0 -0
- package/packages/theme-chalk/src/CascaderPanel.scss +0 -0
- package/packages/theme-chalk/src/CheckboxButton.scss +0 -0
- package/packages/theme-chalk/src/CheckboxGroup.scss +0 -0
- package/packages/theme-chalk/src/CollapseItem.scss +0 -0
- package/packages/theme-chalk/src/ColorPicker.scss +0 -0
- package/packages/theme-chalk/src/DatePicker.scss +0 -0
- package/packages/theme-chalk/src/DescriptionsItem.scss +0 -0
- package/packages/theme-chalk/src/DropdownItem.scss +0 -0
- package/packages/theme-chalk/src/DropdownMenu.scss +0 -0
- package/packages/theme-chalk/src/FormItem.scss +0 -0
- package/packages/theme-chalk/src/InputNumber.scss +0 -0
- package/packages/theme-chalk/src/MenuItem.scss +0 -0
- package/packages/theme-chalk/src/MenuItemGroup.scss +0 -0
- package/packages/theme-chalk/src/MessageBox.scss +0 -0
- package/packages/theme-chalk/src/OptionGroup.scss +0 -0
- package/packages/theme-chalk/src/PageHeader.scss +0 -0
- package/packages/theme-chalk/src/RadioButton.scss +0 -0
- package/packages/theme-chalk/src/RadioGroup.scss +0 -0
- package/packages/theme-chalk/src/SkeletonItem.scss +0 -0
- package/packages/theme-chalk/src/TabPane.scss +0 -0
- package/packages/theme-chalk/src/TableColumn.scss +0 -0
- package/packages/theme-chalk/src/TimePicker.scss +0 -0
- package/packages/theme-chalk/src/TimeSelect.scss +0 -0
- package/packages/theme-chalk/src/TimelineItem.scss +0 -0
- package/packages/theme-chalk/src/index.scss +89 -89
- 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/Tooltip.js
DELETED
|
@@ -1,425 +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 = 31);
|
|
86
|
-
/******/ })
|
|
87
|
-
/************************************************************************/
|
|
88
|
-
/******/ ({
|
|
89
|
-
|
|
90
|
-
/***/ 1:
|
|
91
|
-
/***/ (function(module, exports) {
|
|
92
|
-
|
|
93
|
-
module.exports = require("element-ui/lib/utils/dom");
|
|
94
|
-
|
|
95
|
-
/***/ }),
|
|
96
|
-
|
|
97
|
-
/***/ 15:
|
|
98
|
-
/***/ (function(module, exports) {
|
|
99
|
-
|
|
100
|
-
module.exports = require("throttle-debounce/debounce");
|
|
101
|
-
|
|
102
|
-
/***/ }),
|
|
103
|
-
|
|
104
|
-
/***/ 3:
|
|
105
|
-
/***/ (function(module, exports) {
|
|
106
|
-
|
|
107
|
-
module.exports = require("element-ui/lib/utils/util");
|
|
108
|
-
|
|
109
|
-
/***/ }),
|
|
110
|
-
|
|
111
|
-
/***/ 31:
|
|
112
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
113
|
-
|
|
114
|
-
"use strict";
|
|
115
|
-
// ESM COMPAT FLAG
|
|
116
|
-
__webpack_require__.r(__webpack_exports__);
|
|
117
|
-
|
|
118
|
-
// EXTERNAL MODULE: external "element-ui/lib/utils/vue-popper"
|
|
119
|
-
var vue_popper_ = __webpack_require__(5);
|
|
120
|
-
var vue_popper_default = /*#__PURE__*/__webpack_require__.n(vue_popper_);
|
|
121
|
-
|
|
122
|
-
// EXTERNAL MODULE: external "throttle-debounce/debounce"
|
|
123
|
-
var debounce_ = __webpack_require__(15);
|
|
124
|
-
var debounce_default = /*#__PURE__*/__webpack_require__.n(debounce_);
|
|
125
|
-
|
|
126
|
-
// EXTERNAL MODULE: external "element-ui/lib/utils/dom"
|
|
127
|
-
var dom_ = __webpack_require__(1);
|
|
128
|
-
|
|
129
|
-
// EXTERNAL MODULE: external "element-ui/lib/utils/util"
|
|
130
|
-
var util_ = __webpack_require__(3);
|
|
131
|
-
|
|
132
|
-
// EXTERNAL MODULE: external "vue"
|
|
133
|
-
var external_vue_ = __webpack_require__(8);
|
|
134
|
-
var external_vue_default = /*#__PURE__*/__webpack_require__.n(external_vue_);
|
|
135
|
-
|
|
136
|
-
// CONCATENATED MODULE: ./packages/tooltip/src/main.js
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
/* harmony default export */ var main = ({
|
|
144
|
-
name: 'ElTooltip',
|
|
145
|
-
|
|
146
|
-
mixins: [vue_popper_default.a],
|
|
147
|
-
|
|
148
|
-
props: {
|
|
149
|
-
openDelay: {
|
|
150
|
-
type: Number,
|
|
151
|
-
default: 0
|
|
152
|
-
},
|
|
153
|
-
disabled: Boolean,
|
|
154
|
-
manual: Boolean,
|
|
155
|
-
effect: {
|
|
156
|
-
type: String,
|
|
157
|
-
default: 'dark'
|
|
158
|
-
},
|
|
159
|
-
arrowOffset: {
|
|
160
|
-
type: Number,
|
|
161
|
-
default: 0
|
|
162
|
-
},
|
|
163
|
-
popperClass: String,
|
|
164
|
-
content: String,
|
|
165
|
-
visibleArrow: {
|
|
166
|
-
default: true
|
|
167
|
-
},
|
|
168
|
-
transition: {
|
|
169
|
-
type: String,
|
|
170
|
-
default: 'el-fade-in-linear'
|
|
171
|
-
},
|
|
172
|
-
popperOptions: {
|
|
173
|
-
default: function _default() {
|
|
174
|
-
return {
|
|
175
|
-
boundariesPadding: 10,
|
|
176
|
-
gpuAcceleration: false
|
|
177
|
-
};
|
|
178
|
-
}
|
|
179
|
-
},
|
|
180
|
-
enterable: {
|
|
181
|
-
type: Boolean,
|
|
182
|
-
default: true
|
|
183
|
-
},
|
|
184
|
-
hideAfter: {
|
|
185
|
-
type: Number,
|
|
186
|
-
default: 0
|
|
187
|
-
},
|
|
188
|
-
tabindex: {
|
|
189
|
-
type: Number,
|
|
190
|
-
default: 0
|
|
191
|
-
}
|
|
192
|
-
},
|
|
193
|
-
|
|
194
|
-
data: function data() {
|
|
195
|
-
return {
|
|
196
|
-
tooltipId: 'el-tooltip-' + Object(util_["generateId"])(),
|
|
197
|
-
timeoutPending: null,
|
|
198
|
-
focusing: false
|
|
199
|
-
};
|
|
200
|
-
},
|
|
201
|
-
beforeCreate: function beforeCreate() {
|
|
202
|
-
var _this = this;
|
|
203
|
-
|
|
204
|
-
if (this.$isServer) return;
|
|
205
|
-
|
|
206
|
-
this.popperVM = new external_vue_default.a({
|
|
207
|
-
data: { node: '' },
|
|
208
|
-
render: function render(h) {
|
|
209
|
-
return this.node;
|
|
210
|
-
}
|
|
211
|
-
}).$mount();
|
|
212
|
-
|
|
213
|
-
this.debounceClose = debounce_default()(200, function () {
|
|
214
|
-
return _this.handleClosePopper();
|
|
215
|
-
});
|
|
216
|
-
},
|
|
217
|
-
render: function render(h) {
|
|
218
|
-
var _this2 = this;
|
|
219
|
-
|
|
220
|
-
if (this.popperVM) {
|
|
221
|
-
this.popperVM.node = h(
|
|
222
|
-
'transition',
|
|
223
|
-
{
|
|
224
|
-
attrs: {
|
|
225
|
-
name: this.transition
|
|
226
|
-
},
|
|
227
|
-
on: {
|
|
228
|
-
'afterLeave': this.doDestroy
|
|
229
|
-
}
|
|
230
|
-
},
|
|
231
|
-
[h(
|
|
232
|
-
'div',
|
|
233
|
-
{
|
|
234
|
-
on: {
|
|
235
|
-
'mouseleave': function mouseleave() {
|
|
236
|
-
_this2.setExpectedState(false);_this2.debounceClose();
|
|
237
|
-
},
|
|
238
|
-
'mouseenter': function mouseenter() {
|
|
239
|
-
_this2.setExpectedState(true);
|
|
240
|
-
}
|
|
241
|
-
},
|
|
242
|
-
|
|
243
|
-
ref: 'popper',
|
|
244
|
-
attrs: { role: 'tooltip',
|
|
245
|
-
id: this.tooltipId,
|
|
246
|
-
'aria-hidden': this.disabled || !this.showPopper ? 'true' : 'false'
|
|
247
|
-
},
|
|
248
|
-
directives: [{
|
|
249
|
-
name: 'show',
|
|
250
|
-
value: !this.disabled && this.showPopper
|
|
251
|
-
}],
|
|
252
|
-
|
|
253
|
-
'class': ['el-tooltip__popper', 'is-' + this.effect, this.popperClass] },
|
|
254
|
-
[this.$slots.content || this.content]
|
|
255
|
-
)]
|
|
256
|
-
);
|
|
257
|
-
}
|
|
258
|
-
|
|
259
|
-
var firstElement = this.getFirstElement();
|
|
260
|
-
if (!firstElement) return null;
|
|
261
|
-
|
|
262
|
-
var data = firstElement.data = firstElement.data || {};
|
|
263
|
-
data.staticClass = this.addTooltipClass(data.staticClass);
|
|
264
|
-
|
|
265
|
-
return firstElement;
|
|
266
|
-
},
|
|
267
|
-
mounted: function mounted() {
|
|
268
|
-
var _this3 = this;
|
|
269
|
-
|
|
270
|
-
this.referenceElm = this.$el;
|
|
271
|
-
if (this.$el.nodeType === 1) {
|
|
272
|
-
this.$el.setAttribute('aria-describedby', this.tooltipId);
|
|
273
|
-
this.$el.setAttribute('tabindex', this.tabindex);
|
|
274
|
-
Object(dom_["on"])(this.referenceElm, 'mouseenter', this.show);
|
|
275
|
-
Object(dom_["on"])(this.referenceElm, 'mouseleave', this.hide);
|
|
276
|
-
Object(dom_["on"])(this.referenceElm, 'focus', function () {
|
|
277
|
-
if (!_this3.$slots.default || !_this3.$slots.default.length) {
|
|
278
|
-
_this3.handleFocus();
|
|
279
|
-
return;
|
|
280
|
-
}
|
|
281
|
-
var instance = _this3.$slots.default[0].componentInstance;
|
|
282
|
-
if (instance && instance.focus) {
|
|
283
|
-
instance.focus();
|
|
284
|
-
} else {
|
|
285
|
-
_this3.handleFocus();
|
|
286
|
-
}
|
|
287
|
-
});
|
|
288
|
-
Object(dom_["on"])(this.referenceElm, 'blur', this.handleBlur);
|
|
289
|
-
Object(dom_["on"])(this.referenceElm, 'click', this.removeFocusing);
|
|
290
|
-
}
|
|
291
|
-
// fix issue https://github.com/ElemeFE/element/issues/14424
|
|
292
|
-
if (this.value && this.popperVM) {
|
|
293
|
-
this.popperVM.$nextTick(function () {
|
|
294
|
-
if (_this3.value) {
|
|
295
|
-
_this3.updatePopper();
|
|
296
|
-
}
|
|
297
|
-
});
|
|
298
|
-
}
|
|
299
|
-
},
|
|
300
|
-
|
|
301
|
-
watch: {
|
|
302
|
-
focusing: function focusing(val) {
|
|
303
|
-
if (val) {
|
|
304
|
-
Object(dom_["addClass"])(this.referenceElm, 'focusing');
|
|
305
|
-
} else {
|
|
306
|
-
Object(dom_["removeClass"])(this.referenceElm, 'focusing');
|
|
307
|
-
}
|
|
308
|
-
}
|
|
309
|
-
},
|
|
310
|
-
methods: {
|
|
311
|
-
show: function show() {
|
|
312
|
-
this.setExpectedState(true);
|
|
313
|
-
this.handleShowPopper();
|
|
314
|
-
},
|
|
315
|
-
hide: function hide() {
|
|
316
|
-
this.setExpectedState(false);
|
|
317
|
-
this.debounceClose();
|
|
318
|
-
},
|
|
319
|
-
handleFocus: function handleFocus() {
|
|
320
|
-
this.focusing = true;
|
|
321
|
-
this.show();
|
|
322
|
-
},
|
|
323
|
-
handleBlur: function handleBlur() {
|
|
324
|
-
this.focusing = false;
|
|
325
|
-
this.hide();
|
|
326
|
-
},
|
|
327
|
-
removeFocusing: function removeFocusing() {
|
|
328
|
-
this.focusing = false;
|
|
329
|
-
},
|
|
330
|
-
addTooltipClass: function addTooltipClass(prev) {
|
|
331
|
-
if (!prev) {
|
|
332
|
-
return 'el-tooltip';
|
|
333
|
-
} else {
|
|
334
|
-
return 'el-tooltip ' + prev.replace('el-tooltip', '');
|
|
335
|
-
}
|
|
336
|
-
},
|
|
337
|
-
handleShowPopper: function handleShowPopper() {
|
|
338
|
-
var _this4 = this;
|
|
339
|
-
|
|
340
|
-
if (!this.expectedState || this.manual) return;
|
|
341
|
-
clearTimeout(this.timeout);
|
|
342
|
-
this.timeout = setTimeout(function () {
|
|
343
|
-
_this4.showPopper = true;
|
|
344
|
-
}, this.openDelay);
|
|
345
|
-
|
|
346
|
-
if (this.hideAfter > 0) {
|
|
347
|
-
this.timeoutPending = setTimeout(function () {
|
|
348
|
-
_this4.showPopper = false;
|
|
349
|
-
}, this.hideAfter);
|
|
350
|
-
}
|
|
351
|
-
},
|
|
352
|
-
handleClosePopper: function handleClosePopper() {
|
|
353
|
-
if (this.enterable && this.expectedState || this.manual) return;
|
|
354
|
-
clearTimeout(this.timeout);
|
|
355
|
-
|
|
356
|
-
if (this.timeoutPending) {
|
|
357
|
-
clearTimeout(this.timeoutPending);
|
|
358
|
-
}
|
|
359
|
-
this.showPopper = false;
|
|
360
|
-
|
|
361
|
-
if (this.disabled) {
|
|
362
|
-
this.doDestroy();
|
|
363
|
-
}
|
|
364
|
-
},
|
|
365
|
-
setExpectedState: function setExpectedState(expectedState) {
|
|
366
|
-
if (expectedState === false) {
|
|
367
|
-
clearTimeout(this.timeoutPending);
|
|
368
|
-
}
|
|
369
|
-
this.expectedState = expectedState;
|
|
370
|
-
},
|
|
371
|
-
getFirstElement: function getFirstElement() {
|
|
372
|
-
var slots = this.$slots.default;
|
|
373
|
-
if (!Array.isArray(slots)) return null;
|
|
374
|
-
var element = null;
|
|
375
|
-
for (var index = 0; index < slots.length; index++) {
|
|
376
|
-
if (slots[index] && slots[index].tag) {
|
|
377
|
-
element = slots[index];
|
|
378
|
-
break;
|
|
379
|
-
};
|
|
380
|
-
}
|
|
381
|
-
return element;
|
|
382
|
-
}
|
|
383
|
-
},
|
|
384
|
-
|
|
385
|
-
beforeDestroy: function beforeDestroy() {
|
|
386
|
-
this.popperVM && this.popperVM.$destroy();
|
|
387
|
-
},
|
|
388
|
-
destroyed: function destroyed() {
|
|
389
|
-
var reference = this.referenceElm;
|
|
390
|
-
if (reference.nodeType === 1) {
|
|
391
|
-
Object(dom_["off"])(reference, 'mouseenter', this.show);
|
|
392
|
-
Object(dom_["off"])(reference, 'mouseleave', this.hide);
|
|
393
|
-
Object(dom_["off"])(reference, 'focus', this.handleFocus);
|
|
394
|
-
Object(dom_["off"])(reference, 'blur', this.handleBlur);
|
|
395
|
-
Object(dom_["off"])(reference, 'click', this.removeFocusing);
|
|
396
|
-
}
|
|
397
|
-
}
|
|
398
|
-
});
|
|
399
|
-
// CONCATENATED MODULE: ./packages/tooltip/index.js
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
/* istanbul ignore next */
|
|
403
|
-
main.install = function (Vue) {
|
|
404
|
-
Vue.component(main.name, main);
|
|
405
|
-
};
|
|
406
|
-
|
|
407
|
-
/* harmony default export */ var tooltip = __webpack_exports__["default"] = (main);
|
|
408
|
-
|
|
409
|
-
/***/ }),
|
|
410
|
-
|
|
411
|
-
/***/ 5:
|
|
412
|
-
/***/ (function(module, exports) {
|
|
413
|
-
|
|
414
|
-
module.exports = require("element-ui/lib/utils/vue-popper");
|
|
415
|
-
|
|
416
|
-
/***/ }),
|
|
417
|
-
|
|
418
|
-
/***/ 8:
|
|
419
|
-
/***/ (function(module, exports) {
|
|
420
|
-
|
|
421
|
-
module.exports = require("vue");
|
|
422
|
-
|
|
423
|
-
/***/ })
|
|
424
|
-
|
|
425
|
-
/******/ });
|