@deanwu/vue-component-library 1.0.15 → 1.0.17
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/vue-component-library.common.js +783 -75
- package/dist/vue-component-library.common.js.map +1 -1
- package/dist/vue-component-library.css +1 -1
- package/dist/vue-component-library.umd.js +783 -75
- package/dist/vue-component-library.umd.js.map +1 -1
- package/dist/vue-component-library.umd.min.js +1 -1
- package/dist/vue-component-library.umd.min.js.map +1 -1
- package/package.json +1 -1
|
@@ -1683,6 +1683,8 @@ if (typeof window !== 'undefined') {
|
|
|
1683
1683
|
// Indicate to webpack that this file can be concatenated
|
|
1684
1684
|
/* harmony default export */ var setPublicPath = (null);
|
|
1685
1685
|
|
|
1686
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.push.js
|
|
1687
|
+
var es_array_push = __webpack_require__(7658);
|
|
1686
1688
|
;// 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/unit/button.vue?vue&type=template&id=73616ebe&scoped=true&
|
|
1687
1689
|
var render = function render() {
|
|
1688
1690
|
var _vm = this,
|
|
@@ -2256,7 +2258,9 @@ var radiovue_type_template_id_07d956d7_scoped_true_staticRenderFns = [];
|
|
|
2256
2258
|
// import Vue from 'vue'
|
|
2257
2259
|
|
|
2258
2260
|
function createStore(data) {
|
|
2259
|
-
return {
|
|
2261
|
+
return {
|
|
2262
|
+
commit: function () {}
|
|
2263
|
+
};
|
|
2260
2264
|
// return new (Vue.extend({
|
|
2261
2265
|
// data() {
|
|
2262
2266
|
// return data
|
|
@@ -2702,8 +2706,6 @@ var selectvue_type_template_id_752f2375_staticRenderFns = [function () {
|
|
|
2702
2706
|
|
|
2703
2707
|
;// CONCATENATED MODULE: ./src/components/unit/select.vue?vue&type=template&id=752f2375&
|
|
2704
2708
|
|
|
2705
|
-
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.push.js
|
|
2706
|
-
var es_array_push = __webpack_require__(7658);
|
|
2707
2709
|
;// 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/unit/select.vue?vue&type=script&lang=js&
|
|
2708
2710
|
|
|
2709
2711
|
|
|
@@ -3479,6 +3481,721 @@ var file_component = normalizeComponent(
|
|
|
3479
3481
|
)
|
|
3480
3482
|
|
|
3481
3483
|
/* harmony default export */ var file = (file_component.exports);
|
|
3484
|
+
;// 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/popup/dialog.vue?vue&type=template&id=a69b8388&scoped=true&
|
|
3485
|
+
var dialogvue_type_template_id_a69b8388_scoped_true_render = function render() {
|
|
3486
|
+
var _vm = this,
|
|
3487
|
+
_c = _vm._self._c;
|
|
3488
|
+
return _c('div', {
|
|
3489
|
+
directives: [{
|
|
3490
|
+
name: "show",
|
|
3491
|
+
rawName: "v-show",
|
|
3492
|
+
value: _vm.show,
|
|
3493
|
+
expression: "show"
|
|
3494
|
+
}]
|
|
3495
|
+
}, [_c('div', {
|
|
3496
|
+
staticClass: "popup-mask an an-fadein",
|
|
3497
|
+
class: {
|
|
3498
|
+
'an-fadeout': !_vm.active
|
|
3499
|
+
},
|
|
3500
|
+
staticStyle: {
|
|
3501
|
+
"z-index": "101"
|
|
3502
|
+
}
|
|
3503
|
+
}), _c('div', {
|
|
3504
|
+
ref: "wrapper",
|
|
3505
|
+
staticClass: "c-dialog-wrapper",
|
|
3506
|
+
attrs: {
|
|
3507
|
+
"mode": _vm.mode
|
|
3508
|
+
}
|
|
3509
|
+
}, [_c('div', {
|
|
3510
|
+
staticClass: "c-dialog flex-column an",
|
|
3511
|
+
class: {
|
|
3512
|
+
[_vm.animate]: _vm.active,
|
|
3513
|
+
'an-fadeout': !_vm.active
|
|
3514
|
+
},
|
|
3515
|
+
style: {
|
|
3516
|
+
'width': _vm.parsePixel(_vm.compWidth)
|
|
3517
|
+
},
|
|
3518
|
+
attrs: {
|
|
3519
|
+
"mode": _vm.mode,
|
|
3520
|
+
"confirm": _vm.confirm
|
|
3521
|
+
}
|
|
3522
|
+
}, [_vm.title !== false ? _c('div', {
|
|
3523
|
+
staticClass: "c-dialog-head"
|
|
3524
|
+
}, [_c('p', [_vm._v(_vm._s(_vm.title))])]) : _vm._e(), _vm.closeButton ? _c('div', {
|
|
3525
|
+
staticClass: "c-dialog-close flex-center",
|
|
3526
|
+
on: {
|
|
3527
|
+
"click": _vm.close
|
|
3528
|
+
}
|
|
3529
|
+
}, [_c('i', {
|
|
3530
|
+
staticClass: "tf tf-cross"
|
|
3531
|
+
})]) : _vm._e(), _c('div', {
|
|
3532
|
+
ref: "content",
|
|
3533
|
+
class: {
|
|
3534
|
+
'flex-grow': _vm.mode == 'slide'
|
|
3535
|
+
},
|
|
3536
|
+
style: {
|
|
3537
|
+
'height': _vm.parsePixel(_vm.compHeight),
|
|
3538
|
+
'padding-bottom': _vm.oddHeight ? '1px' : '',
|
|
3539
|
+
'overflow': _vm.compHeight == 'auto' ? '' : 'auto'
|
|
3540
|
+
}
|
|
3541
|
+
}, [_vm._t("default")], 2), _vm.button ? _c('div', {
|
|
3542
|
+
staticClass: "c-dialog-button flex-center-cross flex-end-center"
|
|
3543
|
+
}, [_vm.$slots.button ? _vm._t("button") : [_c('c-button', {
|
|
3544
|
+
attrs: {
|
|
3545
|
+
"size": "m"
|
|
3546
|
+
},
|
|
3547
|
+
on: {
|
|
3548
|
+
"click": function ($event) {
|
|
3549
|
+
return _vm.buttonHandle('resolve');
|
|
3550
|
+
}
|
|
3551
|
+
}
|
|
3552
|
+
}, [_vm._v(_vm._s(_vm.buttonName))]), _vm.cancelButton ? _c('c-button', {
|
|
3553
|
+
attrs: {
|
|
3554
|
+
"color": "black",
|
|
3555
|
+
"size": "m",
|
|
3556
|
+
"hollow": ""
|
|
3557
|
+
},
|
|
3558
|
+
on: {
|
|
3559
|
+
"click": function ($event) {
|
|
3560
|
+
return _vm.buttonHandle('cancel');
|
|
3561
|
+
}
|
|
3562
|
+
}
|
|
3563
|
+
}, [_vm._v(_vm._s(_vm.cancelButtonnName))]) : _vm._e()]], 2) : _vm._e()])])]);
|
|
3564
|
+
};
|
|
3565
|
+
var dialogvue_type_template_id_a69b8388_scoped_true_staticRenderFns = [];
|
|
3566
|
+
|
|
3567
|
+
;// 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/popup/dialog.vue?vue&type=script&lang=js&
|
|
3568
|
+
/* harmony default export */ var dialogvue_type_script_lang_js_ = ({
|
|
3569
|
+
name: 'cDialog',
|
|
3570
|
+
props: {
|
|
3571
|
+
mode: {
|
|
3572
|
+
// 打开模式(popup: 渐显; slide: 侧滑)
|
|
3573
|
+
type: String,
|
|
3574
|
+
default: 'popup'
|
|
3575
|
+
},
|
|
3576
|
+
confirm: Boolean,
|
|
3577
|
+
title: {
|
|
3578
|
+
type: [String, Boolean],
|
|
3579
|
+
default: ''
|
|
3580
|
+
},
|
|
3581
|
+
width: [Number, String],
|
|
3582
|
+
height: {
|
|
3583
|
+
type: [Number, String],
|
|
3584
|
+
default: 'auto'
|
|
3585
|
+
},
|
|
3586
|
+
closeButton: {
|
|
3587
|
+
type: Boolean,
|
|
3588
|
+
default: true
|
|
3589
|
+
},
|
|
3590
|
+
button: {
|
|
3591
|
+
type: Boolean,
|
|
3592
|
+
default: true
|
|
3593
|
+
},
|
|
3594
|
+
buttonName: {
|
|
3595
|
+
type: String,
|
|
3596
|
+
default: '确定'
|
|
3597
|
+
},
|
|
3598
|
+
cancelButton: {
|
|
3599
|
+
type: Boolean,
|
|
3600
|
+
default: true
|
|
3601
|
+
},
|
|
3602
|
+
cancelButtonnName: {
|
|
3603
|
+
type: String,
|
|
3604
|
+
default: '取消'
|
|
3605
|
+
}
|
|
3606
|
+
},
|
|
3607
|
+
data() {
|
|
3608
|
+
return {
|
|
3609
|
+
show: false,
|
|
3610
|
+
active: false,
|
|
3611
|
+
oddHeight: false
|
|
3612
|
+
};
|
|
3613
|
+
},
|
|
3614
|
+
computed: {
|
|
3615
|
+
compWidth() {
|
|
3616
|
+
return this.width || {
|
|
3617
|
+
popup: 750,
|
|
3618
|
+
slide: 600
|
|
3619
|
+
}[this.mode];
|
|
3620
|
+
},
|
|
3621
|
+
compHeight() {
|
|
3622
|
+
return this.mode == 'slide' ? 0 : this.height;
|
|
3623
|
+
},
|
|
3624
|
+
animate() {
|
|
3625
|
+
return {
|
|
3626
|
+
popup: 'an-popup',
|
|
3627
|
+
slide: 'an-slidein'
|
|
3628
|
+
}[this.mode];
|
|
3629
|
+
}
|
|
3630
|
+
},
|
|
3631
|
+
mounted() {
|
|
3632
|
+
this._observer = new MutationObserver(this.updateOddHeight);
|
|
3633
|
+
this._observer.observe(this.$refs.content, {
|
|
3634
|
+
childList: true,
|
|
3635
|
+
subtree: true
|
|
3636
|
+
});
|
|
3637
|
+
},
|
|
3638
|
+
beforeDestroy() {
|
|
3639
|
+
this._observer.disconnect();
|
|
3640
|
+
},
|
|
3641
|
+
methods: {
|
|
3642
|
+
updateOddHeight() {
|
|
3643
|
+
if (this.show) {
|
|
3644
|
+
this.$nextTick(() => {
|
|
3645
|
+
this.oddHeight = (this.$refs.wrapper.getBoundingClientRect().height - (this.oddHeight ? 1 : 0)) % 2 == 1;
|
|
3646
|
+
});
|
|
3647
|
+
}
|
|
3648
|
+
},
|
|
3649
|
+
open() {
|
|
3650
|
+
this.active = true;
|
|
3651
|
+
this.show = true;
|
|
3652
|
+
this.updateOddHeight();
|
|
3653
|
+
},
|
|
3654
|
+
close() {
|
|
3655
|
+
this.active = false;
|
|
3656
|
+
this.$emit('close');
|
|
3657
|
+
setTimeout(() => {
|
|
3658
|
+
this.show = false;
|
|
3659
|
+
}, 250);
|
|
3660
|
+
},
|
|
3661
|
+
buttonHandle(state) {
|
|
3662
|
+
let stop = false;
|
|
3663
|
+
this.$emit(state, () => {
|
|
3664
|
+
stop = true;
|
|
3665
|
+
});
|
|
3666
|
+
!stop && this.close();
|
|
3667
|
+
}
|
|
3668
|
+
}
|
|
3669
|
+
});
|
|
3670
|
+
;// CONCATENATED MODULE: ./src/components/popup/dialog.vue?vue&type=script&lang=js&
|
|
3671
|
+
/* harmony default export */ var popup_dialogvue_type_script_lang_js_ = (dialogvue_type_script_lang_js_);
|
|
3672
|
+
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-79.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-79.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-79.use[2]!./node_modules/stylus-loader/index.js??clonedRuleSet-79.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/popup/dialog.vue?vue&type=style&index=0&id=a69b8388&prod&lang=stylus&scoped=true&
|
|
3673
|
+
// extracted by mini-css-extract-plugin
|
|
3674
|
+
|
|
3675
|
+
;// CONCATENATED MODULE: ./src/components/popup/dialog.vue?vue&type=style&index=0&id=a69b8388&prod&lang=stylus&scoped=true&
|
|
3676
|
+
|
|
3677
|
+
;// CONCATENATED MODULE: ./src/components/popup/dialog.vue
|
|
3678
|
+
|
|
3679
|
+
|
|
3680
|
+
|
|
3681
|
+
;
|
|
3682
|
+
|
|
3683
|
+
|
|
3684
|
+
/* normalize component */
|
|
3685
|
+
|
|
3686
|
+
var dialog_component = normalizeComponent(
|
|
3687
|
+
popup_dialogvue_type_script_lang_js_,
|
|
3688
|
+
dialogvue_type_template_id_a69b8388_scoped_true_render,
|
|
3689
|
+
dialogvue_type_template_id_a69b8388_scoped_true_staticRenderFns,
|
|
3690
|
+
false,
|
|
3691
|
+
null,
|
|
3692
|
+
"a69b8388",
|
|
3693
|
+
null
|
|
3694
|
+
|
|
3695
|
+
)
|
|
3696
|
+
|
|
3697
|
+
/* harmony default export */ var dialog = (dialog_component.exports);
|
|
3698
|
+
;// 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/popup/loading.vue?vue&type=template&id=1786b91e&
|
|
3699
|
+
var loadingvue_type_template_id_1786b91e_render = function render() {
|
|
3700
|
+
var _vm = this,
|
|
3701
|
+
_c = _vm._self._c;
|
|
3702
|
+
return _c('div');
|
|
3703
|
+
};
|
|
3704
|
+
var loadingvue_type_template_id_1786b91e_staticRenderFns = [];
|
|
3705
|
+
|
|
3706
|
+
;// 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/popup/loading.vue?vue&type=script&lang=js&
|
|
3707
|
+
/* harmony default export */ var loadingvue_type_script_lang_js_ = ({
|
|
3708
|
+
name: 'loading',
|
|
3709
|
+
data() {
|
|
3710
|
+
return {
|
|
3711
|
+
message: '',
|
|
3712
|
+
// 消息内容
|
|
3713
|
+
timeout: 10000 // 自动消失时长
|
|
3714
|
+
};
|
|
3715
|
+
},
|
|
3716
|
+
|
|
3717
|
+
created() {
|
|
3718
|
+
this._$message = this.$message({
|
|
3719
|
+
type: 'loading',
|
|
3720
|
+
message: this.message,
|
|
3721
|
+
timeout: this.timeout,
|
|
3722
|
+
mask: true
|
|
3723
|
+
});
|
|
3724
|
+
},
|
|
3725
|
+
methods: {
|
|
3726
|
+
close() {
|
|
3727
|
+
this._$message.close();
|
|
3728
|
+
}
|
|
3729
|
+
}
|
|
3730
|
+
});
|
|
3731
|
+
;// CONCATENATED MODULE: ./src/components/popup/loading.vue?vue&type=script&lang=js&
|
|
3732
|
+
/* harmony default export */ var popup_loadingvue_type_script_lang_js_ = (loadingvue_type_script_lang_js_);
|
|
3733
|
+
;// CONCATENATED MODULE: ./src/components/popup/loading.vue
|
|
3734
|
+
|
|
3735
|
+
|
|
3736
|
+
|
|
3737
|
+
|
|
3738
|
+
|
|
3739
|
+
/* normalize component */
|
|
3740
|
+
;
|
|
3741
|
+
var loading_component = normalizeComponent(
|
|
3742
|
+
popup_loadingvue_type_script_lang_js_,
|
|
3743
|
+
loadingvue_type_template_id_1786b91e_render,
|
|
3744
|
+
loadingvue_type_template_id_1786b91e_staticRenderFns,
|
|
3745
|
+
false,
|
|
3746
|
+
null,
|
|
3747
|
+
null,
|
|
3748
|
+
null
|
|
3749
|
+
|
|
3750
|
+
)
|
|
3751
|
+
|
|
3752
|
+
/* harmony default export */ var loading = (loading_component.exports);
|
|
3753
|
+
;// 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/popup/message.vue?vue&type=template&id=54a8762f&scoped=true&
|
|
3754
|
+
var messagevue_type_template_id_54a8762f_scoped_true_render = function render() {
|
|
3755
|
+
var _vm = this,
|
|
3756
|
+
_c = _vm._self._c;
|
|
3757
|
+
return _c('div', [_vm.mask ? _c('div', {
|
|
3758
|
+
staticClass: "popup-mask",
|
|
3759
|
+
staticStyle: {
|
|
3760
|
+
"z-index": "999"
|
|
3761
|
+
},
|
|
3762
|
+
attrs: {
|
|
3763
|
+
"invisible": ""
|
|
3764
|
+
}
|
|
3765
|
+
}) : _vm._e(), _c('div', {
|
|
3766
|
+
staticClass: "c-message flex flex-center an",
|
|
3767
|
+
class: {
|
|
3768
|
+
'an-fadein': _vm.active,
|
|
3769
|
+
'an-fadeout': !_vm.active
|
|
3770
|
+
},
|
|
3771
|
+
style: {
|
|
3772
|
+
'min-width': _vm.type == 'loading' ? 'auto' : ''
|
|
3773
|
+
}
|
|
3774
|
+
}, [_c('i', {
|
|
3775
|
+
staticClass: "tf tf-message",
|
|
3776
|
+
class: _vm.type ? `tf-message-${_vm.type}` : ''
|
|
3777
|
+
}), _vm.message ? _c('p', {
|
|
3778
|
+
domProps: {
|
|
3779
|
+
"innerHTML": _vm._s(_vm.message)
|
|
3780
|
+
}
|
|
3781
|
+
}) : _vm._e()])]);
|
|
3782
|
+
};
|
|
3783
|
+
var messagevue_type_template_id_54a8762f_scoped_true_staticRenderFns = [];
|
|
3784
|
+
|
|
3785
|
+
;// 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/popup/message.vue?vue&type=script&lang=js&
|
|
3786
|
+
/* harmony default export */ var messagevue_type_script_lang_js_ = ({
|
|
3787
|
+
name: 'message',
|
|
3788
|
+
data() {
|
|
3789
|
+
return {
|
|
3790
|
+
type: '',
|
|
3791
|
+
// 消息类型 (success: 成功; fail: 失败; warn: 警告;)
|
|
3792
|
+
message: '',
|
|
3793
|
+
// 消息内容
|
|
3794
|
+
timeout: 2500,
|
|
3795
|
+
// 自动消失时长
|
|
3796
|
+
mask: false,
|
|
3797
|
+
// 是否显示遮罩
|
|
3798
|
+
active: true
|
|
3799
|
+
};
|
|
3800
|
+
},
|
|
3801
|
+
mounted() {
|
|
3802
|
+
window._$messageVm && window._$messageVm.close();
|
|
3803
|
+
window._$messageVm = this;
|
|
3804
|
+
this.timeout && (this._timer = setTimeout(this.close, this.timeout));
|
|
3805
|
+
},
|
|
3806
|
+
methods: {
|
|
3807
|
+
close() {
|
|
3808
|
+
this.active = false;
|
|
3809
|
+
clearTimeout(this._timer);
|
|
3810
|
+
setTimeout(() => {
|
|
3811
|
+
this.$destroy();
|
|
3812
|
+
this.$el.remove();
|
|
3813
|
+
}, 250);
|
|
3814
|
+
}
|
|
3815
|
+
}
|
|
3816
|
+
});
|
|
3817
|
+
;// CONCATENATED MODULE: ./src/components/popup/message.vue?vue&type=script&lang=js&
|
|
3818
|
+
/* harmony default export */ var popup_messagevue_type_script_lang_js_ = (messagevue_type_script_lang_js_);
|
|
3819
|
+
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-79.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-79.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-79.use[2]!./node_modules/stylus-loader/index.js??clonedRuleSet-79.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/popup/message.vue?vue&type=style&index=0&id=54a8762f&prod&lang=stylus&scoped=true&
|
|
3820
|
+
// extracted by mini-css-extract-plugin
|
|
3821
|
+
|
|
3822
|
+
;// CONCATENATED MODULE: ./src/components/popup/message.vue?vue&type=style&index=0&id=54a8762f&prod&lang=stylus&scoped=true&
|
|
3823
|
+
|
|
3824
|
+
;// CONCATENATED MODULE: ./src/components/popup/message.vue
|
|
3825
|
+
|
|
3826
|
+
|
|
3827
|
+
|
|
3828
|
+
;
|
|
3829
|
+
|
|
3830
|
+
|
|
3831
|
+
/* normalize component */
|
|
3832
|
+
|
|
3833
|
+
var message_component = normalizeComponent(
|
|
3834
|
+
popup_messagevue_type_script_lang_js_,
|
|
3835
|
+
messagevue_type_template_id_54a8762f_scoped_true_render,
|
|
3836
|
+
messagevue_type_template_id_54a8762f_scoped_true_staticRenderFns,
|
|
3837
|
+
false,
|
|
3838
|
+
null,
|
|
3839
|
+
"54a8762f",
|
|
3840
|
+
null
|
|
3841
|
+
|
|
3842
|
+
)
|
|
3843
|
+
|
|
3844
|
+
/* harmony default export */ var message = (message_component.exports);
|
|
3845
|
+
;// 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/popup/notice.vue?vue&type=template&id=4669efae&scoped=true&
|
|
3846
|
+
var noticevue_type_template_id_4669efae_scoped_true_render = function render() {
|
|
3847
|
+
var _vm = this,
|
|
3848
|
+
_c = _vm._self._c;
|
|
3849
|
+
return _c('div', {
|
|
3850
|
+
staticClass: "c-notice an",
|
|
3851
|
+
class: {
|
|
3852
|
+
'an-slidein': _vm.active,
|
|
3853
|
+
'an-fadeout': !_vm.active
|
|
3854
|
+
},
|
|
3855
|
+
style: {
|
|
3856
|
+
'margin-top': _vm.active ? '' : -_vm.height + 'px'
|
|
3857
|
+
}
|
|
3858
|
+
}, [_c('div', {
|
|
3859
|
+
staticClass: "flex"
|
|
3860
|
+
}, [_c('i', {
|
|
3861
|
+
staticClass: "icon tf tf-message",
|
|
3862
|
+
class: _vm.type ? `tf-message-${_vm.type}` : '',
|
|
3863
|
+
attrs: {
|
|
3864
|
+
"color": ""
|
|
3865
|
+
}
|
|
3866
|
+
}), _c('div', {
|
|
3867
|
+
staticClass: "flex-grow"
|
|
3868
|
+
}, [_c('p', {
|
|
3869
|
+
staticClass: "title"
|
|
3870
|
+
}, [_vm._v(_vm._s(_vm.title))]), _c('div', {
|
|
3871
|
+
staticClass: "content",
|
|
3872
|
+
domProps: {
|
|
3873
|
+
"innerHTML": _vm._s(_vm.message)
|
|
3874
|
+
}
|
|
3875
|
+
})])]), _vm.button ? _c('div', {
|
|
3876
|
+
staticClass: "button"
|
|
3877
|
+
}, _vm._l(_vm.button, function (item, i) {
|
|
3878
|
+
return _c('a', {
|
|
3879
|
+
key: i,
|
|
3880
|
+
on: {
|
|
3881
|
+
"click": function ($event) {
|
|
3882
|
+
return _vm.buttonHandle(item);
|
|
3883
|
+
}
|
|
3884
|
+
}
|
|
3885
|
+
}, [_vm._v(_vm._s(item.name))]);
|
|
3886
|
+
}), 0) : _vm._e(), _c('a', {
|
|
3887
|
+
staticClass: "close flex-center",
|
|
3888
|
+
on: {
|
|
3889
|
+
"click": _vm.close
|
|
3890
|
+
}
|
|
3891
|
+
}, [_c('i', {
|
|
3892
|
+
staticClass: "tf tf-cross"
|
|
3893
|
+
})])]);
|
|
3894
|
+
};
|
|
3895
|
+
var noticevue_type_template_id_4669efae_scoped_true_staticRenderFns = [];
|
|
3896
|
+
|
|
3897
|
+
;// 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/popup/notice.vue?vue&type=script&lang=js&
|
|
3898
|
+
/* harmony default export */ var noticevue_type_script_lang_js_ = ({
|
|
3899
|
+
name: 'notice',
|
|
3900
|
+
data() {
|
|
3901
|
+
return {
|
|
3902
|
+
type: '',
|
|
3903
|
+
// 通知类型 (success: 成功; fail: 失败; warn: 警告;)
|
|
3904
|
+
title: '',
|
|
3905
|
+
// 通知标题
|
|
3906
|
+
message: '',
|
|
3907
|
+
// 通知内容
|
|
3908
|
+
timeout: 10000,
|
|
3909
|
+
// 自动消失时长
|
|
3910
|
+
button: false,
|
|
3911
|
+
// 按钮
|
|
3912
|
+
active: true,
|
|
3913
|
+
height: 0
|
|
3914
|
+
};
|
|
3915
|
+
},
|
|
3916
|
+
mounted() {
|
|
3917
|
+
this.$nextTick(() => {
|
|
3918
|
+
this.height = this.$el.clientHeight;
|
|
3919
|
+
});
|
|
3920
|
+
this.timeout && (this._timer = setTimeout(this.close, this.timeout));
|
|
3921
|
+
},
|
|
3922
|
+
methods: {
|
|
3923
|
+
close() {
|
|
3924
|
+
this.active = false;
|
|
3925
|
+
clearTimeout(this._timer);
|
|
3926
|
+
setTimeout(() => {
|
|
3927
|
+
this.$destroy();
|
|
3928
|
+
this.$el.remove();
|
|
3929
|
+
}, 450);
|
|
3930
|
+
},
|
|
3931
|
+
buttonHandle(item) {
|
|
3932
|
+
item.callback();
|
|
3933
|
+
this.close();
|
|
3934
|
+
}
|
|
3935
|
+
}
|
|
3936
|
+
});
|
|
3937
|
+
;// CONCATENATED MODULE: ./src/components/popup/notice.vue?vue&type=script&lang=js&
|
|
3938
|
+
/* harmony default export */ var popup_noticevue_type_script_lang_js_ = (noticevue_type_script_lang_js_);
|
|
3939
|
+
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-79.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-79.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-79.use[2]!./node_modules/stylus-loader/index.js??clonedRuleSet-79.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/popup/notice.vue?vue&type=style&index=0&id=4669efae&prod&lang=stylus&scoped=true&
|
|
3940
|
+
// extracted by mini-css-extract-plugin
|
|
3941
|
+
|
|
3942
|
+
;// CONCATENATED MODULE: ./src/components/popup/notice.vue?vue&type=style&index=0&id=4669efae&prod&lang=stylus&scoped=true&
|
|
3943
|
+
|
|
3944
|
+
;// CONCATENATED MODULE: ./src/components/popup/notice.vue
|
|
3945
|
+
|
|
3946
|
+
|
|
3947
|
+
|
|
3948
|
+
;
|
|
3949
|
+
|
|
3950
|
+
|
|
3951
|
+
/* normalize component */
|
|
3952
|
+
|
|
3953
|
+
var notice_component = normalizeComponent(
|
|
3954
|
+
popup_noticevue_type_script_lang_js_,
|
|
3955
|
+
noticevue_type_template_id_4669efae_scoped_true_render,
|
|
3956
|
+
noticevue_type_template_id_4669efae_scoped_true_staticRenderFns,
|
|
3957
|
+
false,
|
|
3958
|
+
null,
|
|
3959
|
+
"4669efae",
|
|
3960
|
+
null
|
|
3961
|
+
|
|
3962
|
+
)
|
|
3963
|
+
|
|
3964
|
+
/* harmony default export */ var notice = (notice_component.exports);
|
|
3965
|
+
;// 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/popup/confirm.vue?vue&type=template&id=63f1dde7&scoped=true&
|
|
3966
|
+
var confirmvue_type_template_id_63f1dde7_scoped_true_render = function render() {
|
|
3967
|
+
var _vm = this,
|
|
3968
|
+
_c = _vm._self._c;
|
|
3969
|
+
return _c('c-dialog', {
|
|
3970
|
+
ref: "dialog",
|
|
3971
|
+
attrs: {
|
|
3972
|
+
"confirm": "",
|
|
3973
|
+
"title": false,
|
|
3974
|
+
"width": "450",
|
|
3975
|
+
"close-button": false
|
|
3976
|
+
}
|
|
3977
|
+
}, [_c('div', {
|
|
3978
|
+
staticClass: "c-confirm flex"
|
|
3979
|
+
}, [_c('i', {
|
|
3980
|
+
staticClass: "icon tf",
|
|
3981
|
+
class: _vm.type ? `tf-message-${_vm.type}` : '',
|
|
3982
|
+
attrs: {
|
|
3983
|
+
"color": ""
|
|
3984
|
+
}
|
|
3985
|
+
}), _c('div', {
|
|
3986
|
+
staticClass: "flex-grow"
|
|
3987
|
+
}, [_c('p', {
|
|
3988
|
+
staticClass: "title"
|
|
3989
|
+
}, [_vm._v(_vm._s(_vm.title))]), _c('div', {
|
|
3990
|
+
staticClass: "content",
|
|
3991
|
+
domProps: {
|
|
3992
|
+
"innerHTML": _vm._s(_vm.message)
|
|
3993
|
+
}
|
|
3994
|
+
})])]), _c('template', {
|
|
3995
|
+
slot: "button"
|
|
3996
|
+
}, [_c('c-button', {
|
|
3997
|
+
attrs: {
|
|
3998
|
+
"width": "72",
|
|
3999
|
+
"height": "34",
|
|
4000
|
+
"size": "m"
|
|
4001
|
+
},
|
|
4002
|
+
on: {
|
|
4003
|
+
"click": function ($event) {
|
|
4004
|
+
return _vm.buttonHandle('resolve');
|
|
4005
|
+
}
|
|
4006
|
+
}
|
|
4007
|
+
}, [_vm._v(_vm._s(_vm.buttonName))]), _vm.cancelButton ? _c('c-button', {
|
|
4008
|
+
attrs: {
|
|
4009
|
+
"width": "72",
|
|
4010
|
+
"height": "34",
|
|
4011
|
+
"size": "m",
|
|
4012
|
+
"color": "black",
|
|
4013
|
+
"hollow": ""
|
|
4014
|
+
},
|
|
4015
|
+
on: {
|
|
4016
|
+
"click": function ($event) {
|
|
4017
|
+
return _vm.buttonHandle('cancel');
|
|
4018
|
+
}
|
|
4019
|
+
}
|
|
4020
|
+
}, [_vm._v(_vm._s(_vm.cancelButtonName))]) : _vm._e()], 1)], 2);
|
|
4021
|
+
};
|
|
4022
|
+
var confirmvue_type_template_id_63f1dde7_scoped_true_staticRenderFns = [];
|
|
4023
|
+
|
|
4024
|
+
;// 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/popup/confirm.vue?vue&type=script&lang=js&
|
|
4025
|
+
/* harmony default export */ var confirmvue_type_script_lang_js_ = ({
|
|
4026
|
+
name: 'confirm',
|
|
4027
|
+
data() {
|
|
4028
|
+
return {
|
|
4029
|
+
type: 'enquire',
|
|
4030
|
+
// 消息类型 (enquire: 询问; warn: 警告;)
|
|
4031
|
+
title: '消息提醒',
|
|
4032
|
+
// 消息标题
|
|
4033
|
+
message: '',
|
|
4034
|
+
// 消息内容
|
|
4035
|
+
buttonName: '确定',
|
|
4036
|
+
cancelButton: true,
|
|
4037
|
+
cancelButtonName: '取消'
|
|
4038
|
+
};
|
|
4039
|
+
},
|
|
4040
|
+
mounted() {
|
|
4041
|
+
this.$refs.dialog.open();
|
|
4042
|
+
},
|
|
4043
|
+
methods: {
|
|
4044
|
+
buttonHandle(state) {
|
|
4045
|
+
this[state] && this[state]();
|
|
4046
|
+
this.$refs.dialog.close();
|
|
4047
|
+
setTimeout(() => {
|
|
4048
|
+
this.$destroy();
|
|
4049
|
+
this.$el.remove();
|
|
4050
|
+
}, 260);
|
|
4051
|
+
}
|
|
4052
|
+
}
|
|
4053
|
+
});
|
|
4054
|
+
;// CONCATENATED MODULE: ./src/components/popup/confirm.vue?vue&type=script&lang=js&
|
|
4055
|
+
/* harmony default export */ var popup_confirmvue_type_script_lang_js_ = (confirmvue_type_script_lang_js_);
|
|
4056
|
+
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-79.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-79.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-79.use[2]!./node_modules/stylus-loader/index.js??clonedRuleSet-79.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/popup/confirm.vue?vue&type=style&index=0&id=63f1dde7&prod&lang=stylus&scoped=true&
|
|
4057
|
+
// extracted by mini-css-extract-plugin
|
|
4058
|
+
|
|
4059
|
+
;// CONCATENATED MODULE: ./src/components/popup/confirm.vue?vue&type=style&index=0&id=63f1dde7&prod&lang=stylus&scoped=true&
|
|
4060
|
+
|
|
4061
|
+
;// CONCATENATED MODULE: ./src/components/popup/confirm.vue
|
|
4062
|
+
|
|
4063
|
+
|
|
4064
|
+
|
|
4065
|
+
;
|
|
4066
|
+
|
|
4067
|
+
|
|
4068
|
+
/* normalize component */
|
|
4069
|
+
|
|
4070
|
+
var confirm_component = normalizeComponent(
|
|
4071
|
+
popup_confirmvue_type_script_lang_js_,
|
|
4072
|
+
confirmvue_type_template_id_63f1dde7_scoped_true_render,
|
|
4073
|
+
confirmvue_type_template_id_63f1dde7_scoped_true_staticRenderFns,
|
|
4074
|
+
false,
|
|
4075
|
+
null,
|
|
4076
|
+
"63f1dde7",
|
|
4077
|
+
null
|
|
4078
|
+
|
|
4079
|
+
)
|
|
4080
|
+
|
|
4081
|
+
/* harmony default export */ var popup_confirm = (confirm_component.exports);
|
|
4082
|
+
;// 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/popup/preview.vue?vue&type=template&id=dc0d36ce&scoped=true&
|
|
4083
|
+
var previewvue_type_template_id_dc0d36ce_scoped_true_render = function render() {
|
|
4084
|
+
var _vm = this,
|
|
4085
|
+
_c = _vm._self._c;
|
|
4086
|
+
return _c('c-dialog', {
|
|
4087
|
+
ref: "dialog",
|
|
4088
|
+
attrs: {
|
|
4089
|
+
"title": false,
|
|
4090
|
+
"width": "auto",
|
|
4091
|
+
"button": false
|
|
4092
|
+
}
|
|
4093
|
+
}, [_c('div', {
|
|
4094
|
+
staticClass: "preview-close flex-center",
|
|
4095
|
+
on: {
|
|
4096
|
+
"click": _vm.close
|
|
4097
|
+
}
|
|
4098
|
+
}, [_c('i', {
|
|
4099
|
+
staticClass: "tf tf-cross"
|
|
4100
|
+
})]), _vm.video ? _c('video', {
|
|
4101
|
+
ref: "video",
|
|
4102
|
+
staticClass: "preview-video",
|
|
4103
|
+
attrs: {
|
|
4104
|
+
"src": _vm.src,
|
|
4105
|
+
"controls": "",
|
|
4106
|
+
"loop": "",
|
|
4107
|
+
"autoplay": ""
|
|
4108
|
+
}
|
|
4109
|
+
}) : _c('img', {
|
|
4110
|
+
ref: "img",
|
|
4111
|
+
staticClass: "preview-img",
|
|
4112
|
+
attrs: {
|
|
4113
|
+
"src": _vm.src
|
|
4114
|
+
}
|
|
4115
|
+
})]);
|
|
4116
|
+
};
|
|
4117
|
+
var previewvue_type_template_id_dc0d36ce_scoped_true_staticRenderFns = [];
|
|
4118
|
+
|
|
4119
|
+
;// 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/popup/preview.vue?vue&type=script&lang=js&
|
|
4120
|
+
/* harmony default export */ var previewvue_type_script_lang_js_ = ({
|
|
4121
|
+
name: 'preview',
|
|
4122
|
+
data() {
|
|
4123
|
+
return {
|
|
4124
|
+
src: ''
|
|
4125
|
+
};
|
|
4126
|
+
},
|
|
4127
|
+
computed: {
|
|
4128
|
+
video() {
|
|
4129
|
+
var arr = this.src.split('.');
|
|
4130
|
+
return ['mp4', 'webm'].includes(arr[arr.length - 1]);
|
|
4131
|
+
}
|
|
4132
|
+
},
|
|
4133
|
+
mounted() {
|
|
4134
|
+
if (!this.src) return;
|
|
4135
|
+
this.$loading();
|
|
4136
|
+
if (this.video) {
|
|
4137
|
+
this.$refs.video.addEventListener('play', () => {
|
|
4138
|
+
this.$loadOver();
|
|
4139
|
+
this.$refs.dialog.open();
|
|
4140
|
+
});
|
|
4141
|
+
this.$refs.video.addEventListener('error', () => {
|
|
4142
|
+
this.$loadOver();
|
|
4143
|
+
this.$message({
|
|
4144
|
+
type: 'fail',
|
|
4145
|
+
message: '视频加载失败'
|
|
4146
|
+
});
|
|
4147
|
+
});
|
|
4148
|
+
} else {
|
|
4149
|
+
this.$refs.img.onload = () => {
|
|
4150
|
+
this.$loadOver();
|
|
4151
|
+
this.$refs.dialog.open();
|
|
4152
|
+
};
|
|
4153
|
+
this.$refs.img.onerror = () => {
|
|
4154
|
+
this.$loadOver();
|
|
4155
|
+
this.$message({
|
|
4156
|
+
type: 'fail',
|
|
4157
|
+
message: '图片加载失败'
|
|
4158
|
+
});
|
|
4159
|
+
};
|
|
4160
|
+
}
|
|
4161
|
+
},
|
|
4162
|
+
methods: {
|
|
4163
|
+
close() {
|
|
4164
|
+
this.$refs.dialog.close();
|
|
4165
|
+
setTimeout(() => {
|
|
4166
|
+
this.$el.remove();
|
|
4167
|
+
}, 260);
|
|
4168
|
+
}
|
|
4169
|
+
}
|
|
4170
|
+
});
|
|
4171
|
+
;// CONCATENATED MODULE: ./src/components/popup/preview.vue?vue&type=script&lang=js&
|
|
4172
|
+
/* harmony default export */ var popup_previewvue_type_script_lang_js_ = (previewvue_type_script_lang_js_);
|
|
4173
|
+
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-79.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-79.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-79.use[2]!./node_modules/stylus-loader/index.js??clonedRuleSet-79.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/popup/preview.vue?vue&type=style&index=0&id=dc0d36ce&prod&lang=stylus&scoped=true&
|
|
4174
|
+
// extracted by mini-css-extract-plugin
|
|
4175
|
+
|
|
4176
|
+
;// CONCATENATED MODULE: ./src/components/popup/preview.vue?vue&type=style&index=0&id=dc0d36ce&prod&lang=stylus&scoped=true&
|
|
4177
|
+
|
|
4178
|
+
;// CONCATENATED MODULE: ./src/components/popup/preview.vue
|
|
4179
|
+
|
|
4180
|
+
|
|
4181
|
+
|
|
4182
|
+
;
|
|
4183
|
+
|
|
4184
|
+
|
|
4185
|
+
/* normalize component */
|
|
4186
|
+
|
|
4187
|
+
var preview_component = normalizeComponent(
|
|
4188
|
+
popup_previewvue_type_script_lang_js_,
|
|
4189
|
+
previewvue_type_template_id_dc0d36ce_scoped_true_render,
|
|
4190
|
+
previewvue_type_template_id_dc0d36ce_scoped_true_staticRenderFns,
|
|
4191
|
+
false,
|
|
4192
|
+
null,
|
|
4193
|
+
"dc0d36ce",
|
|
4194
|
+
null
|
|
4195
|
+
|
|
4196
|
+
)
|
|
4197
|
+
|
|
4198
|
+
/* harmony default export */ var preview = (preview_component.exports);
|
|
3482
4199
|
;// CONCATENATED MODULE: ./src/components/index.js
|
|
3483
4200
|
|
|
3484
4201
|
|
|
@@ -3490,87 +4207,78 @@ var file_component = normalizeComponent(
|
|
|
3490
4207
|
|
|
3491
4208
|
|
|
3492
4209
|
|
|
4210
|
+
|
|
4211
|
+
|
|
4212
|
+
|
|
4213
|
+
|
|
4214
|
+
|
|
3493
4215
|
// import Editor from './unit/editor.vue'
|
|
3494
4216
|
|
|
3495
|
-
// import cDialog from './popup/dialog.vue'
|
|
3496
|
-
// import loading from './popup/loading.vue';
|
|
3497
|
-
// import message from './popup/message.vue';
|
|
3498
|
-
// import notice from './popup/notice.vue';
|
|
3499
|
-
// import confirm from './popup/confirm.vue';
|
|
3500
|
-
// import preview from './popup/preview.vue';
|
|
3501
4217
|
|
|
3502
|
-
|
|
4218
|
+
|
|
4219
|
+
|
|
4220
|
+
|
|
4221
|
+
|
|
4222
|
+
|
|
4223
|
+
const COMPS = [unit_button, input, unit_radio, radio_group, unit_checkbox, checkbox_group, unit_select, region, upload_file, file,
|
|
3503
4224
|
// Editor,
|
|
3504
|
-
|
|
3505
|
-
];
|
|
3506
|
-
// const DYNAMIC_COMPS = [
|
|
3507
|
-
// loading,
|
|
3508
|
-
// message,
|
|
3509
|
-
// notice,
|
|
3510
|
-
// confirm,
|
|
3511
|
-
// preview
|
|
3512
|
-
// ];
|
|
4225
|
+
dialog];
|
|
4226
|
+
const DYNAMIC_COMPS = [loading, message, notice, popup_confirm, preview];
|
|
3513
4227
|
const install = function (Vue, config) {
|
|
3514
4228
|
COMPS.forEach(comp => {
|
|
3515
4229
|
Vue.component(comp.name, comp);
|
|
3516
4230
|
});
|
|
3517
|
-
|
|
3518
|
-
|
|
3519
|
-
|
|
3520
|
-
|
|
3521
|
-
|
|
3522
|
-
|
|
3523
|
-
|
|
3524
|
-
|
|
3525
|
-
|
|
3526
|
-
|
|
3527
|
-
|
|
3528
|
-
|
|
3529
|
-
|
|
3530
|
-
|
|
3531
|
-
|
|
3532
|
-
|
|
3533
|
-
|
|
3534
|
-
|
|
3535
|
-
|
|
3536
|
-
|
|
3537
|
-
|
|
3538
|
-
|
|
3539
|
-
|
|
3540
|
-
|
|
3541
|
-
|
|
3542
|
-
|
|
3543
|
-
|
|
3544
|
-
|
|
3545
|
-
|
|
3546
|
-
|
|
3547
|
-
|
|
3548
|
-
|
|
3549
|
-
|
|
3550
|
-
|
|
3551
|
-
|
|
3552
|
-
|
|
3553
|
-
|
|
3554
|
-
|
|
3555
|
-
|
|
3556
|
-
|
|
3557
|
-
|
|
3558
|
-
|
|
3559
|
-
|
|
3560
|
-
|
|
3561
|
-
|
|
3562
|
-
|
|
3563
|
-
|
|
3564
|
-
|
|
3565
|
-
|
|
3566
|
-
|
|
3567
|
-
// }
|
|
3568
|
-
|
|
3569
|
-
// return vm;
|
|
3570
|
-
// }
|
|
3571
|
-
// });
|
|
4231
|
+
var popupNoticeList = [];
|
|
4232
|
+
var $popupNotice = document.createElement('div');
|
|
4233
|
+
$popupNotice.style.zIndex = 999;
|
|
4234
|
+
$popupNotice.style.position = 'fixed';
|
|
4235
|
+
$popupNotice.style.right = 0;
|
|
4236
|
+
$popupNotice.style.top = 0;
|
|
4237
|
+
document.body.appendChild($popupNotice);
|
|
4238
|
+
DYNAMIC_COMPS.forEach(comp => {
|
|
4239
|
+
let constructor = Vue.extend(comp);
|
|
4240
|
+
Vue.prototype[`$${comp.name}`] = function (opt = {}) {
|
|
4241
|
+
let vm = new constructor({
|
|
4242
|
+
el: document.createElement('div'),
|
|
4243
|
+
data() {
|
|
4244
|
+
return opt;
|
|
4245
|
+
},
|
|
4246
|
+
mounted() {
|
|
4247
|
+
if (this.$options.name == 'notice') {
|
|
4248
|
+
this.$nextTick(() => {
|
|
4249
|
+
if ($popupNotice.clientHeight > window.innerHeight) {
|
|
4250
|
+
popupNoticeList[0].close();
|
|
4251
|
+
}
|
|
4252
|
+
});
|
|
4253
|
+
}
|
|
4254
|
+
},
|
|
4255
|
+
beforeDestroy() {
|
|
4256
|
+
if (this.$options.name == 'notice') {
|
|
4257
|
+
this.$nextTick(() => {
|
|
4258
|
+
popupNoticeList.splice(popupNoticeList.findIndex(item => item == this), 1);
|
|
4259
|
+
if ($popupNotice.clientHeight > window.innerHeight) {
|
|
4260
|
+
popupNoticeList[0].close();
|
|
4261
|
+
}
|
|
4262
|
+
});
|
|
4263
|
+
}
|
|
4264
|
+
}
|
|
4265
|
+
});
|
|
4266
|
+
switch (comp.name) {
|
|
4267
|
+
case 'loading':
|
|
4268
|
+
Vue.prototype.$loadOver = function () {
|
|
4269
|
+
vm.close();
|
|
4270
|
+
};
|
|
4271
|
+
case 'notice':
|
|
4272
|
+
popupNoticeList.push(vm);
|
|
4273
|
+
$popupNotice.appendChild(vm.$el);
|
|
4274
|
+
break;
|
|
4275
|
+
default:
|
|
4276
|
+
document.body.appendChild(vm.$el);
|
|
4277
|
+
}
|
|
4278
|
+
return vm;
|
|
4279
|
+
};
|
|
4280
|
+
});
|
|
3572
4281
|
};
|
|
3573
|
-
|
|
3574
4282
|
/* harmony default export */ var components = (install);
|
|
3575
4283
|
;// CONCATENATED MODULE: ./node_modules/@vue/cli-service/lib/commands/build/entry-lib.js
|
|
3576
4284
|
|