xt-element-ui 1.0.2 → 1.0.3
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/demo.html +10 -1
- package/lib/index.common.js +176 -110
- package/lib/index.css +1 -1
- package/lib/index.umd.js +160 -134
- package/lib/index.umd.min.js +1 -1
- package/package.json +6 -12
- /package/lib/fonts/{element-icons.ff18efd1.woff → element-icons.535877f5.woff} +0 -0
- /package/lib/fonts/{element-icons.f1a45d74.ttf → element-icons.732389de.ttf} +0 -0
package/lib/demo.html
CHANGED
|
@@ -1 +1,10 @@
|
|
|
1
|
-
|
|
1
|
+
<meta charset="utf-8">
|
|
2
|
+
<title>index demo</title>
|
|
3
|
+
<script src="./index.umd.js"></script>
|
|
4
|
+
|
|
5
|
+
<link rel="stylesheet" href="./index.css">
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
<script>
|
|
9
|
+
console.log(index)
|
|
10
|
+
</script>
|
package/lib/index.common.js
CHANGED
|
@@ -1,84 +1,140 @@
|
|
|
1
|
-
|
|
2
|
-
/******/
|
|
3
|
-
/******/ // The
|
|
4
|
-
/******/ var
|
|
5
|
-
/******/
|
|
6
|
-
|
|
7
|
-
/******/
|
|
8
|
-
/******/
|
|
9
|
-
/******/ //
|
|
10
|
-
/******/
|
|
11
|
-
/******/
|
|
12
|
-
/******/
|
|
13
|
-
/******/
|
|
14
|
-
/******/
|
|
15
|
-
/******/
|
|
16
|
-
/******/
|
|
17
|
-
/******/
|
|
18
|
-
/******/
|
|
19
|
-
/******/ /* webpack/runtime/define property getters */
|
|
20
|
-
/******/ (() => {
|
|
21
|
-
/******/ // define getter functions for harmony exports
|
|
22
|
-
/******/ __webpack_require__.d = (exports, definition) => {
|
|
23
|
-
/******/ for(var key in definition) {
|
|
24
|
-
/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
|
|
25
|
-
/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
|
|
26
|
-
/******/ }
|
|
27
|
-
/******/ }
|
|
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: {}
|
|
28
18
|
/******/ };
|
|
29
|
-
/******/
|
|
30
|
-
/******/
|
|
31
|
-
/******/
|
|
32
|
-
/******/
|
|
33
|
-
/******/
|
|
34
|
-
/******/
|
|
35
|
-
/******/
|
|
36
|
-
/******/
|
|
37
|
-
/******/
|
|
38
|
-
/******/
|
|
39
|
-
/******/
|
|
40
|
-
/******/
|
|
41
|
-
/******/
|
|
42
|
-
/******/
|
|
43
|
-
/******/
|
|
44
|
-
/******/
|
|
45
|
-
/******/
|
|
46
|
-
/******/
|
|
47
|
-
/******/
|
|
48
|
-
/******/ (
|
|
49
|
-
/******/ __webpack_require__.
|
|
50
|
-
/******/
|
|
51
|
-
/******/
|
|
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 = "";
|
|
82
|
+
/******/
|
|
83
|
+
/******/
|
|
84
|
+
/******/ // Load entry module and return exports
|
|
85
|
+
/******/ return __webpack_require__(__webpack_require__.s = "fb15");
|
|
86
|
+
/******/ })
|
|
52
87
|
/************************************************************************/
|
|
53
|
-
|
|
88
|
+
/******/ ({
|
|
89
|
+
|
|
90
|
+
/***/ "0fae":
|
|
91
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
92
|
+
|
|
93
|
+
// extracted by mini-css-extract-plugin
|
|
94
|
+
|
|
95
|
+
/***/ }),
|
|
96
|
+
|
|
97
|
+
/***/ "5f72":
|
|
98
|
+
/***/ (function(module, exports) {
|
|
99
|
+
|
|
100
|
+
module.exports = require("ElementUI");
|
|
101
|
+
|
|
102
|
+
/***/ }),
|
|
103
|
+
|
|
104
|
+
/***/ "8bbf":
|
|
105
|
+
/***/ (function(module, exports) {
|
|
106
|
+
|
|
107
|
+
module.exports = require("Vue");
|
|
108
|
+
|
|
109
|
+
/***/ }),
|
|
110
|
+
|
|
111
|
+
/***/ "fb15":
|
|
112
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
113
|
+
|
|
114
|
+
"use strict";
|
|
54
115
|
// ESM COMPAT FLAG
|
|
55
116
|
__webpack_require__.r(__webpack_exports__);
|
|
56
117
|
|
|
57
118
|
// EXPORTS
|
|
58
|
-
__webpack_require__.d(__webpack_exports__, {
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
});
|
|
73
|
-
|
|
74
|
-
;// ./node_modules/@vue/cli-service/lib/commands/build/setPublicPath.js
|
|
75
|
-
/* eslint-disable no-var */
|
|
119
|
+
__webpack_require__.d(__webpack_exports__, "Vue", function() { return /* reexport */ external_Vue_default.a; });
|
|
120
|
+
__webpack_require__.d(__webpack_exports__, "ElementUI", function() { return /* reexport */ external_ElementUI_default.a; });
|
|
121
|
+
__webpack_require__.d(__webpack_exports__, "getConfig", function() { return /* reexport */ getConfig; });
|
|
122
|
+
__webpack_require__.d(__webpack_exports__, "setConfig", function() { return /* reexport */ setConfig; });
|
|
123
|
+
__webpack_require__.d(__webpack_exports__, "setTheme", function() { return /* reexport */ setTheme; });
|
|
124
|
+
__webpack_require__.d(__webpack_exports__, "setSize", function() { return /* reexport */ setSize; });
|
|
125
|
+
__webpack_require__.d(__webpack_exports__, "setPrimaryColor", function() { return /* reexport */ setPrimaryColor; });
|
|
126
|
+
__webpack_require__.d(__webpack_exports__, "getTheme", function() { return /* reexport */ getTheme; });
|
|
127
|
+
__webpack_require__.d(__webpack_exports__, "getSize", function() { return /* reexport */ getSize; });
|
|
128
|
+
__webpack_require__.d(__webpack_exports__, "getPrimaryColor", function() { return /* reexport */ getPrimaryColor; });
|
|
129
|
+
__webpack_require__.d(__webpack_exports__, "resetConfig", function() { return /* reexport */ resetConfig; });
|
|
130
|
+
__webpack_require__.d(__webpack_exports__, "onConfigChange", function() { return /* reexport */ onConfigChange; });
|
|
131
|
+
|
|
132
|
+
// CONCATENATED MODULE: ./node_modules/@vue/cli-service/lib/commands/build/setPublicPath.js
|
|
76
133
|
// This file is imported into lib/wc client bundles.
|
|
77
134
|
|
|
78
135
|
if (typeof window !== 'undefined') {
|
|
79
136
|
var currentScript = window.document.currentScript
|
|
80
|
-
if (false)
|
|
81
|
-
{ var getCurrentScript; }
|
|
137
|
+
if (false) { var getCurrentScript; }
|
|
82
138
|
|
|
83
139
|
var src = currentScript && currentScript.src.match(/(.+\/)[^/]+\.js(\?.*)?$/)
|
|
84
140
|
if (src) {
|
|
@@ -87,23 +143,30 @@ if (typeof window !== 'undefined') {
|
|
|
87
143
|
}
|
|
88
144
|
|
|
89
145
|
// Indicate to webpack that this file can be concatenated
|
|
90
|
-
/* harmony default export */
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
var external_Vue_default = /*#__PURE__*/__webpack_require__.n(
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
var
|
|
98
|
-
|
|
146
|
+
/* harmony default export */ var setPublicPath = (null);
|
|
147
|
+
|
|
148
|
+
// EXTERNAL MODULE: external "Vue"
|
|
149
|
+
var external_Vue_ = __webpack_require__("8bbf");
|
|
150
|
+
var external_Vue_default = /*#__PURE__*/__webpack_require__.n(external_Vue_);
|
|
151
|
+
|
|
152
|
+
// EXTERNAL MODULE: external "ElementUI"
|
|
153
|
+
var external_ElementUI_ = __webpack_require__("5f72");
|
|
154
|
+
var external_ElementUI_default = /*#__PURE__*/__webpack_require__.n(external_ElementUI_);
|
|
155
|
+
|
|
156
|
+
// EXTERNAL MODULE: ./node_modules/element-ui/lib/theme-chalk/index.css
|
|
157
|
+
var theme_chalk = __webpack_require__("0fae");
|
|
158
|
+
|
|
159
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"1f5e94d8-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--5!./node_modules/@vue/cli-service/node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/button/index.vue?vue&type=template&id=55650f2e
|
|
99
160
|
var render = function render(){var _vm=this,_c=_vm._self._c;return _c('el-button',{on:{"click":_vm.handleClick}},[_vm._v(_vm._s(_vm.text))])
|
|
100
161
|
}
|
|
101
162
|
var staticRenderFns = []
|
|
102
163
|
|
|
103
164
|
|
|
104
|
-
|
|
165
|
+
// CONCATENATED MODULE: ./src/components/button/index.vue?vue&type=template&id=55650f2e
|
|
166
|
+
|
|
167
|
+
// CONCATENATED MODULE: ./node_modules/@vue/cli-service/node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/button/index.vue?vue&type=script&lang=js
|
|
105
168
|
|
|
106
|
-
/* harmony default export */
|
|
169
|
+
/* harmony default export */ var buttonvue_type_script_lang_js = ({
|
|
107
170
|
props:['text'],
|
|
108
171
|
name: 'XtButton',
|
|
109
172
|
methods:{
|
|
@@ -113,9 +176,9 @@ var staticRenderFns = []
|
|
|
113
176
|
}
|
|
114
177
|
});
|
|
115
178
|
|
|
116
|
-
|
|
117
|
-
/* harmony default export */
|
|
118
|
-
|
|
179
|
+
// CONCATENATED MODULE: ./src/components/button/index.vue?vue&type=script&lang=js
|
|
180
|
+
/* harmony default export */ var components_buttonvue_type_script_lang_js = (buttonvue_type_script_lang_js);
|
|
181
|
+
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
|
|
119
182
|
/* globals __VUE_SSR_CONTEXT__ */
|
|
120
183
|
|
|
121
184
|
// IMPORTANT: Do NOT use ES2015 features in this file (except for modules).
|
|
@@ -213,14 +276,14 @@ function normalizeComponent(
|
|
|
213
276
|
}
|
|
214
277
|
}
|
|
215
278
|
|
|
216
|
-
|
|
279
|
+
// CONCATENATED MODULE: ./src/components/button/index.vue
|
|
217
280
|
|
|
218
281
|
|
|
219
282
|
|
|
220
283
|
|
|
221
284
|
|
|
222
285
|
/* normalize component */
|
|
223
|
-
|
|
286
|
+
|
|
224
287
|
var component = normalizeComponent(
|
|
225
288
|
components_buttonvue_type_script_lang_js,
|
|
226
289
|
render,
|
|
@@ -232,19 +295,21 @@ var component = normalizeComponent(
|
|
|
232
295
|
|
|
233
296
|
)
|
|
234
297
|
|
|
235
|
-
/* harmony default export */
|
|
236
|
-
|
|
298
|
+
/* harmony default export */ var components_button = (component.exports);
|
|
299
|
+
// CONCATENATED MODULE: ./src/components/button/index.js
|
|
237
300
|
|
|
238
|
-
/* harmony default export */
|
|
239
|
-
|
|
301
|
+
/* harmony default export */ var src_components_button = (components_button);
|
|
302
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"1f5e94d8-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--5!./node_modules/@vue/cli-service/node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/input/index.vue?vue&type=template&id=fe9146e4
|
|
240
303
|
var inputvue_type_template_id_fe9146e4_render = function render(){var _vm=this,_c=_vm._self._c;return _c('el-input',{attrs:{"value":_vm.value,"placeholder":_vm.placeholder},on:{"input":function($event){return _vm.$emit('input', $event)}}})
|
|
241
304
|
}
|
|
242
305
|
var inputvue_type_template_id_fe9146e4_staticRenderFns = []
|
|
243
306
|
|
|
244
307
|
|
|
245
|
-
|
|
308
|
+
// CONCATENATED MODULE: ./src/components/input/index.vue?vue&type=template&id=fe9146e4
|
|
309
|
+
|
|
310
|
+
// CONCATENATED MODULE: ./node_modules/@vue/cli-service/node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/input/index.vue?vue&type=script&lang=js
|
|
246
311
|
|
|
247
|
-
/* harmony default export */
|
|
312
|
+
/* harmony default export */ var inputvue_type_script_lang_js = ({
|
|
248
313
|
name: 'XtInput',
|
|
249
314
|
props: {
|
|
250
315
|
value: [String, Number],
|
|
@@ -255,16 +320,16 @@ var inputvue_type_template_id_fe9146e4_staticRenderFns = []
|
|
|
255
320
|
}
|
|
256
321
|
});
|
|
257
322
|
|
|
258
|
-
|
|
259
|
-
/* harmony default export */
|
|
260
|
-
|
|
323
|
+
// CONCATENATED MODULE: ./src/components/input/index.vue?vue&type=script&lang=js
|
|
324
|
+
/* harmony default export */ var components_inputvue_type_script_lang_js = (inputvue_type_script_lang_js);
|
|
325
|
+
// CONCATENATED MODULE: ./src/components/input/index.vue
|
|
261
326
|
|
|
262
327
|
|
|
263
328
|
|
|
264
329
|
|
|
265
330
|
|
|
266
331
|
/* normalize component */
|
|
267
|
-
|
|
332
|
+
|
|
268
333
|
var input_component = normalizeComponent(
|
|
269
334
|
components_inputvue_type_script_lang_js,
|
|
270
335
|
inputvue_type_template_id_fe9146e4_render,
|
|
@@ -276,17 +341,17 @@ var input_component = normalizeComponent(
|
|
|
276
341
|
|
|
277
342
|
)
|
|
278
343
|
|
|
279
|
-
/* harmony default export */
|
|
280
|
-
|
|
344
|
+
/* harmony default export */ var input = (input_component.exports);
|
|
345
|
+
// CONCATENATED MODULE: ./src/components/input/index.js
|
|
281
346
|
|
|
282
|
-
/* harmony default export */
|
|
283
|
-
|
|
347
|
+
/* harmony default export */ var components_input = (input);
|
|
348
|
+
// CONCATENATED MODULE: ./src/index.js
|
|
284
349
|
// 导入 Vue
|
|
285
350
|
|
|
286
351
|
|
|
287
352
|
// 在导入 Element UI 之前,先将 Vue 设置为全局变量
|
|
288
353
|
if (typeof window !== 'undefined') {
|
|
289
|
-
window.Vue =
|
|
354
|
+
window.Vue = external_Vue_default.a
|
|
290
355
|
}
|
|
291
356
|
|
|
292
357
|
// 导入 Element UI 并注册
|
|
@@ -309,7 +374,7 @@ const install = function (Vue) {
|
|
|
309
374
|
install.installed = true
|
|
310
375
|
|
|
311
376
|
// 注册 Element UI
|
|
312
|
-
Vue.use(
|
|
377
|
+
Vue.use(external_ElementUI_default.a)
|
|
313
378
|
|
|
314
379
|
// 全局注册所有 xt- 组件
|
|
315
380
|
components.forEach(component => {
|
|
@@ -323,13 +388,13 @@ if (typeof window !== 'undefined' && window.Vue) {
|
|
|
323
388
|
}
|
|
324
389
|
|
|
325
390
|
// 导出
|
|
326
|
-
/* harmony default export */
|
|
391
|
+
/* harmony default export */ var src_0 = ({
|
|
327
392
|
install,
|
|
328
393
|
// 按需导出组件
|
|
329
394
|
Button: src_components_button,
|
|
330
395
|
Input: components_input,
|
|
331
396
|
// 导出 ElementUI 以便用户按需引入
|
|
332
|
-
ElementUI:
|
|
397
|
+
ElementUI: external_ElementUI_default.a
|
|
333
398
|
});
|
|
334
399
|
|
|
335
400
|
// 导出 Vue 和 ElementUI 以便用户使用
|
|
@@ -451,12 +516,13 @@ const onConfigChange = function(listener) {
|
|
|
451
516
|
console.warn('[XtElementUI] onConfigChange 必须传入函数')
|
|
452
517
|
}
|
|
453
518
|
}
|
|
454
|
-
|
|
519
|
+
// CONCATENATED MODULE: ./node_modules/@vue/cli-service/lib/commands/build/entry-lib.js
|
|
520
|
+
|
|
521
|
+
|
|
522
|
+
/* harmony default export */ var entry_lib = __webpack_exports__["default"] = (src_0);
|
|
455
523
|
|
|
456
524
|
|
|
457
|
-
/* harmony default export */ const entry_lib = (src_0);
|
|
458
525
|
|
|
526
|
+
/***/ })
|
|
459
527
|
|
|
460
|
-
|
|
461
|
-
/******/ })()
|
|
462
|
-
;
|
|
528
|
+
/******/ });
|