yc-ui2 0.1.1-beta07 → 0.1.1-beta08
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/yc-ui2.common.js +17 -11
- package/dist/yc-ui2.common.js.map +1 -1
- package/dist/yc-ui2.css +1 -1
- package/dist/yc-ui2.umd.js +17 -11
- 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/package.json +1 -1
- package/src/router/index.js +0 -8
package/dist/yc-ui2.css
CHANGED
@@ -1 +1 @@
|
|
1
|
-
.el-dialog__wrapper[data-v-2248e29b]{display:flex;justify-content:center;align-items:center}[data-v-2248e29b] .el-dialog{margin-top:0!important;border-radius:8px}[data-v-2248e29b] .el-dialog__header{background-color:#f2f6fc;border-radius:8px 8px 0 0}.el-dialog__body[data-v-2248e29b]{display:flex;justify-content:center}.chat{width:350px;height:480px;position:fixed;bottom:10px;right:55px;z-index:2001;background-color:#fff;border-radius:12px;border:1px solid #e6ebf5;box-shadow:0 2px 4px rgba(0,0,0,.12),0 0 6px rgba(0,0,0,.04);overflow:hidden}.chat>header{display:flex;justify-content:flex-start;align-items:center;background-color:#ff575f;font-size:16px;padding:10px;font-weight:400;color:#fafdff}.chat>header>img{width:44px;height:44px;border-radius:50%;margin-right:10px;transition:all .3s linear}.chat>header>img:focus,.chat>header>img:hover{transform:scale(1.2) rotate(15deg)}.chat>header i{cursor:pointer;position:absolute;top:5px;width:20px;height:20px;border-radius:6px;display:flex;justify-content:center;align-items:center;transition:all .3s linear}.chat>header i:focus,.chat>header i:hover{transform:scale(1.2);background-color:hsla(7,100%,74%,.8)}.chat>header i.el-icon-close{right:10px}.chat>header i.icon-enlarge{right:35px}.chat>header i>img{width:12px}.chat>main{width:100%;height:60%;overflow-y:auto;padding-bottom:20px;background-color:#f7f7f9}.chat>main::-webkit-scrollbar{width:6px}.chat>main::-webkit-scrollbar-track{background:#efefef;border-radius:2px}.chat>main::-webkit-scrollbar-thumb{background:#ff8879;border-radius:10px}.chat>main::-webkit-scrollbar-thumb:hover{background:#ff755d}.chat>main .message{display:flex;gap:15px;position:relative;margin:20px 5px 0 5px;opacity:0}.chat>main .message .avatar{width:30px;height:30px;border-radius:50%}.chat>main .message .content{width:-moz-fit-content;width:fit-content;max-width:250px;font-weight:400;font-size:12px;color:#4c4c4d;line-height:20px;padding:10px;border-radius:10px;background-color:#fff}.chat>main .message .content .href{cursor:pointer;display:block;color:#ff575f;margin-bottom:.5rem}.chat>main .message .content .href:hover{text-decoration:underline}.chat>main .message .content>.based{cursor:pointer;color:#909399;display:flex;align-items:flex-start;justify-content:flex-start;border-top:1px solid #ebebed;padding-top:5px;margin-top:5px;gap:5px}.chat>main .message .content>.based>span:first-child{white-space:nowrap;color:#4c4c4d;border-radius:10px;background-color:#eeeef0;padding:0 7px}.chat>main .message .content>.based>span:last-child{width:100%;position:relative;display:inline-block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;padding-right:12px}.chat>main .message .content>.based>span:last-child .el-icon-d-arrow-right{position:absolute;right:0;bottom:5px;transform:rotate(90deg);transition:all .35s linear}.chat>main .message .content>.based>span:last-child.is-active{overflow:visible;white-space:normal}.chat>main .message .content>.based>span:last-child.is-active .el-icon-d-arrow-right{transform:rotate(270deg)}.chat>main .message .content>.based>span:last-child:hover{color:#ff575f}.chat>main .message.admin{animation:animation01 .3s linear 1.5s forwards}.chat>main .message.admin .content:before{content:"";position:absolute;top:2px;left:37px;transform:rotate(-45deg);border-width:10px;border-style:solid;border-color:transparent transparent transparent #fff}.chat>main .message.personal{animation:animation01 .3s linear .3s forwards;flex-direction:row-reverse}.chat>main .message.personal .content:after{content:"";position:absolute;top:2px;right:37px;transform:rotate(-45deg);border-width:10px;border-style:solid;border-color:transparent transparent #fff transparent}@keyframes animation01{0%{transform:translateY(20px);opacity:0}to{transform:translateY(0);opacity:1}}.chat>nav{background-color:#f7f7f9;border-bottom:1px solid #e7e7ea;padding:5px 10px;display:flex}.chat>nav .el-button{font-size:12px;font-weight:400;color:#4c4c4d;background-color:#fff!important;border:1px solid #e7e7ea;padding:5px 8px}.chat>.el-textarea{border-color:transparent}.chat>.el-textarea textarea{overflow-y:hidden;padding-right:65px;font-weight:400;color:#19191a;font-size:12px;font-family:Source Han Sans CN-Regular,Source Han Sans CN}.chat>.el-textarea textarea,.chat>.el-textarea textarea:focus{border-color:transparent}.chat>.el-button{position:absolute;bottom:10px;right:10px}.customerService[data-v-
|
1
|
+
.el-dialog__wrapper[data-v-2248e29b]{display:flex;justify-content:center;align-items:center}[data-v-2248e29b] .el-dialog{margin-top:0!important;border-radius:8px}[data-v-2248e29b] .el-dialog__header{background-color:#f2f6fc;border-radius:8px 8px 0 0}.el-dialog__body[data-v-2248e29b]{display:flex;justify-content:center}.chat{width:350px;height:480px;position:fixed;bottom:10px;right:55px;z-index:2001;background-color:#fff;border-radius:12px;border:1px solid #e6ebf5;box-shadow:0 2px 4px rgba(0,0,0,.12),0 0 6px rgba(0,0,0,.04);overflow:hidden}.chat>header{display:flex;justify-content:flex-start;align-items:center;background-color:#ff575f;font-size:16px;padding:10px;font-weight:400;color:#fafdff}.chat>header>img{width:44px;height:44px;border-radius:50%;margin-right:10px;transition:all .3s linear}.chat>header>img:focus,.chat>header>img:hover{transform:scale(1.2) rotate(15deg)}.chat>header i{cursor:pointer;position:absolute;top:5px;width:20px;height:20px;border-radius:6px;display:flex;justify-content:center;align-items:center;transition:all .3s linear}.chat>header i:focus,.chat>header i:hover{transform:scale(1.2);background-color:hsla(7,100%,74%,.8)}.chat>header i.el-icon-close{right:10px}.chat>header i.icon-enlarge{right:35px}.chat>header i>img{width:12px}.chat>main{width:100%;height:60%;overflow-y:auto;padding-bottom:20px;background-color:#f7f7f9}.chat>main::-webkit-scrollbar{width:6px}.chat>main::-webkit-scrollbar-track{background:#efefef;border-radius:2px}.chat>main::-webkit-scrollbar-thumb{background:#ff8879;border-radius:10px}.chat>main::-webkit-scrollbar-thumb:hover{background:#ff755d}.chat>main .message{display:flex;gap:15px;position:relative;margin:20px 5px 0 5px;opacity:0}.chat>main .message .avatar{width:30px;height:30px;border-radius:50%}.chat>main .message .content{width:-moz-fit-content;width:fit-content;max-width:250px;font-weight:400;font-size:12px;color:#4c4c4d;line-height:20px;padding:10px;border-radius:10px;background-color:#fff}.chat>main .message .content .href{cursor:pointer;display:block;color:#ff575f;margin-bottom:.5rem}.chat>main .message .content .href:hover{text-decoration:underline}.chat>main .message .content>.based{cursor:pointer;color:#909399;display:flex;align-items:flex-start;justify-content:flex-start;border-top:1px solid #ebebed;padding-top:5px;margin-top:5px;gap:5px}.chat>main .message .content>.based>span:first-child{white-space:nowrap;color:#4c4c4d;border-radius:10px;background-color:#eeeef0;padding:0 7px}.chat>main .message .content>.based>span:last-child{width:100%;position:relative;display:inline-block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;padding-right:12px}.chat>main .message .content>.based>span:last-child .el-icon-d-arrow-right{position:absolute;right:0;bottom:5px;transform:rotate(90deg);transition:all .35s linear}.chat>main .message .content>.based>span:last-child.is-active{overflow:visible;white-space:normal}.chat>main .message .content>.based>span:last-child.is-active .el-icon-d-arrow-right{transform:rotate(270deg)}.chat>main .message .content>.based>span:last-child:hover{color:#ff575f}.chat>main .message.admin{animation:animation01 .3s linear 1.5s forwards}.chat>main .message.admin .content:before{content:"";position:absolute;top:2px;left:37px;transform:rotate(-45deg);border-width:10px;border-style:solid;border-color:transparent transparent transparent #fff}.chat>main .message.personal{animation:animation01 .3s linear .3s forwards;flex-direction:row-reverse}.chat>main .message.personal .content:after{content:"";position:absolute;top:2px;right:37px;transform:rotate(-45deg);border-width:10px;border-style:solid;border-color:transparent transparent #fff transparent}@keyframes animation01{0%{transform:translateY(20px);opacity:0}to{transform:translateY(0);opacity:1}}.chat>nav{background-color:#f7f7f9;border-bottom:1px solid #e7e7ea;padding:5px 10px;display:flex}.chat>nav .el-button{font-size:12px;font-weight:400;color:#4c4c4d;background-color:#fff!important;border:1px solid #e7e7ea;padding:5px 8px}.chat>.el-textarea{border-color:transparent}.chat>.el-textarea textarea{overflow-y:hidden;padding-right:65px;font-weight:400;color:#19191a;font-size:12px;font-family:Source Han Sans CN-Regular,Source Han Sans CN}.chat>.el-textarea textarea,.chat>.el-textarea textarea:focus{border-color:transparent}.chat>.el-button{position:absolute;bottom:10px;right:10px}.customerService[data-v-e5df1a9e]{position:fixed;right:0;bottom:35px;z-index:2001}.customerService>div[data-v-e5df1a9e]{cursor:pointer;position:absolute;right:0;display:flex;align-items:center;background-color:#fff;box-shadow:0 2px 4px rgba(0,0,0,.12),0 0 6px rgba(0,0,0,.04)}.customerService>div:hover>div[data-v-e5df1a9e]:first-child{color:#ff4949}.customerService>div:hover>div:first-child i[data-v-e5df1a9e]{animation-name:animateRotate-e5df1a9e;animation-duration:.5s;animation-iteration-count:infinite}.customerService>div>div[data-v-e5df1a9e]:first-child{width:50px;height:50px;text-align:center;line-height:50px;font-size:18px}.customerService>div>div[data-v-e5df1a9e]:last-child{opacity:0;padding:10px;border-radius:6px;position:absolute;min-height:50px;display:flex;flex-direction:column;justify-content:space-around;background-color:#fff;box-shadow:0 2px 4px rgba(0,0,0,.12),0 0 6px rgba(0,0,0,.04)}.customerService>div>div[data-v-e5df1a9e]:last-child:after{content:"";position:absolute;top:calc(50% - 10px);right:-20px;border-width:10px;border-style:solid;border-color:transparent transparent transparent #fff;filter:drop-shadow(1px 1px 1px rgba(0,0,0,.2))}.customerService>div>div:last-child a[data-v-e5df1a9e]{color:#333;font-size:14px;display:block}.customerService .mobile[data-v-e5df1a9e]{bottom:50px;border-bottom:1px solid #e6ebf5}.customerService .mobile:hover>div[data-v-e5df1a9e]:last-child{left:-210px;opacity:1;animation-name:animateMobile-e5df1a9e;animation-duration:.5s}.customerService .mobile>div[data-v-e5df1a9e]:last-child{left:-120vw;width:190px;bottom:0}.customerService .mobile>div:last-child a[data-v-e5df1a9e]{width:-moz-fit-content;width:fit-content;position:relative;margin-top:5px;text-indent:5px}.customerService .mobile>div:last-child a[data-v-e5df1a9e]:hover{color:#ff4949}.customerService .mobile>div:last-child a[data-v-e5df1a9e]:hover:before{width:100%;right:auto;left:0}.customerService .mobile>div:last-child a[data-v-e5df1a9e]:before{content:"";width:0;height:1px;opacity:.6;background:#ff4949;transition:all .5s linear;position:absolute;right:0;bottom:-2px}.customerService .mobile>div[data-v-e5df1a9e]:last-child:after{top:calc(100% - 35px)}@keyframes animateMobile-e5df1a9e{0%{left:-200vw;opacity:0}0.1%{left:-310px;opacity:0}to{left:-210px;opacity:1}}.customerService .headset[data-v-e5df1a9e]{bottom:0}.customerService .headset:hover>div[data-v-e5df1a9e]:last-child{left:-110px;opacity:1;animation-name:animateHeadset-e5df1a9e;animation-duration:.5s}.customerService .headset>div[data-v-e5df1a9e]:last-child{left:-120vw;width:90px}@keyframes animateHeadset-e5df1a9e{0%{left:-120vw;opacity:0}0.1%{left:-210px;opacity:.5}to{left:-110px;opacity:1}}@keyframes animateRotate-e5df1a9e{0%{transform:rotate(0deg)}20%{transform:rotate(7deg)}40%{transform:rotate(0deg)}80%{transform:rotate(-7deg)}to{transform:rotate(0deg)}}
|
package/dist/yc-ui2.umd.js
CHANGED
@@ -2012,8 +2012,8 @@ var component = normalizeComponent(
|
|
2012
2012
|
)
|
2013
2013
|
|
2014
2014
|
/* harmony default export */ var YcSlideVerify = (component.exports);
|
2015
|
-
;// 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/YcCustomerService/index.vue?vue&type=template&id=
|
2016
|
-
var
|
2015
|
+
;// 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/YcCustomerService/index.vue?vue&type=template&id=e5df1a9e&scoped=true&
|
2016
|
+
var YcCustomerServicevue_type_template_id_e5df1a9e_scoped_true_render = function render() {
|
2017
2017
|
var _vm = this,
|
2018
2018
|
_c = _vm._self._c;
|
2019
2019
|
return _c('div', {
|
@@ -2059,7 +2059,7 @@ var YcCustomerServicevue_type_template_id_fd194bfe_scoped_true_render = function
|
|
2059
2059
|
}
|
2060
2060
|
}, [_vm._m(1), _vm._m(2)])])], 1);
|
2061
2061
|
};
|
2062
|
-
var
|
2062
|
+
var YcCustomerServicevue_type_template_id_e5df1a9e_scoped_true_staticRenderFns = [function () {
|
2063
2063
|
var _vm = this,
|
2064
2064
|
_c = _vm._self._c;
|
2065
2065
|
return _c('div', [_c('i', {
|
@@ -2077,7 +2077,7 @@ var YcCustomerServicevue_type_template_id_fd194bfe_scoped_true_staticRenderFns =
|
|
2077
2077
|
return _c('div', [_c('a', [_vm._v("在线客服")])]);
|
2078
2078
|
}];
|
2079
2079
|
|
2080
|
-
;// CONCATENATED MODULE: ./src/components/YcCustomerService/index.vue?vue&type=template&id=
|
2080
|
+
;// CONCATENATED MODULE: ./src/components/YcCustomerService/index.vue?vue&type=template&id=e5df1a9e&scoped=true&
|
2081
2081
|
|
2082
2082
|
;// 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/YcCustomerService/chat.vue?vue&type=template&id=005a6884&
|
2083
2083
|
var chatvue_type_template_id_005a6884_render = function render() {
|
@@ -2258,7 +2258,6 @@ var chatvue_type_template_id_005a6884_staticRenderFns = [];
|
|
2258
2258
|
this.add(vlaue, 'admin', null, based);
|
2259
2259
|
},
|
2260
2260
|
add(msg, id = "personal", fun, based = "") {
|
2261
|
-
console.log(id);
|
2262
2261
|
this.messagelist.push({
|
2263
2262
|
id,
|
2264
2263
|
msg: Array.isArray(msg) ? msg : [msg],
|
@@ -2320,6 +2319,7 @@ var chat_component = normalizeComponent(
|
|
2320
2319
|
/* harmony default export */ var chat = (chat_component.exports);
|
2321
2320
|
;// 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/YcCustomerService/index.vue?vue&type=script&lang=js&
|
2322
2321
|
|
2322
|
+
|
2323
2323
|
/* harmony default export */ var YcCustomerServicevue_type_script_lang_js_ = ({
|
2324
2324
|
name: "YcCustomerService",
|
2325
2325
|
data() {
|
@@ -2340,16 +2340,22 @@ var chat_component = normalizeComponent(
|
|
2340
2340
|
chatVue: chat
|
2341
2341
|
},
|
2342
2342
|
mounted() {
|
2343
|
-
|
2343
|
+
if (!window.whiteList) {
|
2344
|
+
window.whiteList = [];
|
2345
|
+
}
|
2346
|
+
if (!window.whiteList.includes("/question")) {
|
2347
|
+
window.whiteList.push("/question");
|
2348
|
+
}
|
2349
|
+
console.log(window.whiteList);
|
2344
2350
|
this.$refs.customer.style.display = "block";
|
2345
2351
|
}
|
2346
2352
|
});
|
2347
2353
|
;// CONCATENATED MODULE: ./src/components/YcCustomerService/index.vue?vue&type=script&lang=js&
|
2348
2354
|
/* harmony default export */ var components_YcCustomerServicevue_type_script_lang_js_ = (YcCustomerServicevue_type_script_lang_js_);
|
2349
|
-
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-64.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-64.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-64.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-64.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=
|
2355
|
+
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-64.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-64.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-64.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-64.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=e5df1a9e&prod&lang=scss&scoped=true&
|
2350
2356
|
// extracted by mini-css-extract-plugin
|
2351
2357
|
|
2352
|
-
;// CONCATENATED MODULE: ./src/components/YcCustomerService/index.vue?vue&type=style&index=0&id=
|
2358
|
+
;// CONCATENATED MODULE: ./src/components/YcCustomerService/index.vue?vue&type=style&index=0&id=e5df1a9e&prod&lang=scss&scoped=true&
|
2353
2359
|
|
2354
2360
|
;// CONCATENATED MODULE: ./src/components/YcCustomerService/index.vue
|
2355
2361
|
|
@@ -2362,11 +2368,11 @@ var chat_component = normalizeComponent(
|
|
2362
2368
|
|
2363
2369
|
var YcCustomerService_component = normalizeComponent(
|
2364
2370
|
components_YcCustomerServicevue_type_script_lang_js_,
|
2365
|
-
|
2366
|
-
|
2371
|
+
YcCustomerServicevue_type_template_id_e5df1a9e_scoped_true_render,
|
2372
|
+
YcCustomerServicevue_type_template_id_e5df1a9e_scoped_true_staticRenderFns,
|
2367
2373
|
false,
|
2368
2374
|
null,
|
2369
|
-
"
|
2375
|
+
"e5df1a9e",
|
2370
2376
|
null
|
2371
2377
|
|
2372
2378
|
)
|