@1994-du/vue3-ui 0.0.2 → 0.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/button/demo.html +5 -0
- package/lib/button/index.common.js +155 -0
- package/lib/button/index.css +1 -0
- package/lib/button/index.umd.js +174 -0
- package/lib/button/index.umd.min.js +2 -0
- package/lib/card/demo.html +5 -0
- package/lib/card/index.common.js +146 -0
- package/lib/card/index.css +1 -0
- package/lib/card/index.umd.js +165 -0
- package/lib/card/index.umd.min.js +2 -0
- package/lib/demo.html +1 -1
- package/lib/{vue3-ui.common.js → index.common.js} +1 -1
- package/lib/{vue3-ui.umd.js → index.umd.js} +3 -3
- package/lib/index.umd.min.js +2 -0
- package/lib/switch/demo.html +5 -0
- package/lib/switch/index.common.js +202 -0
- package/lib/switch/index.css +1 -0
- package/lib/switch/index.umd.js +221 -0
- package/lib/switch/index.umd.min.js +2 -0
- package/package.json +20 -16
- package/scripts/update-exports.js +32 -0
- package/lib/vue3-ui.umd.min.js +0 -2
- /package/lib/{vue3-ui.css → index.css} +0 -0
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
<!doctype html><meta charset="utf-8"><title>index demo</title><script src="//unpkg.com/vue@3"></script><script src="./index.umd.js"></script><link rel="stylesheet" href="./index.css"><div id="app"><demo></demo></div><script>Vue.createApp({
|
|
2
|
+
components: {
|
|
3
|
+
demo: index
|
|
4
|
+
}
|
|
5
|
+
}).mount('#app')</script>
|
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
/******/ (() => { // webpackBootstrap
|
|
2
|
+
/******/ "use strict";
|
|
3
|
+
/******/ var __webpack_modules__ = ({
|
|
4
|
+
|
|
5
|
+
/***/ 241
|
|
6
|
+
(__unused_webpack_module, exports) {
|
|
7
|
+
|
|
8
|
+
var __webpack_unused_export__;
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
__webpack_unused_export__ = ({
|
|
12
|
+
value: true
|
|
13
|
+
});
|
|
14
|
+
// runtime helper for setting properties on components
|
|
15
|
+
// in a tree-shakable way
|
|
16
|
+
exports.A = (sfc, props) => {
|
|
17
|
+
const target = sfc.__vccOpts || sfc;
|
|
18
|
+
for (const [key, val] of props) {
|
|
19
|
+
target[key] = val;
|
|
20
|
+
}
|
|
21
|
+
return target;
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
/***/ }
|
|
25
|
+
|
|
26
|
+
/******/ });
|
|
27
|
+
/************************************************************************/
|
|
28
|
+
/******/ // The module cache
|
|
29
|
+
/******/ var __webpack_module_cache__ = {};
|
|
30
|
+
/******/
|
|
31
|
+
/******/ // The require function
|
|
32
|
+
/******/ function __webpack_require__(moduleId) {
|
|
33
|
+
/******/ // Check if module is in cache
|
|
34
|
+
/******/ var cachedModule = __webpack_module_cache__[moduleId];
|
|
35
|
+
/******/ if (cachedModule !== undefined) {
|
|
36
|
+
/******/ return cachedModule.exports;
|
|
37
|
+
/******/ }
|
|
38
|
+
/******/ // Create a new module (and put it into the cache)
|
|
39
|
+
/******/ var module = __webpack_module_cache__[moduleId] = {
|
|
40
|
+
/******/ // no module.id needed
|
|
41
|
+
/******/ // no module.loaded needed
|
|
42
|
+
/******/ exports: {}
|
|
43
|
+
/******/ };
|
|
44
|
+
/******/
|
|
45
|
+
/******/ // Execute the module function
|
|
46
|
+
/******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
|
|
47
|
+
/******/
|
|
48
|
+
/******/ // Return the exports of the module
|
|
49
|
+
/******/ return module.exports;
|
|
50
|
+
/******/ }
|
|
51
|
+
/******/
|
|
52
|
+
/************************************************************************/
|
|
53
|
+
/******/ /* webpack/runtime/define property getters */
|
|
54
|
+
/******/ (() => {
|
|
55
|
+
/******/ // define getter functions for harmony exports
|
|
56
|
+
/******/ __webpack_require__.d = (exports, definition) => {
|
|
57
|
+
/******/ for(var key in definition) {
|
|
58
|
+
/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
|
|
59
|
+
/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
|
|
60
|
+
/******/ }
|
|
61
|
+
/******/ }
|
|
62
|
+
/******/ };
|
|
63
|
+
/******/ })();
|
|
64
|
+
/******/
|
|
65
|
+
/******/ /* webpack/runtime/hasOwnProperty shorthand */
|
|
66
|
+
/******/ (() => {
|
|
67
|
+
/******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
|
|
68
|
+
/******/ })();
|
|
69
|
+
/******/
|
|
70
|
+
/******/ /* webpack/runtime/publicPath */
|
|
71
|
+
/******/ (() => {
|
|
72
|
+
/******/ __webpack_require__.p = "";
|
|
73
|
+
/******/ })();
|
|
74
|
+
/******/
|
|
75
|
+
/************************************************************************/
|
|
76
|
+
var __webpack_exports__ = {};
|
|
77
|
+
|
|
78
|
+
// EXPORTS
|
|
79
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
80
|
+
"default": () => (/* binding */ entry_lib)
|
|
81
|
+
});
|
|
82
|
+
|
|
83
|
+
;// ./node_modules/@vue/cli-service/lib/commands/build/setPublicPath.js
|
|
84
|
+
/* eslint-disable no-var */
|
|
85
|
+
// This file is imported into lib/wc client bundles.
|
|
86
|
+
|
|
87
|
+
if (typeof window !== 'undefined') {
|
|
88
|
+
var currentScript = window.document.currentScript
|
|
89
|
+
if (false) // removed by dead control flow
|
|
90
|
+
{ var getCurrentScript; }
|
|
91
|
+
|
|
92
|
+
var src = currentScript && currentScript.src.match(/(.+\/)[^/]+\.js(\?.*)?$/)
|
|
93
|
+
if (src) {
|
|
94
|
+
__webpack_require__.p = src[1] // eslint-disable-line
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
// Indicate to webpack that this file can be concatenated
|
|
99
|
+
/* harmony default export */ const setPublicPath = (null);
|
|
100
|
+
|
|
101
|
+
;// external {"commonjs":"vue","commonjs2":"vue","root":"Vue"}
|
|
102
|
+
const external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject = require("vue");
|
|
103
|
+
;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./packages/dxButton/dxButton.vue?vue&type=script&setup=true&lang=js
|
|
104
|
+
|
|
105
|
+
/* harmony default export */ const dxButtonvue_type_script_setup_true_lang_js = ({
|
|
106
|
+
__name: 'dxButton',
|
|
107
|
+
props: {
|
|
108
|
+
type: String
|
|
109
|
+
},
|
|
110
|
+
emits: ['click'],
|
|
111
|
+
setup: function setup(__props, _ref) {
|
|
112
|
+
var __emit = _ref.emit;
|
|
113
|
+
var props = __props;
|
|
114
|
+
var emit = __emit;
|
|
115
|
+
var clickHandle = function clickHandle() {
|
|
116
|
+
emit('click');
|
|
117
|
+
};
|
|
118
|
+
return function (_ctx, _cache) {
|
|
119
|
+
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementBlock)("button", {
|
|
120
|
+
onClick: clickHandle,
|
|
121
|
+
type: "button",
|
|
122
|
+
"class": (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.normalizeClass)(["dx_button", 'dx_button_' + "".concat(__props.type)])
|
|
123
|
+
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.renderSlot)(_ctx.$slots, "default")], 2);
|
|
124
|
+
};
|
|
125
|
+
}
|
|
126
|
+
});
|
|
127
|
+
;// ./packages/dxButton/dxButton.vue?vue&type=script&setup=true&lang=js
|
|
128
|
+
|
|
129
|
+
;// ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-32.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-32.use[1]!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-32.use[2]!./node_modules/less-loader/dist/cjs.js??clonedRuleSet-32.use[3]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./packages/dxButton/dxButton.vue?vue&type=style&index=0&id=5090ee09&lang=less&scoped=true
|
|
130
|
+
// extracted by mini-css-extract-plugin
|
|
131
|
+
|
|
132
|
+
;// ./packages/dxButton/dxButton.vue?vue&type=style&index=0&id=5090ee09&lang=less&scoped=true
|
|
133
|
+
|
|
134
|
+
// EXTERNAL MODULE: ./node_modules/vue-loader/dist/exportHelper.js
|
|
135
|
+
var exportHelper = __webpack_require__(241);
|
|
136
|
+
;// ./packages/dxButton/dxButton.vue
|
|
137
|
+
|
|
138
|
+
|
|
139
|
+
|
|
140
|
+
;
|
|
141
|
+
|
|
142
|
+
|
|
143
|
+
const __exports__ = /*#__PURE__*/(0,exportHelper/* default */.A)(dxButtonvue_type_script_setup_true_lang_js, [['__scopeId',"data-v-5090ee09"]])
|
|
144
|
+
|
|
145
|
+
/* harmony default export */ const dxButton = (__exports__);
|
|
146
|
+
;// ./node_modules/@vue/cli-service/lib/commands/build/entry-lib.js
|
|
147
|
+
|
|
148
|
+
|
|
149
|
+
/* harmony default export */ const entry_lib = (dxButton);
|
|
150
|
+
|
|
151
|
+
|
|
152
|
+
module.exports = __webpack_exports__["default"];
|
|
153
|
+
/******/ })()
|
|
154
|
+
;
|
|
155
|
+
//# sourceMappingURL=index.common.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.dx_button[data-v-5090ee09]{font-size:14px;cursor:pointer}.dx_button[data-v-5090ee09]:hover{border-color:#31afe9}.dx_button_default[data-v-5090ee09]{padding:5px 10px;border-radius:5px;background-color:#fff;border:1px solid #eee}
|
|
@@ -0,0 +1,174 @@
|
|
|
1
|
+
(function webpackUniversalModuleDefinition(root, factory) {
|
|
2
|
+
if(typeof exports === 'object' && typeof module === 'object')
|
|
3
|
+
module.exports = factory(require("vue"));
|
|
4
|
+
else if(typeof define === 'function' && define.amd)
|
|
5
|
+
define([], factory);
|
|
6
|
+
else if(typeof exports === 'object')
|
|
7
|
+
exports["index"] = factory(require("vue"));
|
|
8
|
+
else
|
|
9
|
+
root["index"] = factory(root["Vue"]);
|
|
10
|
+
})((typeof self !== 'undefined' ? self : this), (__WEBPACK_EXTERNAL_MODULE__274__) => {
|
|
11
|
+
return /******/ (() => { // webpackBootstrap
|
|
12
|
+
/******/ "use strict";
|
|
13
|
+
/******/ var __webpack_modules__ = ({
|
|
14
|
+
|
|
15
|
+
/***/ 907
|
|
16
|
+
(__unused_webpack_module, exports) {
|
|
17
|
+
|
|
18
|
+
var __webpack_unused_export__;
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
__webpack_unused_export__ = ({
|
|
22
|
+
value: true
|
|
23
|
+
});
|
|
24
|
+
// runtime helper for setting properties on components
|
|
25
|
+
// in a tree-shakable way
|
|
26
|
+
exports.A = (sfc, props) => {
|
|
27
|
+
const target = sfc.__vccOpts || sfc;
|
|
28
|
+
for (const [key, val] of props) {
|
|
29
|
+
target[key] = val;
|
|
30
|
+
}
|
|
31
|
+
return target;
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
/***/ },
|
|
35
|
+
|
|
36
|
+
/***/ 274
|
|
37
|
+
(module) {
|
|
38
|
+
|
|
39
|
+
module.exports = __WEBPACK_EXTERNAL_MODULE__274__;
|
|
40
|
+
|
|
41
|
+
/***/ }
|
|
42
|
+
|
|
43
|
+
/******/ });
|
|
44
|
+
/************************************************************************/
|
|
45
|
+
/******/ // The module cache
|
|
46
|
+
/******/ var __webpack_module_cache__ = {};
|
|
47
|
+
/******/
|
|
48
|
+
/******/ // The require function
|
|
49
|
+
/******/ function __webpack_require__(moduleId) {
|
|
50
|
+
/******/ // Check if module is in cache
|
|
51
|
+
/******/ var cachedModule = __webpack_module_cache__[moduleId];
|
|
52
|
+
/******/ if (cachedModule !== undefined) {
|
|
53
|
+
/******/ return cachedModule.exports;
|
|
54
|
+
/******/ }
|
|
55
|
+
/******/ // Create a new module (and put it into the cache)
|
|
56
|
+
/******/ var module = __webpack_module_cache__[moduleId] = {
|
|
57
|
+
/******/ // no module.id needed
|
|
58
|
+
/******/ // no module.loaded needed
|
|
59
|
+
/******/ exports: {}
|
|
60
|
+
/******/ };
|
|
61
|
+
/******/
|
|
62
|
+
/******/ // Execute the module function
|
|
63
|
+
/******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
|
|
64
|
+
/******/
|
|
65
|
+
/******/ // Return the exports of the module
|
|
66
|
+
/******/ return module.exports;
|
|
67
|
+
/******/ }
|
|
68
|
+
/******/
|
|
69
|
+
/************************************************************************/
|
|
70
|
+
/******/ /* webpack/runtime/define property getters */
|
|
71
|
+
/******/ (() => {
|
|
72
|
+
/******/ // define getter functions for harmony exports
|
|
73
|
+
/******/ __webpack_require__.d = (exports, definition) => {
|
|
74
|
+
/******/ for(var key in definition) {
|
|
75
|
+
/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
|
|
76
|
+
/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
|
|
77
|
+
/******/ }
|
|
78
|
+
/******/ }
|
|
79
|
+
/******/ };
|
|
80
|
+
/******/ })();
|
|
81
|
+
/******/
|
|
82
|
+
/******/ /* webpack/runtime/hasOwnProperty shorthand */
|
|
83
|
+
/******/ (() => {
|
|
84
|
+
/******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
|
|
85
|
+
/******/ })();
|
|
86
|
+
/******/
|
|
87
|
+
/******/ /* webpack/runtime/publicPath */
|
|
88
|
+
/******/ (() => {
|
|
89
|
+
/******/ __webpack_require__.p = "";
|
|
90
|
+
/******/ })();
|
|
91
|
+
/******/
|
|
92
|
+
/************************************************************************/
|
|
93
|
+
var __webpack_exports__ = {};
|
|
94
|
+
|
|
95
|
+
// EXPORTS
|
|
96
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
97
|
+
"default": () => (/* binding */ entry_lib)
|
|
98
|
+
});
|
|
99
|
+
|
|
100
|
+
;// ./node_modules/@vue/cli-service/lib/commands/build/setPublicPath.js
|
|
101
|
+
/* eslint-disable no-var */
|
|
102
|
+
// This file is imported into lib/wc client bundles.
|
|
103
|
+
|
|
104
|
+
if (typeof window !== 'undefined') {
|
|
105
|
+
var currentScript = window.document.currentScript
|
|
106
|
+
if (false) // removed by dead control flow
|
|
107
|
+
{ var getCurrentScript; }
|
|
108
|
+
|
|
109
|
+
var src = currentScript && currentScript.src.match(/(.+\/)[^/]+\.js(\?.*)?$/)
|
|
110
|
+
if (src) {
|
|
111
|
+
__webpack_require__.p = src[1] // eslint-disable-line
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
// Indicate to webpack that this file can be concatenated
|
|
116
|
+
/* harmony default export */ const setPublicPath = (null);
|
|
117
|
+
|
|
118
|
+
// EXTERNAL MODULE: external {"commonjs":"vue","commonjs2":"vue","root":"Vue"}
|
|
119
|
+
var external_commonjs_vue_commonjs2_vue_root_Vue_ = __webpack_require__(274);
|
|
120
|
+
;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./packages/dxButton/dxButton.vue?vue&type=script&setup=true&lang=js
|
|
121
|
+
|
|
122
|
+
/* harmony default export */ const dxButtonvue_type_script_setup_true_lang_js = ({
|
|
123
|
+
__name: 'dxButton',
|
|
124
|
+
props: {
|
|
125
|
+
type: String
|
|
126
|
+
},
|
|
127
|
+
emits: ['click'],
|
|
128
|
+
setup: function setup(__props, _ref) {
|
|
129
|
+
var __emit = _ref.emit;
|
|
130
|
+
var props = __props;
|
|
131
|
+
var emit = __emit;
|
|
132
|
+
var clickHandle = function clickHandle() {
|
|
133
|
+
emit('click');
|
|
134
|
+
};
|
|
135
|
+
return function (_ctx, _cache) {
|
|
136
|
+
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("button", {
|
|
137
|
+
onClick: clickHandle,
|
|
138
|
+
type: "button",
|
|
139
|
+
"class": (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeClass)(["dx_button", 'dx_button_' + "".concat(__props.type)])
|
|
140
|
+
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.renderSlot)(_ctx.$slots, "default")], 2);
|
|
141
|
+
};
|
|
142
|
+
}
|
|
143
|
+
});
|
|
144
|
+
;// ./packages/dxButton/dxButton.vue?vue&type=script&setup=true&lang=js
|
|
145
|
+
|
|
146
|
+
;// ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-74.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-74.use[1]!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-74.use[2]!./node_modules/less-loader/dist/cjs.js??clonedRuleSet-74.use[3]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./packages/dxButton/dxButton.vue?vue&type=style&index=0&id=5090ee09&lang=less&scoped=true
|
|
147
|
+
// extracted by mini-css-extract-plugin
|
|
148
|
+
|
|
149
|
+
;// ./packages/dxButton/dxButton.vue?vue&type=style&index=0&id=5090ee09&lang=less&scoped=true
|
|
150
|
+
|
|
151
|
+
// EXTERNAL MODULE: ./node_modules/vue-loader/dist/exportHelper.js
|
|
152
|
+
var exportHelper = __webpack_require__(907);
|
|
153
|
+
;// ./packages/dxButton/dxButton.vue
|
|
154
|
+
|
|
155
|
+
|
|
156
|
+
|
|
157
|
+
;
|
|
158
|
+
|
|
159
|
+
|
|
160
|
+
const __exports__ = /*#__PURE__*/(0,exportHelper/* default */.A)(dxButtonvue_type_script_setup_true_lang_js, [['__scopeId',"data-v-5090ee09"]])
|
|
161
|
+
|
|
162
|
+
/* harmony default export */ const dxButton = (__exports__);
|
|
163
|
+
;// ./node_modules/@vue/cli-service/lib/commands/build/entry-lib.js
|
|
164
|
+
|
|
165
|
+
|
|
166
|
+
/* harmony default export */ const entry_lib = (dxButton);
|
|
167
|
+
|
|
168
|
+
|
|
169
|
+
__webpack_exports__ = __webpack_exports__["default"];
|
|
170
|
+
/******/ return __webpack_exports__;
|
|
171
|
+
/******/ })()
|
|
172
|
+
;
|
|
173
|
+
});
|
|
174
|
+
//# sourceMappingURL=index.umd.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
(function(e,t){"object"===typeof exports&&"object"===typeof module?module.exports=t(require("vue")):"function"===typeof define&&define.amd?define([],t):"object"===typeof exports?exports["index"]=t(require("vue")):e["index"]=t(e["Vue"])})("undefined"!==typeof self?self:this,e=>(()=>{"use strict";var t={868(e,t){t.A=(e,t)=>{const o=e.__vccOpts||e;for(const[r,n]of t)o[r]=n;return o}},274(t){t.exports=e}},o={};function r(e){var n=o[e];if(void 0!==n)return n.exports;var c=o[e]={exports:{}};return t[e](c,c.exports,r),c.exports}(()=>{r.d=(e,t)=>{for(var o in t)r.o(t,o)&&!r.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})}})(),(()=>{r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t)})(),(()=>{r.p=""})();var n={};if(r.d(n,{default:()=>a}),"undefined"!==typeof window){var c=window.document.currentScript,u=c&&c.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);u&&(r.p=u[1])}var i=r(274);const s={__name:"dxButton",props:{type:String},emits:["click"],setup:function(e,t){var o=t.emit,r=o,n=function(){r("click")};return function(t,o){return(0,i.openBlock)(),(0,i.createElementBlock)("button",{onClick:n,type:"button",class:(0,i.normalizeClass)(["dx_button","dx_button_"+"".concat(e.type)])},[(0,i.renderSlot)(t.$slots,"default")],2)}}};var p=r(868);const d=(0,p.A)(s,[["__scopeId","data-v-5090ee09"]]),f=d,a=f;return n=n["default"],n})());
|
|
2
|
+
//# sourceMappingURL=index.umd.min.js.map
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
<!doctype html><meta charset="utf-8"><title>index demo</title><script src="//unpkg.com/vue@3"></script><script src="./index.umd.js"></script><link rel="stylesheet" href="./index.css"><div id="app"><demo></demo></div><script>Vue.createApp({
|
|
2
|
+
components: {
|
|
3
|
+
demo: index
|
|
4
|
+
}
|
|
5
|
+
}).mount('#app')</script>
|
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
/******/ (() => { // webpackBootstrap
|
|
2
|
+
/******/ "use strict";
|
|
3
|
+
/******/ var __webpack_modules__ = ({
|
|
4
|
+
|
|
5
|
+
/***/ 241
|
|
6
|
+
(__unused_webpack_module, exports) {
|
|
7
|
+
|
|
8
|
+
var __webpack_unused_export__;
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
__webpack_unused_export__ = ({
|
|
12
|
+
value: true
|
|
13
|
+
});
|
|
14
|
+
// runtime helper for setting properties on components
|
|
15
|
+
// in a tree-shakable way
|
|
16
|
+
exports.A = (sfc, props) => {
|
|
17
|
+
const target = sfc.__vccOpts || sfc;
|
|
18
|
+
for (const [key, val] of props) {
|
|
19
|
+
target[key] = val;
|
|
20
|
+
}
|
|
21
|
+
return target;
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
/***/ }
|
|
25
|
+
|
|
26
|
+
/******/ });
|
|
27
|
+
/************************************************************************/
|
|
28
|
+
/******/ // The module cache
|
|
29
|
+
/******/ var __webpack_module_cache__ = {};
|
|
30
|
+
/******/
|
|
31
|
+
/******/ // The require function
|
|
32
|
+
/******/ function __webpack_require__(moduleId) {
|
|
33
|
+
/******/ // Check if module is in cache
|
|
34
|
+
/******/ var cachedModule = __webpack_module_cache__[moduleId];
|
|
35
|
+
/******/ if (cachedModule !== undefined) {
|
|
36
|
+
/******/ return cachedModule.exports;
|
|
37
|
+
/******/ }
|
|
38
|
+
/******/ // Create a new module (and put it into the cache)
|
|
39
|
+
/******/ var module = __webpack_module_cache__[moduleId] = {
|
|
40
|
+
/******/ // no module.id needed
|
|
41
|
+
/******/ // no module.loaded needed
|
|
42
|
+
/******/ exports: {}
|
|
43
|
+
/******/ };
|
|
44
|
+
/******/
|
|
45
|
+
/******/ // Execute the module function
|
|
46
|
+
/******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
|
|
47
|
+
/******/
|
|
48
|
+
/******/ // Return the exports of the module
|
|
49
|
+
/******/ return module.exports;
|
|
50
|
+
/******/ }
|
|
51
|
+
/******/
|
|
52
|
+
/************************************************************************/
|
|
53
|
+
/******/ /* webpack/runtime/define property getters */
|
|
54
|
+
/******/ (() => {
|
|
55
|
+
/******/ // define getter functions for harmony exports
|
|
56
|
+
/******/ __webpack_require__.d = (exports, definition) => {
|
|
57
|
+
/******/ for(var key in definition) {
|
|
58
|
+
/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
|
|
59
|
+
/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
|
|
60
|
+
/******/ }
|
|
61
|
+
/******/ }
|
|
62
|
+
/******/ };
|
|
63
|
+
/******/ })();
|
|
64
|
+
/******/
|
|
65
|
+
/******/ /* webpack/runtime/hasOwnProperty shorthand */
|
|
66
|
+
/******/ (() => {
|
|
67
|
+
/******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
|
|
68
|
+
/******/ })();
|
|
69
|
+
/******/
|
|
70
|
+
/******/ /* webpack/runtime/publicPath */
|
|
71
|
+
/******/ (() => {
|
|
72
|
+
/******/ __webpack_require__.p = "";
|
|
73
|
+
/******/ })();
|
|
74
|
+
/******/
|
|
75
|
+
/************************************************************************/
|
|
76
|
+
var __webpack_exports__ = {};
|
|
77
|
+
|
|
78
|
+
// EXPORTS
|
|
79
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
80
|
+
"default": () => (/* binding */ entry_lib)
|
|
81
|
+
});
|
|
82
|
+
|
|
83
|
+
;// ./node_modules/@vue/cli-service/lib/commands/build/setPublicPath.js
|
|
84
|
+
/* eslint-disable no-var */
|
|
85
|
+
// This file is imported into lib/wc client bundles.
|
|
86
|
+
|
|
87
|
+
if (typeof window !== 'undefined') {
|
|
88
|
+
var currentScript = window.document.currentScript
|
|
89
|
+
if (false) // removed by dead control flow
|
|
90
|
+
{ var getCurrentScript; }
|
|
91
|
+
|
|
92
|
+
var src = currentScript && currentScript.src.match(/(.+\/)[^/]+\.js(\?.*)?$/)
|
|
93
|
+
if (src) {
|
|
94
|
+
__webpack_require__.p = src[1] // eslint-disable-line
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
// Indicate to webpack that this file can be concatenated
|
|
99
|
+
/* harmony default export */ const setPublicPath = (null);
|
|
100
|
+
|
|
101
|
+
;// external {"commonjs":"vue","commonjs2":"vue","root":"Vue"}
|
|
102
|
+
const external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject = require("vue");
|
|
103
|
+
;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./packages/dxCard/dxCard.vue?vue&type=script&setup=true&name=dxCard&lang=js
|
|
104
|
+
|
|
105
|
+
var _hoisted_1 = {
|
|
106
|
+
"class": "dx-card"
|
|
107
|
+
};
|
|
108
|
+
/* harmony default export */ const dxCardvue_type_script_setup_true_name_dxCard_lang_js = ({
|
|
109
|
+
__name: 'dxCard',
|
|
110
|
+
setup: function setup(__props) {
|
|
111
|
+
// import { defineProps } from 'vue'
|
|
112
|
+
|
|
113
|
+
return function (_ctx, _cache) {
|
|
114
|
+
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementBlock)("div", _hoisted_1, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.renderSlot)(_ctx.$slots, "default")]);
|
|
115
|
+
};
|
|
116
|
+
}
|
|
117
|
+
});
|
|
118
|
+
;// ./packages/dxCard/dxCard.vue?vue&type=script&setup=true&name=dxCard&lang=js
|
|
119
|
+
|
|
120
|
+
;// ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-32.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-32.use[1]!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-32.use[2]!./node_modules/less-loader/dist/cjs.js??clonedRuleSet-32.use[3]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./packages/dxCard/dxCard.vue?vue&type=style&index=0&id=6903fa4b&lang=less&scoped=true
|
|
121
|
+
// extracted by mini-css-extract-plugin
|
|
122
|
+
|
|
123
|
+
;// ./packages/dxCard/dxCard.vue?vue&type=style&index=0&id=6903fa4b&lang=less&scoped=true
|
|
124
|
+
|
|
125
|
+
// EXTERNAL MODULE: ./node_modules/vue-loader/dist/exportHelper.js
|
|
126
|
+
var exportHelper = __webpack_require__(241);
|
|
127
|
+
;// ./packages/dxCard/dxCard.vue
|
|
128
|
+
|
|
129
|
+
|
|
130
|
+
|
|
131
|
+
;
|
|
132
|
+
|
|
133
|
+
|
|
134
|
+
const __exports__ = /*#__PURE__*/(0,exportHelper/* default */.A)(dxCardvue_type_script_setup_true_name_dxCard_lang_js, [['__scopeId',"data-v-6903fa4b"]])
|
|
135
|
+
|
|
136
|
+
/* harmony default export */ const dxCard = (__exports__);
|
|
137
|
+
;// ./node_modules/@vue/cli-service/lib/commands/build/entry-lib.js
|
|
138
|
+
|
|
139
|
+
|
|
140
|
+
/* harmony default export */ const entry_lib = (dxCard);
|
|
141
|
+
|
|
142
|
+
|
|
143
|
+
module.exports = __webpack_exports__["default"];
|
|
144
|
+
/******/ })()
|
|
145
|
+
;
|
|
146
|
+
//# sourceMappingURL=index.common.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.dx-card[data-v-6903fa4b]{border-radius:5px;background-color:#fff;padding:10px;min-width:100px;min-height:100px;border:1px solid #eee;box-shadow:1px 1px 3px 3px #eee;margin:10px}.dx-card[data-v-6903fa4b]:hover{box-shadow:1px 1px 5px 5px #eee}
|
|
@@ -0,0 +1,165 @@
|
|
|
1
|
+
(function webpackUniversalModuleDefinition(root, factory) {
|
|
2
|
+
if(typeof exports === 'object' && typeof module === 'object')
|
|
3
|
+
module.exports = factory(require("vue"));
|
|
4
|
+
else if(typeof define === 'function' && define.amd)
|
|
5
|
+
define([], factory);
|
|
6
|
+
else if(typeof exports === 'object')
|
|
7
|
+
exports["index"] = factory(require("vue"));
|
|
8
|
+
else
|
|
9
|
+
root["index"] = factory(root["Vue"]);
|
|
10
|
+
})((typeof self !== 'undefined' ? self : this), (__WEBPACK_EXTERNAL_MODULE__274__) => {
|
|
11
|
+
return /******/ (() => { // webpackBootstrap
|
|
12
|
+
/******/ "use strict";
|
|
13
|
+
/******/ var __webpack_modules__ = ({
|
|
14
|
+
|
|
15
|
+
/***/ 907
|
|
16
|
+
(__unused_webpack_module, exports) {
|
|
17
|
+
|
|
18
|
+
var __webpack_unused_export__;
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
__webpack_unused_export__ = ({
|
|
22
|
+
value: true
|
|
23
|
+
});
|
|
24
|
+
// runtime helper for setting properties on components
|
|
25
|
+
// in a tree-shakable way
|
|
26
|
+
exports.A = (sfc, props) => {
|
|
27
|
+
const target = sfc.__vccOpts || sfc;
|
|
28
|
+
for (const [key, val] of props) {
|
|
29
|
+
target[key] = val;
|
|
30
|
+
}
|
|
31
|
+
return target;
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
/***/ },
|
|
35
|
+
|
|
36
|
+
/***/ 274
|
|
37
|
+
(module) {
|
|
38
|
+
|
|
39
|
+
module.exports = __WEBPACK_EXTERNAL_MODULE__274__;
|
|
40
|
+
|
|
41
|
+
/***/ }
|
|
42
|
+
|
|
43
|
+
/******/ });
|
|
44
|
+
/************************************************************************/
|
|
45
|
+
/******/ // The module cache
|
|
46
|
+
/******/ var __webpack_module_cache__ = {};
|
|
47
|
+
/******/
|
|
48
|
+
/******/ // The require function
|
|
49
|
+
/******/ function __webpack_require__(moduleId) {
|
|
50
|
+
/******/ // Check if module is in cache
|
|
51
|
+
/******/ var cachedModule = __webpack_module_cache__[moduleId];
|
|
52
|
+
/******/ if (cachedModule !== undefined) {
|
|
53
|
+
/******/ return cachedModule.exports;
|
|
54
|
+
/******/ }
|
|
55
|
+
/******/ // Create a new module (and put it into the cache)
|
|
56
|
+
/******/ var module = __webpack_module_cache__[moduleId] = {
|
|
57
|
+
/******/ // no module.id needed
|
|
58
|
+
/******/ // no module.loaded needed
|
|
59
|
+
/******/ exports: {}
|
|
60
|
+
/******/ };
|
|
61
|
+
/******/
|
|
62
|
+
/******/ // Execute the module function
|
|
63
|
+
/******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
|
|
64
|
+
/******/
|
|
65
|
+
/******/ // Return the exports of the module
|
|
66
|
+
/******/ return module.exports;
|
|
67
|
+
/******/ }
|
|
68
|
+
/******/
|
|
69
|
+
/************************************************************************/
|
|
70
|
+
/******/ /* webpack/runtime/define property getters */
|
|
71
|
+
/******/ (() => {
|
|
72
|
+
/******/ // define getter functions for harmony exports
|
|
73
|
+
/******/ __webpack_require__.d = (exports, definition) => {
|
|
74
|
+
/******/ for(var key in definition) {
|
|
75
|
+
/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
|
|
76
|
+
/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
|
|
77
|
+
/******/ }
|
|
78
|
+
/******/ }
|
|
79
|
+
/******/ };
|
|
80
|
+
/******/ })();
|
|
81
|
+
/******/
|
|
82
|
+
/******/ /* webpack/runtime/hasOwnProperty shorthand */
|
|
83
|
+
/******/ (() => {
|
|
84
|
+
/******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
|
|
85
|
+
/******/ })();
|
|
86
|
+
/******/
|
|
87
|
+
/******/ /* webpack/runtime/publicPath */
|
|
88
|
+
/******/ (() => {
|
|
89
|
+
/******/ __webpack_require__.p = "";
|
|
90
|
+
/******/ })();
|
|
91
|
+
/******/
|
|
92
|
+
/************************************************************************/
|
|
93
|
+
var __webpack_exports__ = {};
|
|
94
|
+
|
|
95
|
+
// EXPORTS
|
|
96
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
97
|
+
"default": () => (/* binding */ entry_lib)
|
|
98
|
+
});
|
|
99
|
+
|
|
100
|
+
;// ./node_modules/@vue/cli-service/lib/commands/build/setPublicPath.js
|
|
101
|
+
/* eslint-disable no-var */
|
|
102
|
+
// This file is imported into lib/wc client bundles.
|
|
103
|
+
|
|
104
|
+
if (typeof window !== 'undefined') {
|
|
105
|
+
var currentScript = window.document.currentScript
|
|
106
|
+
if (false) // removed by dead control flow
|
|
107
|
+
{ var getCurrentScript; }
|
|
108
|
+
|
|
109
|
+
var src = currentScript && currentScript.src.match(/(.+\/)[^/]+\.js(\?.*)?$/)
|
|
110
|
+
if (src) {
|
|
111
|
+
__webpack_require__.p = src[1] // eslint-disable-line
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
// Indicate to webpack that this file can be concatenated
|
|
116
|
+
/* harmony default export */ const setPublicPath = (null);
|
|
117
|
+
|
|
118
|
+
// EXTERNAL MODULE: external {"commonjs":"vue","commonjs2":"vue","root":"Vue"}
|
|
119
|
+
var external_commonjs_vue_commonjs2_vue_root_Vue_ = __webpack_require__(274);
|
|
120
|
+
;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./packages/dxCard/dxCard.vue?vue&type=script&setup=true&name=dxCard&lang=js
|
|
121
|
+
|
|
122
|
+
var _hoisted_1 = {
|
|
123
|
+
"class": "dx-card"
|
|
124
|
+
};
|
|
125
|
+
/* harmony default export */ const dxCardvue_type_script_setup_true_name_dxCard_lang_js = ({
|
|
126
|
+
__name: 'dxCard',
|
|
127
|
+
setup: function setup(__props) {
|
|
128
|
+
// import { defineProps } from 'vue'
|
|
129
|
+
|
|
130
|
+
return function (_ctx, _cache) {
|
|
131
|
+
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("div", _hoisted_1, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.renderSlot)(_ctx.$slots, "default")]);
|
|
132
|
+
};
|
|
133
|
+
}
|
|
134
|
+
});
|
|
135
|
+
;// ./packages/dxCard/dxCard.vue?vue&type=script&setup=true&name=dxCard&lang=js
|
|
136
|
+
|
|
137
|
+
;// ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-74.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-74.use[1]!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-74.use[2]!./node_modules/less-loader/dist/cjs.js??clonedRuleSet-74.use[3]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./packages/dxCard/dxCard.vue?vue&type=style&index=0&id=6903fa4b&lang=less&scoped=true
|
|
138
|
+
// extracted by mini-css-extract-plugin
|
|
139
|
+
|
|
140
|
+
;// ./packages/dxCard/dxCard.vue?vue&type=style&index=0&id=6903fa4b&lang=less&scoped=true
|
|
141
|
+
|
|
142
|
+
// EXTERNAL MODULE: ./node_modules/vue-loader/dist/exportHelper.js
|
|
143
|
+
var exportHelper = __webpack_require__(907);
|
|
144
|
+
;// ./packages/dxCard/dxCard.vue
|
|
145
|
+
|
|
146
|
+
|
|
147
|
+
|
|
148
|
+
;
|
|
149
|
+
|
|
150
|
+
|
|
151
|
+
const __exports__ = /*#__PURE__*/(0,exportHelper/* default */.A)(dxCardvue_type_script_setup_true_name_dxCard_lang_js, [['__scopeId',"data-v-6903fa4b"]])
|
|
152
|
+
|
|
153
|
+
/* harmony default export */ const dxCard = (__exports__);
|
|
154
|
+
;// ./node_modules/@vue/cli-service/lib/commands/build/entry-lib.js
|
|
155
|
+
|
|
156
|
+
|
|
157
|
+
/* harmony default export */ const entry_lib = (dxCard);
|
|
158
|
+
|
|
159
|
+
|
|
160
|
+
__webpack_exports__ = __webpack_exports__["default"];
|
|
161
|
+
/******/ return __webpack_exports__;
|
|
162
|
+
/******/ })()
|
|
163
|
+
;
|
|
164
|
+
});
|
|
165
|
+
//# sourceMappingURL=index.umd.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
(function(e,t){"object"===typeof exports&&"object"===typeof module?module.exports=t(require("vue")):"function"===typeof define&&define.amd?define([],t):"object"===typeof exports?exports["index"]=t(require("vue")):e["index"]=t(e["Vue"])})("undefined"!==typeof self?self:this,e=>(()=>{"use strict";var t={868(e,t){t.A=(e,t)=>{const r=e.__vccOpts||e;for(const[o,n]of t)r[o]=n;return r}},274(t){t.exports=e}},r={};function o(e){var n=r[e];if(void 0!==n)return n.exports;var d=r[e]={exports:{}};return t[e](d,d.exports,o),d.exports}(()=>{o.d=(e,t)=>{for(var r in t)o.o(t,r)&&!o.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}})(),(()=>{o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t)})(),(()=>{o.p=""})();var n={};if(o.d(n,{default:()=>l}),"undefined"!==typeof window){var d=window.document.currentScript,c=d&&d.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);c&&(o.p=c[1])}var f=o(274),s={class:"dx-card"};const u={__name:"dxCard",setup:function(e){return function(e,t){return(0,f.openBlock)(),(0,f.createElementBlock)("div",s,[(0,f.renderSlot)(e.$slots,"default")])}}};var p=o(868);const i=(0,p.A)(u,[["__scopeId","data-v-6903fa4b"]]),a=i,l=a;return n=n["default"],n})());
|
|
2
|
+
//# sourceMappingURL=index.umd.min.js.map
|