augustine-jkmap 1.0.3 → 1.0.4
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/dist/augustine-jkmap.common.js +248 -0
- package/dist/augustine-jkmap.common.js.map +1 -0
- package/dist/augustine-jkmap.css +1 -0
- package/dist/augustine-jkmap.umd.js +259 -0
- package/dist/augustine-jkmap.umd.js.map +1 -0
- package/dist/augustine-jkmap.umd.min.js +2 -0
- package/dist/augustine-jkmap.umd.min.js.map +1 -0
- package/dist/demo.html +1 -0
- package/package.json +30 -59
- package/dist/index.d.ts +0 -9
- package/dist/index.es.js +0 -65
- package/dist/index.es.js.map +0 -1
- package/dist/index.umd.js +0 -2
- package/dist/index.umd.js.map +0 -1
|
@@ -0,0 +1,248 @@
|
|
|
1
|
+
/******/ (() => { // webpackBootstrap
|
|
2
|
+
/******/ "use strict";
|
|
3
|
+
/******/ // The require scope
|
|
4
|
+
/******/ var __webpack_require__ = {};
|
|
5
|
+
/******/
|
|
6
|
+
/************************************************************************/
|
|
7
|
+
/******/ /* webpack/runtime/define property getters */
|
|
8
|
+
/******/ (() => {
|
|
9
|
+
/******/ // define getter functions for harmony exports
|
|
10
|
+
/******/ __webpack_require__.d = (exports, definition) => {
|
|
11
|
+
/******/ for(var key in definition) {
|
|
12
|
+
/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
|
|
13
|
+
/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
|
|
14
|
+
/******/ }
|
|
15
|
+
/******/ }
|
|
16
|
+
/******/ };
|
|
17
|
+
/******/ })();
|
|
18
|
+
/******/
|
|
19
|
+
/******/ /* webpack/runtime/hasOwnProperty shorthand */
|
|
20
|
+
/******/ (() => {
|
|
21
|
+
/******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
|
|
22
|
+
/******/ })();
|
|
23
|
+
/******/
|
|
24
|
+
/******/ /* webpack/runtime/make namespace object */
|
|
25
|
+
/******/ (() => {
|
|
26
|
+
/******/ // define __esModule on exports
|
|
27
|
+
/******/ __webpack_require__.r = (exports) => {
|
|
28
|
+
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
|
|
29
|
+
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
30
|
+
/******/ }
|
|
31
|
+
/******/ Object.defineProperty(exports, '__esModule', { value: true });
|
|
32
|
+
/******/ };
|
|
33
|
+
/******/ })();
|
|
34
|
+
/******/
|
|
35
|
+
/******/ /* webpack/runtime/publicPath */
|
|
36
|
+
/******/ (() => {
|
|
37
|
+
/******/ __webpack_require__.p = "";
|
|
38
|
+
/******/ })();
|
|
39
|
+
/******/
|
|
40
|
+
/************************************************************************/
|
|
41
|
+
var __webpack_exports__ = {};
|
|
42
|
+
// ESM COMPAT FLAG
|
|
43
|
+
__webpack_require__.r(__webpack_exports__);
|
|
44
|
+
|
|
45
|
+
// EXPORTS
|
|
46
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
47
|
+
MyButton: () => (/* reexport */ MyButton),
|
|
48
|
+
"default": () => (/* binding */ entry_lib)
|
|
49
|
+
});
|
|
50
|
+
|
|
51
|
+
;// ./node_modules/.store/@vue+cli-service@5.0.9/node_modules/@vue/cli-service/lib/commands/build/setPublicPath.js
|
|
52
|
+
/* eslint-disable no-var */
|
|
53
|
+
// This file is imported into lib/wc client bundles.
|
|
54
|
+
|
|
55
|
+
if (typeof window !== 'undefined') {
|
|
56
|
+
var currentScript = window.document.currentScript
|
|
57
|
+
if (false) // removed by dead control flow
|
|
58
|
+
{ var getCurrentScript; }
|
|
59
|
+
|
|
60
|
+
var src = currentScript && currentScript.src.match(/(.+\/)[^/]+\.js(\?.*)?$/)
|
|
61
|
+
if (src) {
|
|
62
|
+
__webpack_require__.p = src[1] // eslint-disable-line
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
// Indicate to webpack that this file can be concatenated
|
|
67
|
+
/* harmony default export */ const setPublicPath = (null);
|
|
68
|
+
|
|
69
|
+
;// ./node_modules/.store/vue-loader@15.11.1/node_modules/vue-loader/lib/loaders/templateLoader.js??ruleSet[1].rules[2]!./node_modules/.store/vue-loader@15.11.1/node_modules/vue-loader/lib/index.js??vue-loader-options!./src/components/MyButton.vue?vue&type=template&id=fc12b42e&scoped=true
|
|
70
|
+
var render = function render(){var _vm=this,_c=_vm._self._c;return _c('button',{staticClass:"my-btn",on:{"click":function($event){return _vm.$emit('click')}}},[_vm._t("default",function(){return [_vm._v(_vm._s(_vm.label))]})],2)
|
|
71
|
+
}
|
|
72
|
+
var staticRenderFns = []
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
;// ./node_modules/.store/vue-loader@15.11.1/node_modules/vue-loader/lib/index.js??vue-loader-options!./src/components/MyButton.vue?vue&type=script&lang=js
|
|
76
|
+
|
|
77
|
+
/* harmony default export */ const MyButtonvue_type_script_lang_js = ({
|
|
78
|
+
name: "MyButton",
|
|
79
|
+
props: {
|
|
80
|
+
label: { type: String, default: "Button" },
|
|
81
|
+
},
|
|
82
|
+
});
|
|
83
|
+
|
|
84
|
+
;// ./src/components/MyButton.vue?vue&type=script&lang=js
|
|
85
|
+
/* harmony default export */ const components_MyButtonvue_type_script_lang_js = (MyButtonvue_type_script_lang_js);
|
|
86
|
+
;// ./node_modules/.store/mini-css-extract-plugin@2.9.4/node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-12.use[0]!./node_modules/.store/css-loader@6.11.0/node_modules/css-loader/dist/cjs.js??clonedRuleSet-12.use[1]!./node_modules/.store/vue-loader@15.11.1/node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/.store/postcss-loader@6.2.1/node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-12.use[2]!./node_modules/.store/vue-loader@15.11.1/node_modules/vue-loader/lib/index.js??vue-loader-options!./src/components/MyButton.vue?vue&type=style&index=0&id=fc12b42e&prod&scoped=true&lang=css
|
|
87
|
+
// extracted by mini-css-extract-plugin
|
|
88
|
+
|
|
89
|
+
;// ./src/components/MyButton.vue?vue&type=style&index=0&id=fc12b42e&prod&scoped=true&lang=css
|
|
90
|
+
|
|
91
|
+
;// ./node_modules/.store/vue-loader@15.11.1/node_modules/vue-loader/lib/runtime/componentNormalizer.js
|
|
92
|
+
/* globals __VUE_SSR_CONTEXT__ */
|
|
93
|
+
|
|
94
|
+
// IMPORTANT: Do NOT use ES2015 features in this file (except for modules).
|
|
95
|
+
// This module is a runtime utility for cleaner component module output and will
|
|
96
|
+
// be included in the final webpack user bundle.
|
|
97
|
+
|
|
98
|
+
function normalizeComponent(
|
|
99
|
+
scriptExports,
|
|
100
|
+
render,
|
|
101
|
+
staticRenderFns,
|
|
102
|
+
functionalTemplate,
|
|
103
|
+
injectStyles,
|
|
104
|
+
scopeId,
|
|
105
|
+
moduleIdentifier /* server only */,
|
|
106
|
+
shadowMode /* vue-cli only */
|
|
107
|
+
) {
|
|
108
|
+
// Vue.extend constructor export interop
|
|
109
|
+
var options =
|
|
110
|
+
typeof scriptExports === 'function' ? scriptExports.options : scriptExports
|
|
111
|
+
|
|
112
|
+
// render functions
|
|
113
|
+
if (render) {
|
|
114
|
+
options.render = render
|
|
115
|
+
options.staticRenderFns = staticRenderFns
|
|
116
|
+
options._compiled = true
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
// functional template
|
|
120
|
+
if (functionalTemplate) {
|
|
121
|
+
options.functional = true
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
// scopedId
|
|
125
|
+
if (scopeId) {
|
|
126
|
+
options._scopeId = 'data-v-' + scopeId
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
var hook
|
|
130
|
+
if (moduleIdentifier) {
|
|
131
|
+
// server build
|
|
132
|
+
hook = function (context) {
|
|
133
|
+
// 2.3 injection
|
|
134
|
+
context =
|
|
135
|
+
context || // cached call
|
|
136
|
+
(this.$vnode && this.$vnode.ssrContext) || // stateful
|
|
137
|
+
(this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional
|
|
138
|
+
// 2.2 with runInNewContext: true
|
|
139
|
+
if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
|
|
140
|
+
context = __VUE_SSR_CONTEXT__
|
|
141
|
+
}
|
|
142
|
+
// inject component styles
|
|
143
|
+
if (injectStyles) {
|
|
144
|
+
injectStyles.call(this, context)
|
|
145
|
+
}
|
|
146
|
+
// register component module identifier for async chunk inferrence
|
|
147
|
+
if (context && context._registeredComponents) {
|
|
148
|
+
context._registeredComponents.add(moduleIdentifier)
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
// used by ssr in case component is cached and beforeCreate
|
|
152
|
+
// never gets called
|
|
153
|
+
options._ssrRegister = hook
|
|
154
|
+
} else if (injectStyles) {
|
|
155
|
+
hook = shadowMode
|
|
156
|
+
? function () {
|
|
157
|
+
injectStyles.call(
|
|
158
|
+
this,
|
|
159
|
+
(options.functional ? this.parent : this).$root.$options.shadowRoot
|
|
160
|
+
)
|
|
161
|
+
}
|
|
162
|
+
: injectStyles
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
if (hook) {
|
|
166
|
+
if (options.functional) {
|
|
167
|
+
// for template-only hot-reload because in that case the render fn doesn't
|
|
168
|
+
// go through the normalizer
|
|
169
|
+
options._injectStyles = hook
|
|
170
|
+
// register for functional component in vue file
|
|
171
|
+
var originalRender = options.render
|
|
172
|
+
options.render = function renderWithStyleInjection(h, context) {
|
|
173
|
+
hook.call(context)
|
|
174
|
+
return originalRender(h, context)
|
|
175
|
+
}
|
|
176
|
+
} else {
|
|
177
|
+
// inject component registration as beforeCreate hook
|
|
178
|
+
var existing = options.beforeCreate
|
|
179
|
+
options.beforeCreate = existing ? [].concat(existing, hook) : [hook]
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
return {
|
|
184
|
+
exports: scriptExports,
|
|
185
|
+
options: options
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
;// ./src/components/MyButton.vue
|
|
190
|
+
|
|
191
|
+
|
|
192
|
+
|
|
193
|
+
;
|
|
194
|
+
|
|
195
|
+
|
|
196
|
+
/* normalize component */
|
|
197
|
+
|
|
198
|
+
var component = normalizeComponent(
|
|
199
|
+
components_MyButtonvue_type_script_lang_js,
|
|
200
|
+
render,
|
|
201
|
+
staticRenderFns,
|
|
202
|
+
false,
|
|
203
|
+
null,
|
|
204
|
+
"fc12b42e",
|
|
205
|
+
null
|
|
206
|
+
|
|
207
|
+
)
|
|
208
|
+
|
|
209
|
+
/* harmony default export */ const MyButton = (component.exports);
|
|
210
|
+
;// ./src/index.js
|
|
211
|
+
|
|
212
|
+
|
|
213
|
+
// 所有组件列表
|
|
214
|
+
const components = [MyButton];
|
|
215
|
+
|
|
216
|
+
// install 方法
|
|
217
|
+
const install = (Vue) => {
|
|
218
|
+
if (install.installed) return;
|
|
219
|
+
install.installed = true;
|
|
220
|
+
components.forEach((comp) => {
|
|
221
|
+
Vue.component(comp.name, comp);
|
|
222
|
+
});
|
|
223
|
+
};
|
|
224
|
+
|
|
225
|
+
// 支持按需引入
|
|
226
|
+
|
|
227
|
+
|
|
228
|
+
// 支持 Vue.use(MyLib)
|
|
229
|
+
/* harmony default export */ const src_0 = ({
|
|
230
|
+
install,
|
|
231
|
+
...components,
|
|
232
|
+
});
|
|
233
|
+
|
|
234
|
+
// 浏览器环境自动安装
|
|
235
|
+
if (typeof window !== "undefined" && window.Vue) {
|
|
236
|
+
install(window.Vue);
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
;// ./node_modules/.store/@vue+cli-service@5.0.9/node_modules/@vue/cli-service/lib/commands/build/entry-lib.js
|
|
240
|
+
|
|
241
|
+
|
|
242
|
+
/* harmony default export */ const entry_lib = (src_0);
|
|
243
|
+
|
|
244
|
+
|
|
245
|
+
module.exports = __webpack_exports__;
|
|
246
|
+
/******/ })()
|
|
247
|
+
;
|
|
248
|
+
//# sourceMappingURL=augustine-jkmap.common.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"augustine-jkmap.common.js","mappings":";;UAAA;UACA;;;;;WCDA;WACA;WACA;WACA;WACA,yCAAyC,wCAAwC;WACjF;WACA;WACA,E;;;;;WCPA,wF;;;;;WCAA;WACA;WACA;WACA,uDAAuD,iBAAiB;WACxE;WACA,gDAAgD,aAAa;WAC7D,E;;;;;WCNA,2B;;;;;;;;;;;;;;;ACAA;AACA;;AAEA;AACA;AACA,MAAM,KAAuC,EAAE;AAAA,yBAQ5C;;AAEH;AACA;AACA,IAAI,qBAAuB;AAC3B;AACA;;AAEA;AACA,oDAAe,IAAI;;;ACtBnB,+BAA+B,6BAA6B,oBAAoB,yBAAyB,yBAAyB,4BAA4B,8BAA8B,mCAAmC;AAC/N;AACA;;;;;ACKA,sEAAe;AACf;AACA;AACA;AACA;AACA,CAAC,EAAC;;;ACZ+J,CAAC,iFAAe,+BAAG,EAAC,C;;ACArL;;;;;AEAA;;AAEA;AACA;AACA;;AAEe;AACf;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;;AC/FkG;AACvC;AACL;AACtD,CAAgG;;;AAGhG;AACiI;AACjI,gBAAgB,kBAAU;AAC1B,EAAE,0CAAM;AACR,EAAE,MAAM;AACR,EAAE,eAAe;AACjB;AACA;AACA;AACA;AACA;AACA;;AAEA,+CAAe,iB;;ACnBkC;AACjD;AACA;AACA,oBAAoB,QAAQ;AAC5B;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACoB;AACpB;AACA;AACA,4CAAe;AACf;AACA;AACA,CAAC,EAAC;AACF;AACA;AACA;AACA;AACA;;;AC1BwB;AACA;AACxB,gDAAe,KAAG;AACI","sources":["webpack://augustine-jkmap/webpack/bootstrap","webpack://augustine-jkmap/webpack/runtime/define property getters","webpack://augustine-jkmap/webpack/runtime/hasOwnProperty shorthand","webpack://augustine-jkmap/webpack/runtime/make namespace object","webpack://augustine-jkmap/webpack/runtime/publicPath","webpack://augustine-jkmap/./node_modules/.store/@vue+cli-service@5.0.9/node_modules/@vue/cli-service/lib/commands/build/setPublicPath.js","webpack://augustine-jkmap/./src/components/MyButton.vue?c2a5","webpack://augustine-jkmap/src/components/MyButton.vue","webpack://augustine-jkmap/./src/components/MyButton.vue?ea0d","webpack://augustine-jkmap/./src/components/MyButton.vue?b5c5","webpack://augustine-jkmap/./src/components/MyButton.vue?509c","webpack://augustine-jkmap/./node_modules/.store/vue-loader@15.11.1/node_modules/vue-loader/lib/runtime/componentNormalizer.js","webpack://augustine-jkmap/./src/components/MyButton.vue","webpack://augustine-jkmap/./src/index.js","webpack://augustine-jkmap/./node_modules/.store/@vue+cli-service@5.0.9/node_modules/@vue/cli-service/lib/commands/build/entry-lib.js"],"sourcesContent":["// The require scope\nvar __webpack_require__ = {};\n\n","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","__webpack_require__.p = \"\";","/* eslint-disable no-var */\n// This file is imported into lib/wc client bundles.\n\nif (typeof window !== 'undefined') {\n var currentScript = window.document.currentScript\n if (process.env.NEED_CURRENTSCRIPT_POLYFILL) {\n var getCurrentScript = require('@soda/get-current-script')\n currentScript = getCurrentScript()\n\n // for backward compatibility, because previously we directly included the polyfill\n if (!('currentScript' in document)) {\n Object.defineProperty(document, 'currentScript', { get: getCurrentScript })\n }\n }\n\n var src = currentScript && currentScript.src.match(/(.+\\/)[^/]+\\.js(\\?.*)?$/)\n if (src) {\n __webpack_public_path__ = src[1] // eslint-disable-line\n }\n}\n\n// Indicate to webpack that this file can be concatenated\nexport default null\n","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('button',{staticClass:\"my-btn\",on:{\"click\":function($event){return _vm.$emit('click')}}},[_vm._t(\"default\",function(){return [_vm._v(_vm._s(_vm.label))]})],2)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\r\n <button class=\"my-btn\" @click=\"$emit('click')\">\r\n <slot>{{ label }}</slot>\r\n </button>\r\n</template>\r\n\r\n<script>\r\nexport default {\r\n name: \"MyButton\",\r\n props: {\r\n label: { type: String, default: \"Button\" },\r\n },\r\n};\r\n</script>\r\n\r\n<style scoped>\r\n.my-btn {\r\n padding: 6px 12px;\r\n background: #409eff;\r\n color: white;\r\n border: none;\r\n border-radius: 4px;\r\n cursor: pointer;\r\n}\r\n</style>\r\n","import mod from \"-!../../node_modules/.store/vue-loader@15.11.1/node_modules/vue-loader/lib/index.js??vue-loader-options!./MyButton.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../node_modules/.store/vue-loader@15.11.1/node_modules/vue-loader/lib/index.js??vue-loader-options!./MyButton.vue?vue&type=script&lang=js\"","// extracted by mini-css-extract-plugin\nexport {};","export * from \"-!../../node_modules/.store/mini-css-extract-plugin@2.9.4/node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-12.use[0]!../../node_modules/.store/css-loader@6.11.0/node_modules/css-loader/dist/cjs.js??clonedRuleSet-12.use[1]!../../node_modules/.store/vue-loader@15.11.1/node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../node_modules/.store/postcss-loader@6.2.1/node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-12.use[2]!../../node_modules/.store/vue-loader@15.11.1/node_modules/vue-loader/lib/index.js??vue-loader-options!./MyButton.vue?vue&type=style&index=0&id=fc12b42e&prod&scoped=true&lang=css\"","/* globals __VUE_SSR_CONTEXT__ */\n\n// IMPORTANT: Do NOT use ES2015 features in this file (except for modules).\n// This module is a runtime utility for cleaner component module output and will\n// be included in the final webpack user bundle.\n\nexport default function normalizeComponent(\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier /* server only */,\n shadowMode /* vue-cli only */\n) {\n // Vue.extend constructor export interop\n var options =\n typeof scriptExports === 'function' ? scriptExports.options : scriptExports\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) {\n // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () {\n injectStyles.call(\n this,\n (options.functional ? this.parent : this).$root.$options.shadowRoot\n )\n }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functional component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection(h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing ? [].concat(existing, hook) : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}\n","import { render, staticRenderFns } from \"./MyButton.vue?vue&type=template&id=fc12b42e&scoped=true\"\nimport script from \"./MyButton.vue?vue&type=script&lang=js\"\nexport * from \"./MyButton.vue?vue&type=script&lang=js\"\nimport style0 from \"./MyButton.vue?vue&type=style&index=0&id=fc12b42e&prod&scoped=true&lang=css\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/.store/vue-loader@15.11.1/node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"fc12b42e\",\n null\n \n)\n\nexport default component.exports","import MyButton from \"./components/MyButton.vue\";\r\n\r\n// 所有组件列表\r\nconst components = [MyButton];\r\n\r\n// install 方法\r\nconst install = (Vue) => {\r\n if (install.installed) return;\r\n install.installed = true;\r\n components.forEach((comp) => {\r\n Vue.component(comp.name, comp);\r\n });\r\n};\r\n\r\n// 支持按需引入\r\nexport { MyButton };\r\n\r\n// 支持 Vue.use(MyLib)\r\nexport default {\r\n install,\r\n ...components,\r\n};\r\n\r\n// 浏览器环境自动安装\r\nif (typeof window !== \"undefined\" && window.Vue) {\r\n install(window.Vue);\r\n}\r\n","import './setPublicPath'\nimport mod from '~entry'\nexport default mod\nexport * from '~entry'\n"],"names":[],"ignoreList":[],"sourceRoot":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.my-btn[data-v-fc12b42e]{padding:6px 12px;background:#409eff;color:#fff;border:none;border-radius:4px;cursor:pointer}
|
|
@@ -0,0 +1,259 @@
|
|
|
1
|
+
(function webpackUniversalModuleDefinition(root, factory) {
|
|
2
|
+
if(typeof exports === 'object' && typeof module === 'object')
|
|
3
|
+
module.exports = factory();
|
|
4
|
+
else if(typeof define === 'function' && define.amd)
|
|
5
|
+
define([], factory);
|
|
6
|
+
else if(typeof exports === 'object')
|
|
7
|
+
exports["augustine-jkmap"] = factory();
|
|
8
|
+
else
|
|
9
|
+
root["augustine-jkmap"] = factory();
|
|
10
|
+
})((typeof self !== 'undefined' ? self : this), () => {
|
|
11
|
+
return /******/ (() => { // webpackBootstrap
|
|
12
|
+
/******/ "use strict";
|
|
13
|
+
/******/ // The require scope
|
|
14
|
+
/******/ var __webpack_require__ = {};
|
|
15
|
+
/******/
|
|
16
|
+
/************************************************************************/
|
|
17
|
+
/******/ /* webpack/runtime/define property getters */
|
|
18
|
+
/******/ (() => {
|
|
19
|
+
/******/ // define getter functions for harmony exports
|
|
20
|
+
/******/ __webpack_require__.d = (exports, definition) => {
|
|
21
|
+
/******/ for(var key in definition) {
|
|
22
|
+
/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
|
|
23
|
+
/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
|
|
24
|
+
/******/ }
|
|
25
|
+
/******/ }
|
|
26
|
+
/******/ };
|
|
27
|
+
/******/ })();
|
|
28
|
+
/******/
|
|
29
|
+
/******/ /* webpack/runtime/hasOwnProperty shorthand */
|
|
30
|
+
/******/ (() => {
|
|
31
|
+
/******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
|
|
32
|
+
/******/ })();
|
|
33
|
+
/******/
|
|
34
|
+
/******/ /* webpack/runtime/make namespace object */
|
|
35
|
+
/******/ (() => {
|
|
36
|
+
/******/ // define __esModule on exports
|
|
37
|
+
/******/ __webpack_require__.r = (exports) => {
|
|
38
|
+
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
|
|
39
|
+
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
40
|
+
/******/ }
|
|
41
|
+
/******/ Object.defineProperty(exports, '__esModule', { value: true });
|
|
42
|
+
/******/ };
|
|
43
|
+
/******/ })();
|
|
44
|
+
/******/
|
|
45
|
+
/******/ /* webpack/runtime/publicPath */
|
|
46
|
+
/******/ (() => {
|
|
47
|
+
/******/ __webpack_require__.p = "";
|
|
48
|
+
/******/ })();
|
|
49
|
+
/******/
|
|
50
|
+
/************************************************************************/
|
|
51
|
+
var __webpack_exports__ = {};
|
|
52
|
+
// ESM COMPAT FLAG
|
|
53
|
+
__webpack_require__.r(__webpack_exports__);
|
|
54
|
+
|
|
55
|
+
// EXPORTS
|
|
56
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
57
|
+
MyButton: () => (/* reexport */ MyButton),
|
|
58
|
+
"default": () => (/* binding */ entry_lib)
|
|
59
|
+
});
|
|
60
|
+
|
|
61
|
+
;// ./node_modules/.store/@vue+cli-service@5.0.9/node_modules/@vue/cli-service/lib/commands/build/setPublicPath.js
|
|
62
|
+
/* eslint-disable no-var */
|
|
63
|
+
// This file is imported into lib/wc client bundles.
|
|
64
|
+
|
|
65
|
+
if (typeof window !== 'undefined') {
|
|
66
|
+
var currentScript = window.document.currentScript
|
|
67
|
+
if (false) // removed by dead control flow
|
|
68
|
+
{ var getCurrentScript; }
|
|
69
|
+
|
|
70
|
+
var src = currentScript && currentScript.src.match(/(.+\/)[^/]+\.js(\?.*)?$/)
|
|
71
|
+
if (src) {
|
|
72
|
+
__webpack_require__.p = src[1] // eslint-disable-line
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
// Indicate to webpack that this file can be concatenated
|
|
77
|
+
/* harmony default export */ const setPublicPath = (null);
|
|
78
|
+
|
|
79
|
+
;// ./node_modules/.store/vue-loader@15.11.1/node_modules/vue-loader/lib/loaders/templateLoader.js??ruleSet[1].rules[2]!./node_modules/.store/vue-loader@15.11.1/node_modules/vue-loader/lib/index.js??vue-loader-options!./src/components/MyButton.vue?vue&type=template&id=fc12b42e&scoped=true
|
|
80
|
+
var render = function render(){var _vm=this,_c=_vm._self._c;return _c('button',{staticClass:"my-btn",on:{"click":function($event){return _vm.$emit('click')}}},[_vm._t("default",function(){return [_vm._v(_vm._s(_vm.label))]})],2)
|
|
81
|
+
}
|
|
82
|
+
var staticRenderFns = []
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
;// ./node_modules/.store/vue-loader@15.11.1/node_modules/vue-loader/lib/index.js??vue-loader-options!./src/components/MyButton.vue?vue&type=script&lang=js
|
|
86
|
+
|
|
87
|
+
/* harmony default export */ const MyButtonvue_type_script_lang_js = ({
|
|
88
|
+
name: "MyButton",
|
|
89
|
+
props: {
|
|
90
|
+
label: { type: String, default: "Button" },
|
|
91
|
+
},
|
|
92
|
+
});
|
|
93
|
+
|
|
94
|
+
;// ./src/components/MyButton.vue?vue&type=script&lang=js
|
|
95
|
+
/* harmony default export */ const components_MyButtonvue_type_script_lang_js = (MyButtonvue_type_script_lang_js);
|
|
96
|
+
;// ./node_modules/.store/mini-css-extract-plugin@2.9.4/node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-52.use[0]!./node_modules/.store/css-loader@6.11.0/node_modules/css-loader/dist/cjs.js??clonedRuleSet-52.use[1]!./node_modules/.store/vue-loader@15.11.1/node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/.store/postcss-loader@6.2.1/node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-52.use[2]!./node_modules/.store/vue-loader@15.11.1/node_modules/vue-loader/lib/index.js??vue-loader-options!./src/components/MyButton.vue?vue&type=style&index=0&id=fc12b42e&prod&scoped=true&lang=css
|
|
97
|
+
// extracted by mini-css-extract-plugin
|
|
98
|
+
|
|
99
|
+
;// ./src/components/MyButton.vue?vue&type=style&index=0&id=fc12b42e&prod&scoped=true&lang=css
|
|
100
|
+
|
|
101
|
+
;// ./node_modules/.store/vue-loader@15.11.1/node_modules/vue-loader/lib/runtime/componentNormalizer.js
|
|
102
|
+
/* globals __VUE_SSR_CONTEXT__ */
|
|
103
|
+
|
|
104
|
+
// IMPORTANT: Do NOT use ES2015 features in this file (except for modules).
|
|
105
|
+
// This module is a runtime utility for cleaner component module output and will
|
|
106
|
+
// be included in the final webpack user bundle.
|
|
107
|
+
|
|
108
|
+
function normalizeComponent(
|
|
109
|
+
scriptExports,
|
|
110
|
+
render,
|
|
111
|
+
staticRenderFns,
|
|
112
|
+
functionalTemplate,
|
|
113
|
+
injectStyles,
|
|
114
|
+
scopeId,
|
|
115
|
+
moduleIdentifier /* server only */,
|
|
116
|
+
shadowMode /* vue-cli only */
|
|
117
|
+
) {
|
|
118
|
+
// Vue.extend constructor export interop
|
|
119
|
+
var options =
|
|
120
|
+
typeof scriptExports === 'function' ? scriptExports.options : scriptExports
|
|
121
|
+
|
|
122
|
+
// render functions
|
|
123
|
+
if (render) {
|
|
124
|
+
options.render = render
|
|
125
|
+
options.staticRenderFns = staticRenderFns
|
|
126
|
+
options._compiled = true
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
// functional template
|
|
130
|
+
if (functionalTemplate) {
|
|
131
|
+
options.functional = true
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
// scopedId
|
|
135
|
+
if (scopeId) {
|
|
136
|
+
options._scopeId = 'data-v-' + scopeId
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
var hook
|
|
140
|
+
if (moduleIdentifier) {
|
|
141
|
+
// server build
|
|
142
|
+
hook = function (context) {
|
|
143
|
+
// 2.3 injection
|
|
144
|
+
context =
|
|
145
|
+
context || // cached call
|
|
146
|
+
(this.$vnode && this.$vnode.ssrContext) || // stateful
|
|
147
|
+
(this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional
|
|
148
|
+
// 2.2 with runInNewContext: true
|
|
149
|
+
if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
|
|
150
|
+
context = __VUE_SSR_CONTEXT__
|
|
151
|
+
}
|
|
152
|
+
// inject component styles
|
|
153
|
+
if (injectStyles) {
|
|
154
|
+
injectStyles.call(this, context)
|
|
155
|
+
}
|
|
156
|
+
// register component module identifier for async chunk inferrence
|
|
157
|
+
if (context && context._registeredComponents) {
|
|
158
|
+
context._registeredComponents.add(moduleIdentifier)
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
// used by ssr in case component is cached and beforeCreate
|
|
162
|
+
// never gets called
|
|
163
|
+
options._ssrRegister = hook
|
|
164
|
+
} else if (injectStyles) {
|
|
165
|
+
hook = shadowMode
|
|
166
|
+
? function () {
|
|
167
|
+
injectStyles.call(
|
|
168
|
+
this,
|
|
169
|
+
(options.functional ? this.parent : this).$root.$options.shadowRoot
|
|
170
|
+
)
|
|
171
|
+
}
|
|
172
|
+
: injectStyles
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
if (hook) {
|
|
176
|
+
if (options.functional) {
|
|
177
|
+
// for template-only hot-reload because in that case the render fn doesn't
|
|
178
|
+
// go through the normalizer
|
|
179
|
+
options._injectStyles = hook
|
|
180
|
+
// register for functional component in vue file
|
|
181
|
+
var originalRender = options.render
|
|
182
|
+
options.render = function renderWithStyleInjection(h, context) {
|
|
183
|
+
hook.call(context)
|
|
184
|
+
return originalRender(h, context)
|
|
185
|
+
}
|
|
186
|
+
} else {
|
|
187
|
+
// inject component registration as beforeCreate hook
|
|
188
|
+
var existing = options.beforeCreate
|
|
189
|
+
options.beforeCreate = existing ? [].concat(existing, hook) : [hook]
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
return {
|
|
194
|
+
exports: scriptExports,
|
|
195
|
+
options: options
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
;// ./src/components/MyButton.vue
|
|
200
|
+
|
|
201
|
+
|
|
202
|
+
|
|
203
|
+
;
|
|
204
|
+
|
|
205
|
+
|
|
206
|
+
/* normalize component */
|
|
207
|
+
|
|
208
|
+
var component = normalizeComponent(
|
|
209
|
+
components_MyButtonvue_type_script_lang_js,
|
|
210
|
+
render,
|
|
211
|
+
staticRenderFns,
|
|
212
|
+
false,
|
|
213
|
+
null,
|
|
214
|
+
"fc12b42e",
|
|
215
|
+
null
|
|
216
|
+
|
|
217
|
+
)
|
|
218
|
+
|
|
219
|
+
/* harmony default export */ const MyButton = (component.exports);
|
|
220
|
+
;// ./src/index.js
|
|
221
|
+
|
|
222
|
+
|
|
223
|
+
// 所有组件列表
|
|
224
|
+
const components = [MyButton];
|
|
225
|
+
|
|
226
|
+
// install 方法
|
|
227
|
+
const install = (Vue) => {
|
|
228
|
+
if (install.installed) return;
|
|
229
|
+
install.installed = true;
|
|
230
|
+
components.forEach((comp) => {
|
|
231
|
+
Vue.component(comp.name, comp);
|
|
232
|
+
});
|
|
233
|
+
};
|
|
234
|
+
|
|
235
|
+
// 支持按需引入
|
|
236
|
+
|
|
237
|
+
|
|
238
|
+
// 支持 Vue.use(MyLib)
|
|
239
|
+
/* harmony default export */ const src_0 = ({
|
|
240
|
+
install,
|
|
241
|
+
...components,
|
|
242
|
+
});
|
|
243
|
+
|
|
244
|
+
// 浏览器环境自动安装
|
|
245
|
+
if (typeof window !== "undefined" && window.Vue) {
|
|
246
|
+
install(window.Vue);
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
;// ./node_modules/.store/@vue+cli-service@5.0.9/node_modules/@vue/cli-service/lib/commands/build/entry-lib.js
|
|
250
|
+
|
|
251
|
+
|
|
252
|
+
/* harmony default export */ const entry_lib = (src_0);
|
|
253
|
+
|
|
254
|
+
|
|
255
|
+
/******/ return __webpack_exports__;
|
|
256
|
+
/******/ })()
|
|
257
|
+
;
|
|
258
|
+
});
|
|
259
|
+
//# sourceMappingURL=augustine-jkmap.umd.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"augustine-jkmap.umd.js","mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD,O;;UCVA;UACA;;;;;WCDA;WACA;WACA;WACA;WACA,yCAAyC,wCAAwC;WACjF;WACA;WACA,E;;;;;WCPA,wF;;;;;WCAA;WACA;WACA;WACA,uDAAuD,iBAAiB;WACxE;WACA,gDAAgD,aAAa;WAC7D,E;;;;;WCNA,2B;;;;;;;;;;;;;;;ACAA;AACA;;AAEA;AACA;AACA,MAAM,KAAuC,EAAE;AAAA,yBAQ5C;;AAEH;AACA;AACA,IAAI,qBAAuB;AAC3B;AACA;;AAEA;AACA,oDAAe,IAAI;;;ACtBnB,+BAA+B,6BAA6B,oBAAoB,yBAAyB,yBAAyB,4BAA4B,8BAA8B,mCAAmC;AAC/N;AACA;;;;;ACKA,sEAAe;AACf;AACA;AACA;AACA;AACA,CAAC,EAAC;;;ACZ+J,CAAC,iFAAe,+BAAG,EAAC,C;;ACArL;;;;;AEAA;;AAEA;AACA;AACA;;AAEe;AACf;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;;AC/FkG;AACvC;AACL;AACtD,CAAgG;;;AAGhG;AACiI;AACjI,gBAAgB,kBAAU;AAC1B,EAAE,0CAAM;AACR,EAAE,MAAM;AACR,EAAE,eAAe;AACjB;AACA;AACA;AACA;AACA;AACA;;AAEA,+CAAe,iB;;ACnBkC;AACjD;AACA;AACA,oBAAoB,QAAQ;AAC5B;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACoB;AACpB;AACA;AACA,4CAAe;AACf;AACA;AACA,CAAC,EAAC;AACF;AACA;AACA;AACA;AACA;;;AC1BwB;AACA;AACxB,gDAAe,KAAG;AACI","sources":["webpack://augustine-jkmap/webpack/universalModuleDefinition","webpack://augustine-jkmap/webpack/bootstrap","webpack://augustine-jkmap/webpack/runtime/define property getters","webpack://augustine-jkmap/webpack/runtime/hasOwnProperty shorthand","webpack://augustine-jkmap/webpack/runtime/make namespace object","webpack://augustine-jkmap/webpack/runtime/publicPath","webpack://augustine-jkmap/./node_modules/.store/@vue+cli-service@5.0.9/node_modules/@vue/cli-service/lib/commands/build/setPublicPath.js","webpack://augustine-jkmap/./src/components/MyButton.vue?c2a5","webpack://augustine-jkmap/src/components/MyButton.vue","webpack://augustine-jkmap/./src/components/MyButton.vue?ea0d","webpack://augustine-jkmap/./src/components/MyButton.vue?4cdb","webpack://augustine-jkmap/./src/components/MyButton.vue?465c","webpack://augustine-jkmap/./node_modules/.store/vue-loader@15.11.1/node_modules/vue-loader/lib/runtime/componentNormalizer.js","webpack://augustine-jkmap/./src/components/MyButton.vue","webpack://augustine-jkmap/./src/index.js","webpack://augustine-jkmap/./node_modules/.store/@vue+cli-service@5.0.9/node_modules/@vue/cli-service/lib/commands/build/entry-lib.js"],"sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory();\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"augustine-jkmap\"] = factory();\n\telse\n\t\troot[\"augustine-jkmap\"] = factory();\n})((typeof self !== 'undefined' ? self : this), () => {\nreturn ","// The require scope\nvar __webpack_require__ = {};\n\n","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","__webpack_require__.p = \"\";","/* eslint-disable no-var */\n// This file is imported into lib/wc client bundles.\n\nif (typeof window !== 'undefined') {\n var currentScript = window.document.currentScript\n if (process.env.NEED_CURRENTSCRIPT_POLYFILL) {\n var getCurrentScript = require('@soda/get-current-script')\n currentScript = getCurrentScript()\n\n // for backward compatibility, because previously we directly included the polyfill\n if (!('currentScript' in document)) {\n Object.defineProperty(document, 'currentScript', { get: getCurrentScript })\n }\n }\n\n var src = currentScript && currentScript.src.match(/(.+\\/)[^/]+\\.js(\\?.*)?$/)\n if (src) {\n __webpack_public_path__ = src[1] // eslint-disable-line\n }\n}\n\n// Indicate to webpack that this file can be concatenated\nexport default null\n","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('button',{staticClass:\"my-btn\",on:{\"click\":function($event){return _vm.$emit('click')}}},[_vm._t(\"default\",function(){return [_vm._v(_vm._s(_vm.label))]})],2)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\r\n <button class=\"my-btn\" @click=\"$emit('click')\">\r\n <slot>{{ label }}</slot>\r\n </button>\r\n</template>\r\n\r\n<script>\r\nexport default {\r\n name: \"MyButton\",\r\n props: {\r\n label: { type: String, default: \"Button\" },\r\n },\r\n};\r\n</script>\r\n\r\n<style scoped>\r\n.my-btn {\r\n padding: 6px 12px;\r\n background: #409eff;\r\n color: white;\r\n border: none;\r\n border-radius: 4px;\r\n cursor: pointer;\r\n}\r\n</style>\r\n","import mod from \"-!../../node_modules/.store/vue-loader@15.11.1/node_modules/vue-loader/lib/index.js??vue-loader-options!./MyButton.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../node_modules/.store/vue-loader@15.11.1/node_modules/vue-loader/lib/index.js??vue-loader-options!./MyButton.vue?vue&type=script&lang=js\"","// extracted by mini-css-extract-plugin\nexport {};","export * from \"-!../../node_modules/.store/mini-css-extract-plugin@2.9.4/node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-52.use[0]!../../node_modules/.store/css-loader@6.11.0/node_modules/css-loader/dist/cjs.js??clonedRuleSet-52.use[1]!../../node_modules/.store/vue-loader@15.11.1/node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../node_modules/.store/postcss-loader@6.2.1/node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-52.use[2]!../../node_modules/.store/vue-loader@15.11.1/node_modules/vue-loader/lib/index.js??vue-loader-options!./MyButton.vue?vue&type=style&index=0&id=fc12b42e&prod&scoped=true&lang=css\"","/* globals __VUE_SSR_CONTEXT__ */\n\n// IMPORTANT: Do NOT use ES2015 features in this file (except for modules).\n// This module is a runtime utility for cleaner component module output and will\n// be included in the final webpack user bundle.\n\nexport default function normalizeComponent(\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier /* server only */,\n shadowMode /* vue-cli only */\n) {\n // Vue.extend constructor export interop\n var options =\n typeof scriptExports === 'function' ? scriptExports.options : scriptExports\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) {\n // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () {\n injectStyles.call(\n this,\n (options.functional ? this.parent : this).$root.$options.shadowRoot\n )\n }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functional component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection(h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing ? [].concat(existing, hook) : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}\n","import { render, staticRenderFns } from \"./MyButton.vue?vue&type=template&id=fc12b42e&scoped=true\"\nimport script from \"./MyButton.vue?vue&type=script&lang=js\"\nexport * from \"./MyButton.vue?vue&type=script&lang=js\"\nimport style0 from \"./MyButton.vue?vue&type=style&index=0&id=fc12b42e&prod&scoped=true&lang=css\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/.store/vue-loader@15.11.1/node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"fc12b42e\",\n null\n \n)\n\nexport default component.exports","import MyButton from \"./components/MyButton.vue\";\r\n\r\n// 所有组件列表\r\nconst components = [MyButton];\r\n\r\n// install 方法\r\nconst install = (Vue) => {\r\n if (install.installed) return;\r\n install.installed = true;\r\n components.forEach((comp) => {\r\n Vue.component(comp.name, comp);\r\n });\r\n};\r\n\r\n// 支持按需引入\r\nexport { MyButton };\r\n\r\n// 支持 Vue.use(MyLib)\r\nexport default {\r\n install,\r\n ...components,\r\n};\r\n\r\n// 浏览器环境自动安装\r\nif (typeof window !== \"undefined\" && window.Vue) {\r\n install(window.Vue);\r\n}\r\n","import './setPublicPath'\nimport mod from '~entry'\nexport default mod\nexport * from '~entry'\n"],"names":[],"ignoreList":[],"sourceRoot":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
(function(e,t){"object"===typeof exports&&"object"===typeof module?module.exports=t():"function"===typeof define&&define.amd?define([],t):"object"===typeof exports?exports["augustine-jkmap"]=t():e["augustine-jkmap"]=t()})("undefined"!==typeof self?self:this,()=>(()=>{"use strict";var e={};(()=>{e.d=(t,n)=>{for(var o in n)e.o(n,o)&&!e.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:n[o]})}})(),(()=>{e.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t)})(),(()=>{e.r=e=>{"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}})(),(()=>{e.p=""})();var t={};if(e.r(t),e.d(t,{MyButton:()=>c,default:()=>_}),"undefined"!==typeof window){var n=window.document.currentScript,o=n&&n.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);o&&(e.p=o[1])}var r=function(){var e=this,t=e._self._c;return t("button",{staticClass:"my-btn",on:{click:function(t){return e.$emit("click")}}},[e._t("default",function(){return[e._v(e._s(e.label))]})],2)},i=[];const s={name:"MyButton",props:{label:{type:String,default:"Button"}}},a=s;function d(e,t,n,o,r,i,s,a){var d,u="function"===typeof e?e.options:e;if(t&&(u.render=t,u.staticRenderFns=n,u._compiled=!0),o&&(u.functional=!0),i&&(u._scopeId="data-v-"+i),s?(d=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"===typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),r&&r.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(s)},u._ssrRegister=d):r&&(d=a?function(){r.call(this,(u.functional?this.parent:this).$root.$options.shadowRoot)}:r),d)if(u.functional){u._injectStyles=d;var c=u.render;u.render=function(e,t){return d.call(t),c(e,t)}}else{var f=u.beforeCreate;u.beforeCreate=f?[].concat(f,d):[d]}return{exports:e,options:u}}var u=d(a,r,i,!1,null,"fc12b42e",null);const c=u.exports,f=[c],l=e=>{l.installed||(l.installed=!0,f.forEach(t=>{e.component(t.name,t)}))},p={install:l,...f};"undefined"!==typeof window&&window.Vue&&l(window.Vue);const _=p;return t})());
|
|
2
|
+
//# sourceMappingURL=augustine-jkmap.umd.min.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"augustine-jkmap.umd.min.js","mappings":"CAAA,SAA2CA,EAAMC,GAC1B,kBAAZC,SAA0C,kBAAXC,OACxCA,OAAOD,QAAUD,IACQ,oBAAXG,QAAyBA,OAAOC,IAC9CD,OAAO,GAAIH,GACe,kBAAZC,QACdA,QAAQ,mBAAqBD,IAE7BD,EAAK,mBAAqBC,GAC3B,EATD,CASoB,qBAATK,KAAuBA,KAAOC,KAAO,I,mBCRhD,IAAIC,EAAsB,CAAC,E,MCA3BA,EAAoBC,EAAI,CAACP,EAASQ,KACjC,IAAI,IAAIC,KAAOD,EACXF,EAAoBI,EAAEF,EAAYC,KAASH,EAAoBI,EAAEV,EAASS,IAC5EE,OAAOC,eAAeZ,EAASS,EAAK,CAAEI,YAAY,EAAMC,IAAKN,EAAWC,K,WCJ3EH,EAAoBI,EAAI,CAACK,EAAKC,IAAUL,OAAOM,UAAUC,eAAeC,KAAKJ,EAAKC,E,WCClFV,EAAoBc,EAAKpB,IACH,qBAAXqB,QAA0BA,OAAOC,aAC1CX,OAAOC,eAAeZ,EAASqB,OAAOC,YAAa,CAAEC,MAAO,WAE7DZ,OAAOC,eAAeZ,EAAS,aAAc,CAAEuB,OAAO,I,WCLvDjB,EAAoBkB,EAAI,E,cCGxB,G,6CAAsB,qBAAXC,OAAwB,CACjC,IAAIC,EAAgBD,OAAOE,SAASD,cAWhCE,EAAMF,GAAiBA,EAAcE,IAAIC,MAAM,2BAC/CD,IACF,IAA0BA,EAAI,GAElC,CCnBA,IAAIE,EAAS,WAAkB,IAAIC,EAAI1B,KAAK2B,EAAGD,EAAIE,MAAMD,GAAG,OAAOA,EAAG,SAAS,CAACE,YAAY,SAASC,GAAG,CAAC,MAAQ,SAASC,GAAQ,OAAOL,EAAIM,MAAM,QAAQ,IAAI,CAACN,EAAIO,GAAG,UAAU,WAAW,MAAO,CAACP,EAAIQ,GAAGR,EAAIS,GAAGT,EAAIU,QAAQ,IAAI,EAClO,EACIC,EAAkB,GCKtB,SACEC,KAAM,WACNC,MAAO,CACLH,MAAO,CAAEI,KAAMC,OAAQC,QAAS,YCV8H,ICMnJ,SAASC,EACtBC,EACAnB,EACAY,EACAQ,EACAC,EACAC,EACAC,EACAC,GAGA,IAoBIC,EApBAC,EACuB,oBAAlBP,EAA+BA,EAAcO,QAAUP,EAuDhE,GApDInB,IACF0B,EAAQ1B,OAASA,EACjB0B,EAAQd,gBAAkBA,EAC1Bc,EAAQC,WAAY,GAIlBP,IACFM,EAAQE,YAAa,GAInBN,IACFI,EAAQG,SAAW,UAAYP,GAI7BC,GAEFE,EAAO,SAAUK,GAEfA,EACEA,GACCvD,KAAKwD,QAAUxD,KAAKwD,OAAOC,YAC3BzD,KAAK0D,QAAU1D,KAAK0D,OAAOF,QAAUxD,KAAK0D,OAAOF,OAAOC,WAEtDF,GAA0C,qBAAxBI,sBACrBJ,EAAUI,qBAGRb,GACFA,EAAahC,KAAKd,KAAMuD,GAGtBA,GAAWA,EAAQK,uBACrBL,EAAQK,sBAAsBC,IAAIb,EAEtC,EAGAG,EAAQW,aAAeZ,GACdJ,IACTI,EAAOD,EACH,WACEH,EAAahC,KACXd,MACCmD,EAAQE,WAAarD,KAAK0D,OAAS1D,MAAM+D,MAAMC,SAASC,WAE7D,EACAnB,GAGFI,EACF,GAAIC,EAAQE,WAAY,CAGtBF,EAAQe,cAAgBhB,EAExB,IAAIiB,EAAiBhB,EAAQ1B,OAC7B0B,EAAQ1B,OAAS,SAAkC2C,EAAGb,GAEpD,OADAL,EAAKpC,KAAKyC,GACHY,EAAeC,EAAGb,EAC3B,CACF,KAAO,CAEL,IAAIc,EAAWlB,EAAQmB,aACvBnB,EAAQmB,aAAeD,EAAW,GAAGE,OAAOF,EAAUnB,GAAQ,CAACA,EACjE,CAGF,MAAO,CACLvD,QAASiD,EACTO,QAASA,EAEb,CCvFA,IAAIqB,EAAY,EACd,EACA/C,EACAY,GACA,EACA,KACA,WACA,MAIF,QAAemC,E,QChBTC,EAAa,CAACC,GAGdC,EAAWC,IACXD,EAAQE,YACZF,EAAQE,WAAY,EACpBJ,EAAWK,QAASC,IAClBH,EAAIJ,UAAUO,EAAKzC,KAAMyC,OAQ7B,GACEJ,aACGF,GAIiB,qBAAXrD,QAA0BA,OAAOwD,KAC1CD,EAAQvD,OAAOwD,KCvBjB,U","sources":["webpack://augustine-jkmap/webpack/universalModuleDefinition","webpack://augustine-jkmap/webpack/bootstrap","webpack://augustine-jkmap/webpack/runtime/define property getters","webpack://augustine-jkmap/webpack/runtime/hasOwnProperty shorthand","webpack://augustine-jkmap/webpack/runtime/make namespace object","webpack://augustine-jkmap/webpack/runtime/publicPath","webpack://augustine-jkmap/./node_modules/.store/@vue+cli-service@5.0.9/node_modules/@vue/cli-service/lib/commands/build/setPublicPath.js","webpack://augustine-jkmap/./src/components/MyButton.vue?c2a5","webpack://augustine-jkmap/src/components/MyButton.vue","webpack://augustine-jkmap/./src/components/MyButton.vue?ea0d","webpack://augustine-jkmap/./node_modules/.store/vue-loader@15.11.1/node_modules/vue-loader/lib/runtime/componentNormalizer.js","webpack://augustine-jkmap/./src/components/MyButton.vue","webpack://augustine-jkmap/./src/index.js","webpack://augustine-jkmap/./node_modules/.store/@vue+cli-service@5.0.9/node_modules/@vue/cli-service/lib/commands/build/entry-lib.js"],"sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory();\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"augustine-jkmap\"] = factory();\n\telse\n\t\troot[\"augustine-jkmap\"] = factory();\n})((typeof self !== 'undefined' ? self : this), () => {\nreturn ","// The require scope\nvar __webpack_require__ = {};\n\n","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","__webpack_require__.p = \"\";","/* eslint-disable no-var */\n// This file is imported into lib/wc client bundles.\n\nif (typeof window !== 'undefined') {\n var currentScript = window.document.currentScript\n if (process.env.NEED_CURRENTSCRIPT_POLYFILL) {\n var getCurrentScript = require('@soda/get-current-script')\n currentScript = getCurrentScript()\n\n // for backward compatibility, because previously we directly included the polyfill\n if (!('currentScript' in document)) {\n Object.defineProperty(document, 'currentScript', { get: getCurrentScript })\n }\n }\n\n var src = currentScript && currentScript.src.match(/(.+\\/)[^/]+\\.js(\\?.*)?$/)\n if (src) {\n __webpack_public_path__ = src[1] // eslint-disable-line\n }\n}\n\n// Indicate to webpack that this file can be concatenated\nexport default null\n","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('button',{staticClass:\"my-btn\",on:{\"click\":function($event){return _vm.$emit('click')}}},[_vm._t(\"default\",function(){return [_vm._v(_vm._s(_vm.label))]})],2)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\r\n <button class=\"my-btn\" @click=\"$emit('click')\">\r\n <slot>{{ label }}</slot>\r\n </button>\r\n</template>\r\n\r\n<script>\r\nexport default {\r\n name: \"MyButton\",\r\n props: {\r\n label: { type: String, default: \"Button\" },\r\n },\r\n};\r\n</script>\r\n\r\n<style scoped>\r\n.my-btn {\r\n padding: 6px 12px;\r\n background: #409eff;\r\n color: white;\r\n border: none;\r\n border-radius: 4px;\r\n cursor: pointer;\r\n}\r\n</style>\r\n","import mod from \"-!../../node_modules/.store/vue-loader@15.11.1/node_modules/vue-loader/lib/index.js??vue-loader-options!./MyButton.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../node_modules/.store/vue-loader@15.11.1/node_modules/vue-loader/lib/index.js??vue-loader-options!./MyButton.vue?vue&type=script&lang=js\"","/* globals __VUE_SSR_CONTEXT__ */\n\n// IMPORTANT: Do NOT use ES2015 features in this file (except for modules).\n// This module is a runtime utility for cleaner component module output and will\n// be included in the final webpack user bundle.\n\nexport default function normalizeComponent(\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier /* server only */,\n shadowMode /* vue-cli only */\n) {\n // Vue.extend constructor export interop\n var options =\n typeof scriptExports === 'function' ? scriptExports.options : scriptExports\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) {\n // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () {\n injectStyles.call(\n this,\n (options.functional ? this.parent : this).$root.$options.shadowRoot\n )\n }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functional component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection(h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing ? [].concat(existing, hook) : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}\n","import { render, staticRenderFns } from \"./MyButton.vue?vue&type=template&id=fc12b42e&scoped=true\"\nimport script from \"./MyButton.vue?vue&type=script&lang=js\"\nexport * from \"./MyButton.vue?vue&type=script&lang=js\"\nimport style0 from \"./MyButton.vue?vue&type=style&index=0&id=fc12b42e&prod&scoped=true&lang=css\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/.store/vue-loader@15.11.1/node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"fc12b42e\",\n null\n \n)\n\nexport default component.exports","import MyButton from \"./components/MyButton.vue\";\r\n\r\n// 所有组件列表\r\nconst components = [MyButton];\r\n\r\n// install 方法\r\nconst install = (Vue) => {\r\n if (install.installed) return;\r\n install.installed = true;\r\n components.forEach((comp) => {\r\n Vue.component(comp.name, comp);\r\n });\r\n};\r\n\r\n// 支持按需引入\r\nexport { MyButton };\r\n\r\n// 支持 Vue.use(MyLib)\r\nexport default {\r\n install,\r\n ...components,\r\n};\r\n\r\n// 浏览器环境自动安装\r\nif (typeof window !== \"undefined\" && window.Vue) {\r\n install(window.Vue);\r\n}\r\n","import './setPublicPath'\nimport mod from '~entry'\nexport default mod\nexport * from '~entry'\n"],"names":["root","factory","exports","module","define","amd","self","this","__webpack_require__","d","definition","key","o","Object","defineProperty","enumerable","get","obj","prop","prototype","hasOwnProperty","call","r","Symbol","toStringTag","value","p","window","currentScript","document","src","match","render","_vm","_c","_self","staticClass","on","$event","$emit","_t","_v","_s","label","staticRenderFns","name","props","type","String","default","normalizeComponent","scriptExports","functionalTemplate","injectStyles","scopeId","moduleIdentifier","shadowMode","hook","options","_compiled","functional","_scopeId","context","$vnode","ssrContext","parent","__VUE_SSR_CONTEXT__","_registeredComponents","add","_ssrRegister","$root","$options","shadowRoot","_injectStyles","originalRender","h","existing","beforeCreate","concat","component","components","MyButton","install","Vue","installed","forEach","comp"],"ignoreList":[],"sourceRoot":""}
|
package/dist/demo.html
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<!doctype html><meta charset="utf-8"><title>augustine-jkmap demo</title><script src="./augustine-jkmap.umd.js"></script><link rel="stylesheet" href="./augustine-jkmap.css"><script>console.log(augustine-jkmap)</script>
|
package/package.json
CHANGED
|
@@ -1,59 +1,30 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "augustine-jkmap",
|
|
3
|
-
"version": "1.0.
|
|
4
|
-
"description": "
|
|
5
|
-
"main": "dist/
|
|
6
|
-
"
|
|
7
|
-
"
|
|
8
|
-
|
|
9
|
-
"."
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
"
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
"
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
"
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
"universal",
|
|
32
|
-
"vue-demi",
|
|
33
|
-
"按需加载",
|
|
34
|
-
"主题定制"
|
|
35
|
-
],
|
|
36
|
-
"author": "",
|
|
37
|
-
"license": "MIT",
|
|
38
|
-
"peerDependencies": {
|
|
39
|
-
"vue": "^2.6.0 || ^2.7.0 || ^3.2.0"
|
|
40
|
-
},
|
|
41
|
-
"dependencies": {
|
|
42
|
-
"vue-demi": "^0.14.6"
|
|
43
|
-
},
|
|
44
|
-
"devDependencies": {
|
|
45
|
-
"@vitejs/plugin-vue": "^4.4.0",
|
|
46
|
-
"@vitejs/plugin-vue2": "^2.3.1",
|
|
47
|
-
"@vue/tsconfig": "^0.5.1",
|
|
48
|
-
"sass": "^1.69.5",
|
|
49
|
-
"typescript": "^5.2.2",
|
|
50
|
-
"vite": "^4.5.0",
|
|
51
|
-
"vite-plugin-dts": "^3.6.0",
|
|
52
|
-
"vue": "^2.7.14",
|
|
53
|
-
"vue3": "npm:vue@^3.3.4",
|
|
54
|
-
"vue-template-compiler": "^2.7.14"
|
|
55
|
-
},
|
|
56
|
-
"engines": {
|
|
57
|
-
"node": ">=14.0.0"
|
|
58
|
-
}
|
|
59
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "augustine-jkmap",
|
|
3
|
+
"version": "1.0.4",
|
|
4
|
+
"description": "A Vue 2 component library",
|
|
5
|
+
"main": "dist/augustine-jkmap.common.js",
|
|
6
|
+
"unpkg": "dist/augustine-jkmap.umd.min.js",
|
|
7
|
+
"files": [
|
|
8
|
+
"dist",
|
|
9
|
+
"README.md"
|
|
10
|
+
],
|
|
11
|
+
"scripts": {
|
|
12
|
+
"build": "vue-cli-service build --target lib --name augustine-jkmap src/index.js",
|
|
13
|
+
"prepare": "npm run build"
|
|
14
|
+
},
|
|
15
|
+
"peerDependencies": {
|
|
16
|
+
"vue": "^2.6.0 || ^2.7.0"
|
|
17
|
+
},
|
|
18
|
+
"devDependencies": {
|
|
19
|
+
"@vue/cli-service": "~5.0.0",
|
|
20
|
+
"vue": "^2.7.16",
|
|
21
|
+
"vue-template-compiler": "^2.7.16"
|
|
22
|
+
},
|
|
23
|
+
"keywords": [
|
|
24
|
+
"vue",
|
|
25
|
+
"vue2",
|
|
26
|
+
"ui",
|
|
27
|
+
"component"
|
|
28
|
+
],
|
|
29
|
+
"license": "MIT"
|
|
30
|
+
}
|
package/dist/index.d.ts
DELETED
package/dist/index.es.js
DELETED
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
import "vue";
|
|
2
|
-
function h(t, e, r, l, s, i, a, p) {
|
|
3
|
-
var n = typeof t == "function" ? t.options : t;
|
|
4
|
-
e && (n.render = e, n.staticRenderFns = r, n._compiled = !0), l && (n.functional = !0), i && (n._scopeId = "data-v-" + i);
|
|
5
|
-
var _;
|
|
6
|
-
if (a ? (_ = function(o) {
|
|
7
|
-
o = o || // cached call
|
|
8
|
-
this.$vnode && this.$vnode.ssrContext || // stateful
|
|
9
|
-
this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext, !o && typeof __VUE_SSR_CONTEXT__ != "undefined" && (o = __VUE_SSR_CONTEXT__), s && s.call(this, o), o && o._registeredComponents && o._registeredComponents.add(a);
|
|
10
|
-
}, n._ssrRegister = _) : s && (_ = p ? function() {
|
|
11
|
-
s.call(
|
|
12
|
-
this,
|
|
13
|
-
(n.functional ? this.parent : this).$root.$options.shadowRoot
|
|
14
|
-
);
|
|
15
|
-
} : s), _)
|
|
16
|
-
if (n.functional) {
|
|
17
|
-
n._injectStyles = _;
|
|
18
|
-
var c = n.render;
|
|
19
|
-
n.render = function(v, u) {
|
|
20
|
-
return _.call(u), c(v, u);
|
|
21
|
-
};
|
|
22
|
-
} else {
|
|
23
|
-
var f = n.beforeCreate;
|
|
24
|
-
n.beforeCreate = f ? [].concat(f, _) : [_];
|
|
25
|
-
}
|
|
26
|
-
return {
|
|
27
|
-
exports: t,
|
|
28
|
-
options: n
|
|
29
|
-
};
|
|
30
|
-
}
|
|
31
|
-
const m = {
|
|
32
|
-
__name: "MyButton",
|
|
33
|
-
setup(t) {
|
|
34
|
-
return { __sfc: !0 };
|
|
35
|
-
}
|
|
36
|
-
};
|
|
37
|
-
var C = function() {
|
|
38
|
-
var e = this, r = e._self._c;
|
|
39
|
-
return e._self._setupProxy, r("div", [e._v("手")]);
|
|
40
|
-
}, w = [], y = /* @__PURE__ */ h(
|
|
41
|
-
m,
|
|
42
|
-
C,
|
|
43
|
-
w,
|
|
44
|
-
!1,
|
|
45
|
-
null,
|
|
46
|
-
"aa5675b7",
|
|
47
|
-
null,
|
|
48
|
-
null
|
|
49
|
-
);
|
|
50
|
-
const R = y.exports, $ = [R], d = (t) => {
|
|
51
|
-
$.forEach((e) => {
|
|
52
|
-
const r = e.name || e.__name;
|
|
53
|
-
r && t.component(r, e);
|
|
54
|
-
});
|
|
55
|
-
};
|
|
56
|
-
typeof window != "undefined" && window.Vue && d(window.Vue);
|
|
57
|
-
const b = {
|
|
58
|
-
install: d,
|
|
59
|
-
version: "1.0.0"
|
|
60
|
-
};
|
|
61
|
-
export {
|
|
62
|
-
R as MyButton,
|
|
63
|
-
b as default
|
|
64
|
-
};
|
|
65
|
-
//# sourceMappingURL=index.es.js.map
|
package/dist/index.es.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.es.js","sources":["../src/index.ts"],"sourcesContent":["import type { App } from \"vue-demi\";\r\nimport MyButton from \"./components/MyButton.vue\";\r\n\r\n// 组件列表\r\nconst components = [MyButton];\r\n\r\n/**\r\n * 插件安装函数\r\n * @param app Vue实例(Vue2:Vue构造函数,Vue3:createApp返回的实例)\r\n * @param options 插件配置项\r\n */\r\nconst install = (app: App) => {\r\n // 批量注册组件\r\n components.forEach((component) => {\r\n const componentName = component.name || component.__name;\r\n if (componentName) {\r\n app.component(componentName, component);\r\n }\r\n });\r\n};\r\n\r\n// UMD模式下自动注册\r\nif (typeof window !== \"undefined\" && window.Vue) {\r\n install(window.Vue);\r\n}\r\n\r\n// 导出插件核心\r\nconst VueUniversalComponents = {\r\n install,\r\n version: \"1.0.0\",\r\n};\r\n\r\n// 导出插件和单个组件\r\nexport default VueUniversalComponents;\r\nexport { MyButton };\r\n"],"names":["components","MyButton","install","app","component","componentName","VueUniversalComponents"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBAIMA,IAAa,CAACC,CAAQ,GAOtBC,IAAU,CAACC,MAAa;AAEjB,EAAAH,EAAA,QAAQ,CAACI,MAAc;AAC1B,UAAAC,IAAgBD,EAAU,QAAQA,EAAU;AAClD,IAAIC,KACEF,EAAA,UAAUE,GAAeD,CAAS;AAAA,EACxC,CACD;AACH;AAGI,OAAO,UAAW,eAAe,OAAO,OAC1CF,EAAQ,OAAO,GAAG;AAIpB,MAAMI,IAAyB;AAAA,EAC7B,SAAAJ;AAAA,EACA,SAAS;AACX;"}
|
package/dist/index.umd.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
(function(s,u){typeof exports=="object"&&typeof module!="undefined"?u(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],u):(s=typeof globalThis!="undefined"?globalThis:s||self,u(s.augustineJkMap={}))})(this,function(s){"use strict";const u="";function v(t,n,r,M,_,d,l,T){var e=typeof t=="function"?t.options:t;n&&(e.render=n,e.staticRenderFns=r,e._compiled=!0),M&&(e.functional=!0),d&&(e._scopeId="data-v-"+d);var i;if(l?(i=function(o){o=o||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,!o&&typeof __VUE_SSR_CONTEXT__!="undefined"&&(o=__VUE_SSR_CONTEXT__),_&&_.call(this,o),o&&o._registeredComponents&&o._registeredComponents.add(l)},e._ssrRegister=i):_&&(i=T?function(){_.call(this,(e.functional?this.parent:this).$root.$options.shadowRoot)}:_),i)if(e.functional){e._injectStyles=i;var g=e.render;e.render=function(R,c){return i.call(c),g(R,c)}}else{var p=e.beforeCreate;e.beforeCreate=p?[].concat(p,i):[i]}return{exports:t,options:e}}const h={__name:"MyButton",setup(t){return{__sfc:!0}}};var m=function(){var n=this,r=n._self._c;return n._self._setupProxy,r("div",[n._v("手")])},y=[],C=v(h,m,y,!1,null,"aa5675b7",null,null);const f=C.exports,b=[f],a=t=>{b.forEach(n=>{const r=n.name||n.__name;r&&t.component(r,n)})};typeof window!="undefined"&&window.Vue&&a(window.Vue);const w={install:a,version:"1.0.0"};s.MyButton=f,s.default=w,Object.defineProperties(s,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
|
2
|
-
//# sourceMappingURL=index.umd.js.map
|
package/dist/index.umd.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.umd.js","sources":["../src/index.ts"],"sourcesContent":["import type { App } from \"vue-demi\";\r\nimport MyButton from \"./components/MyButton.vue\";\r\n\r\n// 组件列表\r\nconst components = [MyButton];\r\n\r\n/**\r\n * 插件安装函数\r\n * @param app Vue实例(Vue2:Vue构造函数,Vue3:createApp返回的实例)\r\n * @param options 插件配置项\r\n */\r\nconst install = (app: App) => {\r\n // 批量注册组件\r\n components.forEach((component) => {\r\n const componentName = component.name || component.__name;\r\n if (componentName) {\r\n app.component(componentName, component);\r\n }\r\n });\r\n};\r\n\r\n// UMD模式下自动注册\r\nif (typeof window !== \"undefined\" && window.Vue) {\r\n install(window.Vue);\r\n}\r\n\r\n// 导出插件核心\r\nconst VueUniversalComponents = {\r\n install,\r\n version: \"1.0.0\",\r\n};\r\n\r\n// 导出插件和单个组件\r\nexport default VueUniversalComponents;\r\nexport { MyButton };\r\n"],"names":["components","MyButton","install","app","component","componentName","VueUniversalComponents"],"mappings":"mtCAIMA,EAAa,CAACC,CAAQ,EAOtBC,EAAWC,GAAa,CAEjBH,EAAA,QAASI,GAAc,CAC1B,MAAAC,EAAgBD,EAAU,MAAQA,EAAU,OAC9CC,GACEF,EAAA,UAAUE,EAAeD,CAAS,CACxC,CACD,CACH,EAGI,OAAO,QAAW,aAAe,OAAO,KAC1CF,EAAQ,OAAO,GAAG,EAIpB,MAAMI,EAAyB,CAC7B,QAAAJ,EACA,QAAS,OACX"}
|