@mdsfe/mds-ui 0.2.0
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/CHANGELOG.md +778 -0
- package/LICENSE +21 -0
- package/README.md +106 -0
- package/dist/_locale/index.js +18 -0
- package/dist/_locale/zh-CN.js +123 -0
- package/dist/_mixin/emitter.js +35 -0
- package/dist/_mixin/focus.js +13 -0
- package/dist/_mixin/locale.js +17 -0
- package/dist/_mixin/popper.js +192 -0
- package/dist/_mixin/tooltip.js +218 -0
- package/dist/_util/__test__/switchcase.test.js +43 -0
- package/dist/_util/autoprefixer.js +249 -0
- package/dist/_util/clickoutside.js +79 -0
- package/dist/_util/date.js +368 -0
- package/dist/_util/dateUtil.js +311 -0
- package/dist/_util/dom.js +240 -0
- package/dist/_util/getRequestAnimationFrame.js +50 -0
- package/dist/_util/getScroll.js +21 -0
- package/dist/_util/loaders/loaders.css.js +52 -0
- package/dist/_util/loaders/loading.js +53 -0
- package/dist/_util/merge.js +18 -0
- package/dist/_util/popper.js +1261 -0
- package/dist/_util/popup/index.js +232 -0
- package/dist/_util/popup/popup-manager.js +205 -0
- package/dist/_util/proptype.js +12 -0
- package/dist/_util/repeatClick.js +30 -0
- package/dist/_util/resize.js +61 -0
- package/dist/_util/resizeEvent.js +59 -0
- package/dist/_util/scrollIntoView.js +38 -0
- package/dist/_util/scrollbar-width.js +37 -0
- package/dist/_util/soda.js +54 -0
- package/dist/_util/switchcase.js +22 -0
- package/dist/_util/throttleByAnimationFrame.js +70 -0
- package/dist/_util/tree/node.js +412 -0
- package/dist/_util/tree/tree.js +410 -0
- package/dist/_util/util.js +166 -0
- package/dist/_util/vue-popper.js +213 -0
- package/dist/affix.js +509 -0
- package/dist/anchor.js +522 -0
- package/dist/avatar.js +437 -0
- package/dist/backtop.js +469 -0
- package/dist/badge.js +439 -0
- package/dist/bordershadow.js +310 -0
- package/dist/breadcrumb.js +434 -0
- package/dist/button.js +579 -0
- package/dist/card.js +514 -0
- package/dist/carousel.js +1326 -0
- package/dist/cascaderpanel.js +2320 -0
- package/dist/checkbox.js +681 -0
- package/dist/col.js +546 -0
- package/dist/collapse.js +671 -0
- package/dist/color.js +306 -0
- package/dist/datepicker.js +8089 -0
- package/dist/divider.js +346 -0
- package/dist/drawer.js +652 -0
- package/dist/dropdown.js +687 -0
- package/dist/empty.js +416 -0
- package/dist/font.js +306 -0
- package/dist/form.js +878 -0
- package/dist/icon.js +401 -0
- package/dist/index.js +1 -0
- package/dist/input.js +1251 -0
- package/dist/inputnumber.js +689 -0
- package/dist/layout.js +786 -0
- package/dist/list.js +789 -0
- package/dist/loading.js +430 -0
- package/dist/mds-ui.min.css +7 -0
- package/dist/mds-ui.min.js +64911 -0
- package/dist/menu.js +1131 -0
- package/dist/message.js +1016 -0
- package/dist/modal.js +895 -0
- package/dist/notification.js +818 -0
- package/dist/pagination.js +1213 -0
- package/dist/popconfirm.js +336 -0
- package/dist/popover.js +206 -0
- package/dist/progress.js +1023 -0
- package/dist/radio.js +760 -0
- package/dist/rate.js +765 -0
- package/dist/row.js +546 -0
- package/dist/select.js +4950 -0
- package/dist/slider.js +1411 -0
- package/dist/slottable.js +1414 -0
- package/dist/steps.js +546 -0
- package/dist/style/affix.css +5524 -0
- package/dist/style/anchor.css +5572 -0
- package/dist/style/avatar.css +5587 -0
- package/dist/style/backtop.css +34 -0
- package/dist/style/badge.css +5655 -0
- package/dist/style/bordershadow.css +5601 -0
- package/dist/style/breadcrumb.css +5551 -0
- package/dist/style/button.css +7679 -0
- package/dist/style/card.css +5670 -0
- package/dist/style/carousel.css +5731 -0
- package/dist/style/cascaderpanel.css +125 -0
- package/dist/style/checkbox.css +5700 -0
- package/dist/style/col.css +8121 -0
- package/dist/style/collapse.css +5593 -0
- package/dist/style/color.css +6136 -0
- package/dist/style/datepicker.css +5977 -0
- package/dist/style/divider.css +5558 -0
- package/dist/style/drawer.css +7979 -0
- package/dist/style/dropdown.css +7950 -0
- package/dist/style/empty.css +5563 -0
- package/dist/style/font.css +5559 -0
- package/dist/style/form.css +5662 -0
- package/dist/style/icon.css +5538 -0
- package/dist/style/input.css +6256 -0
- package/dist/style/inputnumber.css +5828 -0
- package/dist/style/layout.css +5572 -0
- package/dist/style/list.css +5655 -0
- package/dist/style/loading.css +5540 -0
- package/dist/style/menu.css +6183 -0
- package/dist/style/message.css +194 -0
- package/dist/style/modal.css +5637 -0
- package/dist/style/notification.css +5706 -0
- package/dist/style/pagination.css +6683 -0
- package/dist/style/popconfirm.css +7951 -0
- package/dist/style/popover.css +5727 -0
- package/dist/style/progress.css +5714 -0
- package/dist/style/radio.css +5769 -0
- package/dist/style/rate.css +5616 -0
- package/dist/style/row.css +8121 -0
- package/dist/style/select.css +5729 -0
- package/dist/style/slider.css +5594 -0
- package/dist/style/slottable.css +5831 -0
- package/dist/style/steps.css +6100 -0
- package/dist/style/switch.css +5624 -0
- package/dist/style/table.css +8392 -0
- package/dist/style/tabs.css +6047 -0
- package/dist/style/tag.css +5935 -0
- package/dist/style/text.css +5636 -0
- package/dist/style/timeline.css +5602 -0
- package/dist/style/timepicker.css +5904 -0
- package/dist/style/tooltip.css +5686 -0
- package/dist/style/transfer.css +101 -0
- package/dist/style/transition.css +1417 -0
- package/dist/style/tree.css +5598 -0
- package/dist/style/typography.css +5640 -0
- package/dist/style/upload.css +5834 -0
- package/dist/switch.js +448 -0
- package/dist/table.js +3809 -0
- package/dist/tabs.js +1273 -0
- package/dist/tag.js +478 -0
- package/dist/text.js +1100 -0
- package/dist/timeline.js +495 -0
- package/dist/timepicker.js +1567 -0
- package/dist/tooltip.js +179 -0
- package/dist/transfer.js +981 -0
- package/dist/transition.js +246 -0
- package/dist/tree.js +1866 -0
- package/dist/typography.js +469 -0
- package/dist/upload.js +1990 -0
- package/package.json +144 -0
|
@@ -0,0 +1,336 @@
|
|
|
1
|
+
(function webpackUniversalModuleDefinition(root, factory) {
|
|
2
|
+
if(typeof exports === 'object' && typeof module === 'object')
|
|
3
|
+
module.exports = factory(require("./icon"), require("./button"), require("./_mixin/tooltip"));
|
|
4
|
+
else if(typeof define === 'function' && define.amd)
|
|
5
|
+
define(["./icon", "./button", "./_mixin/tooltip"], factory);
|
|
6
|
+
else {
|
|
7
|
+
var a = typeof exports === 'object' ? factory(require("./icon"), require("./button"), require("./_mixin/tooltip")) : factory(root["./icon"], root["./button"], root["./_mixin/tooltip"]);
|
|
8
|
+
for(var i in a) (typeof exports === 'object' ? exports : root)[i] = a[i];
|
|
9
|
+
}
|
|
10
|
+
})(window, function(__WEBPACK_EXTERNAL_MODULE__4__, __WEBPACK_EXTERNAL_MODULE__7__, __WEBPACK_EXTERNAL_MODULE__16__) {
|
|
11
|
+
return /******/ (function(modules) { // webpackBootstrap
|
|
12
|
+
/******/ // The module cache
|
|
13
|
+
/******/ var installedModules = {};
|
|
14
|
+
/******/
|
|
15
|
+
/******/ // The require function
|
|
16
|
+
/******/ function __webpack_require__(moduleId) {
|
|
17
|
+
/******/
|
|
18
|
+
/******/ // Check if module is in cache
|
|
19
|
+
/******/ if(installedModules[moduleId]) {
|
|
20
|
+
/******/ return installedModules[moduleId].exports;
|
|
21
|
+
/******/ }
|
|
22
|
+
/******/ // Create a new module (and put it into the cache)
|
|
23
|
+
/******/ var module = installedModules[moduleId] = {
|
|
24
|
+
/******/ i: moduleId,
|
|
25
|
+
/******/ l: false,
|
|
26
|
+
/******/ exports: {}
|
|
27
|
+
/******/ };
|
|
28
|
+
/******/
|
|
29
|
+
/******/ // Execute the module function
|
|
30
|
+
/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
|
|
31
|
+
/******/
|
|
32
|
+
/******/ // Flag the module as loaded
|
|
33
|
+
/******/ module.l = true;
|
|
34
|
+
/******/
|
|
35
|
+
/******/ // Return the exports of the module
|
|
36
|
+
/******/ return module.exports;
|
|
37
|
+
/******/ }
|
|
38
|
+
/******/
|
|
39
|
+
/******/
|
|
40
|
+
/******/ // expose the modules object (__webpack_modules__)
|
|
41
|
+
/******/ __webpack_require__.m = modules;
|
|
42
|
+
/******/
|
|
43
|
+
/******/ // expose the module cache
|
|
44
|
+
/******/ __webpack_require__.c = installedModules;
|
|
45
|
+
/******/
|
|
46
|
+
/******/ // define getter function for harmony exports
|
|
47
|
+
/******/ __webpack_require__.d = function(exports, name, getter) {
|
|
48
|
+
/******/ if(!__webpack_require__.o(exports, name)) {
|
|
49
|
+
/******/ Object.defineProperty(exports, name, { enumerable: true, get: getter });
|
|
50
|
+
/******/ }
|
|
51
|
+
/******/ };
|
|
52
|
+
/******/
|
|
53
|
+
/******/ // define __esModule on exports
|
|
54
|
+
/******/ __webpack_require__.r = function(exports) {
|
|
55
|
+
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
|
|
56
|
+
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
57
|
+
/******/ }
|
|
58
|
+
/******/ Object.defineProperty(exports, '__esModule', { value: true });
|
|
59
|
+
/******/ };
|
|
60
|
+
/******/
|
|
61
|
+
/******/ // create a fake namespace object
|
|
62
|
+
/******/ // mode & 1: value is a module id, require it
|
|
63
|
+
/******/ // mode & 2: merge all properties of value into the ns
|
|
64
|
+
/******/ // mode & 4: return value when already ns object
|
|
65
|
+
/******/ // mode & 8|1: behave like require
|
|
66
|
+
/******/ __webpack_require__.t = function(value, mode) {
|
|
67
|
+
/******/ if(mode & 1) value = __webpack_require__(value);
|
|
68
|
+
/******/ if(mode & 8) return value;
|
|
69
|
+
/******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
|
|
70
|
+
/******/ var ns = Object.create(null);
|
|
71
|
+
/******/ __webpack_require__.r(ns);
|
|
72
|
+
/******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value });
|
|
73
|
+
/******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
|
|
74
|
+
/******/ return ns;
|
|
75
|
+
/******/ };
|
|
76
|
+
/******/
|
|
77
|
+
/******/ // getDefaultExport function for compatibility with non-harmony modules
|
|
78
|
+
/******/ __webpack_require__.n = function(module) {
|
|
79
|
+
/******/ var getter = module && module.__esModule ?
|
|
80
|
+
/******/ function getDefault() { return module['default']; } :
|
|
81
|
+
/******/ function getModuleExports() { return module; };
|
|
82
|
+
/******/ __webpack_require__.d(getter, 'a', getter);
|
|
83
|
+
/******/ return getter;
|
|
84
|
+
/******/ };
|
|
85
|
+
/******/
|
|
86
|
+
/******/ // Object.prototype.hasOwnProperty.call
|
|
87
|
+
/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
|
|
88
|
+
/******/
|
|
89
|
+
/******/ // __webpack_public_path__
|
|
90
|
+
/******/ __webpack_require__.p = "/dist/";
|
|
91
|
+
/******/
|
|
92
|
+
/******/
|
|
93
|
+
/******/ // Load entry module and return exports
|
|
94
|
+
/******/ return __webpack_require__(__webpack_require__.s = 127);
|
|
95
|
+
/******/ })
|
|
96
|
+
/************************************************************************/
|
|
97
|
+
/******/ ({
|
|
98
|
+
|
|
99
|
+
/***/ 127:
|
|
100
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
101
|
+
|
|
102
|
+
"use strict";
|
|
103
|
+
// ESM COMPAT FLAG
|
|
104
|
+
__webpack_require__.r(__webpack_exports__);
|
|
105
|
+
|
|
106
|
+
// EXTERNAL MODULE: external "./_mixin/tooltip"
|
|
107
|
+
var tooltip_ = __webpack_require__(16);
|
|
108
|
+
var tooltip_default = /*#__PURE__*/__webpack_require__.n(tooltip_);
|
|
109
|
+
|
|
110
|
+
// EXTERNAL MODULE: external "./button"
|
|
111
|
+
var external_button_ = __webpack_require__(7);
|
|
112
|
+
var external_button_default = /*#__PURE__*/__webpack_require__.n(external_button_);
|
|
113
|
+
|
|
114
|
+
// EXTERNAL MODULE: external "./icon"
|
|
115
|
+
var external_icon_ = __webpack_require__(4);
|
|
116
|
+
var external_icon_default = /*#__PURE__*/__webpack_require__.n(external_icon_);
|
|
117
|
+
|
|
118
|
+
// CONCATENATED MODULE: ./components/popconfirm/popconfirm.js
|
|
119
|
+
|
|
120
|
+
|
|
121
|
+
|
|
122
|
+
|
|
123
|
+
var prefixClsFirm = 'mds-popover-firm';
|
|
124
|
+
/* harmony default export */ var popconfirm = ({
|
|
125
|
+
name: 'MdsPopconfirm',
|
|
126
|
+
mixins: [tooltip_default.a],
|
|
127
|
+
props: {
|
|
128
|
+
prefixCls: {
|
|
129
|
+
type: String,
|
|
130
|
+
default: 'mds-popover'
|
|
131
|
+
},
|
|
132
|
+
content: {
|
|
133
|
+
type: String,
|
|
134
|
+
default: ''
|
|
135
|
+
},
|
|
136
|
+
iconType: {
|
|
137
|
+
type: String
|
|
138
|
+
},
|
|
139
|
+
iconClor: {
|
|
140
|
+
type: String
|
|
141
|
+
},
|
|
142
|
+
cancelText: {
|
|
143
|
+
type: String,
|
|
144
|
+
default: 'No'
|
|
145
|
+
},
|
|
146
|
+
showCancelBtn: {
|
|
147
|
+
type: Boolean,
|
|
148
|
+
default: true
|
|
149
|
+
},
|
|
150
|
+
showOkBtn: {
|
|
151
|
+
type: Boolean,
|
|
152
|
+
default: true
|
|
153
|
+
},
|
|
154
|
+
okType: {
|
|
155
|
+
type: String,
|
|
156
|
+
default: 'primary'
|
|
157
|
+
},
|
|
158
|
+
okText: {
|
|
159
|
+
type: String,
|
|
160
|
+
default: 'Yes'
|
|
161
|
+
},
|
|
162
|
+
trigger: {
|
|
163
|
+
type: String,
|
|
164
|
+
default: 'click'
|
|
165
|
+
}
|
|
166
|
+
},
|
|
167
|
+
methods: {
|
|
168
|
+
handleConfirm: function handleConfirm(e) {
|
|
169
|
+
this.closePopper();
|
|
170
|
+
this.$emit('onConfirm', e);
|
|
171
|
+
},
|
|
172
|
+
handleCancel: function handleCancel(e) {
|
|
173
|
+
this.closePopper();
|
|
174
|
+
this.$emit('onCancel', e);
|
|
175
|
+
}
|
|
176
|
+
},
|
|
177
|
+
mounted: function mounted() {
|
|
178
|
+
// console.log(this.popperVM, '333')
|
|
179
|
+
},
|
|
180
|
+
|
|
181
|
+
components: {
|
|
182
|
+
MdsButton: external_button_default.a,
|
|
183
|
+
MdsIcon: external_icon_default.a,
|
|
184
|
+
/**
|
|
185
|
+
* 定义函数化组件用于插入到popperVM
|
|
186
|
+
* 实际浮层显示的内容
|
|
187
|
+
*/
|
|
188
|
+
MdsTooltipContent: {
|
|
189
|
+
functional: true,
|
|
190
|
+
|
|
191
|
+
render: function render(h, context) {
|
|
192
|
+
var data = context.data;
|
|
193
|
+
return h('div', {
|
|
194
|
+
'class': [data.prefixCls + '-inner', '' + prefixClsFirm]
|
|
195
|
+
}, [h('div', {
|
|
196
|
+
'class': [data.prefixCls + '-inner-content', prefixClsFirm + '-content']
|
|
197
|
+
}, [h('div', {
|
|
198
|
+
'class': [data.prefixCls + '-message']
|
|
199
|
+
}, [data.iconType ? h('mds-icon', {
|
|
200
|
+
props: {
|
|
201
|
+
type: '' + data.iconType
|
|
202
|
+
},
|
|
203
|
+
'class': [prefixClsFirm + '-icon']
|
|
204
|
+
}) : '', h('div', {
|
|
205
|
+
'class': [prefixClsFirm + '-message-title']
|
|
206
|
+
}, data.$slots.title || data.title), h('div', {
|
|
207
|
+
'class': [prefixClsFirm + '-message-content']
|
|
208
|
+
}, data.$slots.content || data.content)]), h('div', {
|
|
209
|
+
'class': [data.prefixCls + '-buttons', prefixClsFirm + '-button']
|
|
210
|
+
}, [data.showCancelBtn ? h('mds-button', {
|
|
211
|
+
props: {
|
|
212
|
+
type: 'default'
|
|
213
|
+
},
|
|
214
|
+
'class': ['mds-btn mds-btn-sm', prefixClsFirm + '-button-cancel'],
|
|
215
|
+
on: {
|
|
216
|
+
click: data.handleCancel
|
|
217
|
+
}
|
|
218
|
+
}, [h('span', data.cancelText)]) : '', h('mds-button', {
|
|
219
|
+
props: {
|
|
220
|
+
type: '' + data.okType
|
|
221
|
+
},
|
|
222
|
+
'class': ['mds-btn mds-btn-sm', prefixClsFirm + '-button-firm'],
|
|
223
|
+
on: {
|
|
224
|
+
click: data.handleConfirm
|
|
225
|
+
}
|
|
226
|
+
}, [h('span', data.okText)])])])]);
|
|
227
|
+
}
|
|
228
|
+
}
|
|
229
|
+
}
|
|
230
|
+
});
|
|
231
|
+
// EXTERNAL MODULE: ./components/style/index.less
|
|
232
|
+
var style = __webpack_require__(131);
|
|
233
|
+
|
|
234
|
+
// EXTERNAL MODULE: ./components/popover/style/index.js
|
|
235
|
+
var popover_style = __webpack_require__(42);
|
|
236
|
+
|
|
237
|
+
// EXTERNAL MODULE: ./components/button/style/index.js
|
|
238
|
+
var button_style = __webpack_require__(33);
|
|
239
|
+
|
|
240
|
+
// EXTERNAL MODULE: ./components/popconfirm/style/index.less
|
|
241
|
+
var popconfirm_style = __webpack_require__(193);
|
|
242
|
+
|
|
243
|
+
// CONCATENATED MODULE: ./components/popconfirm/style/index.js
|
|
244
|
+
|
|
245
|
+
|
|
246
|
+
// style dependencies
|
|
247
|
+
|
|
248
|
+
|
|
249
|
+
|
|
250
|
+
// CONCATENATED MODULE: ./components/popconfirm/index.js
|
|
251
|
+
|
|
252
|
+
|
|
253
|
+
popconfirm.install = function (Vue) {
|
|
254
|
+
Vue.component(popconfirm.name, popconfirm);
|
|
255
|
+
};
|
|
256
|
+
/* harmony default export */ var components_popconfirm = __webpack_exports__["default"] = (popconfirm);
|
|
257
|
+
|
|
258
|
+
/***/ }),
|
|
259
|
+
|
|
260
|
+
/***/ 131:
|
|
261
|
+
/***/ (function(module, exports) {
|
|
262
|
+
|
|
263
|
+
// removed by extract-text-webpack-plugin
|
|
264
|
+
|
|
265
|
+
/***/ }),
|
|
266
|
+
|
|
267
|
+
/***/ 149:
|
|
268
|
+
/***/ (function(module, exports) {
|
|
269
|
+
|
|
270
|
+
// removed by extract-text-webpack-plugin
|
|
271
|
+
|
|
272
|
+
/***/ }),
|
|
273
|
+
|
|
274
|
+
/***/ 16:
|
|
275
|
+
/***/ (function(module, exports) {
|
|
276
|
+
|
|
277
|
+
module.exports = __WEBPACK_EXTERNAL_MODULE__16__;
|
|
278
|
+
|
|
279
|
+
/***/ }),
|
|
280
|
+
|
|
281
|
+
/***/ 191:
|
|
282
|
+
/***/ (function(module, exports) {
|
|
283
|
+
|
|
284
|
+
// removed by extract-text-webpack-plugin
|
|
285
|
+
|
|
286
|
+
/***/ }),
|
|
287
|
+
|
|
288
|
+
/***/ 193:
|
|
289
|
+
/***/ (function(module, exports) {
|
|
290
|
+
|
|
291
|
+
// removed by extract-text-webpack-plugin
|
|
292
|
+
|
|
293
|
+
/***/ }),
|
|
294
|
+
|
|
295
|
+
/***/ 33:
|
|
296
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
297
|
+
|
|
298
|
+
"use strict";
|
|
299
|
+
/* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(131);
|
|
300
|
+
/* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_style_index_less__WEBPACK_IMPORTED_MODULE_0__);
|
|
301
|
+
/* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(149);
|
|
302
|
+
/* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_index_less__WEBPACK_IMPORTED_MODULE_1__);
|
|
303
|
+
|
|
304
|
+
|
|
305
|
+
|
|
306
|
+
/***/ }),
|
|
307
|
+
|
|
308
|
+
/***/ 4:
|
|
309
|
+
/***/ (function(module, exports) {
|
|
310
|
+
|
|
311
|
+
module.exports = __WEBPACK_EXTERNAL_MODULE__4__;
|
|
312
|
+
|
|
313
|
+
/***/ }),
|
|
314
|
+
|
|
315
|
+
/***/ 42:
|
|
316
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
317
|
+
|
|
318
|
+
"use strict";
|
|
319
|
+
/* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(131);
|
|
320
|
+
/* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_style_index_less__WEBPACK_IMPORTED_MODULE_0__);
|
|
321
|
+
/* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(191);
|
|
322
|
+
/* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_index_less__WEBPACK_IMPORTED_MODULE_1__);
|
|
323
|
+
|
|
324
|
+
|
|
325
|
+
|
|
326
|
+
/***/ }),
|
|
327
|
+
|
|
328
|
+
/***/ 7:
|
|
329
|
+
/***/ (function(module, exports) {
|
|
330
|
+
|
|
331
|
+
module.exports = __WEBPACK_EXTERNAL_MODULE__7__;
|
|
332
|
+
|
|
333
|
+
/***/ })
|
|
334
|
+
|
|
335
|
+
/******/ });
|
|
336
|
+
});
|
package/dist/popover.js
ADDED
|
@@ -0,0 +1,206 @@
|
|
|
1
|
+
(function webpackUniversalModuleDefinition(root, factory) {
|
|
2
|
+
if(typeof exports === 'object' && typeof module === 'object')
|
|
3
|
+
module.exports = factory(require("./_mixin/tooltip"));
|
|
4
|
+
else if(typeof define === 'function' && define.amd)
|
|
5
|
+
define(["./_mixin/tooltip"], factory);
|
|
6
|
+
else {
|
|
7
|
+
var a = typeof exports === 'object' ? factory(require("./_mixin/tooltip")) : factory(root["./_mixin/tooltip"]);
|
|
8
|
+
for(var i in a) (typeof exports === 'object' ? exports : root)[i] = a[i];
|
|
9
|
+
}
|
|
10
|
+
})(window, function(__WEBPACK_EXTERNAL_MODULE__16__) {
|
|
11
|
+
return /******/ (function(modules) { // webpackBootstrap
|
|
12
|
+
/******/ // The module cache
|
|
13
|
+
/******/ var installedModules = {};
|
|
14
|
+
/******/
|
|
15
|
+
/******/ // The require function
|
|
16
|
+
/******/ function __webpack_require__(moduleId) {
|
|
17
|
+
/******/
|
|
18
|
+
/******/ // Check if module is in cache
|
|
19
|
+
/******/ if(installedModules[moduleId]) {
|
|
20
|
+
/******/ return installedModules[moduleId].exports;
|
|
21
|
+
/******/ }
|
|
22
|
+
/******/ // Create a new module (and put it into the cache)
|
|
23
|
+
/******/ var module = installedModules[moduleId] = {
|
|
24
|
+
/******/ i: moduleId,
|
|
25
|
+
/******/ l: false,
|
|
26
|
+
/******/ exports: {}
|
|
27
|
+
/******/ };
|
|
28
|
+
/******/
|
|
29
|
+
/******/ // Execute the module function
|
|
30
|
+
/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
|
|
31
|
+
/******/
|
|
32
|
+
/******/ // Flag the module as loaded
|
|
33
|
+
/******/ module.l = true;
|
|
34
|
+
/******/
|
|
35
|
+
/******/ // Return the exports of the module
|
|
36
|
+
/******/ return module.exports;
|
|
37
|
+
/******/ }
|
|
38
|
+
/******/
|
|
39
|
+
/******/
|
|
40
|
+
/******/ // expose the modules object (__webpack_modules__)
|
|
41
|
+
/******/ __webpack_require__.m = modules;
|
|
42
|
+
/******/
|
|
43
|
+
/******/ // expose the module cache
|
|
44
|
+
/******/ __webpack_require__.c = installedModules;
|
|
45
|
+
/******/
|
|
46
|
+
/******/ // define getter function for harmony exports
|
|
47
|
+
/******/ __webpack_require__.d = function(exports, name, getter) {
|
|
48
|
+
/******/ if(!__webpack_require__.o(exports, name)) {
|
|
49
|
+
/******/ Object.defineProperty(exports, name, { enumerable: true, get: getter });
|
|
50
|
+
/******/ }
|
|
51
|
+
/******/ };
|
|
52
|
+
/******/
|
|
53
|
+
/******/ // define __esModule on exports
|
|
54
|
+
/******/ __webpack_require__.r = function(exports) {
|
|
55
|
+
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
|
|
56
|
+
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
57
|
+
/******/ }
|
|
58
|
+
/******/ Object.defineProperty(exports, '__esModule', { value: true });
|
|
59
|
+
/******/ };
|
|
60
|
+
/******/
|
|
61
|
+
/******/ // create a fake namespace object
|
|
62
|
+
/******/ // mode & 1: value is a module id, require it
|
|
63
|
+
/******/ // mode & 2: merge all properties of value into the ns
|
|
64
|
+
/******/ // mode & 4: return value when already ns object
|
|
65
|
+
/******/ // mode & 8|1: behave like require
|
|
66
|
+
/******/ __webpack_require__.t = function(value, mode) {
|
|
67
|
+
/******/ if(mode & 1) value = __webpack_require__(value);
|
|
68
|
+
/******/ if(mode & 8) return value;
|
|
69
|
+
/******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
|
|
70
|
+
/******/ var ns = Object.create(null);
|
|
71
|
+
/******/ __webpack_require__.r(ns);
|
|
72
|
+
/******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value });
|
|
73
|
+
/******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
|
|
74
|
+
/******/ return ns;
|
|
75
|
+
/******/ };
|
|
76
|
+
/******/
|
|
77
|
+
/******/ // getDefaultExport function for compatibility with non-harmony modules
|
|
78
|
+
/******/ __webpack_require__.n = function(module) {
|
|
79
|
+
/******/ var getter = module && module.__esModule ?
|
|
80
|
+
/******/ function getDefault() { return module['default']; } :
|
|
81
|
+
/******/ function getModuleExports() { return module; };
|
|
82
|
+
/******/ __webpack_require__.d(getter, 'a', getter);
|
|
83
|
+
/******/ return getter;
|
|
84
|
+
/******/ };
|
|
85
|
+
/******/
|
|
86
|
+
/******/ // Object.prototype.hasOwnProperty.call
|
|
87
|
+
/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
|
|
88
|
+
/******/
|
|
89
|
+
/******/ // __webpack_public_path__
|
|
90
|
+
/******/ __webpack_require__.p = "/dist/";
|
|
91
|
+
/******/
|
|
92
|
+
/******/
|
|
93
|
+
/******/ // Load entry module and return exports
|
|
94
|
+
/******/ return __webpack_require__(__webpack_require__.s = 50);
|
|
95
|
+
/******/ })
|
|
96
|
+
/************************************************************************/
|
|
97
|
+
/******/ ({
|
|
98
|
+
|
|
99
|
+
/***/ 131:
|
|
100
|
+
/***/ (function(module, exports) {
|
|
101
|
+
|
|
102
|
+
// removed by extract-text-webpack-plugin
|
|
103
|
+
|
|
104
|
+
/***/ }),
|
|
105
|
+
|
|
106
|
+
/***/ 16:
|
|
107
|
+
/***/ (function(module, exports) {
|
|
108
|
+
|
|
109
|
+
module.exports = __WEBPACK_EXTERNAL_MODULE__16__;
|
|
110
|
+
|
|
111
|
+
/***/ }),
|
|
112
|
+
|
|
113
|
+
/***/ 191:
|
|
114
|
+
/***/ (function(module, exports) {
|
|
115
|
+
|
|
116
|
+
// removed by extract-text-webpack-plugin
|
|
117
|
+
|
|
118
|
+
/***/ }),
|
|
119
|
+
|
|
120
|
+
/***/ 42:
|
|
121
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
122
|
+
|
|
123
|
+
"use strict";
|
|
124
|
+
/* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(131);
|
|
125
|
+
/* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_style_index_less__WEBPACK_IMPORTED_MODULE_0__);
|
|
126
|
+
/* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(191);
|
|
127
|
+
/* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_index_less__WEBPACK_IMPORTED_MODULE_1__);
|
|
128
|
+
|
|
129
|
+
|
|
130
|
+
|
|
131
|
+
/***/ }),
|
|
132
|
+
|
|
133
|
+
/***/ 50:
|
|
134
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
135
|
+
|
|
136
|
+
"use strict";
|
|
137
|
+
// ESM COMPAT FLAG
|
|
138
|
+
__webpack_require__.r(__webpack_exports__);
|
|
139
|
+
|
|
140
|
+
// EXTERNAL MODULE: ./components/popover/style/index.js
|
|
141
|
+
var style = __webpack_require__(42);
|
|
142
|
+
|
|
143
|
+
// EXTERNAL MODULE: external "./_mixin/tooltip"
|
|
144
|
+
var tooltip_ = __webpack_require__(16);
|
|
145
|
+
var tooltip_default = /*#__PURE__*/__webpack_require__.n(tooltip_);
|
|
146
|
+
|
|
147
|
+
// CONCATENATED MODULE: ./components/popover/popover.js
|
|
148
|
+
|
|
149
|
+
|
|
150
|
+
/* harmony default export */ var popover = ({
|
|
151
|
+
name: 'MdsPopover',
|
|
152
|
+
mixins: [tooltip_default.a],
|
|
153
|
+
props: {
|
|
154
|
+
prefixCls: {
|
|
155
|
+
type: String,
|
|
156
|
+
default: 'mds-popover'
|
|
157
|
+
},
|
|
158
|
+
content: {
|
|
159
|
+
type: String
|
|
160
|
+
},
|
|
161
|
+
popperOptions: {
|
|
162
|
+
type: Object,
|
|
163
|
+
default: function _default() {}
|
|
164
|
+
}
|
|
165
|
+
},
|
|
166
|
+
components: {
|
|
167
|
+
/**
|
|
168
|
+
* 定义函数化组件用于插入到popperVM
|
|
169
|
+
* 实际浮层显示的内容
|
|
170
|
+
*/
|
|
171
|
+
MdsTooltipContent: {
|
|
172
|
+
functional: true,
|
|
173
|
+
render: function render(h, context) {
|
|
174
|
+
var data = context.data;
|
|
175
|
+
if (!data.$slots.title && !data.title) {
|
|
176
|
+
return h('div', {
|
|
177
|
+
'class': ['mds-popover-inner']
|
|
178
|
+
}, [h('div', {
|
|
179
|
+
'class': ['mds-popover-inner-content']
|
|
180
|
+
}, data.$slots.content || data.content)]);
|
|
181
|
+
} else {
|
|
182
|
+
return h('div', {
|
|
183
|
+
'class': ['mds-popover-inner']
|
|
184
|
+
}, [h('div', {
|
|
185
|
+
'class': ['mds-popover-title']
|
|
186
|
+
}, data.$slots.title || data.title), h('div', {
|
|
187
|
+
'class': ['mds-popover-inner-content']
|
|
188
|
+
}, data.$slots.content || data.content)]);
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
});
|
|
194
|
+
// CONCATENATED MODULE: ./components/popover/index.js
|
|
195
|
+
|
|
196
|
+
|
|
197
|
+
/* istanbul ignore next */
|
|
198
|
+
popover.install = function (Vue) {
|
|
199
|
+
Vue.component(popover.name, popover);
|
|
200
|
+
};
|
|
201
|
+
/* harmony default export */ var components_popover = __webpack_exports__["default"] = (popover);
|
|
202
|
+
|
|
203
|
+
/***/ })
|
|
204
|
+
|
|
205
|
+
/******/ });
|
|
206
|
+
});
|