eoss 0.1.0-alpha.20 → 0.1.0-alpha.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/account-login.js +1943 -1890
- package/lib/alert.js +4 -4
- package/lib/aside.js +4 -4
- package/lib/autocomplete.js +4936 -4834
- package/lib/avatar.js +4 -4
- package/lib/backtop.js +4 -4
- package/lib/badge.js +4 -4
- package/lib/breadcrumb-item.js +6 -6
- package/lib/breadcrumb.js +7 -7
- package/lib/button-group.js +11 -14
- package/lib/button.js +6 -6
- package/lib/ca-login.js +2480 -2382
- package/lib/calendar.js +798 -798
- package/lib/card.js +4 -4
- package/lib/carousel-item.js +911 -813
- package/lib/carousel.js +1646 -1548
- package/lib/cascader-panel.js +2556 -2458
- package/lib/cascader.js +4546 -4444
- package/lib/checkbox-button.js +4 -4
- package/lib/checkbox-group.js +2894 -2841
- package/lib/checkbox.js +4 -4
- package/lib/col.js +2 -2
- package/lib/collapse-item.js +35159 -2572
- package/lib/collapse.js +35410 -2762
- package/lib/color-picker.js +494 -490
- package/lib/config/api.js +15 -1
- package/lib/container.js +4 -4
- package/lib/cron.js +4 -4
- package/lib/data-table.js +1895 -1842
- package/lib/date-picker.js +6422 -6320
- package/lib/dialog.js +2912 -2806
- package/lib/divider.js +4 -4
- package/lib/drawer.js +311 -299
- package/lib/dropdown-item.js +6 -6
- package/lib/dropdown-menu.js +539 -535
- package/lib/dropdown.js +2270 -2172
- package/lib/email-login.js +1783 -1730
- package/lib/empty.js +723 -0
- package/lib/eoss.common.js +63680 -56193
- package/lib/flip.js +4 -4
- package/lib/flow-group.js +2985 -2887
- package/lib/flow.js +28067 -28022
- package/lib/footer.js +4 -4
- package/lib/form-item.js +1935 -1837
- package/lib/form.js +9230 -9092
- package/lib/header.js +4 -4
- package/lib/icon.js +1708 -1590
- package/lib/icons.js +4 -4
- package/lib/image-viewer.js +1660 -1562
- package/lib/image.js +162 -162
- package/lib/index.js +1 -1
- package/lib/infinite-scroll.js +76 -76
- package/lib/input-number.js +172 -172
- package/lib/input.js +1362 -1264
- package/lib/link.js +4 -4
- package/lib/loading.js +321 -317
- package/lib/login.js +3306 -3300
- package/lib/lowcode.js +13320 -0
- package/lib/main.js +14465 -14339
- package/lib/marquee.js +1237 -1139
- package/lib/menu-item-group.js +119 -119
- package/lib/menu-item.js +114 -114
- package/lib/menu.js +6193 -6091
- package/lib/message-box.js +3582 -3480
- package/lib/message.js +2265 -2163
- package/lib/notification.js +2430 -2328
- package/lib/option-group.js +4 -4
- package/lib/option.js +842 -744
- package/lib/page-header.js +4 -4
- package/lib/pagination.js +1916 -1815
- package/lib/phone-login.js +1788 -1735
- package/lib/popconfirm.js +8 -8
- package/lib/popover.js +4559 -4457
- package/lib/progress.js +4 -4
- package/lib/qr-code.js +9 -9
- package/lib/qrcode-login.js +1600 -1543
- package/lib/radio-button.js +6 -6
- package/lib/radio-group.js +2142 -2089
- package/lib/radio.js +6 -6
- package/lib/rate.js +1226 -1128
- package/lib/row.js +2 -2
- package/lib/scrollbar.js +2695 -2597
- package/lib/select.js +5985 -5961
- package/lib/selector-panel.js +5239 -5186
- package/lib/selector.js +1712 -1659
- package/lib/slider.js +16 -16
- package/lib/step.js +35836 -2736
- package/lib/steps.js +1281 -1183
- package/lib/submenu.js +461 -457
- package/lib/switch.js +1010 -912
- package/lib/tab-pane.js +4 -4
- package/lib/table-column.js +2595 -2497
- package/lib/table.js +9225 -9239
- package/lib/tabs.js +2414 -2320
- package/lib/tag.js +4 -4
- package/lib/theme-chalk/account-login.css +1 -1
- package/lib/theme-chalk/autocomplete.css +1 -1
- package/lib/theme-chalk/base.css +1 -1
- package/lib/theme-chalk/cascader.css +1 -1
- package/lib/theme-chalk/date-picker.css +1 -1
- package/lib/theme-chalk/empty.css +1 -0
- package/lib/theme-chalk/fonts/iconfont.ttf +0 -0
- package/lib/theme-chalk/fonts/iconfont.woff +0 -0
- package/lib/theme-chalk/form.css +1 -1
- package/lib/theme-chalk/icon.css +1 -1
- package/lib/theme-chalk/index.css +1 -1
- package/lib/theme-chalk/input-number.css +1 -1
- package/lib/theme-chalk/input.css +1 -1
- package/lib/theme-chalk/login.css +1 -1
- package/lib/theme-chalk/lowcode.css +1 -0
- package/lib/theme-chalk/main.css +1 -1
- package/lib/theme-chalk/message-box.css +1 -1
- package/lib/theme-chalk/pagination.css +1 -1
- package/lib/theme-chalk/qrcode-login.css +1 -1
- package/lib/theme-chalk/select.css +1 -1
- package/lib/theme-chalk/slider.css +1 -1
- package/lib/theme-chalk/tabs.css +1 -1
- package/lib/theme-chalk/time-picker.css +1 -1
- package/lib/theme-chalk/transfer.css +1 -1
- package/lib/time-picker.js +5823 -5819
- package/lib/time-select.js +3578 -3574
- package/lib/timeline-item.js +4 -4
- package/lib/timeline.js +4 -4
- package/lib/tips.js +1633 -1580
- package/lib/toolbar.js +213 -213
- package/lib/tooltip.js +4441 -4339
- package/lib/transfer.js +938 -840
- package/lib/tree-group.js +1875 -1757
- package/lib/tree.js +2626 -2573
- package/lib/upload.js +7209 -7156
- package/lib/utils/ajax.js +185 -243
- package/lib/utils/bus.js +2 -2
- package/lib/utils/popup/index.js +5 -1
- package/lib/utils/util.js +108 -11
- package/package.json +2 -2
- package/packages/button/src/button-group.vue +1 -4
- package/packages/collapse/src/collapse-item.vue +47 -33
- package/packages/dialog/src/dialog.vue +4 -1
- package/packages/drawer/src/drawer.vue +12 -4
- package/packages/empty/index.js +7 -0
- package/packages/empty/src/img-empty.vue +132 -0
- package/packages/empty/src/index.vue +49 -0
- package/packages/form/src/form-item-render.vue +16 -18
- package/packages/form/src/form.vue +27 -5
- package/packages/icons/src/icon.json +1 -1
- package/packages/login/src/login.vue +19 -21
- package/packages/login/src/mixins.js +2 -1
- package/packages/lowcode/index.js +5 -0
- package/packages/lowcode/src/aside.vue +331 -0
- package/packages/lowcode/src/attribute/bind.vue +441 -0
- package/packages/lowcode/src/attribute/dependency.vue +325 -0
- package/packages/lowcode/src/attribute/function.vue +112 -0
- package/packages/lowcode/src/attribute/property.vue +331 -0
- package/packages/lowcode/src/attribute/styles.vue +318 -0
- package/packages/lowcode/src/attribute.vue +135 -0
- package/packages/lowcode/src/canvas.vue +296 -0
- package/packages/lowcode/src/json.vue +32 -0
- package/packages/lowcode/src/lowcode.vue +539 -0
- package/packages/lowcode/src/modules.vue +93 -0
- package/packages/lowcode/src/pages.vue +91 -0
- package/packages/lowcode/src/render.vue +247 -0
- package/packages/lowcode/src/source.vue +32 -0
- package/packages/lowcode/src/toolbar.vue +162 -0
- package/packages/main/src/components/pages.vue +28 -2
- package/packages/main/src/components/set-menus.vue +3 -3
- package/packages/main/src/components/user.vue +6 -1
- package/packages/main/src/early.vue +2 -2
- package/packages/main/src/gzw.vue +55 -61
- package/packages/main/src/minxs.js +113 -36
- package/packages/pagination/src/pager.vue +2 -2
- package/packages/pagination/src/pagination.js +4 -1
- package/packages/qrcode-login/src/qrcode-login.vue +6 -2
- package/packages/select/src/select.vue +28 -6
- package/packages/steps/src/step.vue +7 -5
- package/packages/tabs/src/tab-nav.vue +1 -0
- package/packages/tabs/src/tabs.vue +0 -2
- package/packages/theme-chalk/dist/fonts/iconfont.ttf +0 -0
- package/packages/theme-chalk/dist/fonts/iconfont.woff +0 -0
- package/packages/theme-chalk/gulpfile.js +3 -0
- package/packages/theme-chalk/src/account-login.scss +1 -0
- package/packages/theme-chalk/src/base.scss +1 -1
- package/packages/theme-chalk/src/common/var.scss +16 -0
- package/packages/theme-chalk/src/empty.scss +45 -0
- package/packages/theme-chalk/src/fonts/iconfont.ttf +0 -0
- package/packages/theme-chalk/src/fonts/iconfont.woff +0 -0
- package/packages/theme-chalk/src/form.scss +1 -8
- package/packages/theme-chalk/src/icon.scss +30 -1
- package/packages/theme-chalk/src/index.scss +2 -0
- package/packages/theme-chalk/src/input-number.scss +0 -4
- package/packages/theme-chalk/src/input.scss +9 -0
- package/packages/theme-chalk/src/login.scss +32 -29
- package/packages/theme-chalk/src/lowcode.scss +461 -0
- package/packages/theme-chalk/src/main.scss +28 -65
- package/packages/theme-chalk/src/pagination.scss +4 -55
- package/packages/theme-chalk/src/qrcode-login.scss +3 -1
- package/packages/theme-chalk/src/tabs.scss +81 -50
- package/src/config/api.js +13 -0
- package/src/index.js +17 -4
- package/src/utils/ajax.js +61 -65
- package/src/utils/bus.js +2 -2
- package/src/utils/popup/index.js +5 -1
- package/src/utils/util.js +104 -7
- package/lib/index_/345/211/257/346/234/254.js +0 -583
- package/packages/dialog copy/index.js +0 -8
- package/packages/dialog copy/src/dialog.vue +0 -615
- package/src/index_/345/211/257/346/234/254.js +0 -359
- /package/{packages/form/src → src/components}/field-render.vue +0 -0
package/lib/toolbar.js
CHANGED
|
@@ -82,19 +82,133 @@ module.exports =
|
|
|
82
82
|
/******/
|
|
83
83
|
/******/
|
|
84
84
|
/******/ // Load entry module and return exports
|
|
85
|
-
/******/ return __webpack_require__(__webpack_require__.s =
|
|
85
|
+
/******/ return __webpack_require__(__webpack_require__.s = 218);
|
|
86
86
|
/******/ })
|
|
87
87
|
/************************************************************************/
|
|
88
88
|
/******/ ({
|
|
89
89
|
|
|
90
|
-
/***/
|
|
91
|
-
/***/ (function(module,
|
|
90
|
+
/***/ 18:
|
|
91
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
92
92
|
|
|
93
|
-
|
|
93
|
+
"use strict";
|
|
94
|
+
/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(4);
|
|
95
|
+
/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(vue__WEBPACK_IMPORTED_MODULE_0__);
|
|
96
|
+
/* harmony import */ var eoss_src_utils_dom__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(5);
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
|
|
100
|
+
var nodeList = [];
|
|
101
|
+
var ctx = '@@clickoutsideContext';
|
|
102
|
+
|
|
103
|
+
var startClick = void 0;
|
|
104
|
+
var seed = 0;
|
|
105
|
+
|
|
106
|
+
!vue__WEBPACK_IMPORTED_MODULE_0___default.a.prototype.$isServer && Object(eoss_src_utils_dom__WEBPACK_IMPORTED_MODULE_1__[/* on */ "g"])(document, 'mousedown', function (e) {
|
|
107
|
+
return startClick = e;
|
|
108
|
+
});
|
|
109
|
+
|
|
110
|
+
!vue__WEBPACK_IMPORTED_MODULE_0___default.a.prototype.$isServer && Object(eoss_src_utils_dom__WEBPACK_IMPORTED_MODULE_1__[/* on */ "g"])(document, 'mouseup', function (e) {
|
|
111
|
+
nodeList.forEach(function (node) {
|
|
112
|
+
return node[ctx].documentHandler(e, startClick);
|
|
113
|
+
});
|
|
114
|
+
});
|
|
115
|
+
|
|
116
|
+
function createDocumentHandler(el, binding, vnode) {
|
|
117
|
+
return function () {
|
|
118
|
+
var mouseup = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
119
|
+
var mousedown = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
120
|
+
|
|
121
|
+
if (!vnode || !vnode.context || !mouseup.target || !mousedown.target || el.contains(mouseup.target) || el.contains(mousedown.target) || el === mouseup.target) {
|
|
122
|
+
return;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
var context = vnode.context;
|
|
126
|
+
|
|
127
|
+
// 检查点击是否在 popperElm 内部,即使它已经被添加到 document.body 中
|
|
128
|
+
if (context.popperElm) {
|
|
129
|
+
try {
|
|
130
|
+
if (context.popperElm.contains(mouseup.target) || context.popperElm.contains(mousedown.target)) {
|
|
131
|
+
return;
|
|
132
|
+
}
|
|
133
|
+
} catch (e) {
|
|
134
|
+
// 如果 popperElm 已经被销毁,忽略错误
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
// 检查是否有其他相关的 popper 元素
|
|
139
|
+
if (context.popper) {
|
|
140
|
+
try {
|
|
141
|
+
if (context.popper.contains(mouseup.target) || context.popper.contains(mousedown.target)) {
|
|
142
|
+
return;
|
|
143
|
+
}
|
|
144
|
+
} catch (e) {
|
|
145
|
+
// 如果 popper 已经被销毁,忽略错误
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
// 检查是否有其他相关的弹出元素(如 autocomplete 的建议列表)
|
|
150
|
+
if (context.suggestions && context.suggestions.length > 0) {
|
|
151
|
+
// 尝试找到建议列表的 DOM 元素
|
|
152
|
+
var suggestionsElm = document.querySelector('.es-autocomplete-suggestion');
|
|
153
|
+
if (suggestionsElm) {
|
|
154
|
+
try {
|
|
155
|
+
if (suggestionsElm.contains(mouseup.target) || suggestionsElm.contains(mousedown.target)) {
|
|
156
|
+
return;
|
|
157
|
+
}
|
|
158
|
+
} catch (e) {
|
|
159
|
+
// 如果元素已经被销毁,忽略错误
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
if (binding.expression && el[ctx].methodName && context[el[ctx].methodName]) {
|
|
165
|
+
context[el[ctx].methodName]();
|
|
166
|
+
} else {
|
|
167
|
+
el[ctx].bindingFn && el[ctx].bindingFn();
|
|
168
|
+
}
|
|
169
|
+
};
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
/**
|
|
173
|
+
* v-clickoutside
|
|
174
|
+
* @desc 点击元素外面才会触发的事件
|
|
175
|
+
* @example
|
|
176
|
+
* ```vue
|
|
177
|
+
* <div v-element-clickoutside="handleClose">
|
|
178
|
+
* ```
|
|
179
|
+
*/
|
|
180
|
+
/* harmony default export */ __webpack_exports__["a"] = ({
|
|
181
|
+
bind: function bind(el, binding, vnode) {
|
|
182
|
+
nodeList.push(el);
|
|
183
|
+
var id = seed++;
|
|
184
|
+
el[ctx] = {
|
|
185
|
+
id: id,
|
|
186
|
+
documentHandler: createDocumentHandler(el, binding, vnode),
|
|
187
|
+
methodName: binding.expression,
|
|
188
|
+
bindingFn: binding.value
|
|
189
|
+
};
|
|
190
|
+
},
|
|
191
|
+
update: function update(el, binding, vnode) {
|
|
192
|
+
el[ctx].documentHandler = createDocumentHandler(el, binding, vnode);
|
|
193
|
+
el[ctx].methodName = binding.expression;
|
|
194
|
+
el[ctx].bindingFn = binding.value;
|
|
195
|
+
},
|
|
196
|
+
unbind: function unbind(el) {
|
|
197
|
+
var len = nodeList.length;
|
|
198
|
+
|
|
199
|
+
for (var i = 0; i < len; i++) {
|
|
200
|
+
if (nodeList[i][ctx].id === el[ctx].id) {
|
|
201
|
+
nodeList.splice(i, 1);
|
|
202
|
+
break;
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
delete el[ctx];
|
|
206
|
+
}
|
|
207
|
+
});
|
|
94
208
|
|
|
95
209
|
/***/ }),
|
|
96
210
|
|
|
97
|
-
/***/
|
|
211
|
+
/***/ 218:
|
|
98
212
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
99
213
|
|
|
100
214
|
"use strict";
|
|
@@ -321,7 +435,7 @@ render._withStripped = true
|
|
|
321
435
|
// CONCATENATED MODULE: ./packages/toolbar/src/toolbar.vue?vue&type=template&id=9a729c6e&
|
|
322
436
|
|
|
323
437
|
// EXTERNAL MODULE: ./src/utils/clickoutside.js
|
|
324
|
-
var clickoutside = __webpack_require__(
|
|
438
|
+
var clickoutside = __webpack_require__(18);
|
|
325
439
|
|
|
326
440
|
// CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/toolbar/src/toolbar.vue?vue&type=script&lang=js&
|
|
327
441
|
var _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; };
|
|
@@ -730,7 +844,7 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < argument
|
|
|
730
844
|
// CONCATENATED MODULE: ./packages/toolbar/src/toolbar.vue?vue&type=script&lang=js&
|
|
731
845
|
/* harmony default export */ var src_toolbarvue_type_script_lang_js_ = (toolbarvue_type_script_lang_js_);
|
|
732
846
|
// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
|
|
733
|
-
var componentNormalizer = __webpack_require__(
|
|
847
|
+
var componentNormalizer = __webpack_require__(3);
|
|
734
848
|
|
|
735
849
|
// CONCATENATED MODULE: ./packages/toolbar/src/toolbar.vue
|
|
736
850
|
|
|
@@ -763,128 +877,119 @@ toolbar.install = function (Vue) {
|
|
|
763
877
|
|
|
764
878
|
/***/ }),
|
|
765
879
|
|
|
766
|
-
/***/
|
|
880
|
+
/***/ 3:
|
|
767
881
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
768
882
|
|
|
769
883
|
"use strict";
|
|
770
|
-
/* harmony
|
|
771
|
-
/*
|
|
772
|
-
/* harmony import */ var eoss_src_utils_dom__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(4);
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
var nodeList = [];
|
|
777
|
-
var ctx = '@@clickoutsideContext';
|
|
778
|
-
|
|
779
|
-
var startClick = void 0;
|
|
780
|
-
var seed = 0;
|
|
884
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return normalizeComponent; });
|
|
885
|
+
/* globals __VUE_SSR_CONTEXT__ */
|
|
781
886
|
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
887
|
+
// IMPORTANT: Do NOT use ES2015 features in this file (except for modules).
|
|
888
|
+
// This module is a runtime utility for cleaner component module output and will
|
|
889
|
+
// be included in the final webpack user bundle.
|
|
785
890
|
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
891
|
+
function normalizeComponent(
|
|
892
|
+
scriptExports,
|
|
893
|
+
render,
|
|
894
|
+
staticRenderFns,
|
|
895
|
+
functionalTemplate,
|
|
896
|
+
injectStyles,
|
|
897
|
+
scopeId,
|
|
898
|
+
moduleIdentifier /* server only */,
|
|
899
|
+
shadowMode /* vue-cli only */
|
|
900
|
+
) {
|
|
901
|
+
// Vue.extend constructor export interop
|
|
902
|
+
var options =
|
|
903
|
+
typeof scriptExports === 'function' ? scriptExports.options : scriptExports
|
|
791
904
|
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
905
|
+
// render functions
|
|
906
|
+
if (render) {
|
|
907
|
+
options.render = render
|
|
908
|
+
options.staticRenderFns = staticRenderFns
|
|
909
|
+
options._compiled = true
|
|
910
|
+
}
|
|
796
911
|
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
912
|
+
// functional template
|
|
913
|
+
if (functionalTemplate) {
|
|
914
|
+
options.functional = true
|
|
915
|
+
}
|
|
800
916
|
|
|
801
|
-
|
|
917
|
+
// scopedId
|
|
918
|
+
if (scopeId) {
|
|
919
|
+
options._scopeId = 'data-v-' + scopeId
|
|
920
|
+
}
|
|
802
921
|
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
922
|
+
var hook
|
|
923
|
+
if (moduleIdentifier) {
|
|
924
|
+
// server build
|
|
925
|
+
hook = function (context) {
|
|
926
|
+
// 2.3 injection
|
|
927
|
+
context =
|
|
928
|
+
context || // cached call
|
|
929
|
+
(this.$vnode && this.$vnode.ssrContext) || // stateful
|
|
930
|
+
(this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional
|
|
931
|
+
// 2.2 with runInNewContext: true
|
|
932
|
+
if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
|
|
933
|
+
context = __VUE_SSR_CONTEXT__
|
|
811
934
|
}
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
if (context.popper) {
|
|
816
|
-
try {
|
|
817
|
-
if (context.popper.contains(mouseup.target) || context.popper.contains(mousedown.target)) {
|
|
818
|
-
return;
|
|
819
|
-
}
|
|
820
|
-
} catch (e) {
|
|
821
|
-
// 如果 popper 已经被销毁,忽略错误
|
|
935
|
+
// inject component styles
|
|
936
|
+
if (injectStyles) {
|
|
937
|
+
injectStyles.call(this, context)
|
|
822
938
|
}
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
if (context.suggestions && context.suggestions.length > 0) {
|
|
827
|
-
// 尝试找到建议列表的 DOM 元素
|
|
828
|
-
var suggestionsElm = document.querySelector('.es-autocomplete-suggestion');
|
|
829
|
-
if (suggestionsElm) {
|
|
830
|
-
try {
|
|
831
|
-
if (suggestionsElm.contains(mouseup.target) || suggestionsElm.contains(mousedown.target)) {
|
|
832
|
-
return;
|
|
833
|
-
}
|
|
834
|
-
} catch (e) {
|
|
835
|
-
// 如果元素已经被销毁,忽略错误
|
|
836
|
-
}
|
|
939
|
+
// register component module identifier for async chunk inferrence
|
|
940
|
+
if (context && context._registeredComponents) {
|
|
941
|
+
context._registeredComponents.add(moduleIdentifier)
|
|
837
942
|
}
|
|
838
943
|
}
|
|
944
|
+
// used by ssr in case component is cached and beforeCreate
|
|
945
|
+
// never gets called
|
|
946
|
+
options._ssrRegister = hook
|
|
947
|
+
} else if (injectStyles) {
|
|
948
|
+
hook = shadowMode
|
|
949
|
+
? function () {
|
|
950
|
+
injectStyles.call(
|
|
951
|
+
this,
|
|
952
|
+
(options.functional ? this.parent : this).$root.$options.shadowRoot
|
|
953
|
+
)
|
|
954
|
+
}
|
|
955
|
+
: injectStyles
|
|
956
|
+
}
|
|
839
957
|
|
|
840
|
-
|
|
841
|
-
|
|
958
|
+
if (hook) {
|
|
959
|
+
if (options.functional) {
|
|
960
|
+
// for template-only hot-reload because in that case the render fn doesn't
|
|
961
|
+
// go through the normalizer
|
|
962
|
+
options._injectStyles = hook
|
|
963
|
+
// register for functional component in vue file
|
|
964
|
+
var originalRender = options.render
|
|
965
|
+
options.render = function renderWithStyleInjection(h, context) {
|
|
966
|
+
hook.call(context)
|
|
967
|
+
return originalRender(h, context)
|
|
968
|
+
}
|
|
842
969
|
} else {
|
|
843
|
-
|
|
970
|
+
// inject component registration as beforeCreate hook
|
|
971
|
+
var existing = options.beforeCreate
|
|
972
|
+
options.beforeCreate = existing ? [].concat(existing, hook) : [hook]
|
|
844
973
|
}
|
|
845
|
-
}
|
|
846
|
-
}
|
|
847
|
-
|
|
848
|
-
/**
|
|
849
|
-
* v-clickoutside
|
|
850
|
-
* @desc 点击元素外面才会触发的事件
|
|
851
|
-
* @example
|
|
852
|
-
* ```vue
|
|
853
|
-
* <div v-element-clickoutside="handleClose">
|
|
854
|
-
* ```
|
|
855
|
-
*/
|
|
856
|
-
/* harmony default export */ __webpack_exports__["a"] = ({
|
|
857
|
-
bind: function bind(el, binding, vnode) {
|
|
858
|
-
nodeList.push(el);
|
|
859
|
-
var id = seed++;
|
|
860
|
-
el[ctx] = {
|
|
861
|
-
id: id,
|
|
862
|
-
documentHandler: createDocumentHandler(el, binding, vnode),
|
|
863
|
-
methodName: binding.expression,
|
|
864
|
-
bindingFn: binding.value
|
|
865
|
-
};
|
|
866
|
-
},
|
|
867
|
-
update: function update(el, binding, vnode) {
|
|
868
|
-
el[ctx].documentHandler = createDocumentHandler(el, binding, vnode);
|
|
869
|
-
el[ctx].methodName = binding.expression;
|
|
870
|
-
el[ctx].bindingFn = binding.value;
|
|
871
|
-
},
|
|
872
|
-
unbind: function unbind(el) {
|
|
873
|
-
var len = nodeList.length;
|
|
974
|
+
}
|
|
874
975
|
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
break;
|
|
879
|
-
}
|
|
880
|
-
}
|
|
881
|
-
delete el[ctx];
|
|
976
|
+
return {
|
|
977
|
+
exports: scriptExports,
|
|
978
|
+
options: options
|
|
882
979
|
}
|
|
883
|
-
}
|
|
980
|
+
}
|
|
981
|
+
|
|
884
982
|
|
|
885
983
|
/***/ }),
|
|
886
984
|
|
|
887
985
|
/***/ 4:
|
|
986
|
+
/***/ (function(module, exports) {
|
|
987
|
+
|
|
988
|
+
module.exports = require("vue");
|
|
989
|
+
|
|
990
|
+
/***/ }),
|
|
991
|
+
|
|
992
|
+
/***/ 5:
|
|
888
993
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
889
994
|
|
|
890
995
|
"use strict";
|
|
@@ -900,7 +1005,7 @@ function createDocumentHandler(el, binding, vnode) {
|
|
|
900
1005
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return getScrollContainer; });
|
|
901
1006
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return isInContainer; });
|
|
902
1007
|
/* unused harmony export insertAfter */
|
|
903
|
-
/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
|
|
1008
|
+
/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(4);
|
|
904
1009
|
/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(vue__WEBPACK_IMPORTED_MODULE_0__);
|
|
905
1010
|
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
|
|
906
1011
|
|
|
@@ -1141,111 +1246,6 @@ function insertAfter(newEl, targetEl) {
|
|
|
1141
1246
|
}
|
|
1142
1247
|
}
|
|
1143
1248
|
|
|
1144
|
-
/***/ }),
|
|
1145
|
-
|
|
1146
|
-
/***/ 5:
|
|
1147
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
1148
|
-
|
|
1149
|
-
"use strict";
|
|
1150
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return normalizeComponent; });
|
|
1151
|
-
/* globals __VUE_SSR_CONTEXT__ */
|
|
1152
|
-
|
|
1153
|
-
// IMPORTANT: Do NOT use ES2015 features in this file (except for modules).
|
|
1154
|
-
// This module is a runtime utility for cleaner component module output and will
|
|
1155
|
-
// be included in the final webpack user bundle.
|
|
1156
|
-
|
|
1157
|
-
function normalizeComponent(
|
|
1158
|
-
scriptExports,
|
|
1159
|
-
render,
|
|
1160
|
-
staticRenderFns,
|
|
1161
|
-
functionalTemplate,
|
|
1162
|
-
injectStyles,
|
|
1163
|
-
scopeId,
|
|
1164
|
-
moduleIdentifier /* server only */,
|
|
1165
|
-
shadowMode /* vue-cli only */
|
|
1166
|
-
) {
|
|
1167
|
-
// Vue.extend constructor export interop
|
|
1168
|
-
var options =
|
|
1169
|
-
typeof scriptExports === 'function' ? scriptExports.options : scriptExports
|
|
1170
|
-
|
|
1171
|
-
// render functions
|
|
1172
|
-
if (render) {
|
|
1173
|
-
options.render = render
|
|
1174
|
-
options.staticRenderFns = staticRenderFns
|
|
1175
|
-
options._compiled = true
|
|
1176
|
-
}
|
|
1177
|
-
|
|
1178
|
-
// functional template
|
|
1179
|
-
if (functionalTemplate) {
|
|
1180
|
-
options.functional = true
|
|
1181
|
-
}
|
|
1182
|
-
|
|
1183
|
-
// scopedId
|
|
1184
|
-
if (scopeId) {
|
|
1185
|
-
options._scopeId = 'data-v-' + scopeId
|
|
1186
|
-
}
|
|
1187
|
-
|
|
1188
|
-
var hook
|
|
1189
|
-
if (moduleIdentifier) {
|
|
1190
|
-
// server build
|
|
1191
|
-
hook = function (context) {
|
|
1192
|
-
// 2.3 injection
|
|
1193
|
-
context =
|
|
1194
|
-
context || // cached call
|
|
1195
|
-
(this.$vnode && this.$vnode.ssrContext) || // stateful
|
|
1196
|
-
(this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional
|
|
1197
|
-
// 2.2 with runInNewContext: true
|
|
1198
|
-
if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
|
|
1199
|
-
context = __VUE_SSR_CONTEXT__
|
|
1200
|
-
}
|
|
1201
|
-
// inject component styles
|
|
1202
|
-
if (injectStyles) {
|
|
1203
|
-
injectStyles.call(this, context)
|
|
1204
|
-
}
|
|
1205
|
-
// register component module identifier for async chunk inferrence
|
|
1206
|
-
if (context && context._registeredComponents) {
|
|
1207
|
-
context._registeredComponents.add(moduleIdentifier)
|
|
1208
|
-
}
|
|
1209
|
-
}
|
|
1210
|
-
// used by ssr in case component is cached and beforeCreate
|
|
1211
|
-
// never gets called
|
|
1212
|
-
options._ssrRegister = hook
|
|
1213
|
-
} else if (injectStyles) {
|
|
1214
|
-
hook = shadowMode
|
|
1215
|
-
? function () {
|
|
1216
|
-
injectStyles.call(
|
|
1217
|
-
this,
|
|
1218
|
-
(options.functional ? this.parent : this).$root.$options.shadowRoot
|
|
1219
|
-
)
|
|
1220
|
-
}
|
|
1221
|
-
: injectStyles
|
|
1222
|
-
}
|
|
1223
|
-
|
|
1224
|
-
if (hook) {
|
|
1225
|
-
if (options.functional) {
|
|
1226
|
-
// for template-only hot-reload because in that case the render fn doesn't
|
|
1227
|
-
// go through the normalizer
|
|
1228
|
-
options._injectStyles = hook
|
|
1229
|
-
// register for functional component in vue file
|
|
1230
|
-
var originalRender = options.render
|
|
1231
|
-
options.render = function renderWithStyleInjection(h, context) {
|
|
1232
|
-
hook.call(context)
|
|
1233
|
-
return originalRender(h, context)
|
|
1234
|
-
}
|
|
1235
|
-
} else {
|
|
1236
|
-
// inject component registration as beforeCreate hook
|
|
1237
|
-
var existing = options.beforeCreate
|
|
1238
|
-
options.beforeCreate = existing ? [].concat(existing, hook) : [hook]
|
|
1239
|
-
}
|
|
1240
|
-
}
|
|
1241
|
-
|
|
1242
|
-
return {
|
|
1243
|
-
exports: scriptExports,
|
|
1244
|
-
options: options
|
|
1245
|
-
}
|
|
1246
|
-
}
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
1249
|
/***/ })
|
|
1250
1250
|
|
|
1251
1251
|
/******/ });
|