yc-ui2 0.1.1-beta19 → 0.1.2-beta01
Sign up to get free protection for your applications and to get access to all the features.
- package/.env +2 -0
- package/README.md +33 -31
- package/dist/yc-ui2.common.js +19 -21
- package/dist/yc-ui2.common.js.map +1 -1
- package/dist/yc-ui2.css +1 -1
- package/dist/yc-ui2.umd.js +19 -21
- package/dist/yc-ui2.umd.js.map +1 -1
- package/dist/yc-ui2.umd.min.js +1 -1
- package/dist/yc-ui2.umd.min.js.map +1 -1
- package/md/CustomerService.md +70 -0
- package/md/YcSlideVerify.md +16 -0
- package/package.json +55 -55
- package/src/App.vue +41 -41
- package/src/main.js +18 -18
- package/vue.config.js +31 -31
package/.env
ADDED
package/README.md
CHANGED
@@ -1,31 +1,33 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
import
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
|
31
|
-
|
|
1
|
+
# 使用
|
2
|
+
|
3
|
+
安装命令:`npm install yc-ui2`
|
4
|
+
|
5
|
+
#### main.js 导入
|
6
|
+
```javascript
|
7
|
+
import Ycui2 from 'yc-ui2'
|
8
|
+
import "yc-ui2/dist/yc-ui2.css"
|
9
|
+
|
10
|
+
Vue.use(Ycui2)
|
11
|
+
```
|
12
|
+
|
13
|
+
#### vue.config.js
|
14
|
+
|
15
|
+
```javascript
|
16
|
+
proxy: {
|
17
|
+
// 在proxy中添加以下代码
|
18
|
+
['/cloud-img']: {
|
19
|
+
target: `http://113.219.171.47:6610/cloud-img/`,
|
20
|
+
changeOrigin: true,
|
21
|
+
pathRewrite: {
|
22
|
+
["^/cloud-img"]: "",
|
23
|
+
},
|
24
|
+
},
|
25
|
+
}
|
26
|
+
```
|
27
|
+
|
28
|
+
# 组件
|
29
|
+
|
30
|
+
| Name | Describe |
|
31
|
+
| ------- | -------- |
|
32
|
+
| [YcSlideVerify](./md/YcSlideVerify.md "点击跳转查看组件详情") | 滑动验证 |
|
33
|
+
| [YcCustomerService、YcQuestion](./md/CustomerService.md "点击跳转查看组件详情") | 小优客服 |
|
package/dist/yc-ui2.common.js
CHANGED
@@ -1881,8 +1881,8 @@ var component = normalizeComponent(
|
|
1881
1881
|
)
|
1882
1882
|
|
1883
1883
|
/* harmony default export */ var YcSlideVerify = (component.exports);
|
1884
|
-
;// 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/YcCustomerService/index.vue?vue&type=template&id=
|
1885
|
-
var
|
1884
|
+
;// 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/YcCustomerService/index.vue?vue&type=template&id=849349a0&scoped=true&
|
1885
|
+
var YcCustomerServicevue_type_template_id_849349a0_scoped_true_render = function render() {
|
1886
1886
|
var _vm = this,
|
1887
1887
|
_c = _vm._self._c;
|
1888
1888
|
return _c('div', {
|
@@ -1916,7 +1916,7 @@ var YcCustomerServicevue_type_template_id_48e8a2e0_scoped_true_render = function
|
|
1916
1916
|
}
|
1917
1917
|
}, [_vm._m(0), _vm._m(1)])])], 1);
|
1918
1918
|
};
|
1919
|
-
var
|
1919
|
+
var YcCustomerServicevue_type_template_id_849349a0_scoped_true_staticRenderFns = [function () {
|
1920
1920
|
var _vm = this,
|
1921
1921
|
_c = _vm._self._c;
|
1922
1922
|
return _c('div', [_c('i', {
|
@@ -1928,7 +1928,7 @@ var YcCustomerServicevue_type_template_id_48e8a2e0_scoped_true_staticRenderFns =
|
|
1928
1928
|
return _c('div', [_c('a', [_vm._v("在线客服")])]);
|
1929
1929
|
}];
|
1930
1930
|
|
1931
|
-
;// CONCATENATED MODULE: ./src/components/YcCustomerService/index.vue?vue&type=template&id=
|
1931
|
+
;// CONCATENATED MODULE: ./src/components/YcCustomerService/index.vue?vue&type=template&id=849349a0&scoped=true&
|
1932
1932
|
|
1933
1933
|
;// 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/YcCustomerService/chat.vue?vue&type=template&id=dcf285b2&
|
1934
1934
|
var chatvue_type_template_id_dcf285b2_render = function render() {
|
@@ -2203,25 +2203,23 @@ var chat_component = normalizeComponent(
|
|
2203
2203
|
},
|
2204
2204
|
watch: {
|
2205
2205
|
$route(to) {
|
2206
|
-
console.log(to);
|
2207
|
-
console.log(this.jumpPage);
|
2208
2206
|
if (to.path != this.jumpPage) {
|
2209
2207
|
this.$refs.customer.style.display = "block";
|
2210
2208
|
} else {
|
2211
2209
|
this.$refs.customer.style.display = "none";
|
2212
2210
|
}
|
2213
2211
|
}
|
2212
|
+
},
|
2213
|
+
mounted() {
|
2214
|
+
this.$refs.customer.style.display = "block";
|
2214
2215
|
}
|
2215
|
-
// mounted() {
|
2216
|
-
// this.$refs.customer.style.display = "block"
|
2217
|
-
// },
|
2218
2216
|
});
|
2219
2217
|
;// CONCATENATED MODULE: ./src/components/YcCustomerService/index.vue?vue&type=script&lang=js&
|
2220
2218
|
/* harmony default export */ var components_YcCustomerServicevue_type_script_lang_js_ = (YcCustomerServicevue_type_script_lang_js_);
|
2221
|
-
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/YcCustomerService/index.vue?vue&type=style&index=0&id=
|
2219
|
+
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/YcCustomerService/index.vue?vue&type=style&index=0&id=849349a0&prod&lang=scss&scoped=true&
|
2222
2220
|
// extracted by mini-css-extract-plugin
|
2223
2221
|
|
2224
|
-
;// CONCATENATED MODULE: ./src/components/YcCustomerService/index.vue?vue&type=style&index=0&id=
|
2222
|
+
;// CONCATENATED MODULE: ./src/components/YcCustomerService/index.vue?vue&type=style&index=0&id=849349a0&prod&lang=scss&scoped=true&
|
2225
2223
|
|
2226
2224
|
;// CONCATENATED MODULE: ./src/components/YcCustomerService/index.vue
|
2227
2225
|
|
@@ -2234,18 +2232,18 @@ var chat_component = normalizeComponent(
|
|
2234
2232
|
|
2235
2233
|
var YcCustomerService_component = normalizeComponent(
|
2236
2234
|
components_YcCustomerServicevue_type_script_lang_js_,
|
2237
|
-
|
2238
|
-
|
2235
|
+
YcCustomerServicevue_type_template_id_849349a0_scoped_true_render,
|
2236
|
+
YcCustomerServicevue_type_template_id_849349a0_scoped_true_staticRenderFns,
|
2239
2237
|
false,
|
2240
2238
|
null,
|
2241
|
-
"
|
2239
|
+
"849349a0",
|
2242
2240
|
null
|
2243
2241
|
|
2244
2242
|
)
|
2245
2243
|
|
2246
2244
|
/* harmony default export */ var YcCustomerService = (YcCustomerService_component.exports);
|
2247
|
-
;// 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/YcQuestion/index.vue?vue&type=template&id=
|
2248
|
-
var
|
2245
|
+
;// 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/YcQuestion/index.vue?vue&type=template&id=168e6b3f&
|
2246
|
+
var YcQuestionvue_type_template_id_168e6b3f_render = function render() {
|
2249
2247
|
var _vm = this,
|
2250
2248
|
_c = _vm._self._c;
|
2251
2249
|
return _c('div', {
|
@@ -2370,7 +2368,7 @@ var YcQuestionvue_type_template_id_74dac1ad_render = function render() {
|
|
2370
2368
|
})], 2);
|
2371
2369
|
}), 1)], 1)])]);
|
2372
2370
|
};
|
2373
|
-
var
|
2371
|
+
var YcQuestionvue_type_template_id_168e6b3f_staticRenderFns = [];
|
2374
2372
|
|
2375
2373
|
;// 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/YcQuestion/index.vue?vue&type=script&lang=js&
|
2376
2374
|
|
@@ -2403,10 +2401,10 @@ var YcQuestionvue_type_template_id_74dac1ad_staticRenderFns = [];
|
|
2403
2401
|
});
|
2404
2402
|
;// CONCATENATED MODULE: ./src/components/YcQuestion/index.vue?vue&type=script&lang=js&
|
2405
2403
|
/* harmony default export */ var components_YcQuestionvue_type_script_lang_js_ = (YcQuestionvue_type_script_lang_js_);
|
2406
|
-
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/YcQuestion/index.vue?vue&type=style&index=0&id=
|
2404
|
+
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/YcQuestion/index.vue?vue&type=style&index=0&id=168e6b3f&prod&lang=scss&
|
2407
2405
|
// extracted by mini-css-extract-plugin
|
2408
2406
|
|
2409
|
-
;// CONCATENATED MODULE: ./src/components/YcQuestion/index.vue?vue&type=style&index=0&id=
|
2407
|
+
;// CONCATENATED MODULE: ./src/components/YcQuestion/index.vue?vue&type=style&index=0&id=168e6b3f&prod&lang=scss&
|
2410
2408
|
|
2411
2409
|
;// CONCATENATED MODULE: ./src/components/YcQuestion/index.vue
|
2412
2410
|
|
@@ -2419,8 +2417,8 @@ var YcQuestionvue_type_template_id_74dac1ad_staticRenderFns = [];
|
|
2419
2417
|
|
2420
2418
|
var YcQuestion_component = normalizeComponent(
|
2421
2419
|
components_YcQuestionvue_type_script_lang_js_,
|
2422
|
-
|
2423
|
-
|
2420
|
+
YcQuestionvue_type_template_id_168e6b3f_render,
|
2421
|
+
YcQuestionvue_type_template_id_168e6b3f_staticRenderFns,
|
2424
2422
|
false,
|
2425
2423
|
null,
|
2426
2424
|
null,
|