yc-ui2 0.1.0-beta2 → 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/favicon.ico +0 -0
- package/dist/index.html +1 -0
- package/dist/js/app.43a0c17e.js +2 -0
- package/dist/js/app.43a0c17e.js.map +1 -0
- package/package.json +2 -2
- package/src/components/Button/index.vue +21 -0
- package/src/components/index.js +23 -0
- package/dist/demo.html +0 -1
- package/dist/yc-ui2.common.js +0 -242
- package/dist/yc-ui2.common.js.map +0 -1
- package/dist/yc-ui2.umd.js +0 -253
- package/dist/yc-ui2.umd.js.map +0 -1
- package/dist/yc-ui2.umd.min.js +0 -2
- package/dist/yc-ui2.umd.min.js.map +0 -1
- /package/dist/{yc-ui2.css → css/app.6e86a2b4.css} +0 -0
package/dist/favicon.ico
ADDED
Binary file
|
package/dist/index.html
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
<!doctype html><html lang=""><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width,initial-scale=1"><link rel="icon" href="/favicon.ico"><title>yc-ui2</title><script defer="defer" src="/js/app.43a0c17e.js"></script><link href="/css/app.6e86a2b4.css" rel="stylesheet"></head><body><noscript><strong>We're sorry but yc-ui2 doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id="app"></div></body></html>
|
@@ -0,0 +1,2 @@
|
|
1
|
+
(function(){"use strict";var t=function(){var t=this,e=t._self._c;return e("button",{staticClass:"MyButton"},[t._v("我是一个按钮组件")])},e=[],n={name:"MyButton",data(){return{}},methods:{},filters:{},created(){}},o=n;function r(t,e,n,o,r,s,i,a){var c,u="function"===typeof t?t.options:t;if(e&&(u.render=e,u.staticRenderFns=n,u._compiled=!0),o&&(u.functional=!0),s&&(u._scopeId="data-v-"+s),i?(c=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"===typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),r&&r.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(i)},u._ssrRegister=c):r&&(c=a?function(){r.call(this,(u.functional?this.parent:this).$root.$options.shadowRoot)}:r),c)if(u.functional){u._injectStyles=c;var d=u.render;u.render=function(t,e){return c.call(e),d(t,e)}}else{var l=u.beforeCreate;u.beforeCreate=l?[].concat(l,c):[c]}return{exports:t,options:u}}var s=r(o,t,e,!1,null,null,null);s.exports})();
|
2
|
+
//# sourceMappingURL=app.43a0c17e.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"js/app.43a0c17e.js","mappings":"6BAAIA,EAAS,WAAkB,IAAIC,EAAIC,KAAKC,EAAGF,EAAIG,MAAMD,GAAG,OAAOA,EAAG,SAAS,CAACE,YAAY,YAAY,CAACJ,EAAIK,GAAG,aAChH,EACIC,EAAkB,GCGtB,GACAC,KAAA,WACAC,IAAAA,GACA,QACA,EACAC,QAAA,GACAC,QAAA,GACAC,OAAAA,GAAA,GCZ8P,ICM/O,SAASC,EACtBC,EACAd,EACAO,EACAQ,EACAC,EACAC,EACAC,EACAC,GAGA,IAoBIC,EApBAC,EACuB,oBAAlBP,EAA+BA,EAAcO,QAAUP,EAuDhE,GApDId,IACFqB,EAAQrB,OAASA,EACjBqB,EAAQd,gBAAkBA,EAC1Bc,EAAQC,WAAY,GAIlBP,IACFM,EAAQE,YAAa,GAInBN,IACFI,EAAQG,SAAW,UAAYP,GAI7BC,GAEFE,EAAO,SAAUK,GAEfA,EACEA,GACCvB,KAAKwB,QAAUxB,KAAKwB,OAAOC,YAC3BzB,KAAK0B,QAAU1B,KAAK0B,OAAOF,QAAUxB,KAAK0B,OAAOF,OAAOC,WAEtDF,GAA0C,qBAAxBI,sBACrBJ,EAAUI,qBAGRb,GACFA,EAAac,KAAK5B,KAAMuB,GAGtBA,GAAWA,EAAQM,uBACrBN,EAAQM,sBAAsBC,IAAId,EAEtC,EAGAG,EAAQY,aAAeb,GACdJ,IACTI,EAAOD,EACH,WACEH,EAAac,KACX5B,MACCmB,EAAQE,WAAarB,KAAK0B,OAAS1B,MAAMgC,MAAMC,SAASC,WAE7D,EACApB,GAGFI,EACF,GAAIC,EAAQE,WAAY,CAGtBF,EAAQgB,cAAgBjB,EAExB,IAAIkB,EAAiBjB,EAAQrB,OAC7BqB,EAAQrB,OAAS,SAAkCuC,EAAGd,GAEpD,OADAL,EAAKU,KAAKL,GACHa,EAAeC,EAAGd,EAC3B,CACF,KAAO,CAEL,IAAIe,EAAWnB,EAAQoB,aACvBpB,EAAQoB,aAAeD,EAAW,GAAGE,OAAOF,EAAUpB,GAAQ,CAACA,EACjE,CAGF,MAAO,CACLuB,QAAS7B,EACTO,QAASA,EAEb,CCvFA,IAAIuB,EAAY,EACd,EACA5C,EACAO,GACA,EACA,KACA,KACA,MAIaqC,EAAiB,O","sources":["webpack://yc-ui2/./src/components/Button/index.vue","webpack://yc-ui2/src/components/Button/index.vue","webpack://yc-ui2/./src/components/Button/index.vue?ab4f","webpack://yc-ui2/./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js","webpack://yc-ui2/./src/components/Button/index.vue?9a7c"],"sourcesContent":["var render = function render(){var _vm=this,_c=_vm._self._c;return _c('button',{staticClass:\"MyButton\"},[_vm._v(\"我是一个按钮组件\")])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\r\n <button class=\"MyButton\">我是一个按钮组件</button>\r\n</template>\r\n\r\n<script>\r\nexport default {\r\n name: \"MyButton\",\r\n data() {\r\n return {}\r\n },\r\n methods: {},\r\n filters: {},\r\n created() {},\r\n}\r\n</script>\r\n\r\n<style>\r\n.MyButton {\r\n color: red;\r\n}\r\n</style>\r\n","import mod from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./index.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./index.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 \"./index.vue?vue&type=template&id=3170b9bf&\"\nimport script from \"./index.vue?vue&type=script&lang=js&\"\nexport * from \"./index.vue?vue&type=script&lang=js&\"\nimport style0 from \"./index.vue?vue&type=style&index=0&id=3170b9bf&prod&lang=css&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports"],"names":["render","_vm","this","_c","_self","staticClass","_v","staticRenderFns","name","data","methods","filters","created","normalizeComponent","scriptExports","functionalTemplate","injectStyles","scopeId","moduleIdentifier","shadowMode","hook","options","_compiled","functional","_scopeId","context","$vnode","ssrContext","parent","__VUE_SSR_CONTEXT__","call","_registeredComponents","add","_ssrRegister","$root","$options","shadowRoot","_injectStyles","originalRender","h","existing","beforeCreate","concat","exports","component"],"sourceRoot":""}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "yc-ui2",
|
3
|
-
"version": "0.1.0
|
3
|
+
"version": "0.1.0",
|
4
4
|
"private": false,
|
5
5
|
"description": "测试阶段",
|
6
6
|
"main": "dist/yc-ui2.umd.min.js",
|
@@ -8,7 +8,7 @@
|
|
8
8
|
"dev": "vue-cli-service serve",
|
9
9
|
"build": "vue-cli-service build",
|
10
10
|
"lint": "vue-cli-service lint",
|
11
|
-
"lib": "vue-cli-service build --
|
11
|
+
"lib": "vue-cli-service build --targe lib src/components/index.js"
|
12
12
|
},
|
13
13
|
"dependencies": {
|
14
14
|
"core-js": "^3.8.3",
|
@@ -0,0 +1,21 @@
|
|
1
|
+
<template>
|
2
|
+
<button class="MyButton">我是一个按钮组件</button>
|
3
|
+
</template>
|
4
|
+
|
5
|
+
<script>
|
6
|
+
export default {
|
7
|
+
name: "MyButton",
|
8
|
+
data() {
|
9
|
+
return {}
|
10
|
+
},
|
11
|
+
methods: {},
|
12
|
+
filters: {},
|
13
|
+
created() {},
|
14
|
+
}
|
15
|
+
</script>
|
16
|
+
|
17
|
+
<style>
|
18
|
+
.MyButton {
|
19
|
+
color: red;
|
20
|
+
}
|
21
|
+
</style>
|
@@ -0,0 +1,23 @@
|
|
1
|
+
import ZsButton from './Button/index.vue'
|
2
|
+
|
3
|
+
|
4
|
+
const components = [
|
5
|
+
ZsButton
|
6
|
+
]
|
7
|
+
// 定义 install 方法,接收 Vue 作为参数。如果使用 use 注册插件,则所有的组件都将被注册
|
8
|
+
const install = function (Vue) {
|
9
|
+
// 遍历注册全局组件
|
10
|
+
components.forEach(component => {
|
11
|
+
Vue.component(component.name, component)
|
12
|
+
})
|
13
|
+
|
14
|
+
// 判断是否是直接引入文件,如果是,就不用调用 Vue.use()
|
15
|
+
if (typeof window !== 'undefined' && window.Vue) {
|
16
|
+
install(window.Vue)
|
17
|
+
}
|
18
|
+
}
|
19
|
+
|
20
|
+
// 导出的对象必须具有 install,才能被 Vue.use() 方法安装
|
21
|
+
export default {
|
22
|
+
install
|
23
|
+
}
|
package/dist/demo.html
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
<!doctype html><meta charset="utf-8"><title>yc-ui2 demo</title><script src="./yc-ui2.umd.js"></script><link rel="stylesheet" href="./yc-ui2.css"><script>console.log(yc-ui2)</script>
|
package/dist/yc-ui2.common.js
DELETED
@@ -1,242 +0,0 @@
|
|
1
|
-
/******/ (function() { // webpackBootstrap
|
2
|
-
/******/ "use strict";
|
3
|
-
/******/ // The require scope
|
4
|
-
/******/ var __webpack_require__ = {};
|
5
|
-
/******/
|
6
|
-
/************************************************************************/
|
7
|
-
/******/ /* webpack/runtime/define property getters */
|
8
|
-
/******/ !function() {
|
9
|
-
/******/ // define getter functions for harmony exports
|
10
|
-
/******/ __webpack_require__.d = function(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
|
-
/******/ !function() {
|
21
|
-
/******/ __webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }
|
22
|
-
/******/ }();
|
23
|
-
/******/
|
24
|
-
/******/ /* webpack/runtime/make namespace object */
|
25
|
-
/******/ !function() {
|
26
|
-
/******/ // define __esModule on exports
|
27
|
-
/******/ __webpack_require__.r = function(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
|
-
/******/ !function() {
|
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
|
-
"default": function() { return /* binding */ entry_lib; }
|
48
|
-
});
|
49
|
-
|
50
|
-
;// CONCATENATED MODULE: ./node_modules/@vue/cli-service/lib/commands/build/setPublicPath.js
|
51
|
-
/* eslint-disable no-var */
|
52
|
-
// This file is imported into lib/wc client bundles.
|
53
|
-
|
54
|
-
if (typeof window !== 'undefined') {
|
55
|
-
var currentScript = window.document.currentScript
|
56
|
-
if (false) { var getCurrentScript; }
|
57
|
-
|
58
|
-
var src = currentScript && currentScript.src.match(/(.+\/)[^/]+\.js(\?.*)?$/)
|
59
|
-
if (src) {
|
60
|
-
__webpack_require__.p = src[1] // eslint-disable-line
|
61
|
-
}
|
62
|
-
}
|
63
|
-
|
64
|
-
// Indicate to webpack that this file can be concatenated
|
65
|
-
/* harmony default export */ var setPublicPath = (null);
|
66
|
-
|
67
|
-
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/Button/index.vue?vue&type=template&id=3170b9bf&
|
68
|
-
var render = function render() {
|
69
|
-
var _vm = this,
|
70
|
-
_c = _vm._self._c;
|
71
|
-
return _c('button', {
|
72
|
-
staticClass: "MyButton"
|
73
|
-
}, [_vm._v("我是一个按钮组件")]);
|
74
|
-
};
|
75
|
-
var staticRenderFns = [];
|
76
|
-
|
77
|
-
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/Button/index.vue?vue&type=script&lang=js&
|
78
|
-
/* harmony default export */ var Buttonvue_type_script_lang_js_ = ({
|
79
|
-
name: "MyButton",
|
80
|
-
data() {
|
81
|
-
return {};
|
82
|
-
},
|
83
|
-
methods: {},
|
84
|
-
filters: {},
|
85
|
-
created() {}
|
86
|
-
});
|
87
|
-
;// CONCATENATED MODULE: ./src/components/Button/index.vue?vue&type=script&lang=js&
|
88
|
-
/* harmony default export */ var components_Buttonvue_type_script_lang_js_ = (Buttonvue_type_script_lang_js_);
|
89
|
-
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-12.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-12.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-12.use[2]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/Button/index.vue?vue&type=style&index=0&id=3170b9bf&prod&lang=css&
|
90
|
-
// extracted by mini-css-extract-plugin
|
91
|
-
|
92
|
-
;// CONCATENATED MODULE: ./src/components/Button/index.vue?vue&type=style&index=0&id=3170b9bf&prod&lang=css&
|
93
|
-
|
94
|
-
;// CONCATENATED MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
|
95
|
-
/* globals __VUE_SSR_CONTEXT__ */
|
96
|
-
|
97
|
-
// IMPORTANT: Do NOT use ES2015 features in this file (except for modules).
|
98
|
-
// This module is a runtime utility for cleaner component module output and will
|
99
|
-
// be included in the final webpack user bundle.
|
100
|
-
|
101
|
-
function normalizeComponent(
|
102
|
-
scriptExports,
|
103
|
-
render,
|
104
|
-
staticRenderFns,
|
105
|
-
functionalTemplate,
|
106
|
-
injectStyles,
|
107
|
-
scopeId,
|
108
|
-
moduleIdentifier /* server only */,
|
109
|
-
shadowMode /* vue-cli only */
|
110
|
-
) {
|
111
|
-
// Vue.extend constructor export interop
|
112
|
-
var options =
|
113
|
-
typeof scriptExports === 'function' ? scriptExports.options : scriptExports
|
114
|
-
|
115
|
-
// render functions
|
116
|
-
if (render) {
|
117
|
-
options.render = render
|
118
|
-
options.staticRenderFns = staticRenderFns
|
119
|
-
options._compiled = true
|
120
|
-
}
|
121
|
-
|
122
|
-
// functional template
|
123
|
-
if (functionalTemplate) {
|
124
|
-
options.functional = true
|
125
|
-
}
|
126
|
-
|
127
|
-
// scopedId
|
128
|
-
if (scopeId) {
|
129
|
-
options._scopeId = 'data-v-' + scopeId
|
130
|
-
}
|
131
|
-
|
132
|
-
var hook
|
133
|
-
if (moduleIdentifier) {
|
134
|
-
// server build
|
135
|
-
hook = function (context) {
|
136
|
-
// 2.3 injection
|
137
|
-
context =
|
138
|
-
context || // cached call
|
139
|
-
(this.$vnode && this.$vnode.ssrContext) || // stateful
|
140
|
-
(this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional
|
141
|
-
// 2.2 with runInNewContext: true
|
142
|
-
if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
|
143
|
-
context = __VUE_SSR_CONTEXT__
|
144
|
-
}
|
145
|
-
// inject component styles
|
146
|
-
if (injectStyles) {
|
147
|
-
injectStyles.call(this, context)
|
148
|
-
}
|
149
|
-
// register component module identifier for async chunk inferrence
|
150
|
-
if (context && context._registeredComponents) {
|
151
|
-
context._registeredComponents.add(moduleIdentifier)
|
152
|
-
}
|
153
|
-
}
|
154
|
-
// used by ssr in case component is cached and beforeCreate
|
155
|
-
// never gets called
|
156
|
-
options._ssrRegister = hook
|
157
|
-
} else if (injectStyles) {
|
158
|
-
hook = shadowMode
|
159
|
-
? function () {
|
160
|
-
injectStyles.call(
|
161
|
-
this,
|
162
|
-
(options.functional ? this.parent : this).$root.$options.shadowRoot
|
163
|
-
)
|
164
|
-
}
|
165
|
-
: injectStyles
|
166
|
-
}
|
167
|
-
|
168
|
-
if (hook) {
|
169
|
-
if (options.functional) {
|
170
|
-
// for template-only hot-reload because in that case the render fn doesn't
|
171
|
-
// go through the normalizer
|
172
|
-
options._injectStyles = hook
|
173
|
-
// register for functional component in vue file
|
174
|
-
var originalRender = options.render
|
175
|
-
options.render = function renderWithStyleInjection(h, context) {
|
176
|
-
hook.call(context)
|
177
|
-
return originalRender(h, context)
|
178
|
-
}
|
179
|
-
} else {
|
180
|
-
// inject component registration as beforeCreate hook
|
181
|
-
var existing = options.beforeCreate
|
182
|
-
options.beforeCreate = existing ? [].concat(existing, hook) : [hook]
|
183
|
-
}
|
184
|
-
}
|
185
|
-
|
186
|
-
return {
|
187
|
-
exports: scriptExports,
|
188
|
-
options: options
|
189
|
-
}
|
190
|
-
}
|
191
|
-
|
192
|
-
;// CONCATENATED MODULE: ./src/components/Button/index.vue
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
;
|
197
|
-
|
198
|
-
|
199
|
-
/* normalize component */
|
200
|
-
|
201
|
-
var component = normalizeComponent(
|
202
|
-
components_Buttonvue_type_script_lang_js_,
|
203
|
-
render,
|
204
|
-
staticRenderFns,
|
205
|
-
false,
|
206
|
-
null,
|
207
|
-
null,
|
208
|
-
null
|
209
|
-
|
210
|
-
)
|
211
|
-
|
212
|
-
/* harmony default export */ var Button = (component.exports);
|
213
|
-
;// CONCATENATED MODULE: ./src/packages/index.js
|
214
|
-
|
215
|
-
const components = [Button];
|
216
|
-
// 定义 install 方法,接收 Vue 作为参数。如果使用 use 注册插件,则所有的组件都将被注册
|
217
|
-
const install = function (Vue) {
|
218
|
-
// 遍历注册全局组件
|
219
|
-
components.forEach(component => {
|
220
|
-
Vue.component(component.name, component);
|
221
|
-
});
|
222
|
-
|
223
|
-
// 判断是否是直接引入文件,如果是,就不用调用 Vue.use()
|
224
|
-
if (typeof window !== 'undefined' && window.Vue) {
|
225
|
-
install(window.Vue);
|
226
|
-
}
|
227
|
-
};
|
228
|
-
|
229
|
-
// 导出的对象必须具有 install,才能被 Vue.use() 方法安装
|
230
|
-
/* harmony default export */ var src_packages = ({
|
231
|
-
install
|
232
|
-
});
|
233
|
-
;// CONCATENATED MODULE: ./node_modules/@vue/cli-service/lib/commands/build/entry-lib.js
|
234
|
-
|
235
|
-
|
236
|
-
/* harmony default export */ var entry_lib = (src_packages);
|
237
|
-
|
238
|
-
|
239
|
-
module.exports = __webpack_exports__;
|
240
|
-
/******/ })()
|
241
|
-
;
|
242
|
-
//# sourceMappingURL=yc-ui2.common.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"yc-ui2.common.js","mappings":";;UAAA;UACA;;;;;WCDA;WACA;WACA;WACA;WACA,yCAAyC,wCAAwC;WACjF;WACA;WACA;;;;;WCPA,8CAA8C;;;;;WCA9C;WACA;WACA;WACA,uDAAuD,iBAAiB;WACxE;WACA,gDAAgD,aAAa;WAC7D;;;;;WCNA;;;;;;;;;;;;;;ACAA;AACA;;AAEA;AACA;AACA,MAAM,KAAuC,EAAE,yBAQ5C;;AAEH;AACA;AACA,IAAI,qBAAuB;AAC3B;AACA;;AAEA;AACA,kDAAe,IAAI;;;ACtBnB,IAAIA,MAAM,GAAG,SAASA,MAAMA,CAAA,EAAE;EAAC,IAAIC,GAAG,GAAC,IAAI;IAACC,EAAE,GAACD,GAAG,CAACE,KAAK,CAACD,EAAE;EAAC,OAAOA,EAAE,CAAC,QAAQ,EAAC;IAACE,WAAW,EAAC;EAAU,CAAC,EAAC,CAACH,GAAG,CAACI,EAAE,CAAC,UAAU,CAAC,CAAC,CAAC;AAC7H,CAAC;AACD,IAAIC,eAAe,GAAG,EAAE;;;ACGxB,mEAAe;EACfC,IAAA;EACAC,KAAA;IACA;EACA;EACAC,OAAA;EACAC,OAAA;EACAC,QAAA;AACA,CAAC;;ACb4P,CAAC,8EAAe,8BAAG,EAAC;;ACAjR;;;;;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/FoF;AAC3B;AACL;AACpD,CAAkF;;;AAGlF;AACsG;AACtG,gBAAgB,kBAAU;AAC1B,EAAE,yCAAM;AACR,EAAE,MAAM;AACR,EAAE,eAAe;AACjB;AACA;AACA;AACA;AACA;AACA;;AAEA,2CAAe;;ACnBsC;AAGrD,MAAME,UAAU,GAAG,CACjBD,MAAQ,CACT;AACD;AACA,MAAME,OAAO,GAAG,SAAAA,CAAUC,GAAG,EAAE;EAC5B;EACDF,UAAU,CAACG,OAAO,CAACC,SAAS,IAAI;IAC9BF,GAAG,CAACE,SAAS,CAACA,SAAS,CAACV,IAAI,EAAEU,SAAS,CAAC;EAC1C,CAAC,CAAC;;EAEF;EACA,IAAI,OAAOC,MAAM,KAAK,WAAW,IAAIA,MAAM,CAACH,GAAG,EAAE;IAC/CD,OAAO,CAACI,MAAM,CAACH,GAAG,CAAC;EACrB;AACF,CAAC;;AAED;AACA,iDAAe;EACbD;AACF,CAAC;;ACtBuB;AACA;AACxB,8CAAe,YAAG;AACI","sources":["webpack://yc-ui2/webpack/bootstrap","webpack://yc-ui2/webpack/runtime/define property getters","webpack://yc-ui2/webpack/runtime/hasOwnProperty shorthand","webpack://yc-ui2/webpack/runtime/make namespace object","webpack://yc-ui2/webpack/runtime/publicPath","webpack://yc-ui2/./node_modules/@vue/cli-service/lib/commands/build/setPublicPath.js","webpack://yc-ui2/./src/components/Button/index.vue","webpack://yc-ui2/src/components/Button/index.vue","webpack://yc-ui2/./src/components/Button/index.vue?ab4f","webpack://yc-ui2/./src/components/Button/index.vue?4b05","webpack://yc-ui2/./src/components/Button/index.vue?43f5","webpack://yc-ui2/./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js","webpack://yc-ui2/./src/components/Button/index.vue?9a7c","webpack://yc-ui2/./src/packages/index.js","webpack://yc-ui2/./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 = function(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 = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }","// define __esModule on exports\n__webpack_require__.r = function(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:\"MyButton\"},[_vm._v(\"我是一个按钮组件\")])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\r\n <button class=\"MyButton\">我是一个按钮组件</button>\r\n</template>\r\n\r\n<script>\r\nexport default {\r\n name: \"MyButton\",\r\n data() {\r\n return {}\r\n },\r\n methods: {},\r\n filters: {},\r\n created() {},\r\n}\r\n</script>\r\n\r\n<style>\r\n.MyButton {\r\n color: red;\r\n}\r\n</style>\r\n","import mod from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./index.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./index.vue?vue&type=script&lang=js&\"","// extracted by mini-css-extract-plugin\nexport {};","export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-12.use[0]!../../../node_modules/css-loader/dist/cjs.js??clonedRuleSet-12.use[1]!../../../node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-12.use[2]!../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./index.vue?vue&type=style&index=0&id=3170b9bf&prod&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 \"./index.vue?vue&type=template&id=3170b9bf&\"\nimport script from \"./index.vue?vue&type=script&lang=js&\"\nexport * from \"./index.vue?vue&type=script&lang=js&\"\nimport style0 from \"./index.vue?vue&type=style&index=0&id=3170b9bf&prod&lang=css&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","import ZsButton from '../components/Button/index.vue'\r\n\r\n\r\nconst components = [\r\n ZsButton\r\n]\r\n// 定义 install 方法,接收 Vue 作为参数。如果使用 use 注册插件,则所有的组件都将被注册\r\nconst install = function (Vue) {\r\n // 遍历注册全局组件\r\n components.forEach(component => {\r\n Vue.component(component.name, component)\r\n })\r\n\r\n // 判断是否是直接引入文件,如果是,就不用调用 Vue.use()\r\n if (typeof window !== 'undefined' && window.Vue) {\r\n install(window.Vue)\r\n }\r\n}\r\n\r\n// 导出的对象必须具有 install,才能被 Vue.use() 方法安装\r\nexport default {\r\n install\r\n}\r\n","import './setPublicPath'\nimport mod from '~entry'\nexport default mod\nexport * from '~entry'\n"],"names":["render","_vm","_c","_self","staticClass","_v","staticRenderFns","name","data","methods","filters","created","ZsButton","components","install","Vue","forEach","component","window"],"sourceRoot":""}
|
package/dist/yc-ui2.umd.js
DELETED
@@ -1,253 +0,0 @@
|
|
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["yc-ui2"] = factory();
|
8
|
-
else
|
9
|
-
root["yc-ui2"] = factory();
|
10
|
-
})((typeof self !== 'undefined' ? self : this), function() {
|
11
|
-
return /******/ (function() { // webpackBootstrap
|
12
|
-
/******/ "use strict";
|
13
|
-
/******/ // The require scope
|
14
|
-
/******/ var __webpack_require__ = {};
|
15
|
-
/******/
|
16
|
-
/************************************************************************/
|
17
|
-
/******/ /* webpack/runtime/define property getters */
|
18
|
-
/******/ !function() {
|
19
|
-
/******/ // define getter functions for harmony exports
|
20
|
-
/******/ __webpack_require__.d = function(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
|
-
/******/ !function() {
|
31
|
-
/******/ __webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }
|
32
|
-
/******/ }();
|
33
|
-
/******/
|
34
|
-
/******/ /* webpack/runtime/make namespace object */
|
35
|
-
/******/ !function() {
|
36
|
-
/******/ // define __esModule on exports
|
37
|
-
/******/ __webpack_require__.r = function(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
|
-
/******/ !function() {
|
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
|
-
"default": function() { return /* binding */ entry_lib; }
|
58
|
-
});
|
59
|
-
|
60
|
-
;// CONCATENATED MODULE: ./node_modules/@vue/cli-service/lib/commands/build/setPublicPath.js
|
61
|
-
/* eslint-disable no-var */
|
62
|
-
// This file is imported into lib/wc client bundles.
|
63
|
-
|
64
|
-
if (typeof window !== 'undefined') {
|
65
|
-
var currentScript = window.document.currentScript
|
66
|
-
if (false) { var getCurrentScript; }
|
67
|
-
|
68
|
-
var src = currentScript && currentScript.src.match(/(.+\/)[^/]+\.js(\?.*)?$/)
|
69
|
-
if (src) {
|
70
|
-
__webpack_require__.p = src[1] // eslint-disable-line
|
71
|
-
}
|
72
|
-
}
|
73
|
-
|
74
|
-
// Indicate to webpack that this file can be concatenated
|
75
|
-
/* harmony default export */ var setPublicPath = (null);
|
76
|
-
|
77
|
-
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/Button/index.vue?vue&type=template&id=3170b9bf&
|
78
|
-
var render = function render() {
|
79
|
-
var _vm = this,
|
80
|
-
_c = _vm._self._c;
|
81
|
-
return _c('button', {
|
82
|
-
staticClass: "MyButton"
|
83
|
-
}, [_vm._v("我是一个按钮组件")]);
|
84
|
-
};
|
85
|
-
var staticRenderFns = [];
|
86
|
-
|
87
|
-
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/Button/index.vue?vue&type=script&lang=js&
|
88
|
-
/* harmony default export */ var Buttonvue_type_script_lang_js_ = ({
|
89
|
-
name: "MyButton",
|
90
|
-
data() {
|
91
|
-
return {};
|
92
|
-
},
|
93
|
-
methods: {},
|
94
|
-
filters: {},
|
95
|
-
created() {}
|
96
|
-
});
|
97
|
-
;// CONCATENATED MODULE: ./src/components/Button/index.vue?vue&type=script&lang=js&
|
98
|
-
/* harmony default export */ var components_Buttonvue_type_script_lang_js_ = (Buttonvue_type_script_lang_js_);
|
99
|
-
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-54.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-54.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-54.use[2]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/Button/index.vue?vue&type=style&index=0&id=3170b9bf&prod&lang=css&
|
100
|
-
// extracted by mini-css-extract-plugin
|
101
|
-
|
102
|
-
;// CONCATENATED MODULE: ./src/components/Button/index.vue?vue&type=style&index=0&id=3170b9bf&prod&lang=css&
|
103
|
-
|
104
|
-
;// CONCATENATED MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
|
105
|
-
/* globals __VUE_SSR_CONTEXT__ */
|
106
|
-
|
107
|
-
// IMPORTANT: Do NOT use ES2015 features in this file (except for modules).
|
108
|
-
// This module is a runtime utility for cleaner component module output and will
|
109
|
-
// be included in the final webpack user bundle.
|
110
|
-
|
111
|
-
function normalizeComponent(
|
112
|
-
scriptExports,
|
113
|
-
render,
|
114
|
-
staticRenderFns,
|
115
|
-
functionalTemplate,
|
116
|
-
injectStyles,
|
117
|
-
scopeId,
|
118
|
-
moduleIdentifier /* server only */,
|
119
|
-
shadowMode /* vue-cli only */
|
120
|
-
) {
|
121
|
-
// Vue.extend constructor export interop
|
122
|
-
var options =
|
123
|
-
typeof scriptExports === 'function' ? scriptExports.options : scriptExports
|
124
|
-
|
125
|
-
// render functions
|
126
|
-
if (render) {
|
127
|
-
options.render = render
|
128
|
-
options.staticRenderFns = staticRenderFns
|
129
|
-
options._compiled = true
|
130
|
-
}
|
131
|
-
|
132
|
-
// functional template
|
133
|
-
if (functionalTemplate) {
|
134
|
-
options.functional = true
|
135
|
-
}
|
136
|
-
|
137
|
-
// scopedId
|
138
|
-
if (scopeId) {
|
139
|
-
options._scopeId = 'data-v-' + scopeId
|
140
|
-
}
|
141
|
-
|
142
|
-
var hook
|
143
|
-
if (moduleIdentifier) {
|
144
|
-
// server build
|
145
|
-
hook = function (context) {
|
146
|
-
// 2.3 injection
|
147
|
-
context =
|
148
|
-
context || // cached call
|
149
|
-
(this.$vnode && this.$vnode.ssrContext) || // stateful
|
150
|
-
(this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional
|
151
|
-
// 2.2 with runInNewContext: true
|
152
|
-
if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
|
153
|
-
context = __VUE_SSR_CONTEXT__
|
154
|
-
}
|
155
|
-
// inject component styles
|
156
|
-
if (injectStyles) {
|
157
|
-
injectStyles.call(this, context)
|
158
|
-
}
|
159
|
-
// register component module identifier for async chunk inferrence
|
160
|
-
if (context && context._registeredComponents) {
|
161
|
-
context._registeredComponents.add(moduleIdentifier)
|
162
|
-
}
|
163
|
-
}
|
164
|
-
// used by ssr in case component is cached and beforeCreate
|
165
|
-
// never gets called
|
166
|
-
options._ssrRegister = hook
|
167
|
-
} else if (injectStyles) {
|
168
|
-
hook = shadowMode
|
169
|
-
? function () {
|
170
|
-
injectStyles.call(
|
171
|
-
this,
|
172
|
-
(options.functional ? this.parent : this).$root.$options.shadowRoot
|
173
|
-
)
|
174
|
-
}
|
175
|
-
: injectStyles
|
176
|
-
}
|
177
|
-
|
178
|
-
if (hook) {
|
179
|
-
if (options.functional) {
|
180
|
-
// for template-only hot-reload because in that case the render fn doesn't
|
181
|
-
// go through the normalizer
|
182
|
-
options._injectStyles = hook
|
183
|
-
// register for functional component in vue file
|
184
|
-
var originalRender = options.render
|
185
|
-
options.render = function renderWithStyleInjection(h, context) {
|
186
|
-
hook.call(context)
|
187
|
-
return originalRender(h, context)
|
188
|
-
}
|
189
|
-
} else {
|
190
|
-
// inject component registration as beforeCreate hook
|
191
|
-
var existing = options.beforeCreate
|
192
|
-
options.beforeCreate = existing ? [].concat(existing, hook) : [hook]
|
193
|
-
}
|
194
|
-
}
|
195
|
-
|
196
|
-
return {
|
197
|
-
exports: scriptExports,
|
198
|
-
options: options
|
199
|
-
}
|
200
|
-
}
|
201
|
-
|
202
|
-
;// CONCATENATED MODULE: ./src/components/Button/index.vue
|
203
|
-
|
204
|
-
|
205
|
-
|
206
|
-
;
|
207
|
-
|
208
|
-
|
209
|
-
/* normalize component */
|
210
|
-
|
211
|
-
var component = normalizeComponent(
|
212
|
-
components_Buttonvue_type_script_lang_js_,
|
213
|
-
render,
|
214
|
-
staticRenderFns,
|
215
|
-
false,
|
216
|
-
null,
|
217
|
-
null,
|
218
|
-
null
|
219
|
-
|
220
|
-
)
|
221
|
-
|
222
|
-
/* harmony default export */ var Button = (component.exports);
|
223
|
-
;// CONCATENATED MODULE: ./src/packages/index.js
|
224
|
-
|
225
|
-
const components = [Button];
|
226
|
-
// 定义 install 方法,接收 Vue 作为参数。如果使用 use 注册插件,则所有的组件都将被注册
|
227
|
-
const install = function (Vue) {
|
228
|
-
// 遍历注册全局组件
|
229
|
-
components.forEach(component => {
|
230
|
-
Vue.component(component.name, component);
|
231
|
-
});
|
232
|
-
|
233
|
-
// 判断是否是直接引入文件,如果是,就不用调用 Vue.use()
|
234
|
-
if (typeof window !== 'undefined' && window.Vue) {
|
235
|
-
install(window.Vue);
|
236
|
-
}
|
237
|
-
};
|
238
|
-
|
239
|
-
// 导出的对象必须具有 install,才能被 Vue.use() 方法安装
|
240
|
-
/* harmony default export */ var src_packages = ({
|
241
|
-
install
|
242
|
-
});
|
243
|
-
;// CONCATENATED MODULE: ./node_modules/@vue/cli-service/lib/commands/build/entry-lib.js
|
244
|
-
|
245
|
-
|
246
|
-
/* harmony default export */ var entry_lib = (src_packages);
|
247
|
-
|
248
|
-
|
249
|
-
/******/ return __webpack_exports__;
|
250
|
-
/******/ })()
|
251
|
-
;
|
252
|
-
});
|
253
|
-
//# sourceMappingURL=yc-ui2.umd.js.map
|
package/dist/yc-ui2.umd.js.map
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"yc-ui2.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;;;;;WCPA,8CAA8C;;;;;WCA9C;WACA;WACA;WACA,uDAAuD,iBAAiB;WACxE;WACA,gDAAgD,aAAa;WAC7D;;;;;WCNA;;;;;;;;;;;;;;ACAA;AACA;;AAEA;AACA;AACA,MAAM,KAAuC,EAAE,yBAQ5C;;AAEH;AACA;AACA,IAAI,qBAAuB;AAC3B;AACA;;AAEA;AACA,kDAAe,IAAI;;;ACtBnB,IAAIA,MAAM,GAAG,SAASA,MAAMA,CAAA,EAAE;EAAC,IAAIC,GAAG,GAAC,IAAI;IAACC,EAAE,GAACD,GAAG,CAACE,KAAK,CAACD,EAAE;EAAC,OAAOA,EAAE,CAAC,QAAQ,EAAC;IAACE,WAAW,EAAC;EAAU,CAAC,EAAC,CAACH,GAAG,CAACI,EAAE,CAAC,UAAU,CAAC,CAAC,CAAC;AAC7H,CAAC;AACD,IAAIC,eAAe,GAAG,EAAE;;;ACGxB,mEAAe;EACfC,IAAA;EACAC,KAAA;IACA;EACA;EACAC,OAAA;EACAC,OAAA;EACAC,QAAA;AACA,CAAC;;ACb4P,CAAC,8EAAe,8BAAG,EAAC;;ACAjR;;;;;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/FoF;AAC3B;AACL;AACpD,CAAkF;;;AAGlF;AACsG;AACtG,gBAAgB,kBAAU;AAC1B,EAAE,yCAAM;AACR,EAAE,MAAM;AACR,EAAE,eAAe;AACjB;AACA;AACA;AACA;AACA;AACA;;AAEA,2CAAe;;ACnBsC;AAGrD,MAAME,UAAU,GAAG,CACjBD,MAAQ,CACT;AACD;AACA,MAAME,OAAO,GAAG,SAAAA,CAAUC,GAAG,EAAE;EAC5B;EACDF,UAAU,CAACG,OAAO,CAACC,SAAS,IAAI;IAC9BF,GAAG,CAACE,SAAS,CAACA,SAAS,CAACV,IAAI,EAAEU,SAAS,CAAC;EAC1C,CAAC,CAAC;;EAEF;EACA,IAAI,OAAOC,MAAM,KAAK,WAAW,IAAIA,MAAM,CAACH,GAAG,EAAE;IAC/CD,OAAO,CAACI,MAAM,CAACH,GAAG,CAAC;EACrB;AACF,CAAC;;AAED;AACA,iDAAe;EACbD;AACF,CAAC;;ACtBuB;AACA;AACxB,8CAAe,YAAG;AACI","sources":["webpack://yc-ui2/webpack/universalModuleDefinition","webpack://yc-ui2/webpack/bootstrap","webpack://yc-ui2/webpack/runtime/define property getters","webpack://yc-ui2/webpack/runtime/hasOwnProperty shorthand","webpack://yc-ui2/webpack/runtime/make namespace object","webpack://yc-ui2/webpack/runtime/publicPath","webpack://yc-ui2/./node_modules/@vue/cli-service/lib/commands/build/setPublicPath.js","webpack://yc-ui2/./src/components/Button/index.vue","webpack://yc-ui2/src/components/Button/index.vue","webpack://yc-ui2/./src/components/Button/index.vue?f24f","webpack://yc-ui2/./src/components/Button/index.vue?4a8b","webpack://yc-ui2/./src/components/Button/index.vue?edf5","webpack://yc-ui2/./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js","webpack://yc-ui2/./src/components/Button/index.vue?9a7c","webpack://yc-ui2/./src/packages/index.js","webpack://yc-ui2/./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[\"yc-ui2\"] = factory();\n\telse\n\t\troot[\"yc-ui2\"] = factory();\n})((typeof self !== 'undefined' ? self : this), function() {\nreturn ","// The require scope\nvar __webpack_require__ = {};\n\n","// define getter functions for harmony exports\n__webpack_require__.d = function(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 = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }","// define __esModule on exports\n__webpack_require__.r = function(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:\"MyButton\"},[_vm._v(\"我是一个按钮组件\")])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\r\n <button class=\"MyButton\">我是一个按钮组件</button>\r\n</template>\r\n\r\n<script>\r\nexport default {\r\n name: \"MyButton\",\r\n data() {\r\n return {}\r\n },\r\n methods: {},\r\n filters: {},\r\n created() {},\r\n}\r\n</script>\r\n\r\n<style>\r\n.MyButton {\r\n color: red;\r\n}\r\n</style>\r\n","import mod from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./index.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./index.vue?vue&type=script&lang=js&\"","// extracted by mini-css-extract-plugin\nexport {};","export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-54.use[0]!../../../node_modules/css-loader/dist/cjs.js??clonedRuleSet-54.use[1]!../../../node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-54.use[2]!../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./index.vue?vue&type=style&index=0&id=3170b9bf&prod&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 \"./index.vue?vue&type=template&id=3170b9bf&\"\nimport script from \"./index.vue?vue&type=script&lang=js&\"\nexport * from \"./index.vue?vue&type=script&lang=js&\"\nimport style0 from \"./index.vue?vue&type=style&index=0&id=3170b9bf&prod&lang=css&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","import ZsButton from '../components/Button/index.vue'\r\n\r\n\r\nconst components = [\r\n ZsButton\r\n]\r\n// 定义 install 方法,接收 Vue 作为参数。如果使用 use 注册插件,则所有的组件都将被注册\r\nconst install = function (Vue) {\r\n // 遍历注册全局组件\r\n components.forEach(component => {\r\n Vue.component(component.name, component)\r\n })\r\n\r\n // 判断是否是直接引入文件,如果是,就不用调用 Vue.use()\r\n if (typeof window !== 'undefined' && window.Vue) {\r\n install(window.Vue)\r\n }\r\n}\r\n\r\n// 导出的对象必须具有 install,才能被 Vue.use() 方法安装\r\nexport default {\r\n install\r\n}\r\n","import './setPublicPath'\nimport mod from '~entry'\nexport default mod\nexport * from '~entry'\n"],"names":["render","_vm","_c","_self","staticClass","_v","staticRenderFns","name","data","methods","filters","created","ZsButton","components","install","Vue","forEach","component","window"],"sourceRoot":""}
|
package/dist/yc-ui2.umd.min.js
DELETED
@@ -1,2 +0,0 @@
|
|
1
|
-
(function(e,t){"object"===typeof exports&&"object"===typeof module?module.exports=t():"function"===typeof define&&define.amd?define([],t):"object"===typeof exports?exports["yc-ui2"]=t():e["yc-ui2"]=t()})("undefined"!==typeof self?self:this,(function(){return function(){"use strict";var e={};!function(){e.d=function(t,n){for(var o in n)e.o(n,o)&&!e.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:n[o]})}}(),function(){e.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}}(),function(){e.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}}(),function(){e.p=""}();var t={};if(e.r(t),e.d(t,{default:function(){return y}}),"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:"MyButton"},[e._v("我是一个按钮组件")])},i=[],u={name:"MyButton",data(){return{}},methods:{},filters:{},created(){}},f=u;function c(e,t,n,o,r,i,u,f){var c,s="function"===typeof e?e.options:e;if(t&&(s.render=t,s.staticRenderFns=n,s._compiled=!0),o&&(s.functional=!0),i&&(s._scopeId="data-v-"+i),u?(c=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(u)},s._ssrRegister=c):r&&(c=f?function(){r.call(this,(s.functional?this.parent:this).$root.$options.shadowRoot)}:r),c)if(s.functional){s._injectStyles=c;var d=s.render;s.render=function(e,t){return c.call(t),d(e,t)}}else{var a=s.beforeCreate;s.beforeCreate=a?[].concat(a,c):[c]}return{exports:e,options:s}}var s=c(f,r,i,!1,null,null,null),d=s.exports;const a=[d],l=function(e){a.forEach((t=>{e.component(t.name,t)})),"undefined"!==typeof window&&window.Vue&&l(window.Vue)};var p={install:l},y=p;return t}()}));
|
2
|
-
//# sourceMappingURL=yc-ui2.umd.min.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"yc-ui2.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,UAAYD,IAEpBD,EAAK,UAAYC,GAClB,EATD,CASoB,qBAATK,KAAuBA,KAAOC,MAAO,WAChD,O,wBCTA,IAAIC,EAAsB,CAAC,G,WCA3BA,EAAoBC,EAAI,SAASP,EAASQ,GACzC,IAAI,IAAIC,KAAOD,EACXF,EAAoBI,EAAEF,EAAYC,KAASH,EAAoBI,EAAEV,EAASS,IAC5EE,OAAOC,eAAeZ,EAASS,EAAK,CAAEI,YAAY,EAAMC,IAAKN,EAAWC,IAG3E,C,eCPAH,EAAoBI,EAAI,SAASK,EAAKC,GAAQ,OAAOL,OAAOM,UAAUC,eAAeC,KAAKJ,EAAKC,EAAO,C,eCCtGV,EAAoBc,EAAI,SAASpB,GACX,qBAAXqB,QAA0BA,OAAOC,aAC1CX,OAAOC,eAAeZ,EAASqB,OAAOC,YAAa,CAAEC,MAAO,WAE7DZ,OAAOC,eAAeZ,EAAS,aAAc,CAAEuB,OAAO,GACvD,C,eCNAjB,EAAoBkB,EAAI,E,aCGxB,G,6CAAsB,qBAAXC,OAAwB,CACjC,IAAIC,EAAgBD,OAAOE,SAASD,cAWhCE,EAAMF,GAAiBA,EAAcE,IAAIC,MAAM,2BAC/CD,IACF,IAA0BA,EAAI,GAElC,CAGA,ICtBIE,EAAS,WAAkB,IAAIC,EAAI1B,KAAK2B,EAAGD,EAAIE,MAAMD,GAAG,OAAOA,EAAG,SAAS,CAACE,YAAY,YAAY,CAACH,EAAII,GAAG,aAChH,EACIC,EAAkB,GCGtB,GACAC,KAAA,WACAC,IAAAA,GACA,QACA,EACAC,QAAA,GACAC,QAAA,GACAC,OAAAA,GAAA,GCZ+P,ICMhP,SAASC,EACtBC,EACAb,EACAM,EACAQ,EACAC,EACAC,EACAC,EACAC,GAGA,IAoBIC,EApBAC,EACuB,oBAAlBP,EAA+BA,EAAcO,QAAUP,EAuDhE,GApDIb,IACFoB,EAAQpB,OAASA,EACjBoB,EAAQd,gBAAkBA,EAC1Bc,EAAQC,WAAY,GAIlBP,IACFM,EAAQE,YAAa,GAInBN,IACFI,EAAQG,SAAW,UAAYP,GAI7BC,GAEFE,EAAO,SAAUK,GAEfA,EACEA,GACCjD,KAAKkD,QAAUlD,KAAKkD,OAAOC,YAC3BnD,KAAKoD,QAAUpD,KAAKoD,OAAOF,QAAUlD,KAAKoD,OAAOF,OAAOC,WAEtDF,GAA0C,qBAAxBI,sBACrBJ,EAAUI,qBAGRb,GACFA,EAAa1B,KAAKd,KAAMiD,GAGtBA,GAAWA,EAAQK,uBACrBL,EAAQK,sBAAsBC,IAAIb,EAEtC,EAGAG,EAAQW,aAAeZ,GACdJ,IACTI,EAAOD,EACH,WACEH,EAAa1B,KACXd,MACC6C,EAAQE,WAAa/C,KAAKoD,OAASpD,MAAMyD,MAAMC,SAASC,WAE7D,EACAnB,GAGFI,EACF,GAAIC,EAAQE,WAAY,CAGtBF,EAAQe,cAAgBhB,EAExB,IAAIiB,EAAiBhB,EAAQpB,OAC7BoB,EAAQpB,OAAS,SAAkCqC,EAAGb,GAEpD,OADAL,EAAK9B,KAAKmC,GACHY,EAAeC,EAAGb,EAC3B,CACF,KAAO,CAEL,IAAIc,EAAWlB,EAAQmB,aACvBnB,EAAQmB,aAAeD,EAAW,GAAGE,OAAOF,EAAUnB,GAAQ,CAACA,EACjE,CAGF,MAAO,CACLjD,QAAS2C,EACTO,QAASA,EAEb,CCvFA,IAAIqB,EAAY,EACd,EACAzC,EACAM,GACA,EACA,KACA,KACA,MAIF,EAAemC,EAAiB,QChBhC,MAAMC,EAAa,CACjBC,GAGIC,EAAU,SAAUC,GAExBH,EAAWI,SAAQL,IACjBI,EAAIJ,UAAUA,EAAUlC,KAAMkC,EAAU,IAIpB,qBAAX9C,QAA0BA,OAAOkD,KAC1CD,EAAQjD,OAAOkD,IAEnB,EAGA,OACED,WCnBF,I","sources":["webpack://yc-ui2/webpack/universalModuleDefinition","webpack://yc-ui2/webpack/bootstrap","webpack://yc-ui2/webpack/runtime/define property getters","webpack://yc-ui2/webpack/runtime/hasOwnProperty shorthand","webpack://yc-ui2/webpack/runtime/make namespace object","webpack://yc-ui2/webpack/runtime/publicPath","webpack://yc-ui2/./node_modules/@vue/cli-service/lib/commands/build/setPublicPath.js","webpack://yc-ui2/./src/components/Button/index.vue","webpack://yc-ui2/src/components/Button/index.vue","webpack://yc-ui2/./src/components/Button/index.vue?f39c","webpack://yc-ui2/./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js","webpack://yc-ui2/./src/components/Button/index.vue?9a7c","webpack://yc-ui2/./src/packages/index.js","webpack://yc-ui2/./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[\"yc-ui2\"] = factory();\n\telse\n\t\troot[\"yc-ui2\"] = factory();\n})((typeof self !== 'undefined' ? self : this), function() {\nreturn ","// The require scope\nvar __webpack_require__ = {};\n\n","// define getter functions for harmony exports\n__webpack_require__.d = function(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 = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }","// define __esModule on exports\n__webpack_require__.r = function(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:\"MyButton\"},[_vm._v(\"我是一个按钮组件\")])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\r\n <button class=\"MyButton\">我是一个按钮组件</button>\r\n</template>\r\n\r\n<script>\r\nexport default {\r\n name: \"MyButton\",\r\n data() {\r\n return {}\r\n },\r\n methods: {},\r\n filters: {},\r\n created() {},\r\n}\r\n</script>\r\n\r\n<style>\r\n.MyButton {\r\n color: red;\r\n}\r\n</style>\r\n","import mod from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-124.use[1]!../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./index.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-124.use[1]!../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./index.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 \"./index.vue?vue&type=template&id=3170b9bf&\"\nimport script from \"./index.vue?vue&type=script&lang=js&\"\nexport * from \"./index.vue?vue&type=script&lang=js&\"\nimport style0 from \"./index.vue?vue&type=style&index=0&id=3170b9bf&prod&lang=css&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","import ZsButton from '../components/Button/index.vue'\r\n\r\n\r\nconst components = [\r\n ZsButton\r\n]\r\n// 定义 install 方法,接收 Vue 作为参数。如果使用 use 注册插件,则所有的组件都将被注册\r\nconst install = function (Vue) {\r\n // 遍历注册全局组件\r\n components.forEach(component => {\r\n Vue.component(component.name, component)\r\n })\r\n\r\n // 判断是否是直接引入文件,如果是,就不用调用 Vue.use()\r\n if (typeof window !== 'undefined' && window.Vue) {\r\n install(window.Vue)\r\n }\r\n}\r\n\r\n// 导出的对象必须具有 install,才能被 Vue.use() 方法安装\r\nexport default {\r\n install\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","_v","staticRenderFns","name","data","methods","filters","created","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","ZsButton","install","Vue","forEach"],"sourceRoot":""}
|
File without changes
|