yc-ui2 0.1.0-beta1 → 0.1.0-beta10

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/demo.html ADDED
@@ -0,0 +1 @@
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>
Binary file
@@ -0,0 +1,282 @@
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/YcSlideVerify/index.vue?vue&type=template&id=73f4cede&
68
+ var render = function render() {
69
+ var _vm = this,
70
+ _c = _vm._self._c;
71
+ return _vm.show ? _c('slide-verify', {
72
+ ref: "slideblock",
73
+ attrs: {
74
+ "l": 42,
75
+ "r": 10,
76
+ "w": 310,
77
+ "h": 155,
78
+ "imgs": _vm.imgs,
79
+ "accuracy": _vm.accuracy,
80
+ "show": _vm.show,
81
+ "slider-text": _vm.sliderText
82
+ },
83
+ on: {
84
+ "success": _vm.onSuccess,
85
+ "fail": _vm.onFail,
86
+ "again": _vm.onAgain,
87
+ "refresh": _vm.onRefresh,
88
+ "fulfilled": _vm.onFulfilled
89
+ }
90
+ }) : _vm._e();
91
+ };
92
+ var staticRenderFns = [];
93
+
94
+ ;// CONCATENATED MODULE: ./src/components/YcSlideVerify/imgs/1.jpg
95
+ var _1_namespaceObject = __webpack_require__.p + "img/1.8e585a4b.jpg";
96
+ ;// 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/YcSlideVerify/index.vue?vue&type=script&lang=js&
97
+
98
+ /* harmony default export */ var YcSlideVerifyvue_type_script_lang_js_ = ({
99
+ name: "YcSlideVerify",
100
+ data() {
101
+ return {
102
+ imgs: [_1_namespaceObject],
103
+ show: true,
104
+ isShow: false,
105
+ accuracy: 5,
106
+ sliderText: "拖动完成上方拼图",
107
+ countDownNum: 120
108
+ };
109
+ },
110
+ computed: {
111
+ // imgs() {
112
+ // const list = []
113
+ // for (let i = 1; i < 9; i++) {
114
+ // list.push(require(`@/assets/slideVerify/${i}.jpg`))
115
+ // }
116
+ // return list
117
+ // },
118
+ },
119
+ methods: {
120
+ onSuccess() {
121
+ this.isShow = false;
122
+ console.log(344444);
123
+ },
124
+ onFail() {},
125
+ onAgain() {},
126
+ onRefresh() {},
127
+ onFulfilled() {},
128
+ handleClose() {
129
+ this.isShow = false;
130
+ }
131
+ }
132
+ });
133
+ ;// CONCATENATED MODULE: ./src/components/YcSlideVerify/index.vue?vue&type=script&lang=js&
134
+ /* harmony default export */ var components_YcSlideVerifyvue_type_script_lang_js_ = (YcSlideVerifyvue_type_script_lang_js_);
135
+ ;// CONCATENATED MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
136
+ /* globals __VUE_SSR_CONTEXT__ */
137
+
138
+ // IMPORTANT: Do NOT use ES2015 features in this file (except for modules).
139
+ // This module is a runtime utility for cleaner component module output and will
140
+ // be included in the final webpack user bundle.
141
+
142
+ function normalizeComponent(
143
+ scriptExports,
144
+ render,
145
+ staticRenderFns,
146
+ functionalTemplate,
147
+ injectStyles,
148
+ scopeId,
149
+ moduleIdentifier /* server only */,
150
+ shadowMode /* vue-cli only */
151
+ ) {
152
+ // Vue.extend constructor export interop
153
+ var options =
154
+ typeof scriptExports === 'function' ? scriptExports.options : scriptExports
155
+
156
+ // render functions
157
+ if (render) {
158
+ options.render = render
159
+ options.staticRenderFns = staticRenderFns
160
+ options._compiled = true
161
+ }
162
+
163
+ // functional template
164
+ if (functionalTemplate) {
165
+ options.functional = true
166
+ }
167
+
168
+ // scopedId
169
+ if (scopeId) {
170
+ options._scopeId = 'data-v-' + scopeId
171
+ }
172
+
173
+ var hook
174
+ if (moduleIdentifier) {
175
+ // server build
176
+ hook = function (context) {
177
+ // 2.3 injection
178
+ context =
179
+ context || // cached call
180
+ (this.$vnode && this.$vnode.ssrContext) || // stateful
181
+ (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional
182
+ // 2.2 with runInNewContext: true
183
+ if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
184
+ context = __VUE_SSR_CONTEXT__
185
+ }
186
+ // inject component styles
187
+ if (injectStyles) {
188
+ injectStyles.call(this, context)
189
+ }
190
+ // register component module identifier for async chunk inferrence
191
+ if (context && context._registeredComponents) {
192
+ context._registeredComponents.add(moduleIdentifier)
193
+ }
194
+ }
195
+ // used by ssr in case component is cached and beforeCreate
196
+ // never gets called
197
+ options._ssrRegister = hook
198
+ } else if (injectStyles) {
199
+ hook = shadowMode
200
+ ? function () {
201
+ injectStyles.call(
202
+ this,
203
+ (options.functional ? this.parent : this).$root.$options.shadowRoot
204
+ )
205
+ }
206
+ : injectStyles
207
+ }
208
+
209
+ if (hook) {
210
+ if (options.functional) {
211
+ // for template-only hot-reload because in that case the render fn doesn't
212
+ // go through the normalizer
213
+ options._injectStyles = hook
214
+ // register for functional component in vue file
215
+ var originalRender = options.render
216
+ options.render = function renderWithStyleInjection(h, context) {
217
+ hook.call(context)
218
+ return originalRender(h, context)
219
+ }
220
+ } else {
221
+ // inject component registration as beforeCreate hook
222
+ var existing = options.beforeCreate
223
+ options.beforeCreate = existing ? [].concat(existing, hook) : [hook]
224
+ }
225
+ }
226
+
227
+ return {
228
+ exports: scriptExports,
229
+ options: options
230
+ }
231
+ }
232
+
233
+ ;// CONCATENATED MODULE: ./src/components/YcSlideVerify/index.vue
234
+
235
+
236
+
237
+
238
+
239
+ /* normalize component */
240
+ ;
241
+ var component = normalizeComponent(
242
+ components_YcSlideVerifyvue_type_script_lang_js_,
243
+ render,
244
+ staticRenderFns,
245
+ false,
246
+ null,
247
+ null,
248
+ null
249
+
250
+ )
251
+
252
+ /* harmony default export */ var YcSlideVerify = (component.exports);
253
+ ;// CONCATENATED MODULE: ./src/packages/index.js
254
+
255
+ const components = [YcSlideVerify];
256
+ // 定义 install 方法,接收 Vue 作为参数。如果使用 use 注册插件,则所有的组件都将被注册
257
+ const install = function (Vue) {
258
+ // 遍历注册全局组件
259
+ components.forEach(component => {
260
+ Vue.component(component.name, component);
261
+ });
262
+
263
+ // 判断是否是直接引入文件,如果是,就不用调用 Vue.use()
264
+ if (typeof window !== 'undefined' && window.Vue) {
265
+ install(window.Vue);
266
+ }
267
+ };
268
+
269
+ // 导出的对象必须具有 install,才能被 Vue.use() 方法安装
270
+ /* harmony default export */ var src_packages = ({
271
+ install
272
+ });
273
+ ;// CONCATENATED MODULE: ./node_modules/@vue/cli-service/lib/commands/build/entry-lib.js
274
+
275
+
276
+ /* harmony default export */ var entry_lib = (src_packages);
277
+
278
+
279
+ module.exports = __webpack_exports__;
280
+ /******/ })()
281
+ ;
282
+ //# sourceMappingURL=yc-ui2.common.js.map
@@ -0,0 +1 @@
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,OAAQD,GAAG,CAACG,IAAI,GAAEF,EAAE,CAAC,cAAc,EAAC;IAACG,GAAG,EAAC,YAAY;IAACC,KAAK,EAAC;MAAC,GAAG,EAAC,EAAE;MAAC,GAAG,EAAC,EAAE;MAAC,GAAG,EAAC,GAAG;MAAC,GAAG,EAAC,GAAG;MAAC,MAAM,EAACL,GAAG,CAACM,IAAI;MAAC,UAAU,EAACN,GAAG,CAACO,QAAQ;MAAC,MAAM,EAACP,GAAG,CAACG,IAAI;MAAC,aAAa,EAACH,GAAG,CAACQ;IAAU,CAAC;IAACC,EAAE,EAAC;MAAC,SAAS,EAACT,GAAG,CAACU,SAAS;MAAC,MAAM,EAACV,GAAG,CAACW,MAAM;MAAC,OAAO,EAACX,GAAG,CAACY,OAAO;MAAC,SAAS,EAACZ,GAAG,CAACa,SAAS;MAAC,WAAW,EAACb,GAAG,CAACc;IAAW;EAAC,CAAC,CAAC,GAACd,GAAG,CAACe,EAAE,CAAC,CAAC;AAC9W,CAAC;AACD,IAAIC,eAAe,GAAG,EAAE;;;;;ACmBxB;AACA,0EAAe;EACfE,IAAA;EACAC,KAAA;IACA;MACAb,IAAA,GAAAW,kBAAA;MACAd,IAAA;MACAiB,MAAA;MACAb,QAAA;MACAC,UAAA;MACAa,YAAA;IACA;EACA;EACAC,QAAA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;EAAA,CACA;EACAC,OAAA;IACAb,UAAA;MACA,KAAAU,MAAA;MACAI,OAAA,CAAAC,GAAA;IACA;IACAd,OAAA;IACAC,QAAA;IACAC,UAAA;IACAC,YAAA;IACAY,YAAA;MACA,KAAAN,MAAA;IACA;EACA;AACA,CAAC;;ACxD4P,CAAC,qFAAe,qCAAG,EAAC;;ACAjR;;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;;;AAGpD;AACA,CAAsG;AACtG,gBAAgB,kBAAU;AAC1B,EAAE,gDAAM;AACR,EAAE,MAAM;AACR,EAAE,eAAe;AACjB;AACA;AACA;AACA;AACA;AACA;;AAEA,kDAAe;;AClByC;AAGxD,MAAMQ,UAAU,GAAG,CACjBD,aAAa,CACd;AACD;AACA,MAAME,OAAO,GAAG,SAAAA,CAAUC,GAAG,EAAE;EAC5B;EACDF,UAAU,CAACG,OAAO,CAACC,SAAS,IAAI;IAC9BF,GAAG,CAACE,SAAS,CAACA,SAAS,CAACd,IAAI,EAAEc,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/YcSlideVerify/index.vue","webpack://yc-ui2/src/components/YcSlideVerify/index.vue","webpack://yc-ui2/./src/components/YcSlideVerify/index.vue?afa6","webpack://yc-ui2/./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js","webpack://yc-ui2/./src/components/YcSlideVerify/index.vue?0582","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 (_vm.show)?_c('slide-verify',{ref:\"slideblock\",attrs:{\"l\":42,\"r\":10,\"w\":310,\"h\":155,\"imgs\":_vm.imgs,\"accuracy\":_vm.accuracy,\"show\":_vm.show,\"slider-text\":_vm.sliderText},on:{\"success\":_vm.onSuccess,\"fail\":_vm.onFail,\"again\":_vm.onAgain,\"refresh\":_vm.onRefresh,\"fulfilled\":_vm.onFulfilled}}):_vm._e()\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\r\n <slide-verify\r\n v-if=\"show\"\r\n ref=\"slideblock\"\r\n :l=\"42\"\r\n :r=\"10\"\r\n :w=\"310\"\r\n :h=\"155\"\r\n :imgs=\"imgs\"\r\n :accuracy=\"accuracy\"\r\n :show=\"show\"\r\n :slider-text=\"sliderText\"\r\n @success=\"onSuccess\"\r\n @fail=\"onFail\"\r\n @again=\"onAgain\"\r\n @refresh=\"onRefresh\"\r\n @fulfilled=\"onFulfilled\"\r\n ></slide-verify>\r\n</template>\r\n\r\n<script>\r\nimport t1 from \"./imgs/1.jpg\"\r\nexport default {\r\n name: \"YcSlideVerify\",\r\n data() {\r\n return {\r\n imgs: [t1],\r\n show: true,\r\n isShow: false,\r\n accuracy: 5,\r\n sliderText: \"拖动完成上方拼图\",\r\n countDownNum: 120,\r\n }\r\n },\r\n computed: {\r\n // imgs() {\r\n // const list = []\r\n // for (let i = 1; i < 9; i++) {\r\n // list.push(require(`@/assets/slideVerify/${i}.jpg`))\r\n // }\r\n // return list\r\n // },\r\n },\r\n methods: {\r\n onSuccess() {\r\n this.isShow = false\r\n console.log(344444)\r\n },\r\n onFail() {},\r\n onAgain() {},\r\n onRefresh() {},\r\n onFulfilled() {},\r\n handleClose() {\r\n this.isShow = false\r\n },\r\n },\r\n}\r\n</script>\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=73f4cede&\"\nimport script from \"./index.vue?vue&type=script&lang=js&\"\nexport * from \"./index.vue?vue&type=script&lang=js&\"\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 YcSlideVerify from 'comp/YcSlideVerify/index.vue'\r\n\r\n\r\nconst components = [\r\n YcSlideVerify\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","show","ref","attrs","imgs","accuracy","sliderText","on","onSuccess","onFail","onAgain","onRefresh","onFulfilled","_e","staticRenderFns","t1","name","data","isShow","countDownNum","computed","methods","console","log","handleClose","YcSlideVerify","components","install","Vue","forEach","component","window"],"sourceRoot":""}
@@ -0,0 +1,293 @@
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/YcSlideVerify/index.vue?vue&type=template&id=73f4cede&
78
+ var render = function render() {
79
+ var _vm = this,
80
+ _c = _vm._self._c;
81
+ return _vm.show ? _c('slide-verify', {
82
+ ref: "slideblock",
83
+ attrs: {
84
+ "l": 42,
85
+ "r": 10,
86
+ "w": 310,
87
+ "h": 155,
88
+ "imgs": _vm.imgs,
89
+ "accuracy": _vm.accuracy,
90
+ "show": _vm.show,
91
+ "slider-text": _vm.sliderText
92
+ },
93
+ on: {
94
+ "success": _vm.onSuccess,
95
+ "fail": _vm.onFail,
96
+ "again": _vm.onAgain,
97
+ "refresh": _vm.onRefresh,
98
+ "fulfilled": _vm.onFulfilled
99
+ }
100
+ }) : _vm._e();
101
+ };
102
+ var staticRenderFns = [];
103
+
104
+ ;// CONCATENATED MODULE: ./src/components/YcSlideVerify/imgs/1.jpg
105
+ var _1_namespaceObject = __webpack_require__.p + "img/1.8e585a4b.jpg";
106
+ ;// 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/YcSlideVerify/index.vue?vue&type=script&lang=js&
107
+
108
+ /* harmony default export */ var YcSlideVerifyvue_type_script_lang_js_ = ({
109
+ name: "YcSlideVerify",
110
+ data() {
111
+ return {
112
+ imgs: [_1_namespaceObject],
113
+ show: true,
114
+ isShow: false,
115
+ accuracy: 5,
116
+ sliderText: "拖动完成上方拼图",
117
+ countDownNum: 120
118
+ };
119
+ },
120
+ computed: {
121
+ // imgs() {
122
+ // const list = []
123
+ // for (let i = 1; i < 9; i++) {
124
+ // list.push(require(`@/assets/slideVerify/${i}.jpg`))
125
+ // }
126
+ // return list
127
+ // },
128
+ },
129
+ methods: {
130
+ onSuccess() {
131
+ this.isShow = false;
132
+ console.log(344444);
133
+ },
134
+ onFail() {},
135
+ onAgain() {},
136
+ onRefresh() {},
137
+ onFulfilled() {},
138
+ handleClose() {
139
+ this.isShow = false;
140
+ }
141
+ }
142
+ });
143
+ ;// CONCATENATED MODULE: ./src/components/YcSlideVerify/index.vue?vue&type=script&lang=js&
144
+ /* harmony default export */ var components_YcSlideVerifyvue_type_script_lang_js_ = (YcSlideVerifyvue_type_script_lang_js_);
145
+ ;// CONCATENATED MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
146
+ /* globals __VUE_SSR_CONTEXT__ */
147
+
148
+ // IMPORTANT: Do NOT use ES2015 features in this file (except for modules).
149
+ // This module is a runtime utility for cleaner component module output and will
150
+ // be included in the final webpack user bundle.
151
+
152
+ function normalizeComponent(
153
+ scriptExports,
154
+ render,
155
+ staticRenderFns,
156
+ functionalTemplate,
157
+ injectStyles,
158
+ scopeId,
159
+ moduleIdentifier /* server only */,
160
+ shadowMode /* vue-cli only */
161
+ ) {
162
+ // Vue.extend constructor export interop
163
+ var options =
164
+ typeof scriptExports === 'function' ? scriptExports.options : scriptExports
165
+
166
+ // render functions
167
+ if (render) {
168
+ options.render = render
169
+ options.staticRenderFns = staticRenderFns
170
+ options._compiled = true
171
+ }
172
+
173
+ // functional template
174
+ if (functionalTemplate) {
175
+ options.functional = true
176
+ }
177
+
178
+ // scopedId
179
+ if (scopeId) {
180
+ options._scopeId = 'data-v-' + scopeId
181
+ }
182
+
183
+ var hook
184
+ if (moduleIdentifier) {
185
+ // server build
186
+ hook = function (context) {
187
+ // 2.3 injection
188
+ context =
189
+ context || // cached call
190
+ (this.$vnode && this.$vnode.ssrContext) || // stateful
191
+ (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional
192
+ // 2.2 with runInNewContext: true
193
+ if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
194
+ context = __VUE_SSR_CONTEXT__
195
+ }
196
+ // inject component styles
197
+ if (injectStyles) {
198
+ injectStyles.call(this, context)
199
+ }
200
+ // register component module identifier for async chunk inferrence
201
+ if (context && context._registeredComponents) {
202
+ context._registeredComponents.add(moduleIdentifier)
203
+ }
204
+ }
205
+ // used by ssr in case component is cached and beforeCreate
206
+ // never gets called
207
+ options._ssrRegister = hook
208
+ } else if (injectStyles) {
209
+ hook = shadowMode
210
+ ? function () {
211
+ injectStyles.call(
212
+ this,
213
+ (options.functional ? this.parent : this).$root.$options.shadowRoot
214
+ )
215
+ }
216
+ : injectStyles
217
+ }
218
+
219
+ if (hook) {
220
+ if (options.functional) {
221
+ // for template-only hot-reload because in that case the render fn doesn't
222
+ // go through the normalizer
223
+ options._injectStyles = hook
224
+ // register for functional component in vue file
225
+ var originalRender = options.render
226
+ options.render = function renderWithStyleInjection(h, context) {
227
+ hook.call(context)
228
+ return originalRender(h, context)
229
+ }
230
+ } else {
231
+ // inject component registration as beforeCreate hook
232
+ var existing = options.beforeCreate
233
+ options.beforeCreate = existing ? [].concat(existing, hook) : [hook]
234
+ }
235
+ }
236
+
237
+ return {
238
+ exports: scriptExports,
239
+ options: options
240
+ }
241
+ }
242
+
243
+ ;// CONCATENATED MODULE: ./src/components/YcSlideVerify/index.vue
244
+
245
+
246
+
247
+
248
+
249
+ /* normalize component */
250
+ ;
251
+ var component = normalizeComponent(
252
+ components_YcSlideVerifyvue_type_script_lang_js_,
253
+ render,
254
+ staticRenderFns,
255
+ false,
256
+ null,
257
+ null,
258
+ null
259
+
260
+ )
261
+
262
+ /* harmony default export */ var YcSlideVerify = (component.exports);
263
+ ;// CONCATENATED MODULE: ./src/packages/index.js
264
+
265
+ const components = [YcSlideVerify];
266
+ // 定义 install 方法,接收 Vue 作为参数。如果使用 use 注册插件,则所有的组件都将被注册
267
+ const install = function (Vue) {
268
+ // 遍历注册全局组件
269
+ components.forEach(component => {
270
+ Vue.component(component.name, component);
271
+ });
272
+
273
+ // 判断是否是直接引入文件,如果是,就不用调用 Vue.use()
274
+ if (typeof window !== 'undefined' && window.Vue) {
275
+ install(window.Vue);
276
+ }
277
+ };
278
+
279
+ // 导出的对象必须具有 install,才能被 Vue.use() 方法安装
280
+ /* harmony default export */ var src_packages = ({
281
+ install
282
+ });
283
+ ;// CONCATENATED MODULE: ./node_modules/@vue/cli-service/lib/commands/build/entry-lib.js
284
+
285
+
286
+ /* harmony default export */ var entry_lib = (src_packages);
287
+
288
+
289
+ /******/ return __webpack_exports__;
290
+ /******/ })()
291
+ ;
292
+ });
293
+ //# sourceMappingURL=yc-ui2.umd.js.map
@@ -0,0 +1 @@
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,OAAQD,GAAG,CAACG,IAAI,GAAEF,EAAE,CAAC,cAAc,EAAC;IAACG,GAAG,EAAC,YAAY;IAACC,KAAK,EAAC;MAAC,GAAG,EAAC,EAAE;MAAC,GAAG,EAAC,EAAE;MAAC,GAAG,EAAC,GAAG;MAAC,GAAG,EAAC,GAAG;MAAC,MAAM,EAACL,GAAG,CAACM,IAAI;MAAC,UAAU,EAACN,GAAG,CAACO,QAAQ;MAAC,MAAM,EAACP,GAAG,CAACG,IAAI;MAAC,aAAa,EAACH,GAAG,CAACQ;IAAU,CAAC;IAACC,EAAE,EAAC;MAAC,SAAS,EAACT,GAAG,CAACU,SAAS;MAAC,MAAM,EAACV,GAAG,CAACW,MAAM;MAAC,OAAO,EAACX,GAAG,CAACY,OAAO;MAAC,SAAS,EAACZ,GAAG,CAACa,SAAS;MAAC,WAAW,EAACb,GAAG,CAACc;IAAW;EAAC,CAAC,CAAC,GAACd,GAAG,CAACe,EAAE,CAAC,CAAC;AAC9W,CAAC;AACD,IAAIC,eAAe,GAAG,EAAE;;;;;ACmBxB;AACA,0EAAe;EACfE,IAAA;EACAC,KAAA;IACA;MACAb,IAAA,GAAAW,kBAAA;MACAd,IAAA;MACAiB,MAAA;MACAb,QAAA;MACAC,UAAA;MACAa,YAAA;IACA;EACA;EACAC,QAAA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;EAAA,CACA;EACAC,OAAA;IACAb,UAAA;MACA,KAAAU,MAAA;MACAI,OAAA,CAAAC,GAAA;IACA;IACAd,OAAA;IACAC,QAAA;IACAC,UAAA;IACAC,YAAA;IACAY,YAAA;MACA,KAAAN,MAAA;IACA;EACA;AACA,CAAC;;ACxD4P,CAAC,qFAAe,qCAAG,EAAC;;ACAjR;;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;;;AAGpD;AACA,CAAsG;AACtG,gBAAgB,kBAAU;AAC1B,EAAE,gDAAM;AACR,EAAE,MAAM;AACR,EAAE,eAAe;AACjB;AACA;AACA;AACA;AACA;AACA;;AAEA,kDAAe;;AClByC;AAGxD,MAAMQ,UAAU,GAAG,CACjBD,aAAa,CACd;AACD;AACA,MAAME,OAAO,GAAG,SAAAA,CAAUC,GAAG,EAAE;EAC5B;EACDF,UAAU,CAACG,OAAO,CAACC,SAAS,IAAI;IAC9BF,GAAG,CAACE,SAAS,CAACA,SAAS,CAACd,IAAI,EAAEc,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/YcSlideVerify/index.vue","webpack://yc-ui2/src/components/YcSlideVerify/index.vue","webpack://yc-ui2/./src/components/YcSlideVerify/index.vue?7fa0","webpack://yc-ui2/./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js","webpack://yc-ui2/./src/components/YcSlideVerify/index.vue?0582","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 (_vm.show)?_c('slide-verify',{ref:\"slideblock\",attrs:{\"l\":42,\"r\":10,\"w\":310,\"h\":155,\"imgs\":_vm.imgs,\"accuracy\":_vm.accuracy,\"show\":_vm.show,\"slider-text\":_vm.sliderText},on:{\"success\":_vm.onSuccess,\"fail\":_vm.onFail,\"again\":_vm.onAgain,\"refresh\":_vm.onRefresh,\"fulfilled\":_vm.onFulfilled}}):_vm._e()\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\r\n <slide-verify\r\n v-if=\"show\"\r\n ref=\"slideblock\"\r\n :l=\"42\"\r\n :r=\"10\"\r\n :w=\"310\"\r\n :h=\"155\"\r\n :imgs=\"imgs\"\r\n :accuracy=\"accuracy\"\r\n :show=\"show\"\r\n :slider-text=\"sliderText\"\r\n @success=\"onSuccess\"\r\n @fail=\"onFail\"\r\n @again=\"onAgain\"\r\n @refresh=\"onRefresh\"\r\n @fulfilled=\"onFulfilled\"\r\n ></slide-verify>\r\n</template>\r\n\r\n<script>\r\nimport t1 from \"./imgs/1.jpg\"\r\nexport default {\r\n name: \"YcSlideVerify\",\r\n data() {\r\n return {\r\n imgs: [t1],\r\n show: true,\r\n isShow: false,\r\n accuracy: 5,\r\n sliderText: \"拖动完成上方拼图\",\r\n countDownNum: 120,\r\n }\r\n },\r\n computed: {\r\n // imgs() {\r\n // const list = []\r\n // for (let i = 1; i < 9; i++) {\r\n // list.push(require(`@/assets/slideVerify/${i}.jpg`))\r\n // }\r\n // return list\r\n // },\r\n },\r\n methods: {\r\n onSuccess() {\r\n this.isShow = false\r\n console.log(344444)\r\n },\r\n onFail() {},\r\n onAgain() {},\r\n onRefresh() {},\r\n onFulfilled() {},\r\n handleClose() {\r\n this.isShow = false\r\n },\r\n },\r\n}\r\n</script>\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&\"","/* 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=73f4cede&\"\nimport script from \"./index.vue?vue&type=script&lang=js&\"\nexport * from \"./index.vue?vue&type=script&lang=js&\"\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 YcSlideVerify from 'comp/YcSlideVerify/index.vue'\r\n\r\n\r\nconst components = [\r\n YcSlideVerify\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","show","ref","attrs","imgs","accuracy","sliderText","on","onSuccess","onFail","onAgain","onRefresh","onFulfilled","_e","staticRenderFns","t1","name","data","isShow","countDownNum","computed","methods","console","log","handleClose","YcSlideVerify","components","install","Vue","forEach","component","window"],"sourceRoot":""}
@@ -0,0 +1,2 @@
1
+ (function(e,n){"object"===typeof exports&&"object"===typeof module?module.exports=n():"function"===typeof define&&define.amd?define([],n):"object"===typeof exports?exports["yc-ui2"]=n():e["yc-ui2"]=n()})("undefined"!==typeof self?self:this,(function(){return function(){"use strict";var e={};!function(){e.d=function(n,o){for(var t in o)e.o(o,t)&&!e.o(n,t)&&Object.defineProperty(n,t,{enumerable:!0,get:o[t]})}}(),function(){e.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)}}(),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 n={};if(e.r(n),e.d(n,{default:function(){return y}}),"undefined"!==typeof window){var o=window.document.currentScript,t=o&&o.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);t&&(e.p=t[1])}var i=function(){var e=this,n=e._self._c;return e.show?n("slide-verify",{ref:"slideblock",attrs:{l:42,r:10,w:310,h:155,imgs:e.imgs,accuracy:e.accuracy,show:e.show,"slider-text":e.sliderText},on:{success:e.onSuccess,fail:e.onFail,again:e.onAgain,refresh:e.onRefresh,fulfilled:e.onFulfilled}}):e._e()},r=[],s=e.p+"img/1.8e585a4b.jpg",c={name:"YcSlideVerify",data(){return{imgs:[s],show:!0,isShow:!1,accuracy:5,sliderText:"拖动完成上方拼图",countDownNum:120}},computed:{},methods:{onSuccess(){this.isShow=!1,console.log(344444)},onFail(){},onAgain(){},onRefresh(){},onFulfilled(){},handleClose(){this.isShow=!1}}},f=c;function u(e,n,o,t,i,r,s,c){var f,u="function"===typeof e?e.options:e;if(n&&(u.render=n,u.staticRenderFns=o,u._compiled=!0),t&&(u.functional=!0),r&&(u._scopeId="data-v-"+r),s?(f=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__),i&&i.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(s)},u._ssrRegister=f):i&&(f=c?function(){i.call(this,(u.functional?this.parent:this).$root.$options.shadowRoot)}:i),f)if(u.functional){u._injectStyles=f;var a=u.render;u.render=function(e,n){return f.call(n),a(e,n)}}else{var l=u.beforeCreate;u.beforeCreate=l?[].concat(l,f):[f]}return{exports:e,options:u}}var a=u(f,i,r,!1,null,null,null),l=a.exports;const d=[l],p=function(e){d.forEach((n=>{e.component(n.name,n)})),"undefined"!==typeof window&&window.Vue&&p(window.Vue)};var h={install:p},y=h;return n}()}));
2
+ //# sourceMappingURL=yc-ui2.umd.min.js.map
@@ -0,0 +1 @@
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,OAAQD,EAAIG,KAAMF,EAAG,eAAe,CAACG,IAAI,aAAaC,MAAM,CAAC,EAAI,GAAG,EAAI,GAAG,EAAI,IAAI,EAAI,IAAI,KAAOL,EAAIM,KAAK,SAAWN,EAAIO,SAAS,KAAOP,EAAIG,KAAK,cAAcH,EAAIQ,YAAYC,GAAG,CAAC,QAAUT,EAAIU,UAAU,KAAOV,EAAIW,OAAO,MAAQX,EAAIY,QAAQ,QAAUZ,EAAIa,UAAU,UAAYb,EAAIc,eAAed,EAAIe,IAC1W,EACIC,EAAkB,G,2BCoBtB,GACAC,KAAA,gBACAC,IAAAA,GACA,OACAZ,KAAA,CAAAa,GACAhB,MAAA,EACAiB,QAAA,EACAb,SAAA,EACAC,WAAA,WACAa,aAAA,IAEA,EACAC,SAAA,CAOA,EAEAC,QAAA,CACAb,SAAAA,GACA,KAAAU,QAAA,EACAI,QAAAC,IAAA,OACA,EACAd,MAAAA,GAAA,EACAC,OAAAA,GAAA,EACAC,SAAAA,GAAA,EACAC,WAAAA,GAAA,EACAY,WAAAA,GACA,KAAAN,QAAA,CACA,ICtD+P,ICMhP,SAASO,EACtBC,EACA7B,EACAiB,EACAa,EACAC,EACAC,EACAC,EACAC,GAGA,IAoBIC,EApBAC,EACuB,oBAAlBP,EAA+BA,EAAcO,QAAUP,EAuDhE,GApDI7B,IACFoC,EAAQpC,OAASA,EACjBoC,EAAQnB,gBAAkBA,EAC1BmB,EAAQC,WAAY,GAIlBP,IACFM,EAAQE,YAAa,GAInBN,IACFI,EAAQG,SAAW,UAAYP,GAI7BC,GAEFE,EAAO,SAAUK,GAEfA,EACEA,GACCjE,KAAKkE,QAAUlE,KAAKkE,OAAOC,YAC3BnE,KAAKoE,QAAUpE,KAAKoE,OAAOF,QAAUlE,KAAKoE,OAAOF,OAAOC,WAEtDF,GAA0C,qBAAxBI,sBACrBJ,EAAUI,qBAGRb,GACFA,EAAa1C,KAAKd,KAAMiE,GAGtBA,GAAWA,EAAQK,uBACrBL,EAAQK,sBAAsBC,IAAIb,EAEtC,EAGAG,EAAQW,aAAeZ,GACdJ,IACTI,EAAOD,EACH,WACEH,EAAa1C,KACXd,MACC6D,EAAQE,WAAa/D,KAAKoE,OAASpE,MAAMyE,MAAMC,SAASC,WAE7D,EACAnB,GAGFI,EACF,GAAIC,EAAQE,WAAY,CAGtBF,EAAQe,cAAgBhB,EAExB,IAAIiB,EAAiBhB,EAAQpC,OAC7BoC,EAAQpC,OAAS,SAAkCqD,EAAGb,GAEpD,OADAL,EAAK9C,KAAKmD,GACHY,EAAeC,EAAGb,EAC3B,CACF,KAAO,CAEL,IAAIc,EAAWlB,EAAQmB,aACvBnB,EAAQmB,aAAeD,EAAW,GAAGE,OAAOF,EAAUnB,GAAQ,CAACA,EACjE,CAGF,MAAO,CACLjE,QAAS2D,EACTO,QAASA,EAEb,CCxFA,IAAIqB,EAAY,EACd,EACAzD,EACAiB,GACA,EACA,KACA,KACA,MAIF,EAAewC,EAAiB,QCfhC,MAAMC,EAAa,CACjBC,GAGIC,EAAU,SAAUC,GAExBH,EAAWI,SAAQL,IACjBI,EAAIJ,UAAUA,EAAUvC,KAAMuC,EAAU,IAIpB,qBAAX9D,QAA0BA,OAAOkE,KAC1CD,EAAQjE,OAAOkE,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/YcSlideVerify/index.vue","webpack://yc-ui2/src/components/YcSlideVerify/index.vue","webpack://yc-ui2/./src/components/YcSlideVerify/index.vue?aaea","webpack://yc-ui2/./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js","webpack://yc-ui2/./src/components/YcSlideVerify/index.vue?0582","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 (_vm.show)?_c('slide-verify',{ref:\"slideblock\",attrs:{\"l\":42,\"r\":10,\"w\":310,\"h\":155,\"imgs\":_vm.imgs,\"accuracy\":_vm.accuracy,\"show\":_vm.show,\"slider-text\":_vm.sliderText},on:{\"success\":_vm.onSuccess,\"fail\":_vm.onFail,\"again\":_vm.onAgain,\"refresh\":_vm.onRefresh,\"fulfilled\":_vm.onFulfilled}}):_vm._e()\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\r\n <slide-verify\r\n v-if=\"show\"\r\n ref=\"slideblock\"\r\n :l=\"42\"\r\n :r=\"10\"\r\n :w=\"310\"\r\n :h=\"155\"\r\n :imgs=\"imgs\"\r\n :accuracy=\"accuracy\"\r\n :show=\"show\"\r\n :slider-text=\"sliderText\"\r\n @success=\"onSuccess\"\r\n @fail=\"onFail\"\r\n @again=\"onAgain\"\r\n @refresh=\"onRefresh\"\r\n @fulfilled=\"onFulfilled\"\r\n ></slide-verify>\r\n</template>\r\n\r\n<script>\r\nimport t1 from \"./imgs/1.jpg\"\r\nexport default {\r\n name: \"YcSlideVerify\",\r\n data() {\r\n return {\r\n imgs: [t1],\r\n show: true,\r\n isShow: false,\r\n accuracy: 5,\r\n sliderText: \"拖动完成上方拼图\",\r\n countDownNum: 120,\r\n }\r\n },\r\n computed: {\r\n // imgs() {\r\n // const list = []\r\n // for (let i = 1; i < 9; i++) {\r\n // list.push(require(`@/assets/slideVerify/${i}.jpg`))\r\n // }\r\n // return list\r\n // },\r\n },\r\n methods: {\r\n onSuccess() {\r\n this.isShow = false\r\n console.log(344444)\r\n },\r\n onFail() {},\r\n onAgain() {},\r\n onRefresh() {},\r\n onFulfilled() {},\r\n handleClose() {\r\n this.isShow = false\r\n },\r\n },\r\n}\r\n</script>\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=73f4cede&\"\nimport script from \"./index.vue?vue&type=script&lang=js&\"\nexport * from \"./index.vue?vue&type=script&lang=js&\"\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 YcSlideVerify from 'comp/YcSlideVerify/index.vue'\r\n\r\n\r\nconst components = [\r\n YcSlideVerify\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","show","ref","attrs","imgs","accuracy","sliderText","on","onSuccess","onFail","onAgain","onRefresh","onFulfilled","_e","staticRenderFns","name","data","t1","isShow","countDownNum","computed","methods","console","log","handleClose","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","YcSlideVerify","install","Vue","forEach"],"sourceRoot":""}
package/package.json CHANGED
@@ -1,18 +1,20 @@
1
1
  {
2
2
  "name": "yc-ui2",
3
- "version": "0.1.0-beta1",
3
+ "version": "0.1.0-beta10",
4
4
  "private": false,
5
5
  "description": "测试阶段",
6
6
  "main": "dist/yc-ui2.umd.min.js",
7
7
  "scripts": {
8
- "dev": "vue-cli-service serve",
8
+ "serve": "vue-cli-service serve",
9
9
  "build": "vue-cli-service build",
10
10
  "lint": "vue-cli-service lint",
11
- "lib": "vue-cli-service build --targe lib src/components/index.js"
11
+ "lib": "vue-cli-service build --target lib src/packages/index.js && npm publish"
12
12
  },
13
13
  "dependencies": {
14
14
  "core-js": "^3.8.3",
15
- "vue": "^2.6.14"
15
+ "path": "^0.12.7",
16
+ "vue": "^2.6.14",
17
+ "vue-monoplasty-slide-verify": "^1.3.1"
16
18
  },
17
19
  "devDependencies": {
18
20
  "@babel/core": "^7.12.16",
package/src/App.vue CHANGED
@@ -1,16 +1,16 @@
1
1
  <template>
2
2
  <div id="app">
3
- <Button></Button>
3
+ <YcSlideVerify></YcSlideVerify>
4
4
  </div>
5
5
  </template>
6
6
 
7
7
  <script>
8
- import Button from "./components/Button/index.vue"
8
+ import YcSlideVerify from "comp/YcSlideVerify/index.vue"
9
9
 
10
10
  export default {
11
11
  name: "App",
12
12
  components: {
13
- Button,
13
+ YcSlideVerify,
14
14
  },
15
15
  }
16
16
  </script>
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
package/src/main.js CHANGED
@@ -1,8 +1,12 @@
1
1
  import Vue from 'vue'
2
2
  import App from './App.vue'
3
3
 
4
+ import SlideVerify from "vue-monoplasty-slide-verify"
5
+
4
6
  Vue.config.productionTip = false
5
7
 
8
+ Vue.use(SlideVerify)
9
+
6
10
  new Vue({
7
11
  render: h => h(App),
8
12
  }).$mount('#app')
package/vue.config.js CHANGED
@@ -1,4 +1,19 @@
1
1
  const { defineConfig } = require('@vue/cli-service')
2
+
3
+
4
+ let path = require('path');
5
+
6
+ function resolve (dir) {
7
+ return path.join(__dirname, dir)
8
+ }
9
+
2
10
  module.exports = defineConfig({
3
- transpileDependencies: true
4
- })
11
+ transpileDependencies: true,
12
+ chainWebpack: (config) => {
13
+ config.resolve.alias
14
+ .set('@', resolve('src'))
15
+ .set("assets", resolve("src/assets"))
16
+ .set("comp", resolve("src/components"))
17
+ // .set("utils", resolve("utils"))
18
+ },
19
+ })
@@ -1 +0,0 @@
1
- .MyButton{color:red}
package/dist/favicon.ico DELETED
Binary file
package/dist/index.html DELETED
@@ -1 +0,0 @@
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>
@@ -1,2 +0,0 @@
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
@@ -1 +0,0 @@
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":""}
@@ -1,21 +0,0 @@
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>
@@ -1,23 +0,0 @@
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
- }