ecinc-cloud-mappaio 9.7.37 → 9.7.39
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/index.js +5 -0
- package/lib/ecmappaio.common.js +1971 -42
- package/lib/ecmappaio.umd.js +1971 -42
- package/lib/ecmappaio.umd.min.js +1 -1
- package/package.json +1 -1
package/lib/ecmappaio.common.js
CHANGED
|
@@ -84,6 +84,15 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
|
|
|
84
84
|
}));
|
|
85
85
|
|
|
86
86
|
|
|
87
|
+
/***/ }),
|
|
88
|
+
|
|
89
|
+
/***/ 7499:
|
|
90
|
+
/***/ (function(module) {
|
|
91
|
+
|
|
92
|
+
"use strict";
|
|
93
|
+
function _extends(){return _extends=Object.assign?Object.assign.bind():function(a){for(var b,c=1;c<arguments.length;c++)for(var d in b=arguments[c],b)Object.prototype.hasOwnProperty.call(b,d)&&(a[d]=b[d]);return a},_extends.apply(this,arguments)}var normalMerge=["attrs","props","domProps"],toArrayMerge=["class","style","directives"],functionalMerge=["on","nativeOn"],mergeJsxProps=function(a){return a.reduce(function(c,a){for(var b in a)if(!c[b])c[b]=a[b];else if(-1!==normalMerge.indexOf(b))c[b]=_extends({},c[b],a[b]);else if(-1!==toArrayMerge.indexOf(b)){var d=c[b]instanceof Array?c[b]:[c[b]],e=a[b]instanceof Array?a[b]:[a[b]];c[b]=[].concat(d,e)}else if(-1!==functionalMerge.indexOf(b)){for(var f in a[b])if(c[b][f]){var g=c[b][f]instanceof Array?c[b][f]:[c[b][f]],h=a[b][f]instanceof Array?a[b][f]:[a[b][f]];c[b][f]=[].concat(g,h)}else c[b][f]=a[b][f];}else if("hook"===b)for(var i in a[b])c[b][i]=c[b][i]?mergeFn(c[b][i],a[b][i]):a[b][i];else c[b]=a[b];return c},{})},mergeFn=function(a,b){return function(){a&&a.apply(this,arguments),b&&b.apply(this,arguments)}};module.exports=mergeJsxProps;
|
|
94
|
+
|
|
95
|
+
|
|
87
96
|
/***/ }),
|
|
88
97
|
|
|
89
98
|
/***/ 1656:
|
|
@@ -8469,7 +8478,7 @@ var PdfViewer = showViewer;
|
|
|
8469
8478
|
|
|
8470
8479
|
/***/ }),
|
|
8471
8480
|
|
|
8472
|
-
/***/
|
|
8481
|
+
/***/ 8071:
|
|
8473
8482
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
8474
8483
|
|
|
8475
8484
|
"use strict";
|
|
@@ -8481,7 +8490,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
8481
8490
|
"default": function() { return /* binding */ RichtextEditor; }
|
|
8482
8491
|
});
|
|
8483
8492
|
|
|
8484
|
-
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./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!./packages/ecmapp/RichtextEditor/src/index.vue?vue&type=template&id=
|
|
8493
|
+
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./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!./packages/ecmapp/RichtextEditor/src/index.vue?vue&type=template&id=2d23655c&scoped=true
|
|
8485
8494
|
var render = function render() {
|
|
8486
8495
|
var _vm = this,
|
|
8487
8496
|
_c = _vm._self._c;
|
|
@@ -8492,7 +8501,49 @@ var render = function render() {
|
|
|
8492
8501
|
attrs: {
|
|
8493
8502
|
"id": "richtext"
|
|
8494
8503
|
}
|
|
8495
|
-
})
|
|
8504
|
+
}), _vm.voiceInputEnabled ? _c('div', {
|
|
8505
|
+
staticClass: "voice-input-entry",
|
|
8506
|
+
style: _vm.voiceBtnStyle,
|
|
8507
|
+
on: {
|
|
8508
|
+
"touchstart": function touchstart($event) {
|
|
8509
|
+
$event.preventDefault();
|
|
8510
|
+
return _vm.onDragStart.apply(null, arguments);
|
|
8511
|
+
},
|
|
8512
|
+
"mousedown": function mousedown($event) {
|
|
8513
|
+
$event.preventDefault();
|
|
8514
|
+
return _vm.onDragStart.apply(null, arguments);
|
|
8515
|
+
},
|
|
8516
|
+
"click": function click($event) {
|
|
8517
|
+
$event.stopPropagation();
|
|
8518
|
+
return _vm.onVoiceBtnClick.apply(null, arguments);
|
|
8519
|
+
}
|
|
8520
|
+
}
|
|
8521
|
+
}, [_c('svg', {
|
|
8522
|
+
staticClass: "voice-input-entry-icon",
|
|
8523
|
+
attrs: {
|
|
8524
|
+
"viewBox": "0 0 1024 1024",
|
|
8525
|
+
"fill": "currentColor",
|
|
8526
|
+
"aria-hidden": "true"
|
|
8527
|
+
}
|
|
8528
|
+
}, [_c('path', {
|
|
8529
|
+
attrs: {
|
|
8530
|
+
"d": "M512 640c88.4 0 160-71.6 160-160V224c0-88.4-71.6-160-160-160S352 135.6 352 224v256c0 88.4 71.6 160 160 160z"
|
|
8531
|
+
}
|
|
8532
|
+
}), _c('path', {
|
|
8533
|
+
attrs: {
|
|
8534
|
+
"d": "M768 480c0 141.4-114.6 256-256 256S256 621.4 256 480h-64c0 163.9 123.3 299 288 318.4V896H352v64h320v-64H544v-97.6C708.7 779 832 643.9 832 480h-64z"
|
|
8535
|
+
}
|
|
8536
|
+
})]), _c('span', [_vm._v(_vm._s(_vm.$tx('ecmapp.wflowform.voiceInput', '语音输入')))])]) : _vm._e(), _c('VoiceInputDialog', {
|
|
8537
|
+
attrs: {
|
|
8538
|
+
"visible": _vm.voiceDialogVisible
|
|
8539
|
+
},
|
|
8540
|
+
on: {
|
|
8541
|
+
"update:visible": function updateVisible($event) {
|
|
8542
|
+
_vm.voiceDialogVisible = $event;
|
|
8543
|
+
},
|
|
8544
|
+
"confirm": _vm.onVoiceConfirm
|
|
8545
|
+
}
|
|
8546
|
+
})], 1);
|
|
8496
8547
|
};
|
|
8497
8548
|
var staticRenderFns = [];
|
|
8498
8549
|
|
|
@@ -8528,14 +8579,38 @@ var staticRenderFns = [];
|
|
|
8528
8579
|
placeholder: {
|
|
8529
8580
|
type: String,
|
|
8530
8581
|
default: ''
|
|
8582
|
+
},
|
|
8583
|
+
voiceInput: {
|
|
8584
|
+
type: Boolean,
|
|
8585
|
+
default: false
|
|
8531
8586
|
}
|
|
8532
8587
|
},
|
|
8533
8588
|
data: function data() {
|
|
8534
8589
|
return {
|
|
8535
|
-
editor: null
|
|
8590
|
+
editor: null,
|
|
8591
|
+
voiceDialogVisible: false,
|
|
8592
|
+
editorReadonly: false,
|
|
8593
|
+
voiceBtnX: null,
|
|
8594
|
+
voiceBtnY: null,
|
|
8595
|
+
voiceBtnMoved: false
|
|
8536
8596
|
};
|
|
8537
8597
|
},
|
|
8538
|
-
computed: {
|
|
8598
|
+
computed: {
|
|
8599
|
+
// 语音输入按钮显示条件:voiceInput属性为true且编辑器可编辑
|
|
8600
|
+
voiceInputEnabled: function voiceInputEnabled() {
|
|
8601
|
+
return this.voiceInput && !this.editorReadonly;
|
|
8602
|
+
},
|
|
8603
|
+
// 按钮定位样式:未拖拽时CSS默认贴在正文输入框右下角,拖拽后按记录坐标fixed定位
|
|
8604
|
+
voiceBtnStyle: function voiceBtnStyle() {
|
|
8605
|
+
if (this.voiceBtnX === null) return {};
|
|
8606
|
+
return {
|
|
8607
|
+
left: this.voiceBtnX + 'px',
|
|
8608
|
+
top: this.voiceBtnY + 'px',
|
|
8609
|
+
right: 'auto',
|
|
8610
|
+
bottom: 'auto'
|
|
8611
|
+
};
|
|
8612
|
+
}
|
|
8613
|
+
},
|
|
8539
8614
|
watch: {
|
|
8540
8615
|
value: function value() {
|
|
8541
8616
|
// 监听prop的变化,更新ckeditor中的值
|
|
@@ -8547,8 +8622,18 @@ var staticRenderFns = [];
|
|
|
8547
8622
|
created: function created() {},
|
|
8548
8623
|
beforeDestroy: function beforeDestroy() {
|
|
8549
8624
|
this.editor.destroy();
|
|
8625
|
+
window.removeEventListener('resize', this.placeVoiceBtnDefault);
|
|
8626
|
+
window.removeEventListener('scroll', this.placeVoiceBtnDefault, true);
|
|
8627
|
+
document.removeEventListener('touchmove', this.onDragMove);
|
|
8628
|
+
document.removeEventListener('touchend', this.onDragEnd);
|
|
8629
|
+
document.removeEventListener('mousemove', this.onDragMove);
|
|
8630
|
+
document.removeEventListener('mouseup', this.onDragEnd);
|
|
8550
8631
|
},
|
|
8551
8632
|
mounted: function mounted() {
|
|
8633
|
+
var _this = this;
|
|
8634
|
+
// 未拖拽时保持按钮跟随正文输入框右下角(窗口缩放/滚动时重新计算)
|
|
8635
|
+
window.addEventListener('resize', this.placeVoiceBtnDefault);
|
|
8636
|
+
window.addEventListener('scroll', this.placeVoiceBtnDefault, true);
|
|
8552
8637
|
this.placeholder = this.$tx('ecmapp.common.enterMainText', '请输入正文');
|
|
8553
8638
|
var $scope = this;
|
|
8554
8639
|
var WangEditor = window.wangEditor;
|
|
@@ -8673,9 +8758,87 @@ var staticRenderFns = [];
|
|
|
8673
8758
|
if (formCanEdit === 0 || formCanEdit === '0') {
|
|
8674
8759
|
this.editor.config.placeholder = '';
|
|
8675
8760
|
this.editor.disable();
|
|
8761
|
+
this.editorReadonly = true;
|
|
8676
8762
|
}
|
|
8763
|
+
// 初始将语音按钮定位到正文输入框右下角;若此时布局未完成则延时重试
|
|
8764
|
+
this.$nextTick(function () {
|
|
8765
|
+
_this.placeVoiceBtnDefault();
|
|
8766
|
+
if (_this.voiceBtnX === null) {
|
|
8767
|
+
setTimeout(function () {
|
|
8768
|
+
_this.placeVoiceBtnDefault();
|
|
8769
|
+
}, 300);
|
|
8770
|
+
}
|
|
8771
|
+
});
|
|
8677
8772
|
},
|
|
8678
8773
|
methods: {
|
|
8774
|
+
// 打开语音输入弹窗(桌面鼠标点击触发;触屏的click被touchstart.preventDefault阻止,在onDragEnd中处理)
|
|
8775
|
+
onVoiceBtnClick: function onVoiceBtnClick() {
|
|
8776
|
+
if (!this.voiceBtnMoved) {
|
|
8777
|
+
this.openVoiceDialog();
|
|
8778
|
+
}
|
|
8779
|
+
this.voiceBtnMoved = false;
|
|
8780
|
+
},
|
|
8781
|
+
openVoiceDialog: function openVoiceDialog() {
|
|
8782
|
+
this.voiceDialogVisible = true;
|
|
8783
|
+
},
|
|
8784
|
+
// 计算正文输入框右下角的默认位置(fixed视口坐标)
|
|
8785
|
+
placeVoiceBtnDefault: function placeVoiceBtnDefault() {
|
|
8786
|
+
if (this.voiceBtnMoved || !this.$el) return;
|
|
8787
|
+
var btn = this.$el.querySelector('.voice-input-entry');
|
|
8788
|
+
if (!btn) return;
|
|
8789
|
+
var rect = this.$el.getBoundingClientRect();
|
|
8790
|
+
// 容器或按钮尚未完成布局(尺寸为0)时跳过,避免算出负坐标导致按钮飘到屏外,保持CSS默认位置
|
|
8791
|
+
if (rect.width === 0 || rect.height === 0 || btn.offsetWidth === 0 || btn.offsetHeight === 0) return;
|
|
8792
|
+
this.voiceBtnX = rect.right - btn.offsetWidth - 16;
|
|
8793
|
+
this.voiceBtnY = rect.bottom - btn.offsetHeight - 16;
|
|
8794
|
+
},
|
|
8795
|
+
// 拖拽开始:记录起始坐标,绑定document级move/end事件
|
|
8796
|
+
onDragStart: function onDragStart(evt) {
|
|
8797
|
+
var point = evt.touches ? evt.touches[0] : evt;
|
|
8798
|
+
this._dragIsTouch = !!evt.touches;
|
|
8799
|
+
this._dragStartX = point.clientX;
|
|
8800
|
+
this._dragStartY = point.clientY;
|
|
8801
|
+
this.voiceBtnMoved = false;
|
|
8802
|
+
if (this.voiceBtnX === null) this.placeVoiceBtnDefault();
|
|
8803
|
+
this._dragBtnStartLeft = this.voiceBtnX;
|
|
8804
|
+
this._dragBtnStartTop = this.voiceBtnY;
|
|
8805
|
+
document.addEventListener('touchmove', this.onDragMove, {
|
|
8806
|
+
passive: false
|
|
8807
|
+
});
|
|
8808
|
+
document.addEventListener('touchend', this.onDragEnd);
|
|
8809
|
+
document.addEventListener('mousemove', this.onDragMove);
|
|
8810
|
+
document.addEventListener('mouseup', this.onDragEnd);
|
|
8811
|
+
},
|
|
8812
|
+
// 拖拽移动:实时更新按钮位置,位移超过5px视为拖拽(屏蔽click)
|
|
8813
|
+
onDragMove: function onDragMove(evt) {
|
|
8814
|
+
var point = evt.touches ? evt.touches[0] : evt;
|
|
8815
|
+
var dx = point.clientX - this._dragStartX;
|
|
8816
|
+
var dy = point.clientY - this._dragStartY;
|
|
8817
|
+
if (Math.abs(dx) > 5 || Math.abs(dy) > 5) {
|
|
8818
|
+
this.voiceBtnMoved = true;
|
|
8819
|
+
evt.preventDefault();
|
|
8820
|
+
}
|
|
8821
|
+
this.voiceBtnX = this._dragBtnStartLeft + dx;
|
|
8822
|
+
this.voiceBtnY = this._dragBtnStartTop + dy;
|
|
8823
|
+
},
|
|
8824
|
+
// 拖拽结束:移除document级事件;触屏无click事件,未拖动时在此打开弹窗
|
|
8825
|
+
onDragEnd: function onDragEnd() {
|
|
8826
|
+
document.removeEventListener('touchmove', this.onDragMove);
|
|
8827
|
+
document.removeEventListener('touchend', this.onDragEnd);
|
|
8828
|
+
document.removeEventListener('mousemove', this.onDragMove);
|
|
8829
|
+
document.removeEventListener('mouseup', this.onDragEnd);
|
|
8830
|
+
if (this._dragIsTouch && !this.voiceBtnMoved) {
|
|
8831
|
+
this.openVoiceDialog();
|
|
8832
|
+
}
|
|
8833
|
+
this.voiceBtnMoved = false;
|
|
8834
|
+
},
|
|
8835
|
+
// 语音识别完成回调:识别文本追加到编辑器现有内容末尾
|
|
8836
|
+
onVoiceConfirm: function onVoiceConfirm(text) {
|
|
8837
|
+
var currentHtml = this.editor.txt.html();
|
|
8838
|
+
var newHtml = currentHtml ? currentHtml + text : text;
|
|
8839
|
+
this.editor.txt.html(newHtml);
|
|
8840
|
+
this.$emit('input', newHtml);
|
|
8841
|
+
},
|
|
8679
8842
|
// 键击事件
|
|
8680
8843
|
keydownEvents: function keydownEvents(evt) {
|
|
8681
8844
|
if (this.startupMode !== 'source') {
|
|
@@ -8718,9 +8881,9 @@ var staticRenderFns = [];
|
|
|
8718
8881
|
});
|
|
8719
8882
|
;// CONCATENATED MODULE: ./packages/ecmapp/RichtextEditor/src/index.vue?vue&type=script&lang=js
|
|
8720
8883
|
/* harmony default export */ var RichtextEditor_srcvue_type_script_lang_js = (srcvue_type_script_lang_js);
|
|
8721
|
-
// EXTERNAL MODULE: ./node_modules/vue-style-loader/index.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/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.use[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/ecmapp/RichtextEditor/src/index.vue?vue&type=style&index=0&id=
|
|
8722
|
-
var
|
|
8723
|
-
;// CONCATENATED MODULE: ./packages/ecmapp/RichtextEditor/src/index.vue?vue&type=style&index=0&id=
|
|
8884
|
+
// EXTERNAL MODULE: ./node_modules/vue-style-loader/index.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/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.use[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/ecmapp/RichtextEditor/src/index.vue?vue&type=style&index=0&id=2d23655c&prod&scoped=true&lang=scss
|
|
8885
|
+
var srcvue_type_style_index_0_id_2d23655c_prod_scoped_true_lang_scss = __webpack_require__(9839);
|
|
8886
|
+
;// CONCATENATED MODULE: ./packages/ecmapp/RichtextEditor/src/index.vue?vue&type=style&index=0&id=2d23655c&prod&scoped=true&lang=scss
|
|
8724
8887
|
|
|
8725
8888
|
// EXTERNAL MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
|
|
8726
8889
|
var componentNormalizer = __webpack_require__(1656);
|
|
@@ -8739,7 +8902,7 @@ var component = (0,componentNormalizer/* default */.A)(
|
|
|
8739
8902
|
staticRenderFns,
|
|
8740
8903
|
false,
|
|
8741
8904
|
null,
|
|
8742
|
-
"
|
|
8905
|
+
"2d23655c",
|
|
8743
8906
|
null
|
|
8744
8907
|
|
|
8745
8908
|
)
|
|
@@ -8756,7 +8919,7 @@ src.install = function (Vue) {
|
|
|
8756
8919
|
|
|
8757
8920
|
/***/ }),
|
|
8758
8921
|
|
|
8759
|
-
/***/
|
|
8922
|
+
/***/ 280:
|
|
8760
8923
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
8761
8924
|
|
|
8762
8925
|
"use strict";
|
|
@@ -14831,8 +14994,8 @@ var WfTaskNode_component = (0,componentNormalizer/* default */.A)(
|
|
|
14831
14994
|
)
|
|
14832
14995
|
|
|
14833
14996
|
/* harmony default export */ var WfTaskNode = (WfTaskNode_component.exports);
|
|
14834
|
-
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./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!./packages/ecmapp/Wflowform/src/VoiceInputDialog.vue?vue&type=template&id=
|
|
14835
|
-
var
|
|
14997
|
+
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./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!./packages/ecmapp/Wflowform/src/VoiceInputDialog.vue?vue&type=template&id=813d3ba6&scoped=true
|
|
14998
|
+
var VoiceInputDialogvue_type_template_id_813d3ba6_scoped_true_render = function render() {
|
|
14836
14999
|
var _vm = this,
|
|
14837
15000
|
_c = _vm._self._c;
|
|
14838
15001
|
return _c('van-popup', {
|
|
@@ -14968,9 +15131,9 @@ var VoiceInputDialogvue_type_template_id_cf18a87c_scoped_true_render = function
|
|
|
14968
15131
|
on: {
|
|
14969
15132
|
"click": _vm.confirmVoiceText
|
|
14970
15133
|
}
|
|
14971
|
-
}, [_vm._v(_vm._s(_vm.$tx('ecmapp.wflowform.
|
|
15134
|
+
}, [_vm._v(_vm._s(_vm.$tx('ecmapp.wflowform.voiceConfirmInput', '确认输入')))])], 1)]);
|
|
14972
15135
|
};
|
|
14973
|
-
var
|
|
15136
|
+
var VoiceInputDialogvue_type_template_id_813d3ba6_scoped_true_staticRenderFns = [];
|
|
14974
15137
|
|
|
14975
15138
|
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/ecmapp/Wflowform/src/VoiceInputDialog.vue?vue&type=script&lang=js
|
|
14976
15139
|
// 人声判定阈值:AnalyserNode频谱均值(getByteFrequencyData,取值范围0-255)超过该值视为有人声;
|
|
@@ -15665,9 +15828,9 @@ var TRAILING_SILENCE_MS = 3000;
|
|
|
15665
15828
|
});
|
|
15666
15829
|
;// CONCATENATED MODULE: ./packages/ecmapp/Wflowform/src/VoiceInputDialog.vue?vue&type=script&lang=js
|
|
15667
15830
|
/* harmony default export */ var src_VoiceInputDialogvue_type_script_lang_js = (VoiceInputDialogvue_type_script_lang_js);
|
|
15668
|
-
// EXTERNAL MODULE: ./node_modules/vue-style-loader/index.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/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.use[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/ecmapp/Wflowform/src/VoiceInputDialog.vue?vue&type=style&index=0&id=
|
|
15669
|
-
var
|
|
15670
|
-
;// CONCATENATED MODULE: ./packages/ecmapp/Wflowform/src/VoiceInputDialog.vue?vue&type=style&index=0&id=
|
|
15831
|
+
// EXTERNAL MODULE: ./node_modules/vue-style-loader/index.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/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.use[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/ecmapp/Wflowform/src/VoiceInputDialog.vue?vue&type=style&index=0&id=813d3ba6&prod&scoped=true&lang=scss
|
|
15832
|
+
var VoiceInputDialogvue_type_style_index_0_id_813d3ba6_prod_scoped_true_lang_scss = __webpack_require__(7316);
|
|
15833
|
+
;// CONCATENATED MODULE: ./packages/ecmapp/Wflowform/src/VoiceInputDialog.vue?vue&type=style&index=0&id=813d3ba6&prod&scoped=true&lang=scss
|
|
15671
15834
|
|
|
15672
15835
|
;// CONCATENATED MODULE: ./packages/ecmapp/Wflowform/src/VoiceInputDialog.vue
|
|
15673
15836
|
|
|
@@ -15680,11 +15843,11 @@ var VoiceInputDialogvue_type_style_index_0_id_cf18a87c_prod_scoped_true_lang_scs
|
|
|
15680
15843
|
|
|
15681
15844
|
var VoiceInputDialog_component = (0,componentNormalizer/* default */.A)(
|
|
15682
15845
|
src_VoiceInputDialogvue_type_script_lang_js,
|
|
15683
|
-
|
|
15684
|
-
|
|
15846
|
+
VoiceInputDialogvue_type_template_id_813d3ba6_scoped_true_render,
|
|
15847
|
+
VoiceInputDialogvue_type_template_id_813d3ba6_scoped_true_staticRenderFns,
|
|
15685
15848
|
false,
|
|
15686
15849
|
null,
|
|
15687
|
-
"
|
|
15850
|
+
"813d3ba6",
|
|
15688
15851
|
null
|
|
15689
15852
|
|
|
15690
15853
|
)
|
|
@@ -22882,7 +23045,7 @@ ___CSS_LOADER_EXPORT___.push([module.id, "[data-v-02d89fca] .van-nav-bar__title{
|
|
|
22882
23045
|
|
|
22883
23046
|
/***/ }),
|
|
22884
23047
|
|
|
22885
|
-
/***/
|
|
23048
|
+
/***/ 7617:
|
|
22886
23049
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
22887
23050
|
|
|
22888
23051
|
"use strict";
|
|
@@ -22896,7 +23059,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
22896
23059
|
|
|
22897
23060
|
var ___CSS_LOADER_EXPORT___ = _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1___default()((_node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default()));
|
|
22898
23061
|
// Module
|
|
22899
|
-
___CSS_LOADER_EXPORT___.push([module.id, "#richtext[data-v-
|
|
23062
|
+
___CSS_LOADER_EXPORT___.push([module.id, ".voice-input-entry[data-v-2d23655c]{position:fixed;right:16px;bottom:76px;z-index:99;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;height:36px;padding:0 14px;border-radius:18px;background:#fff;color:#323233;font-size:13px;-webkit-box-shadow:0 2px 8px rgba(0,0,0,.15);box-shadow:0 2px 8px rgba(0,0,0,.15);-ms-touch-action:none;touch-action:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.voice-input-entry .voice-input-entry-icon[data-v-2d23655c]{width:16px;height:16px;margin-right:4px}.voice-input-entry[data-v-2d23655c]:active{opacity:.8}#richtext[data-v-2d23655c]{overflow-x:hidden;background:#fff;overflow-wrap:break-word;word-break:break-word}#richtext[data-v-2d23655c] .w-e-toolbar{-ms-flex-wrap:wrap;flex-wrap:wrap;border:0!important;border-bottom:1px solid #eee!important}#richtext[data-v-2d23655c] .w-e-toolbar .w-e-menu i{color:#333}#richtext[data-v-2d23655c] .w-e-toolbar .w-e-droplist ul.w-e-list{max-height:150px;overflow-y:auto}#richtext[data-v-2d23655c] .w-e-text-container{border:0!important;margin:5px}#richtext[data-v-2d23655c] .w-e-text-container .w-e-text{padding:0;font-size:14px}#richtext[data-v-2d23655c] .w-e-text-container .placeholder{left:0;top:0}", ""]);
|
|
22900
23063
|
// Exports
|
|
22901
23064
|
/* harmony default export */ __webpack_exports__["default"] = (___CSS_LOADER_EXPORT___);
|
|
22902
23065
|
|
|
@@ -23202,7 +23365,7 @@ ___CSS_LOADER_EXPORT___.push([module.id, ".submit-handle-container .idea-button-
|
|
|
23202
23365
|
|
|
23203
23366
|
/***/ }),
|
|
23204
23367
|
|
|
23205
|
-
/***/
|
|
23368
|
+
/***/ 8162:
|
|
23206
23369
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
23207
23370
|
|
|
23208
23371
|
"use strict";
|
|
@@ -23216,7 +23379,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
23216
23379
|
|
|
23217
23380
|
var ___CSS_LOADER_EXPORT___ = _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1___default()((_node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default()));
|
|
23218
23381
|
// Module
|
|
23219
|
-
___CSS_LOADER_EXPORT___.push([module.id, ".voice-input-popup[data-v-
|
|
23382
|
+
___CSS_LOADER_EXPORT___.push([module.id, ".voice-input-popup[data-v-813d3ba6]{padding-bottom:constant(safe-area-inset-bottom);padding-bottom:env(safe-area-inset-bottom)}.voice-input-popup .voice-popup-header[data-v-813d3ba6]{position:relative;height:48px;line-height:48px;text-align:center}.voice-input-popup .voice-popup-header .voice-popup-title[data-v-813d3ba6]{font-size:16px;font-weight:600;color:#323233}.voice-input-popup .voice-popup-header .voice-popup-close[data-v-813d3ba6]{position:absolute;right:16px;top:16px;font-size:16px;color:#c8c9cc}.voice-input-popup .voice-popup-body[data-v-813d3ba6]{padding:8px 16px 0;text-align:center}.voice-input-popup .voice-popup-body .voice-mic-btn[data-v-813d3ba6]{display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;width:64px;height:64px;border-radius:50%;background-color:#1989fa;color:#fff}.voice-input-popup .voice-popup-body .voice-mic-btn .voice-mic-icon[data-v-813d3ba6]{width:28px;height:28px}.voice-input-popup .voice-popup-body .voice-mic-btn.recording[data-v-813d3ba6]{background-color:#ee0a24;-webkit-animation:voice-breathe-813d3ba6 1.5s ease-out infinite;animation:voice-breathe-813d3ba6 1.5s ease-out infinite}.voice-input-popup .voice-popup-body .voice-mic-btn[data-v-813d3ba6] .van-loading{padding-top:0}.voice-input-popup .voice-popup-body .voice-status-text[data-v-813d3ba6]{margin-top:12px;font-size:13px;color:#646566}.voice-input-popup .voice-popup-body .voice-status-text.is-error[data-v-813d3ba6]{color:#ee0a24}.voice-input-popup .voice-popup-body .voice-wave-canvas[data-v-813d3ba6]{display:block;width:200px;height:32px;margin:8px auto 0}.voice-input-popup .voice-popup-body .voice-timer[data-v-813d3ba6]{margin-top:4px;font-size:13px;color:#969799}.voice-input-popup .voice-popup-body .voice-result-field[data-v-813d3ba6]{margin-top:12px;background-color:#f7f8fa;border-radius:8px}.voice-input-popup .voice-popup-footer[data-v-813d3ba6]{padding:12px 16px;text-align:right}.voice-input-popup .voice-popup-footer .van-button[data-v-813d3ba6]{margin-left:8px;min-width:80px}.voice-mic-wrap[data-v-813d3ba6]{position:relative;display:inline-block;width:64px;height:64px}.voice-mic-wrap .tech-ripple[data-v-813d3ba6]{position:absolute;left:50%;top:50%;width:64px;height:64px;margin:-32px 0 0 -32px;border-radius:50%;border:1px solid rgba(0,229,255,.6);opacity:0;pointer-events:none}.voice-input-popup.skin-tech[data-v-813d3ba6]{background-image:linear-gradient(rgba(0,229,255,.045) 1px,transparent 0),linear-gradient(90deg,rgba(0,229,255,.045) 1px,transparent 0),radial-gradient(circle at 18% 0,rgba(0,229,255,.12),transparent 42%),radial-gradient(circle at 85% 100%,rgba(0,110,255,.12),transparent 45%),linear-gradient(160deg,#060d21,#0a1a3f 55%,#071026);background-size:24px 24px,24px 24px,100% 100%,100% 100%,100% 100%}.voice-input-popup.skin-tech .voice-popup-header[data-v-813d3ba6]{border-bottom:1px solid rgba(0,229,255,.15)}.voice-input-popup.skin-tech .voice-popup-header .voice-popup-title[data-v-813d3ba6]{color:#d8f4ff;letter-spacing:3px;text-shadow:0 0 10px rgba(0,229,255,.75)}.voice-input-popup.skin-tech .voice-popup-header .voice-popup-close[data-v-813d3ba6]{color:rgba(0,229,255,.6)}.voice-input-popup.skin-tech .voice-popup-body .voice-mic-btn[data-v-813d3ba6]{background:radial-gradient(circle at 30% 25%,#1a4a8a,#0a2547 72%);border:1.5px solid rgba(0,229,255,.7);color:#00e5ff;-webkit-box-shadow:0 0 20px rgba(0,229,255,.4),inset 0 0 15px rgba(0,229,255,.15);box-shadow:0 0 20px rgba(0,229,255,.4),inset 0 0 15px rgba(0,229,255,.15)}.voice-input-popup.skin-tech .voice-popup-body .voice-mic-btn.recording[data-v-813d3ba6]{background:radial-gradient(circle at 30% 25%,#8a1a3f,#470a20 72%);border-color:rgba(255,45,105,.85);color:#ff5c8a;-webkit-animation:tech-breathe-813d3ba6 1.5s ease-out infinite;animation:tech-breathe-813d3ba6 1.5s ease-out infinite}.voice-input-popup.skin-tech .voice-popup-body .voice-status-text[data-v-813d3ba6]{color:#8fd8ff;text-shadow:0 0 6px rgba(0,229,255,.3)}.voice-input-popup.skin-tech .voice-popup-body .voice-status-text.is-error[data-v-813d3ba6]{color:#ff5c8a;text-shadow:0 0 6px rgba(255,45,105,.3)}.voice-input-popup.skin-tech .voice-popup-body .voice-timer[data-v-813d3ba6]{color:#00e5ff;font-family:Courier New,Courier,monospace;letter-spacing:2px;text-shadow:0 0 8px rgba(0,229,255,.7)}.voice-input-popup.skin-tech .voice-popup-body .voice-result-field[data-v-813d3ba6]{background:rgba(6,25,55,.6);border:1px solid rgba(0,229,255,.35);-webkit-box-shadow:inset 0 0 12px rgba(0,229,255,.1);box-shadow:inset 0 0 12px rgba(0,229,255,.1)}.voice-input-popup.skin-tech .voice-popup-body .voice-result-field[data-v-813d3ba6] .van-field__control{color:#d8f4ff;caret-color:#00e5ff}.voice-input-popup.skin-tech .voice-popup-body .voice-result-field[data-v-813d3ba6] .van-field__control::-webkit-input-placeholder{color:rgba(143,216,255,.4)}.voice-input-popup.skin-tech .voice-popup-body .voice-result-field[data-v-813d3ba6] .van-field__control::-moz-placeholder{color:rgba(143,216,255,.4)}.voice-input-popup.skin-tech .voice-popup-body .voice-result-field[data-v-813d3ba6] .van-field__control::-ms-input-placeholder{color:rgba(143,216,255,.4)}.voice-input-popup.skin-tech .voice-popup-body .voice-result-field[data-v-813d3ba6] .van-field__control::placeholder{color:rgba(143,216,255,.4)}.voice-input-popup.skin-tech .voice-popup-footer .van-button--default[data-v-813d3ba6]{background:transparent;color:#8fd8ff}.voice-input-popup.skin-tech .voice-popup-footer .van-button--default[data-v-813d3ba6]:after{border-color:rgba(0,229,255,.4)}.voice-input-popup.skin-tech .voice-popup-footer .van-button--info[data-v-813d3ba6]{background:-webkit-gradient(linear,left top,right top,from(#00b8d4),to(#00e5ff));background:linear-gradient(90deg,#00b8d4,#00e5ff);color:#04122b;-webkit-box-shadow:0 0 12px rgba(0,229,255,.45);box-shadow:0 0 12px rgba(0,229,255,.45)}.voice-input-popup.skin-tech .voice-popup-footer .van-button--info[data-v-813d3ba6]:after{border-width:0}.voice-input-popup.skin-tech .voice-popup-footer .van-button--info.van-button--disabled[data-v-813d3ba6]{opacity:.45}.voice-input-popup.skin-tech .voice-mic-wrap.recording .tech-ripple[data-v-813d3ba6]{border-color:rgba(255,45,105,.7);-webkit-animation:tech-ripple-813d3ba6 2s ease-out infinite;animation:tech-ripple-813d3ba6 2s ease-out infinite}.voice-input-popup.skin-tech .voice-mic-wrap.recording .tech-ripple-2[data-v-813d3ba6]{-webkit-animation-delay:.6s;animation-delay:.6s}.voice-input-popup.skin-tech .voice-mic-wrap.recording .tech-ripple-3[data-v-813d3ba6]{-webkit-animation-delay:1.2s;animation-delay:1.2s}@-webkit-keyframes tech-ripple-813d3ba6{0%{-webkit-transform:scale(1);transform:scale(1);opacity:.7}to{-webkit-transform:scale(2.4);transform:scale(2.4);opacity:0}}@keyframes tech-ripple-813d3ba6{0%{-webkit-transform:scale(1);transform:scale(1);opacity:.7}to{-webkit-transform:scale(2.4);transform:scale(2.4);opacity:0}}@-webkit-keyframes tech-breathe-813d3ba6{0%{-webkit-box-shadow:0 0 24px rgba(255,45,105,.55),inset 0 0 15px rgba(255,45,105,.2),0 0 0 0 rgba(255,45,105,.45);box-shadow:0 0 24px rgba(255,45,105,.55),inset 0 0 15px rgba(255,45,105,.2),0 0 0 0 rgba(255,45,105,.45)}to{-webkit-box-shadow:0 0 24px rgba(255,45,105,.55),inset 0 0 15px rgba(255,45,105,.2),0 0 0 18px rgba(255,45,105,0);box-shadow:0 0 24px rgba(255,45,105,.55),inset 0 0 15px rgba(255,45,105,.2),0 0 0 18px rgba(255,45,105,0)}}@keyframes tech-breathe-813d3ba6{0%{-webkit-box-shadow:0 0 24px rgba(255,45,105,.55),inset 0 0 15px rgba(255,45,105,.2),0 0 0 0 rgba(255,45,105,.45);box-shadow:0 0 24px rgba(255,45,105,.55),inset 0 0 15px rgba(255,45,105,.2),0 0 0 0 rgba(255,45,105,.45)}to{-webkit-box-shadow:0 0 24px rgba(255,45,105,.55),inset 0 0 15px rgba(255,45,105,.2),0 0 0 18px rgba(255,45,105,0);box-shadow:0 0 24px rgba(255,45,105,.55),inset 0 0 15px rgba(255,45,105,.2),0 0 0 18px rgba(255,45,105,0)}}@-webkit-keyframes voice-breathe-813d3ba6{0%{-webkit-box-shadow:0 0 0 0 rgba(238,10,36,.5);box-shadow:0 0 0 0 rgba(238,10,36,.5)}to{-webkit-box-shadow:0 0 0 16px rgba(238,10,36,0);box-shadow:0 0 0 16px rgba(238,10,36,0)}}@keyframes voice-breathe-813d3ba6{0%{-webkit-box-shadow:0 0 0 0 rgba(238,10,36,.5);box-shadow:0 0 0 0 rgba(238,10,36,.5)}to{-webkit-box-shadow:0 0 0 16px rgba(238,10,36,0);box-shadow:0 0 0 16px rgba(238,10,36,0)}}", ""]);
|
|
23220
23383
|
// Exports
|
|
23221
23384
|
/* harmony default export */ __webpack_exports__["default"] = (___CSS_LOADER_EXPORT___);
|
|
23222
23385
|
|
|
@@ -50624,19 +50787,19 @@ var update = add("1d9a7e4b", content, true, {"sourceMap":false,"shadowMode":fals
|
|
|
50624
50787
|
|
|
50625
50788
|
/***/ }),
|
|
50626
50789
|
|
|
50627
|
-
/***/
|
|
50790
|
+
/***/ 9839:
|
|
50628
50791
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
50629
50792
|
|
|
50630
50793
|
// style-loader: Adds some css to the DOM by adding a <style> tag
|
|
50631
50794
|
|
|
50632
50795
|
// load the styles
|
|
50633
|
-
var content = __webpack_require__(
|
|
50796
|
+
var content = __webpack_require__(7617);
|
|
50634
50797
|
if(content.__esModule) content = content.default;
|
|
50635
50798
|
if(typeof content === 'string') content = [[module.id, content, '']];
|
|
50636
50799
|
if(content.locals) module.exports = content.locals;
|
|
50637
50800
|
// add the styles to the DOM
|
|
50638
50801
|
var add = (__webpack_require__(9548)/* ["default"] */ .A)
|
|
50639
|
-
var update = add("
|
|
50802
|
+
var update = add("eb4323c4", content, true, {"sourceMap":false,"shadowMode":false});
|
|
50640
50803
|
|
|
50641
50804
|
/***/ }),
|
|
50642
50805
|
|
|
@@ -50864,19 +51027,19 @@ var update = add("6665940f", content, true, {"sourceMap":false,"shadowMode":fals
|
|
|
50864
51027
|
|
|
50865
51028
|
/***/ }),
|
|
50866
51029
|
|
|
50867
|
-
/***/
|
|
51030
|
+
/***/ 7316:
|
|
50868
51031
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
50869
51032
|
|
|
50870
51033
|
// style-loader: Adds some css to the DOM by adding a <style> tag
|
|
50871
51034
|
|
|
50872
51035
|
// load the styles
|
|
50873
|
-
var content = __webpack_require__(
|
|
51036
|
+
var content = __webpack_require__(8162);
|
|
50874
51037
|
if(content.__esModule) content = content.default;
|
|
50875
51038
|
if(typeof content === 'string') content = [[module.id, content, '']];
|
|
50876
51039
|
if(content.locals) module.exports = content.locals;
|
|
50877
51040
|
// add the styles to the DOM
|
|
50878
51041
|
var add = (__webpack_require__(9548)/* ["default"] */ .A)
|
|
50879
|
-
var update = add("
|
|
51042
|
+
var update = add("d301d61e", content, true, {"sourceMap":false,"shadowMode":false});
|
|
50880
51043
|
|
|
50881
51044
|
/***/ }),
|
|
50882
51045
|
|
|
@@ -73246,6 +73409,1766 @@ permission.install = permission_install;
|
|
|
73246
73409
|
|
|
73247
73410
|
|
|
73248
73411
|
external_commonjs_vue_commonjs2_vue_root_Vue_default().use(Directive_permission);
|
|
73412
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/extends.js
|
|
73413
|
+
function _extends() {
|
|
73414
|
+
return _extends = Object.assign ? Object.assign.bind() : function (n) {
|
|
73415
|
+
for (var e = 1; e < arguments.length; e++) {
|
|
73416
|
+
var t = arguments[e];
|
|
73417
|
+
for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
|
|
73418
|
+
}
|
|
73419
|
+
return n;
|
|
73420
|
+
}, _extends.apply(null, arguments);
|
|
73421
|
+
}
|
|
73422
|
+
|
|
73423
|
+
;// CONCATENATED MODULE: ./node_modules/vant/es/utils/create/bem.js
|
|
73424
|
+
/**
|
|
73425
|
+
* bem helper
|
|
73426
|
+
* b() // 'button'
|
|
73427
|
+
* b('text') // 'button__text'
|
|
73428
|
+
* b({ disabled }) // 'button button--disabled'
|
|
73429
|
+
* b('text', { disabled }) // 'button__text button__text--disabled'
|
|
73430
|
+
* b(['disabled', 'primary']) // 'button button--disabled button--primary'
|
|
73431
|
+
*/
|
|
73432
|
+
function gen(name, mods) {
|
|
73433
|
+
if (!mods) {
|
|
73434
|
+
return '';
|
|
73435
|
+
}
|
|
73436
|
+
|
|
73437
|
+
if (typeof mods === 'string') {
|
|
73438
|
+
return " " + name + "--" + mods;
|
|
73439
|
+
}
|
|
73440
|
+
|
|
73441
|
+
if (Array.isArray(mods)) {
|
|
73442
|
+
return mods.reduce(function (ret, item) {
|
|
73443
|
+
return ret + gen(name, item);
|
|
73444
|
+
}, '');
|
|
73445
|
+
}
|
|
73446
|
+
|
|
73447
|
+
return Object.keys(mods).reduce(function (ret, key) {
|
|
73448
|
+
return ret + (mods[key] ? gen(name, key) : '');
|
|
73449
|
+
}, '');
|
|
73450
|
+
}
|
|
73451
|
+
|
|
73452
|
+
function createBEM(name) {
|
|
73453
|
+
return function (el, mods) {
|
|
73454
|
+
if (el && typeof el !== 'string') {
|
|
73455
|
+
mods = el;
|
|
73456
|
+
el = '';
|
|
73457
|
+
}
|
|
73458
|
+
|
|
73459
|
+
el = el ? name + "__" + el : name;
|
|
73460
|
+
return "" + el + gen(el, mods);
|
|
73461
|
+
};
|
|
73462
|
+
}
|
|
73463
|
+
;// CONCATENATED MODULE: ./node_modules/vant/es/utils/index.js
|
|
73464
|
+
|
|
73465
|
+
|
|
73466
|
+
|
|
73467
|
+
var utils_inBrowser = typeof window !== 'undefined';
|
|
73468
|
+
var isServer = (external_commonjs_vue_commonjs2_vue_root_Vue_default()).prototype.$isServer; // eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
73469
|
+
|
|
73470
|
+
function utils_noop() {}
|
|
73471
|
+
function isDef(val) {
|
|
73472
|
+
return val !== undefined && val !== null;
|
|
73473
|
+
}
|
|
73474
|
+
function utils_isFunction(val) {
|
|
73475
|
+
return typeof val === 'function';
|
|
73476
|
+
}
|
|
73477
|
+
function utils_isObject(val) {
|
|
73478
|
+
return val !== null && typeof val === 'object';
|
|
73479
|
+
}
|
|
73480
|
+
function isPromise(val) {
|
|
73481
|
+
return utils_isObject(val) && utils_isFunction(val.then) && utils_isFunction(val.catch);
|
|
73482
|
+
}
|
|
73483
|
+
function get(object, path) {
|
|
73484
|
+
var keys = path.split('.');
|
|
73485
|
+
var result = object;
|
|
73486
|
+
keys.forEach(function (key) {
|
|
73487
|
+
var _result$key;
|
|
73488
|
+
|
|
73489
|
+
result = utils_isObject(result) ? (_result$key = result[key]) != null ? _result$key : '' : '';
|
|
73490
|
+
});
|
|
73491
|
+
return result;
|
|
73492
|
+
}
|
|
73493
|
+
/**
|
|
73494
|
+
* Checks if `value` is an empty object, collection, map, or set.
|
|
73495
|
+
*
|
|
73496
|
+
* Objects are considered empty if they have no own enumerable string keyed
|
|
73497
|
+
* properties.
|
|
73498
|
+
*
|
|
73499
|
+
* Array-like values such as `arguments` objects, arrays, buffers, strings, or
|
|
73500
|
+
* jQuery-like collections are considered empty if they have a `length` of `0`.
|
|
73501
|
+
* Similarly, maps and sets are considered empty if they have a `size` of `0`.
|
|
73502
|
+
*
|
|
73503
|
+
* @function isEmpty
|
|
73504
|
+
* @param {*} value The value to check.
|
|
73505
|
+
* @returns {boolean} Returns `true` if `value` is empty, else `false`.
|
|
73506
|
+
* @example
|
|
73507
|
+
*
|
|
73508
|
+
* _.isEmpty(null);
|
|
73509
|
+
* // => true
|
|
73510
|
+
*
|
|
73511
|
+
* _.isEmpty(true);
|
|
73512
|
+
* // => true
|
|
73513
|
+
*
|
|
73514
|
+
* _.isEmpty(1);
|
|
73515
|
+
* // => true
|
|
73516
|
+
*
|
|
73517
|
+
* _.isEmpty([1, 2, 3]);
|
|
73518
|
+
* // => false
|
|
73519
|
+
*
|
|
73520
|
+
* _.isEmpty({ 'a': 1 });
|
|
73521
|
+
* // => false
|
|
73522
|
+
*/
|
|
73523
|
+
|
|
73524
|
+
function isEmpty(value) {
|
|
73525
|
+
if (value == null) {
|
|
73526
|
+
return true;
|
|
73527
|
+
}
|
|
73528
|
+
|
|
73529
|
+
if (typeof value !== 'object') {
|
|
73530
|
+
return true;
|
|
73531
|
+
}
|
|
73532
|
+
|
|
73533
|
+
return Object.keys(value).length === 0;
|
|
73534
|
+
}
|
|
73535
|
+
;// CONCATENATED MODULE: ./node_modules/vant/es/utils/format/string.js
|
|
73536
|
+
var camelizeRE = /-(\w)/g;
|
|
73537
|
+
function camelize(str) {
|
|
73538
|
+
return str.replace(camelizeRE, function (_, c) {
|
|
73539
|
+
return c.toUpperCase();
|
|
73540
|
+
});
|
|
73541
|
+
}
|
|
73542
|
+
function padZero(num, targetLength) {
|
|
73543
|
+
if (targetLength === void 0) {
|
|
73544
|
+
targetLength = 2;
|
|
73545
|
+
}
|
|
73546
|
+
|
|
73547
|
+
var str = num + '';
|
|
73548
|
+
|
|
73549
|
+
while (str.length < targetLength) {
|
|
73550
|
+
str = '0' + str;
|
|
73551
|
+
}
|
|
73552
|
+
|
|
73553
|
+
return str;
|
|
73554
|
+
}
|
|
73555
|
+
;// CONCATENATED MODULE: ./node_modules/vant/es/mixins/slots.js
|
|
73556
|
+
/**
|
|
73557
|
+
* Use scopedSlots in Vue 2.6+
|
|
73558
|
+
* downgrade to slots in lower version
|
|
73559
|
+
*/
|
|
73560
|
+
var SlotsMixin = {
|
|
73561
|
+
methods: {
|
|
73562
|
+
slots: function slots(name, props) {
|
|
73563
|
+
if (name === void 0) {
|
|
73564
|
+
name = 'default';
|
|
73565
|
+
}
|
|
73566
|
+
|
|
73567
|
+
var $slots = this.$slots,
|
|
73568
|
+
$scopedSlots = this.$scopedSlots;
|
|
73569
|
+
var scopedSlot = $scopedSlots[name];
|
|
73570
|
+
|
|
73571
|
+
if (scopedSlot) {
|
|
73572
|
+
return scopedSlot(props);
|
|
73573
|
+
}
|
|
73574
|
+
|
|
73575
|
+
return $slots[name];
|
|
73576
|
+
}
|
|
73577
|
+
}
|
|
73578
|
+
};
|
|
73579
|
+
;// CONCATENATED MODULE: ./node_modules/vant/es/utils/create/component.js
|
|
73580
|
+
/**
|
|
73581
|
+
* Create a basic component with common options
|
|
73582
|
+
*/
|
|
73583
|
+
|
|
73584
|
+
|
|
73585
|
+
|
|
73586
|
+
|
|
73587
|
+
|
|
73588
|
+
|
|
73589
|
+
function component_install(Vue) {
|
|
73590
|
+
var name = this.name;
|
|
73591
|
+
Vue.component(name, this);
|
|
73592
|
+
Vue.component(camelize("-" + name), this);
|
|
73593
|
+
} // unify slots & scopedSlots
|
|
73594
|
+
|
|
73595
|
+
|
|
73596
|
+
function unifySlots(context) {
|
|
73597
|
+
// use data.scopedSlots in lower Vue version
|
|
73598
|
+
var scopedSlots = context.scopedSlots || context.data.scopedSlots || {};
|
|
73599
|
+
var slots = context.slots();
|
|
73600
|
+
Object.keys(slots).forEach(function (key) {
|
|
73601
|
+
if (!scopedSlots[key]) {
|
|
73602
|
+
scopedSlots[key] = function () {
|
|
73603
|
+
return slots[key];
|
|
73604
|
+
};
|
|
73605
|
+
}
|
|
73606
|
+
});
|
|
73607
|
+
return scopedSlots;
|
|
73608
|
+
} // should be removed after Vue 3
|
|
73609
|
+
|
|
73610
|
+
function transformFunctionComponent(pure) {
|
|
73611
|
+
return {
|
|
73612
|
+
functional: true,
|
|
73613
|
+
props: pure.props,
|
|
73614
|
+
model: pure.model,
|
|
73615
|
+
render: function render(h, context) {
|
|
73616
|
+
return pure(h, context.props, unifySlots(context), context);
|
|
73617
|
+
}
|
|
73618
|
+
};
|
|
73619
|
+
}
|
|
73620
|
+
|
|
73621
|
+
function createComponent(name) {
|
|
73622
|
+
return function (sfc) {
|
|
73623
|
+
if (utils_isFunction(sfc)) {
|
|
73624
|
+
sfc = transformFunctionComponent(sfc);
|
|
73625
|
+
}
|
|
73626
|
+
|
|
73627
|
+
if (!sfc.functional) {
|
|
73628
|
+
sfc.mixins = sfc.mixins || [];
|
|
73629
|
+
sfc.mixins.push(SlotsMixin);
|
|
73630
|
+
}
|
|
73631
|
+
|
|
73632
|
+
sfc.name = name;
|
|
73633
|
+
sfc.install = component_install;
|
|
73634
|
+
return sfc;
|
|
73635
|
+
};
|
|
73636
|
+
}
|
|
73637
|
+
;// CONCATENATED MODULE: ./node_modules/vant/es/utils/deep-assign.js
|
|
73638
|
+
|
|
73639
|
+
var deep_assign_hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
73640
|
+
|
|
73641
|
+
function assignKey(to, from, key) {
|
|
73642
|
+
var val = from[key];
|
|
73643
|
+
|
|
73644
|
+
if (!isDef(val)) {
|
|
73645
|
+
return;
|
|
73646
|
+
}
|
|
73647
|
+
|
|
73648
|
+
if (!deep_assign_hasOwnProperty.call(to, key) || !utils_isObject(val)) {
|
|
73649
|
+
to[key] = val;
|
|
73650
|
+
} else {
|
|
73651
|
+
// eslint-disable-next-line @typescript-eslint/no-use-before-define
|
|
73652
|
+
to[key] = deepAssign(Object(to[key]), from[key]);
|
|
73653
|
+
}
|
|
73654
|
+
}
|
|
73655
|
+
|
|
73656
|
+
function deepAssign(to, from) {
|
|
73657
|
+
Object.keys(from).forEach(function (key) {
|
|
73658
|
+
assignKey(to, from, key);
|
|
73659
|
+
});
|
|
73660
|
+
return to;
|
|
73661
|
+
}
|
|
73662
|
+
;// CONCATENATED MODULE: ./node_modules/vant/es/locale/lang/zh-CN.js
|
|
73663
|
+
/* harmony default export */ var zh_CN = ({
|
|
73664
|
+
name: '姓名',
|
|
73665
|
+
tel: '电话',
|
|
73666
|
+
save: '保存',
|
|
73667
|
+
confirm: '确认',
|
|
73668
|
+
cancel: '取消',
|
|
73669
|
+
delete: '删除',
|
|
73670
|
+
complete: '完成',
|
|
73671
|
+
loading: '加载中...',
|
|
73672
|
+
telEmpty: '请填写电话',
|
|
73673
|
+
nameEmpty: '请填写姓名',
|
|
73674
|
+
nameInvalid: '请输入正确的姓名',
|
|
73675
|
+
confirmDelete: '确定要删除吗',
|
|
73676
|
+
telInvalid: '请输入正确的手机号',
|
|
73677
|
+
vanCalendar: {
|
|
73678
|
+
end: '结束',
|
|
73679
|
+
start: '开始',
|
|
73680
|
+
title: '日期选择',
|
|
73681
|
+
confirm: '确定',
|
|
73682
|
+
startEnd: '开始/结束',
|
|
73683
|
+
weekdays: ['日', '一', '二', '三', '四', '五', '六'],
|
|
73684
|
+
monthTitle: function monthTitle(year, month) {
|
|
73685
|
+
return year + "\u5E74" + month + "\u6708";
|
|
73686
|
+
},
|
|
73687
|
+
rangePrompt: function rangePrompt(maxRange) {
|
|
73688
|
+
return "\u9009\u62E9\u5929\u6570\u4E0D\u80FD\u8D85\u8FC7 " + maxRange + " \u5929";
|
|
73689
|
+
}
|
|
73690
|
+
},
|
|
73691
|
+
vanCascader: {
|
|
73692
|
+
select: '请选择'
|
|
73693
|
+
},
|
|
73694
|
+
vanContactCard: {
|
|
73695
|
+
addText: '添加联系人'
|
|
73696
|
+
},
|
|
73697
|
+
vanContactList: {
|
|
73698
|
+
addText: '新建联系人'
|
|
73699
|
+
},
|
|
73700
|
+
vanPagination: {
|
|
73701
|
+
prev: '上一页',
|
|
73702
|
+
next: '下一页'
|
|
73703
|
+
},
|
|
73704
|
+
vanPullRefresh: {
|
|
73705
|
+
pulling: '下拉即可刷新...',
|
|
73706
|
+
loosing: '释放即可刷新...'
|
|
73707
|
+
},
|
|
73708
|
+
vanSubmitBar: {
|
|
73709
|
+
label: '合计:'
|
|
73710
|
+
},
|
|
73711
|
+
vanCoupon: {
|
|
73712
|
+
unlimited: '无使用门槛',
|
|
73713
|
+
discount: function discount(_discount) {
|
|
73714
|
+
return _discount + "\u6298";
|
|
73715
|
+
},
|
|
73716
|
+
condition: function condition(_condition) {
|
|
73717
|
+
return "\u6EE1" + _condition + "\u5143\u53EF\u7528";
|
|
73718
|
+
}
|
|
73719
|
+
},
|
|
73720
|
+
vanCouponCell: {
|
|
73721
|
+
title: '优惠券',
|
|
73722
|
+
tips: '暂无可用',
|
|
73723
|
+
count: function count(_count) {
|
|
73724
|
+
return _count + "\u5F20\u53EF\u7528";
|
|
73725
|
+
}
|
|
73726
|
+
},
|
|
73727
|
+
vanCouponList: {
|
|
73728
|
+
empty: '暂无优惠券',
|
|
73729
|
+
exchange: '兑换',
|
|
73730
|
+
close: '不使用优惠券',
|
|
73731
|
+
enable: '可用',
|
|
73732
|
+
disabled: '不可用',
|
|
73733
|
+
placeholder: '请输入优惠码'
|
|
73734
|
+
},
|
|
73735
|
+
vanAddressEdit: {
|
|
73736
|
+
area: '地区',
|
|
73737
|
+
postal: '邮政编码',
|
|
73738
|
+
areaEmpty: '请选择地区',
|
|
73739
|
+
addressEmpty: '请填写详细地址',
|
|
73740
|
+
postalEmpty: '邮政编码格式不正确',
|
|
73741
|
+
defaultAddress: '设为默认收货地址',
|
|
73742
|
+
telPlaceholder: '收货人手机号',
|
|
73743
|
+
namePlaceholder: '收货人姓名',
|
|
73744
|
+
areaPlaceholder: '选择省 / 市 / 区'
|
|
73745
|
+
},
|
|
73746
|
+
vanAddressEditDetail: {
|
|
73747
|
+
label: '详细地址',
|
|
73748
|
+
placeholder: '街道门牌、楼层房间号等信息'
|
|
73749
|
+
},
|
|
73750
|
+
vanAddressList: {
|
|
73751
|
+
add: '新增地址'
|
|
73752
|
+
}
|
|
73753
|
+
});
|
|
73754
|
+
;// CONCATENATED MODULE: ./node_modules/vant/es/locale/index.js
|
|
73755
|
+
|
|
73756
|
+
|
|
73757
|
+
|
|
73758
|
+
var proto = (external_commonjs_vue_commonjs2_vue_root_Vue_default()).prototype;
|
|
73759
|
+
var defineReactive = (external_commonjs_vue_commonjs2_vue_root_Vue_default()).util.defineReactive;
|
|
73760
|
+
defineReactive(proto, '$vantLang', 'zh-CN');
|
|
73761
|
+
defineReactive(proto, '$vantMessages', {
|
|
73762
|
+
'zh-CN': zh_CN
|
|
73763
|
+
});
|
|
73764
|
+
/* harmony default export */ var locale = ({
|
|
73765
|
+
messages: function messages() {
|
|
73766
|
+
return proto.$vantMessages[proto.$vantLang];
|
|
73767
|
+
},
|
|
73768
|
+
use: function use(lang, messages) {
|
|
73769
|
+
var _this$add;
|
|
73770
|
+
|
|
73771
|
+
proto.$vantLang = lang;
|
|
73772
|
+
this.add((_this$add = {}, _this$add[lang] = messages, _this$add));
|
|
73773
|
+
},
|
|
73774
|
+
add: function add(messages) {
|
|
73775
|
+
if (messages === void 0) {
|
|
73776
|
+
messages = {};
|
|
73777
|
+
}
|
|
73778
|
+
|
|
73779
|
+
deepAssign(proto.$vantMessages, messages);
|
|
73780
|
+
}
|
|
73781
|
+
});
|
|
73782
|
+
;// CONCATENATED MODULE: ./node_modules/vant/es/utils/create/i18n.js
|
|
73783
|
+
|
|
73784
|
+
|
|
73785
|
+
|
|
73786
|
+
function createI18N(name) {
|
|
73787
|
+
var prefix = camelize(name) + '.';
|
|
73788
|
+
return function (path) {
|
|
73789
|
+
var messages = locale.messages();
|
|
73790
|
+
var message = get(messages, prefix + path) || get(messages, path);
|
|
73791
|
+
|
|
73792
|
+
for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
|
|
73793
|
+
args[_key - 1] = arguments[_key];
|
|
73794
|
+
}
|
|
73795
|
+
|
|
73796
|
+
return utils_isFunction(message) ? message.apply(void 0, args) : message;
|
|
73797
|
+
};
|
|
73798
|
+
}
|
|
73799
|
+
;// CONCATENATED MODULE: ./node_modules/vant/es/utils/create/index.js
|
|
73800
|
+
|
|
73801
|
+
|
|
73802
|
+
|
|
73803
|
+
function createNamespace(name) {
|
|
73804
|
+
name = 'van-' + name;
|
|
73805
|
+
return [createComponent(name), createBEM(name), createI18N(name)];
|
|
73806
|
+
}
|
|
73807
|
+
;// CONCATENATED MODULE: ./node_modules/vant/es/toast/lock-click.js
|
|
73808
|
+
var lockCount = 0;
|
|
73809
|
+
function lockClick(lock) {
|
|
73810
|
+
if (lock) {
|
|
73811
|
+
if (!lockCount) {
|
|
73812
|
+
document.body.classList.add('van-toast--unclickable');
|
|
73813
|
+
}
|
|
73814
|
+
|
|
73815
|
+
lockCount++;
|
|
73816
|
+
} else {
|
|
73817
|
+
lockCount--;
|
|
73818
|
+
|
|
73819
|
+
if (!lockCount) {
|
|
73820
|
+
document.body.classList.remove('van-toast--unclickable');
|
|
73821
|
+
}
|
|
73822
|
+
}
|
|
73823
|
+
}
|
|
73824
|
+
;// CONCATENATED MODULE: ./node_modules/vant/es/mixins/popup/context.js
|
|
73825
|
+
var context = {
|
|
73826
|
+
zIndex: 2000,
|
|
73827
|
+
lockCount: 0,
|
|
73828
|
+
stack: [],
|
|
73829
|
+
find: function find(vm) {
|
|
73830
|
+
return this.stack.filter(function (item) {
|
|
73831
|
+
return item.vm === vm;
|
|
73832
|
+
})[0];
|
|
73833
|
+
},
|
|
73834
|
+
remove: function remove(vm) {
|
|
73835
|
+
var item = this.find(vm);
|
|
73836
|
+
if (!item) return;
|
|
73837
|
+
item.vm = null;
|
|
73838
|
+
item.overlay = null;
|
|
73839
|
+
var index = this.stack.indexOf(item);
|
|
73840
|
+
this.stack.splice(index, 1);
|
|
73841
|
+
}
|
|
73842
|
+
};
|
|
73843
|
+
// EXTERNAL MODULE: ./node_modules/@vue/babel-helper-vue-jsx-merge-props/dist/helper.js
|
|
73844
|
+
var helper = __webpack_require__(7499);
|
|
73845
|
+
var helper_default = /*#__PURE__*/__webpack_require__.n(helper);
|
|
73846
|
+
;// CONCATENATED MODULE: ./node_modules/vant/es/utils/functional.js
|
|
73847
|
+
|
|
73848
|
+
|
|
73849
|
+
var inheritKey = ['ref', 'key', 'style', 'class', 'attrs', 'refInFor', 'nativeOn', 'directives', 'staticClass', 'staticStyle'];
|
|
73850
|
+
var mapInheritKey = {
|
|
73851
|
+
nativeOn: 'on'
|
|
73852
|
+
}; // inherit partial context, map nativeOn to on
|
|
73853
|
+
|
|
73854
|
+
function inherit(context, inheritListeners) {
|
|
73855
|
+
var result = inheritKey.reduce(function (obj, key) {
|
|
73856
|
+
if (context.data[key]) {
|
|
73857
|
+
obj[mapInheritKey[key] || key] = context.data[key];
|
|
73858
|
+
}
|
|
73859
|
+
|
|
73860
|
+
return obj;
|
|
73861
|
+
}, {});
|
|
73862
|
+
|
|
73863
|
+
if (inheritListeners) {
|
|
73864
|
+
result.on = result.on || {};
|
|
73865
|
+
|
|
73866
|
+
_extends(result.on, context.data.on);
|
|
73867
|
+
}
|
|
73868
|
+
|
|
73869
|
+
return result;
|
|
73870
|
+
} // emit event
|
|
73871
|
+
|
|
73872
|
+
function emit(context, eventName) {
|
|
73873
|
+
for (var _len = arguments.length, args = new Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) {
|
|
73874
|
+
args[_key - 2] = arguments[_key];
|
|
73875
|
+
}
|
|
73876
|
+
|
|
73877
|
+
var listeners = context.listeners[eventName];
|
|
73878
|
+
|
|
73879
|
+
if (listeners) {
|
|
73880
|
+
if (Array.isArray(listeners)) {
|
|
73881
|
+
listeners.forEach(function (listener) {
|
|
73882
|
+
listener.apply(void 0, args);
|
|
73883
|
+
});
|
|
73884
|
+
} else {
|
|
73885
|
+
listeners.apply(void 0, args);
|
|
73886
|
+
}
|
|
73887
|
+
}
|
|
73888
|
+
} // mount functional component
|
|
73889
|
+
|
|
73890
|
+
function mount(Component, data) {
|
|
73891
|
+
var instance = new (external_commonjs_vue_commonjs2_vue_root_Vue_default())({
|
|
73892
|
+
el: document.createElement('div'),
|
|
73893
|
+
props: Component.props,
|
|
73894
|
+
render: function render(h) {
|
|
73895
|
+
return h(Component, _extends({
|
|
73896
|
+
props: this.$props
|
|
73897
|
+
}, data));
|
|
73898
|
+
}
|
|
73899
|
+
});
|
|
73900
|
+
document.body.appendChild(instance.$el);
|
|
73901
|
+
return instance;
|
|
73902
|
+
}
|
|
73903
|
+
;// CONCATENATED MODULE: ./node_modules/vant/es/utils/dom/event.js
|
|
73904
|
+
|
|
73905
|
+
// eslint-disable-next-line import/no-mutable-exports
|
|
73906
|
+
var supportsPassive = false;
|
|
73907
|
+
|
|
73908
|
+
if (!isServer) {
|
|
73909
|
+
try {
|
|
73910
|
+
var opts = {};
|
|
73911
|
+
Object.defineProperty(opts, 'passive', {
|
|
73912
|
+
// eslint-disable-next-line getter-return
|
|
73913
|
+
get: function get() {
|
|
73914
|
+
/* istanbul ignore next */
|
|
73915
|
+
supportsPassive = true;
|
|
73916
|
+
}
|
|
73917
|
+
});
|
|
73918
|
+
window.addEventListener('test-passive', null, opts); // eslint-disable-next-line no-empty
|
|
73919
|
+
} catch (e) {}
|
|
73920
|
+
}
|
|
73921
|
+
|
|
73922
|
+
function on(target, event, handler, passive) {
|
|
73923
|
+
if (passive === void 0) {
|
|
73924
|
+
passive = false;
|
|
73925
|
+
}
|
|
73926
|
+
|
|
73927
|
+
if (!isServer) {
|
|
73928
|
+
target.addEventListener(event, handler, supportsPassive ? {
|
|
73929
|
+
capture: false,
|
|
73930
|
+
passive: passive
|
|
73931
|
+
} : false);
|
|
73932
|
+
}
|
|
73933
|
+
}
|
|
73934
|
+
function off(target, event, handler) {
|
|
73935
|
+
if (!isServer) {
|
|
73936
|
+
target.removeEventListener(event, handler);
|
|
73937
|
+
}
|
|
73938
|
+
}
|
|
73939
|
+
function stopPropagation(event) {
|
|
73940
|
+
event.stopPropagation();
|
|
73941
|
+
}
|
|
73942
|
+
function preventDefault(event, isStopPropagation) {
|
|
73943
|
+
/* istanbul ignore else */
|
|
73944
|
+
if (typeof event.cancelable !== 'boolean' || event.cancelable) {
|
|
73945
|
+
event.preventDefault();
|
|
73946
|
+
}
|
|
73947
|
+
|
|
73948
|
+
if (isStopPropagation) {
|
|
73949
|
+
stopPropagation(event);
|
|
73950
|
+
}
|
|
73951
|
+
}
|
|
73952
|
+
;// CONCATENATED MODULE: ./node_modules/vant/es/overlay/index.js
|
|
73953
|
+
|
|
73954
|
+
|
|
73955
|
+
// Utils
|
|
73956
|
+
|
|
73957
|
+
|
|
73958
|
+
// Types
|
|
73959
|
+
|
|
73960
|
+
var _createNamespace = createNamespace('overlay'),
|
|
73961
|
+
overlay_createComponent = _createNamespace[0],
|
|
73962
|
+
bem = _createNamespace[1];
|
|
73963
|
+
|
|
73964
|
+
function preventTouchMove(event) {
|
|
73965
|
+
preventDefault(event, true);
|
|
73966
|
+
}
|
|
73967
|
+
|
|
73968
|
+
function Overlay(h, props, slots, ctx) {
|
|
73969
|
+
var style = _extends({
|
|
73970
|
+
zIndex: props.zIndex
|
|
73971
|
+
}, props.customStyle);
|
|
73972
|
+
|
|
73973
|
+
if (isDef(props.duration)) {
|
|
73974
|
+
style.animationDuration = props.duration + "s";
|
|
73975
|
+
}
|
|
73976
|
+
|
|
73977
|
+
return h("transition", {
|
|
73978
|
+
"attrs": {
|
|
73979
|
+
"name": "van-fade"
|
|
73980
|
+
}
|
|
73981
|
+
}, [h("div", helper_default()([{
|
|
73982
|
+
"directives": [{
|
|
73983
|
+
name: "show",
|
|
73984
|
+
value: props.show
|
|
73985
|
+
}],
|
|
73986
|
+
"style": style,
|
|
73987
|
+
"class": [bem(), props.className],
|
|
73988
|
+
"on": {
|
|
73989
|
+
"touchmove": props.lockScroll ? preventTouchMove : utils_noop
|
|
73990
|
+
}
|
|
73991
|
+
}, inherit(ctx, true)]), [slots.default == null ? void 0 : slots.default()])]);
|
|
73992
|
+
}
|
|
73993
|
+
|
|
73994
|
+
Overlay.props = {
|
|
73995
|
+
show: Boolean,
|
|
73996
|
+
zIndex: [Number, String],
|
|
73997
|
+
duration: [Number, String],
|
|
73998
|
+
className: null,
|
|
73999
|
+
customStyle: Object,
|
|
74000
|
+
lockScroll: {
|
|
74001
|
+
type: Boolean,
|
|
74002
|
+
default: true
|
|
74003
|
+
}
|
|
74004
|
+
};
|
|
74005
|
+
/* harmony default export */ var overlay = (overlay_createComponent(Overlay));
|
|
74006
|
+
;// CONCATENATED MODULE: ./node_modules/vant/es/utils/dom/node.js
|
|
74007
|
+
function removeNode(el) {
|
|
74008
|
+
var parent = el.parentNode;
|
|
74009
|
+
|
|
74010
|
+
if (parent) {
|
|
74011
|
+
parent.removeChild(el);
|
|
74012
|
+
}
|
|
74013
|
+
}
|
|
74014
|
+
;// CONCATENATED MODULE: ./node_modules/vant/es/mixins/popup/overlay.js
|
|
74015
|
+
|
|
74016
|
+
|
|
74017
|
+
|
|
74018
|
+
|
|
74019
|
+
|
|
74020
|
+
var defaultConfig = {
|
|
74021
|
+
className: '',
|
|
74022
|
+
customStyle: {}
|
|
74023
|
+
};
|
|
74024
|
+
|
|
74025
|
+
function mountOverlay(vm) {
|
|
74026
|
+
return mount(overlay, {
|
|
74027
|
+
on: {
|
|
74028
|
+
// close popup when overlay clicked & closeOnClickOverlay is true
|
|
74029
|
+
click: function click() {
|
|
74030
|
+
vm.$emit('click-overlay');
|
|
74031
|
+
|
|
74032
|
+
if (vm.closeOnClickOverlay) {
|
|
74033
|
+
if (vm.onClickOverlay) {
|
|
74034
|
+
vm.onClickOverlay();
|
|
74035
|
+
} else {
|
|
74036
|
+
vm.close();
|
|
74037
|
+
}
|
|
74038
|
+
}
|
|
74039
|
+
}
|
|
74040
|
+
}
|
|
74041
|
+
});
|
|
74042
|
+
}
|
|
74043
|
+
|
|
74044
|
+
function updateOverlay(vm) {
|
|
74045
|
+
var item = context.find(vm);
|
|
74046
|
+
|
|
74047
|
+
if (item) {
|
|
74048
|
+
var el = vm.$el;
|
|
74049
|
+
var config = item.config,
|
|
74050
|
+
overlay = item.overlay;
|
|
74051
|
+
|
|
74052
|
+
if (el && el.parentNode) {
|
|
74053
|
+
el.parentNode.insertBefore(overlay.$el, el);
|
|
74054
|
+
}
|
|
74055
|
+
|
|
74056
|
+
_extends(overlay, defaultConfig, config, {
|
|
74057
|
+
show: true
|
|
74058
|
+
});
|
|
74059
|
+
}
|
|
74060
|
+
}
|
|
74061
|
+
function openOverlay(vm, config) {
|
|
74062
|
+
var item = context.find(vm);
|
|
74063
|
+
|
|
74064
|
+
if (item) {
|
|
74065
|
+
item.config = config;
|
|
74066
|
+
} else {
|
|
74067
|
+
var overlay = mountOverlay(vm);
|
|
74068
|
+
context.stack.push({
|
|
74069
|
+
vm: vm,
|
|
74070
|
+
config: config,
|
|
74071
|
+
overlay: overlay
|
|
74072
|
+
});
|
|
74073
|
+
}
|
|
74074
|
+
|
|
74075
|
+
updateOverlay(vm);
|
|
74076
|
+
}
|
|
74077
|
+
function closeOverlay(vm) {
|
|
74078
|
+
var item = context.find(vm);
|
|
74079
|
+
|
|
74080
|
+
if (item) {
|
|
74081
|
+
item.overlay.show = false;
|
|
74082
|
+
}
|
|
74083
|
+
}
|
|
74084
|
+
function removeOverlay(vm) {
|
|
74085
|
+
var item = context.find(vm);
|
|
74086
|
+
|
|
74087
|
+
if (item) {
|
|
74088
|
+
removeNode(item.overlay.$el);
|
|
74089
|
+
context.remove(vm);
|
|
74090
|
+
}
|
|
74091
|
+
}
|
|
74092
|
+
;// CONCATENATED MODULE: ./node_modules/vant/es/utils/dom/scroll.js
|
|
74093
|
+
function isWindow(val) {
|
|
74094
|
+
return val === window;
|
|
74095
|
+
} // get nearest scroll element
|
|
74096
|
+
// https://github.com/vant-ui/vant/issues/3823
|
|
74097
|
+
|
|
74098
|
+
|
|
74099
|
+
var overflowScrollReg = /scroll|auto|overlay/i;
|
|
74100
|
+
function getScroller(el, root) {
|
|
74101
|
+
if (root === void 0) {
|
|
74102
|
+
root = window;
|
|
74103
|
+
}
|
|
74104
|
+
|
|
74105
|
+
var node = el;
|
|
74106
|
+
|
|
74107
|
+
while (node && node.tagName !== 'HTML' && node.tagName !== 'BODY' && node.nodeType === 1 && node !== root) {
|
|
74108
|
+
var _window$getComputedSt = window.getComputedStyle(node),
|
|
74109
|
+
overflowY = _window$getComputedSt.overflowY;
|
|
74110
|
+
|
|
74111
|
+
if (overflowScrollReg.test(overflowY)) {
|
|
74112
|
+
return node;
|
|
74113
|
+
}
|
|
74114
|
+
|
|
74115
|
+
node = node.parentNode;
|
|
74116
|
+
}
|
|
74117
|
+
|
|
74118
|
+
return root;
|
|
74119
|
+
}
|
|
74120
|
+
function getScrollTop(el) {
|
|
74121
|
+
var top = 'scrollTop' in el ? el.scrollTop : el.pageYOffset; // iOS scroll bounce cause minus scrollTop
|
|
74122
|
+
|
|
74123
|
+
return Math.max(top, 0);
|
|
74124
|
+
}
|
|
74125
|
+
function setScrollTop(el, value) {
|
|
74126
|
+
if ('scrollTop' in el) {
|
|
74127
|
+
el.scrollTop = value;
|
|
74128
|
+
} else {
|
|
74129
|
+
el.scrollTo(el.scrollX, value);
|
|
74130
|
+
}
|
|
74131
|
+
}
|
|
74132
|
+
function getRootScrollTop() {
|
|
74133
|
+
return window.pageYOffset || document.documentElement.scrollTop || document.body.scrollTop || 0;
|
|
74134
|
+
}
|
|
74135
|
+
function setRootScrollTop(value) {
|
|
74136
|
+
setScrollTop(window, value);
|
|
74137
|
+
setScrollTop(document.body, value);
|
|
74138
|
+
} // get distance from element top to page top or scroller top
|
|
74139
|
+
|
|
74140
|
+
function getElementTop(el, scroller) {
|
|
74141
|
+
if (isWindow(el)) {
|
|
74142
|
+
return 0;
|
|
74143
|
+
}
|
|
74144
|
+
|
|
74145
|
+
var scrollTop = scroller ? getScrollTop(scroller) : getRootScrollTop();
|
|
74146
|
+
return el.getBoundingClientRect().top + scrollTop;
|
|
74147
|
+
}
|
|
74148
|
+
function getVisibleHeight(el) {
|
|
74149
|
+
if (isWindow(el)) {
|
|
74150
|
+
return el.innerHeight;
|
|
74151
|
+
}
|
|
74152
|
+
|
|
74153
|
+
return el.getBoundingClientRect().height;
|
|
74154
|
+
}
|
|
74155
|
+
function getVisibleTop(el) {
|
|
74156
|
+
if (isWindow(el)) {
|
|
74157
|
+
return 0;
|
|
74158
|
+
}
|
|
74159
|
+
|
|
74160
|
+
return el.getBoundingClientRect().top;
|
|
74161
|
+
}
|
|
74162
|
+
;// CONCATENATED MODULE: ./node_modules/vant/es/mixins/touch.js
|
|
74163
|
+
|
|
74164
|
+
|
|
74165
|
+
function getDirection(x, y) {
|
|
74166
|
+
if (x > y) {
|
|
74167
|
+
return 'horizontal';
|
|
74168
|
+
}
|
|
74169
|
+
|
|
74170
|
+
if (y > x) {
|
|
74171
|
+
return 'vertical';
|
|
74172
|
+
}
|
|
74173
|
+
|
|
74174
|
+
return '';
|
|
74175
|
+
}
|
|
74176
|
+
|
|
74177
|
+
var TouchMixin = {
|
|
74178
|
+
data: function data() {
|
|
74179
|
+
return {
|
|
74180
|
+
direction: ''
|
|
74181
|
+
};
|
|
74182
|
+
},
|
|
74183
|
+
methods: {
|
|
74184
|
+
touchStart: function touchStart(event) {
|
|
74185
|
+
this.resetTouchStatus();
|
|
74186
|
+
this.startX = event.touches[0].clientX;
|
|
74187
|
+
this.startY = event.touches[0].clientY;
|
|
74188
|
+
},
|
|
74189
|
+
touchMove: function touchMove(event) {
|
|
74190
|
+
var touch = event.touches[0]; // safari back will set clientX to negative number
|
|
74191
|
+
|
|
74192
|
+
this.deltaX = touch.clientX < 0 ? 0 : touch.clientX - this.startX;
|
|
74193
|
+
this.deltaY = touch.clientY - this.startY;
|
|
74194
|
+
this.offsetX = Math.abs(this.deltaX);
|
|
74195
|
+
this.offsetY = Math.abs(this.deltaY); // lock direction when distance is greater than a certain value
|
|
74196
|
+
|
|
74197
|
+
var LOCK_DIRECTION_DISTANCE = 10;
|
|
74198
|
+
|
|
74199
|
+
if (!this.direction || this.offsetX < LOCK_DIRECTION_DISTANCE && this.offsetY < LOCK_DIRECTION_DISTANCE) {
|
|
74200
|
+
this.direction = getDirection(this.offsetX, this.offsetY);
|
|
74201
|
+
}
|
|
74202
|
+
},
|
|
74203
|
+
resetTouchStatus: function resetTouchStatus() {
|
|
74204
|
+
this.direction = '';
|
|
74205
|
+
this.deltaX = 0;
|
|
74206
|
+
this.deltaY = 0;
|
|
74207
|
+
this.offsetX = 0;
|
|
74208
|
+
this.offsetY = 0;
|
|
74209
|
+
},
|
|
74210
|
+
// avoid Vue 2.6 event bubble issues by manually binding events
|
|
74211
|
+
// https://github.com/vant-ui/vant/issues/3015
|
|
74212
|
+
bindTouchEvent: function bindTouchEvent(el) {
|
|
74213
|
+
var onTouchStart = this.onTouchStart,
|
|
74214
|
+
onTouchMove = this.onTouchMove,
|
|
74215
|
+
onTouchEnd = this.onTouchEnd;
|
|
74216
|
+
on(el, 'touchstart', onTouchStart);
|
|
74217
|
+
on(el, 'touchmove', onTouchMove);
|
|
74218
|
+
|
|
74219
|
+
if (onTouchEnd) {
|
|
74220
|
+
on(el, 'touchend', onTouchEnd);
|
|
74221
|
+
on(el, 'touchcancel', onTouchEnd);
|
|
74222
|
+
}
|
|
74223
|
+
}
|
|
74224
|
+
}
|
|
74225
|
+
};
|
|
74226
|
+
;// CONCATENATED MODULE: ./node_modules/vant/es/mixins/portal.js
|
|
74227
|
+
function getElement(selector) {
|
|
74228
|
+
if (typeof selector === 'string') {
|
|
74229
|
+
return document.querySelector(selector);
|
|
74230
|
+
}
|
|
74231
|
+
|
|
74232
|
+
return selector();
|
|
74233
|
+
}
|
|
74234
|
+
|
|
74235
|
+
function PortalMixin(_temp) {
|
|
74236
|
+
var _ref = _temp === void 0 ? {} : _temp,
|
|
74237
|
+
ref = _ref.ref,
|
|
74238
|
+
afterPortal = _ref.afterPortal;
|
|
74239
|
+
|
|
74240
|
+
return {
|
|
74241
|
+
props: {
|
|
74242
|
+
getContainer: [String, Function]
|
|
74243
|
+
},
|
|
74244
|
+
watch: {
|
|
74245
|
+
getContainer: 'portal'
|
|
74246
|
+
},
|
|
74247
|
+
mounted: function mounted() {
|
|
74248
|
+
if (this.getContainer) {
|
|
74249
|
+
this.portal();
|
|
74250
|
+
}
|
|
74251
|
+
},
|
|
74252
|
+
methods: {
|
|
74253
|
+
portal: function portal() {
|
|
74254
|
+
var getContainer = this.getContainer;
|
|
74255
|
+
var el = ref ? this.$refs[ref] : this.$el;
|
|
74256
|
+
var container;
|
|
74257
|
+
|
|
74258
|
+
if (getContainer) {
|
|
74259
|
+
container = getElement(getContainer);
|
|
74260
|
+
} else if (this.$parent) {
|
|
74261
|
+
container = this.$parent.$el;
|
|
74262
|
+
}
|
|
74263
|
+
|
|
74264
|
+
if (container && container !== el.parentNode) {
|
|
74265
|
+
container.appendChild(el);
|
|
74266
|
+
}
|
|
74267
|
+
|
|
74268
|
+
if (afterPortal) {
|
|
74269
|
+
afterPortal.call(this);
|
|
74270
|
+
}
|
|
74271
|
+
}
|
|
74272
|
+
}
|
|
74273
|
+
};
|
|
74274
|
+
}
|
|
74275
|
+
;// CONCATENATED MODULE: ./node_modules/vant/es/mixins/bind-event.js
|
|
74276
|
+
/**
|
|
74277
|
+
* Bind event when mounted or activated
|
|
74278
|
+
*/
|
|
74279
|
+
|
|
74280
|
+
var uid = 0;
|
|
74281
|
+
function BindEventMixin(handler) {
|
|
74282
|
+
var key = "binded_" + uid++;
|
|
74283
|
+
|
|
74284
|
+
function bind() {
|
|
74285
|
+
if (!this[key]) {
|
|
74286
|
+
handler.call(this, on, true);
|
|
74287
|
+
this[key] = true;
|
|
74288
|
+
}
|
|
74289
|
+
}
|
|
74290
|
+
|
|
74291
|
+
function unbind() {
|
|
74292
|
+
if (this[key]) {
|
|
74293
|
+
handler.call(this, off, false);
|
|
74294
|
+
this[key] = false;
|
|
74295
|
+
}
|
|
74296
|
+
}
|
|
74297
|
+
|
|
74298
|
+
return {
|
|
74299
|
+
mounted: bind,
|
|
74300
|
+
activated: bind,
|
|
74301
|
+
deactivated: unbind,
|
|
74302
|
+
beforeDestroy: unbind
|
|
74303
|
+
};
|
|
74304
|
+
}
|
|
74305
|
+
;// CONCATENATED MODULE: ./node_modules/vant/es/mixins/close-on-popstate.js
|
|
74306
|
+
|
|
74307
|
+
|
|
74308
|
+
var CloseOnPopstateMixin = {
|
|
74309
|
+
mixins: [BindEventMixin(function (bind, isBind) {
|
|
74310
|
+
this.handlePopstate(isBind && this.closeOnPopstate);
|
|
74311
|
+
})],
|
|
74312
|
+
props: {
|
|
74313
|
+
closeOnPopstate: Boolean
|
|
74314
|
+
},
|
|
74315
|
+
data: function data() {
|
|
74316
|
+
return {
|
|
74317
|
+
bindStatus: false
|
|
74318
|
+
};
|
|
74319
|
+
},
|
|
74320
|
+
watch: {
|
|
74321
|
+
closeOnPopstate: function closeOnPopstate(val) {
|
|
74322
|
+
this.handlePopstate(val);
|
|
74323
|
+
}
|
|
74324
|
+
},
|
|
74325
|
+
methods: {
|
|
74326
|
+
onPopstate: function onPopstate() {
|
|
74327
|
+
this.close();
|
|
74328
|
+
this.shouldReopen = false;
|
|
74329
|
+
},
|
|
74330
|
+
handlePopstate: function handlePopstate(bind) {
|
|
74331
|
+
/* istanbul ignore if */
|
|
74332
|
+
if (this.$isServer) {
|
|
74333
|
+
return;
|
|
74334
|
+
}
|
|
74335
|
+
|
|
74336
|
+
if (this.bindStatus !== bind) {
|
|
74337
|
+
this.bindStatus = bind;
|
|
74338
|
+
var action = bind ? on : off;
|
|
74339
|
+
action(window, 'popstate', this.onPopstate);
|
|
74340
|
+
}
|
|
74341
|
+
}
|
|
74342
|
+
}
|
|
74343
|
+
};
|
|
74344
|
+
;// CONCATENATED MODULE: ./node_modules/vant/es/mixins/popup/index.js
|
|
74345
|
+
// Context
|
|
74346
|
+
|
|
74347
|
+
// Utils
|
|
74348
|
+
|
|
74349
|
+
|
|
74350
|
+
|
|
74351
|
+
// Mixins
|
|
74352
|
+
|
|
74353
|
+
|
|
74354
|
+
|
|
74355
|
+
|
|
74356
|
+
var popupMixinProps = {
|
|
74357
|
+
// Initial rendering animation
|
|
74358
|
+
transitionAppear: Boolean,
|
|
74359
|
+
// whether to show popup
|
|
74360
|
+
value: Boolean,
|
|
74361
|
+
// whether to show overlay
|
|
74362
|
+
overlay: Boolean,
|
|
74363
|
+
// overlay custom style
|
|
74364
|
+
overlayStyle: Object,
|
|
74365
|
+
// overlay custom class name
|
|
74366
|
+
overlayClass: String,
|
|
74367
|
+
// whether to close popup when overlay is clicked
|
|
74368
|
+
closeOnClickOverlay: Boolean,
|
|
74369
|
+
// z-index
|
|
74370
|
+
zIndex: [Number, String],
|
|
74371
|
+
// prevent body scroll
|
|
74372
|
+
lockScroll: {
|
|
74373
|
+
type: Boolean,
|
|
74374
|
+
default: true
|
|
74375
|
+
},
|
|
74376
|
+
// whether to lazy render
|
|
74377
|
+
lazyRender: {
|
|
74378
|
+
type: Boolean,
|
|
74379
|
+
default: true
|
|
74380
|
+
}
|
|
74381
|
+
};
|
|
74382
|
+
function PopupMixin(options) {
|
|
74383
|
+
if (options === void 0) {
|
|
74384
|
+
options = {};
|
|
74385
|
+
}
|
|
74386
|
+
|
|
74387
|
+
return {
|
|
74388
|
+
mixins: [TouchMixin, CloseOnPopstateMixin, PortalMixin({
|
|
74389
|
+
afterPortal: function afterPortal() {
|
|
74390
|
+
if (this.overlay) {
|
|
74391
|
+
updateOverlay();
|
|
74392
|
+
}
|
|
74393
|
+
}
|
|
74394
|
+
})],
|
|
74395
|
+
provide: function provide() {
|
|
74396
|
+
return {
|
|
74397
|
+
vanPopup: this
|
|
74398
|
+
};
|
|
74399
|
+
},
|
|
74400
|
+
props: popupMixinProps,
|
|
74401
|
+
data: function data() {
|
|
74402
|
+
this.onReopenCallback = [];
|
|
74403
|
+
return {
|
|
74404
|
+
inited: this.value
|
|
74405
|
+
};
|
|
74406
|
+
},
|
|
74407
|
+
computed: {
|
|
74408
|
+
shouldRender: function shouldRender() {
|
|
74409
|
+
return this.inited || !this.lazyRender;
|
|
74410
|
+
}
|
|
74411
|
+
},
|
|
74412
|
+
watch: {
|
|
74413
|
+
value: function value(val) {
|
|
74414
|
+
var type = val ? 'open' : 'close';
|
|
74415
|
+
this.inited = this.inited || this.value;
|
|
74416
|
+
this[type]();
|
|
74417
|
+
|
|
74418
|
+
if (!options.skipToggleEvent) {
|
|
74419
|
+
this.$emit(type);
|
|
74420
|
+
}
|
|
74421
|
+
},
|
|
74422
|
+
overlay: 'renderOverlay'
|
|
74423
|
+
},
|
|
74424
|
+
mounted: function mounted() {
|
|
74425
|
+
if (this.value) {
|
|
74426
|
+
this.open();
|
|
74427
|
+
}
|
|
74428
|
+
},
|
|
74429
|
+
|
|
74430
|
+
/* istanbul ignore next */
|
|
74431
|
+
activated: function activated() {
|
|
74432
|
+
if (this.shouldReopen) {
|
|
74433
|
+
this.$emit('input', true);
|
|
74434
|
+
this.shouldReopen = false;
|
|
74435
|
+
}
|
|
74436
|
+
},
|
|
74437
|
+
beforeDestroy: function beforeDestroy() {
|
|
74438
|
+
removeOverlay(this);
|
|
74439
|
+
|
|
74440
|
+
if (this.opened) {
|
|
74441
|
+
this.removeLock();
|
|
74442
|
+
}
|
|
74443
|
+
|
|
74444
|
+
if (this.getContainer) {
|
|
74445
|
+
removeNode(this.$el);
|
|
74446
|
+
}
|
|
74447
|
+
},
|
|
74448
|
+
|
|
74449
|
+
/* istanbul ignore next */
|
|
74450
|
+
deactivated: function deactivated() {
|
|
74451
|
+
if (this.value) {
|
|
74452
|
+
this.close();
|
|
74453
|
+
this.shouldReopen = true;
|
|
74454
|
+
}
|
|
74455
|
+
},
|
|
74456
|
+
methods: {
|
|
74457
|
+
open: function open() {
|
|
74458
|
+
/* istanbul ignore next */
|
|
74459
|
+
if (this.$isServer || this.opened) {
|
|
74460
|
+
return;
|
|
74461
|
+
} // cover default zIndex
|
|
74462
|
+
|
|
74463
|
+
|
|
74464
|
+
if (this.zIndex !== undefined) {
|
|
74465
|
+
context.zIndex = this.zIndex;
|
|
74466
|
+
}
|
|
74467
|
+
|
|
74468
|
+
this.opened = true;
|
|
74469
|
+
this.renderOverlay();
|
|
74470
|
+
this.addLock();
|
|
74471
|
+
this.onReopenCallback.forEach(function (callback) {
|
|
74472
|
+
callback();
|
|
74473
|
+
});
|
|
74474
|
+
},
|
|
74475
|
+
addLock: function addLock() {
|
|
74476
|
+
if (this.lockScroll) {
|
|
74477
|
+
on(document, 'touchstart', this.touchStart);
|
|
74478
|
+
on(document, 'touchmove', this.onTouchMove);
|
|
74479
|
+
|
|
74480
|
+
if (!context.lockCount) {
|
|
74481
|
+
document.body.classList.add('van-overflow-hidden');
|
|
74482
|
+
}
|
|
74483
|
+
|
|
74484
|
+
context.lockCount++;
|
|
74485
|
+
}
|
|
74486
|
+
},
|
|
74487
|
+
removeLock: function removeLock() {
|
|
74488
|
+
if (this.lockScroll && context.lockCount) {
|
|
74489
|
+
context.lockCount--;
|
|
74490
|
+
off(document, 'touchstart', this.touchStart);
|
|
74491
|
+
off(document, 'touchmove', this.onTouchMove);
|
|
74492
|
+
|
|
74493
|
+
if (!context.lockCount) {
|
|
74494
|
+
document.body.classList.remove('van-overflow-hidden');
|
|
74495
|
+
}
|
|
74496
|
+
}
|
|
74497
|
+
},
|
|
74498
|
+
close: function close() {
|
|
74499
|
+
if (!this.opened) {
|
|
74500
|
+
return;
|
|
74501
|
+
}
|
|
74502
|
+
|
|
74503
|
+
closeOverlay(this);
|
|
74504
|
+
this.opened = false;
|
|
74505
|
+
this.removeLock();
|
|
74506
|
+
this.$emit('input', false);
|
|
74507
|
+
},
|
|
74508
|
+
onTouchMove: function onTouchMove(event) {
|
|
74509
|
+
this.touchMove(event);
|
|
74510
|
+
var direction = this.deltaY > 0 ? '10' : '01';
|
|
74511
|
+
var el = getScroller(event.target, this.$el);
|
|
74512
|
+
var scrollHeight = el.scrollHeight,
|
|
74513
|
+
offsetHeight = el.offsetHeight,
|
|
74514
|
+
scrollTop = el.scrollTop;
|
|
74515
|
+
var status = '11';
|
|
74516
|
+
/* istanbul ignore next */
|
|
74517
|
+
|
|
74518
|
+
if (scrollTop === 0) {
|
|
74519
|
+
status = offsetHeight >= scrollHeight ? '00' : '01';
|
|
74520
|
+
} else if (scrollTop + offsetHeight >= scrollHeight) {
|
|
74521
|
+
status = '10';
|
|
74522
|
+
}
|
|
74523
|
+
/* istanbul ignore next */
|
|
74524
|
+
|
|
74525
|
+
|
|
74526
|
+
if (status !== '11' && this.direction === 'vertical' && !(parseInt(status, 2) & parseInt(direction, 2))) {
|
|
74527
|
+
preventDefault(event, true);
|
|
74528
|
+
}
|
|
74529
|
+
},
|
|
74530
|
+
renderOverlay: function renderOverlay() {
|
|
74531
|
+
var _this = this;
|
|
74532
|
+
|
|
74533
|
+
if (this.$isServer || !this.value) {
|
|
74534
|
+
return;
|
|
74535
|
+
}
|
|
74536
|
+
|
|
74537
|
+
this.$nextTick(function () {
|
|
74538
|
+
_this.updateZIndex(_this.overlay ? 1 : 0);
|
|
74539
|
+
|
|
74540
|
+
if (_this.overlay) {
|
|
74541
|
+
openOverlay(_this, {
|
|
74542
|
+
zIndex: context.zIndex++,
|
|
74543
|
+
duration: _this.duration,
|
|
74544
|
+
className: _this.overlayClass,
|
|
74545
|
+
customStyle: _this.overlayStyle
|
|
74546
|
+
});
|
|
74547
|
+
} else {
|
|
74548
|
+
closeOverlay(_this);
|
|
74549
|
+
}
|
|
74550
|
+
});
|
|
74551
|
+
},
|
|
74552
|
+
updateZIndex: function updateZIndex(value) {
|
|
74553
|
+
if (value === void 0) {
|
|
74554
|
+
value = 0;
|
|
74555
|
+
}
|
|
74556
|
+
|
|
74557
|
+
this.$el.style.zIndex = ++context.zIndex + value;
|
|
74558
|
+
},
|
|
74559
|
+
onReopen: function onReopen(callback) {
|
|
74560
|
+
this.onReopenCallback.push(callback);
|
|
74561
|
+
}
|
|
74562
|
+
}
|
|
74563
|
+
};
|
|
74564
|
+
}
|
|
74565
|
+
;// CONCATENATED MODULE: ./node_modules/vant/es/utils/validate/number.js
|
|
74566
|
+
function isNumeric(val) {
|
|
74567
|
+
return /^\d+(\.\d+)?$/.test(val);
|
|
74568
|
+
}
|
|
74569
|
+
function number_isNaN(val) {
|
|
74570
|
+
if (Number.isNaN) {
|
|
74571
|
+
return Number.isNaN(val);
|
|
74572
|
+
} // eslint-disable-next-line no-self-compare
|
|
74573
|
+
|
|
74574
|
+
|
|
74575
|
+
return val !== val;
|
|
74576
|
+
}
|
|
74577
|
+
;// CONCATENATED MODULE: ./node_modules/vant/es/utils/format/unit.js
|
|
74578
|
+
|
|
74579
|
+
|
|
74580
|
+
function addUnit(value) {
|
|
74581
|
+
if (!isDef(value)) {
|
|
74582
|
+
return undefined;
|
|
74583
|
+
}
|
|
74584
|
+
|
|
74585
|
+
value = String(value);
|
|
74586
|
+
return isNumeric(value) ? value + "px" : value;
|
|
74587
|
+
} // cache
|
|
74588
|
+
|
|
74589
|
+
var rootFontSize;
|
|
74590
|
+
|
|
74591
|
+
function getRootFontSize() {
|
|
74592
|
+
if (!rootFontSize) {
|
|
74593
|
+
var doc = document.documentElement;
|
|
74594
|
+
var fontSize = doc.style.fontSize || window.getComputedStyle(doc).fontSize;
|
|
74595
|
+
rootFontSize = parseFloat(fontSize);
|
|
74596
|
+
}
|
|
74597
|
+
|
|
74598
|
+
return rootFontSize;
|
|
74599
|
+
}
|
|
74600
|
+
|
|
74601
|
+
function convertRem(value) {
|
|
74602
|
+
value = value.replace(/rem/g, '');
|
|
74603
|
+
return +value * getRootFontSize();
|
|
74604
|
+
}
|
|
74605
|
+
|
|
74606
|
+
function convertVw(value) {
|
|
74607
|
+
value = value.replace(/vw/g, '');
|
|
74608
|
+
return +value * window.innerWidth / 100;
|
|
74609
|
+
}
|
|
74610
|
+
|
|
74611
|
+
function convertVh(value) {
|
|
74612
|
+
value = value.replace(/vh/g, '');
|
|
74613
|
+
return +value * window.innerHeight / 100;
|
|
74614
|
+
}
|
|
74615
|
+
|
|
74616
|
+
function unitToPx(value) {
|
|
74617
|
+
if (typeof value === 'number') {
|
|
74618
|
+
return value;
|
|
74619
|
+
}
|
|
74620
|
+
|
|
74621
|
+
if (inBrowser) {
|
|
74622
|
+
if (value.indexOf('rem') !== -1) {
|
|
74623
|
+
return convertRem(value);
|
|
74624
|
+
}
|
|
74625
|
+
|
|
74626
|
+
if (value.indexOf('vw') !== -1) {
|
|
74627
|
+
return convertVw(value);
|
|
74628
|
+
}
|
|
74629
|
+
|
|
74630
|
+
if (value.indexOf('vh') !== -1) {
|
|
74631
|
+
return convertVh(value);
|
|
74632
|
+
}
|
|
74633
|
+
}
|
|
74634
|
+
|
|
74635
|
+
return parseFloat(value);
|
|
74636
|
+
}
|
|
74637
|
+
;// CONCATENATED MODULE: ./node_modules/vant/es/info/index.js
|
|
74638
|
+
|
|
74639
|
+
// Utils
|
|
74640
|
+
|
|
74641
|
+
// Types
|
|
74642
|
+
|
|
74643
|
+
var info_createNamespace = createNamespace('info'),
|
|
74644
|
+
info_createComponent = info_createNamespace[0],
|
|
74645
|
+
info_bem = info_createNamespace[1];
|
|
74646
|
+
|
|
74647
|
+
function Info(h, props, slots, ctx) {
|
|
74648
|
+
var dot = props.dot,
|
|
74649
|
+
info = props.info;
|
|
74650
|
+
var showInfo = isDef(info) && info !== '';
|
|
74651
|
+
|
|
74652
|
+
if (!dot && !showInfo) {
|
|
74653
|
+
return;
|
|
74654
|
+
}
|
|
74655
|
+
|
|
74656
|
+
return h("div", helper_default()([{
|
|
74657
|
+
"class": info_bem({
|
|
74658
|
+
dot: dot
|
|
74659
|
+
})
|
|
74660
|
+
}, inherit(ctx, true)]), [dot ? '' : props.info]);
|
|
74661
|
+
}
|
|
74662
|
+
|
|
74663
|
+
Info.props = {
|
|
74664
|
+
dot: Boolean,
|
|
74665
|
+
info: [Number, String]
|
|
74666
|
+
};
|
|
74667
|
+
/* harmony default export */ var info = (info_createComponent(Info));
|
|
74668
|
+
;// CONCATENATED MODULE: ./node_modules/vant/es/icon/index.js
|
|
74669
|
+
|
|
74670
|
+
// Utils
|
|
74671
|
+
|
|
74672
|
+
// Components
|
|
74673
|
+
|
|
74674
|
+
// Types
|
|
74675
|
+
|
|
74676
|
+
var icon_createNamespace = createNamespace('icon'),
|
|
74677
|
+
icon_createComponent = icon_createNamespace[0],
|
|
74678
|
+
icon_bem = icon_createNamespace[1];
|
|
74679
|
+
|
|
74680
|
+
function isImage(name) {
|
|
74681
|
+
return name ? name.indexOf('/') !== -1 : false;
|
|
74682
|
+
} // compatible with legacy usage, should be removed in next major version
|
|
74683
|
+
|
|
74684
|
+
|
|
74685
|
+
var LEGACY_MAP = {
|
|
74686
|
+
medel: 'medal',
|
|
74687
|
+
'medel-o': 'medal-o',
|
|
74688
|
+
'calender-o': 'calendar-o'
|
|
74689
|
+
};
|
|
74690
|
+
|
|
74691
|
+
function correctName(name) {
|
|
74692
|
+
return name && LEGACY_MAP[name] || name;
|
|
74693
|
+
}
|
|
74694
|
+
|
|
74695
|
+
function Icon(h, props, slots, ctx) {
|
|
74696
|
+
var _props$badge;
|
|
74697
|
+
|
|
74698
|
+
var name = correctName(props.name);
|
|
74699
|
+
var imageIcon = isImage(name);
|
|
74700
|
+
|
|
74701
|
+
if (false) {}
|
|
74702
|
+
|
|
74703
|
+
return h(props.tag, helper_default()([{
|
|
74704
|
+
"class": [props.classPrefix, imageIcon ? '' : props.classPrefix + "-" + name],
|
|
74705
|
+
"style": {
|
|
74706
|
+
color: props.color,
|
|
74707
|
+
fontSize: addUnit(props.size)
|
|
74708
|
+
}
|
|
74709
|
+
}, inherit(ctx, true)]), [slots.default && slots.default(), imageIcon && h("img", {
|
|
74710
|
+
"class": icon_bem('image'),
|
|
74711
|
+
"attrs": {
|
|
74712
|
+
"src": name
|
|
74713
|
+
}
|
|
74714
|
+
}), h(info, {
|
|
74715
|
+
"attrs": {
|
|
74716
|
+
"dot": props.dot,
|
|
74717
|
+
"info": (_props$badge = props.badge) != null ? _props$badge : props.info
|
|
74718
|
+
}
|
|
74719
|
+
})]);
|
|
74720
|
+
}
|
|
74721
|
+
|
|
74722
|
+
Icon.props = {
|
|
74723
|
+
dot: Boolean,
|
|
74724
|
+
name: String,
|
|
74725
|
+
size: [Number, String],
|
|
74726
|
+
// @deprecated
|
|
74727
|
+
// should be removed in next major version
|
|
74728
|
+
info: [Number, String],
|
|
74729
|
+
badge: [Number, String],
|
|
74730
|
+
color: String,
|
|
74731
|
+
tag: {
|
|
74732
|
+
type: String,
|
|
74733
|
+
default: 'i'
|
|
74734
|
+
},
|
|
74735
|
+
classPrefix: {
|
|
74736
|
+
type: String,
|
|
74737
|
+
default: icon_bem()
|
|
74738
|
+
}
|
|
74739
|
+
};
|
|
74740
|
+
/* harmony default export */ var es_icon = (icon_createComponent(Icon));
|
|
74741
|
+
;// CONCATENATED MODULE: ./node_modules/vant/es/loading/index.js
|
|
74742
|
+
|
|
74743
|
+
// Utils
|
|
74744
|
+
|
|
74745
|
+
// Types
|
|
74746
|
+
|
|
74747
|
+
var loading_createNamespace = createNamespace('loading'),
|
|
74748
|
+
loading_createComponent = loading_createNamespace[0],
|
|
74749
|
+
loading_bem = loading_createNamespace[1];
|
|
74750
|
+
|
|
74751
|
+
function LoadingIcon(h, props) {
|
|
74752
|
+
if (props.type === 'spinner') {
|
|
74753
|
+
var Spin = [];
|
|
74754
|
+
|
|
74755
|
+
for (var i = 0; i < 12; i++) {
|
|
74756
|
+
Spin.push(h("i"));
|
|
74757
|
+
}
|
|
74758
|
+
|
|
74759
|
+
return Spin;
|
|
74760
|
+
}
|
|
74761
|
+
|
|
74762
|
+
return h("svg", {
|
|
74763
|
+
"class": loading_bem('circular'),
|
|
74764
|
+
"attrs": {
|
|
74765
|
+
"viewBox": "25 25 50 50"
|
|
74766
|
+
}
|
|
74767
|
+
}, [h("circle", {
|
|
74768
|
+
"attrs": {
|
|
74769
|
+
"cx": "50",
|
|
74770
|
+
"cy": "50",
|
|
74771
|
+
"r": "20",
|
|
74772
|
+
"fill": "none"
|
|
74773
|
+
}
|
|
74774
|
+
})]);
|
|
74775
|
+
}
|
|
74776
|
+
|
|
74777
|
+
function LoadingText(h, props, slots) {
|
|
74778
|
+
if (slots.default) {
|
|
74779
|
+
var _props$textColor;
|
|
74780
|
+
|
|
74781
|
+
var style = {
|
|
74782
|
+
fontSize: addUnit(props.textSize),
|
|
74783
|
+
color: (_props$textColor = props.textColor) != null ? _props$textColor : props.color
|
|
74784
|
+
};
|
|
74785
|
+
return h("span", {
|
|
74786
|
+
"class": loading_bem('text'),
|
|
74787
|
+
"style": style
|
|
74788
|
+
}, [slots.default()]);
|
|
74789
|
+
}
|
|
74790
|
+
}
|
|
74791
|
+
|
|
74792
|
+
function Loading(h, props, slots, ctx) {
|
|
74793
|
+
var color = props.color,
|
|
74794
|
+
size = props.size,
|
|
74795
|
+
type = props.type;
|
|
74796
|
+
var style = {
|
|
74797
|
+
color: color
|
|
74798
|
+
};
|
|
74799
|
+
|
|
74800
|
+
if (size) {
|
|
74801
|
+
var iconSize = addUnit(size);
|
|
74802
|
+
style.width = iconSize;
|
|
74803
|
+
style.height = iconSize;
|
|
74804
|
+
}
|
|
74805
|
+
|
|
74806
|
+
return h("div", helper_default()([{
|
|
74807
|
+
"class": loading_bem([type, {
|
|
74808
|
+
vertical: props.vertical
|
|
74809
|
+
}])
|
|
74810
|
+
}, inherit(ctx, true)]), [h("span", {
|
|
74811
|
+
"class": loading_bem('spinner', type),
|
|
74812
|
+
"style": style
|
|
74813
|
+
}, [LoadingIcon(h, props)]), LoadingText(h, props, slots)]);
|
|
74814
|
+
}
|
|
74815
|
+
|
|
74816
|
+
Loading.props = {
|
|
74817
|
+
color: String,
|
|
74818
|
+
size: [Number, String],
|
|
74819
|
+
vertical: Boolean,
|
|
74820
|
+
textSize: [Number, String],
|
|
74821
|
+
textColor: String,
|
|
74822
|
+
type: {
|
|
74823
|
+
type: String,
|
|
74824
|
+
default: 'circular'
|
|
74825
|
+
}
|
|
74826
|
+
};
|
|
74827
|
+
/* harmony default export */ var loading = (loading_createComponent(Loading));
|
|
74828
|
+
;// CONCATENATED MODULE: ./node_modules/vant/es/toast/Toast.js
|
|
74829
|
+
// Utils
|
|
74830
|
+
|
|
74831
|
+
// Mixins
|
|
74832
|
+
|
|
74833
|
+
// Components
|
|
74834
|
+
|
|
74835
|
+
|
|
74836
|
+
|
|
74837
|
+
|
|
74838
|
+
var Toast_createNamespace = createNamespace('toast'),
|
|
74839
|
+
Toast_createComponent = Toast_createNamespace[0],
|
|
74840
|
+
Toast_bem = Toast_createNamespace[1];
|
|
74841
|
+
|
|
74842
|
+
/* harmony default export */ var Toast = (Toast_createComponent({
|
|
74843
|
+
mixins: [PopupMixin()],
|
|
74844
|
+
props: {
|
|
74845
|
+
icon: String,
|
|
74846
|
+
className: null,
|
|
74847
|
+
iconPrefix: String,
|
|
74848
|
+
loadingType: String,
|
|
74849
|
+
forbidClick: Boolean,
|
|
74850
|
+
closeOnClick: Boolean,
|
|
74851
|
+
message: [Number, String],
|
|
74852
|
+
type: {
|
|
74853
|
+
type: String,
|
|
74854
|
+
default: 'text'
|
|
74855
|
+
},
|
|
74856
|
+
position: {
|
|
74857
|
+
type: String,
|
|
74858
|
+
default: 'middle'
|
|
74859
|
+
},
|
|
74860
|
+
transition: {
|
|
74861
|
+
type: String,
|
|
74862
|
+
default: 'van-fade'
|
|
74863
|
+
},
|
|
74864
|
+
lockScroll: {
|
|
74865
|
+
type: Boolean,
|
|
74866
|
+
default: false
|
|
74867
|
+
}
|
|
74868
|
+
},
|
|
74869
|
+
data: function data() {
|
|
74870
|
+
return {
|
|
74871
|
+
clickable: false
|
|
74872
|
+
};
|
|
74873
|
+
},
|
|
74874
|
+
mounted: function mounted() {
|
|
74875
|
+
this.toggleClickable();
|
|
74876
|
+
},
|
|
74877
|
+
destroyed: function destroyed() {
|
|
74878
|
+
this.toggleClickable();
|
|
74879
|
+
},
|
|
74880
|
+
watch: {
|
|
74881
|
+
value: 'toggleClickable',
|
|
74882
|
+
forbidClick: 'toggleClickable'
|
|
74883
|
+
},
|
|
74884
|
+
methods: {
|
|
74885
|
+
onClick: function onClick() {
|
|
74886
|
+
if (this.closeOnClick) {
|
|
74887
|
+
this.close();
|
|
74888
|
+
}
|
|
74889
|
+
},
|
|
74890
|
+
toggleClickable: function toggleClickable() {
|
|
74891
|
+
var clickable = this.value && this.forbidClick;
|
|
74892
|
+
|
|
74893
|
+
if (this.clickable !== clickable) {
|
|
74894
|
+
this.clickable = clickable;
|
|
74895
|
+
lockClick(clickable);
|
|
74896
|
+
}
|
|
74897
|
+
},
|
|
74898
|
+
|
|
74899
|
+
/* istanbul ignore next */
|
|
74900
|
+
onAfterEnter: function onAfterEnter() {
|
|
74901
|
+
this.$emit('opened');
|
|
74902
|
+
|
|
74903
|
+
if (this.onOpened) {
|
|
74904
|
+
this.onOpened();
|
|
74905
|
+
}
|
|
74906
|
+
},
|
|
74907
|
+
onAfterLeave: function onAfterLeave() {
|
|
74908
|
+
this.$emit('closed');
|
|
74909
|
+
},
|
|
74910
|
+
genIcon: function genIcon() {
|
|
74911
|
+
var h = this.$createElement;
|
|
74912
|
+
var icon = this.icon,
|
|
74913
|
+
type = this.type,
|
|
74914
|
+
iconPrefix = this.iconPrefix,
|
|
74915
|
+
loadingType = this.loadingType;
|
|
74916
|
+
var hasIcon = icon || type === 'success' || type === 'fail';
|
|
74917
|
+
|
|
74918
|
+
if (hasIcon) {
|
|
74919
|
+
return h(es_icon, {
|
|
74920
|
+
"class": Toast_bem('icon'),
|
|
74921
|
+
"attrs": {
|
|
74922
|
+
"classPrefix": iconPrefix,
|
|
74923
|
+
"name": icon || type
|
|
74924
|
+
}
|
|
74925
|
+
});
|
|
74926
|
+
}
|
|
74927
|
+
|
|
74928
|
+
if (type === 'loading') {
|
|
74929
|
+
return h(loading, {
|
|
74930
|
+
"class": Toast_bem('loading'),
|
|
74931
|
+
"attrs": {
|
|
74932
|
+
"type": loadingType
|
|
74933
|
+
}
|
|
74934
|
+
});
|
|
74935
|
+
}
|
|
74936
|
+
},
|
|
74937
|
+
genMessage: function genMessage() {
|
|
74938
|
+
var h = this.$createElement;
|
|
74939
|
+
var type = this.type,
|
|
74940
|
+
message = this.message;
|
|
74941
|
+
|
|
74942
|
+
if (!isDef(message) || message === '') {
|
|
74943
|
+
return;
|
|
74944
|
+
}
|
|
74945
|
+
|
|
74946
|
+
if (type === 'html') {
|
|
74947
|
+
return h("div", {
|
|
74948
|
+
"class": Toast_bem('text'),
|
|
74949
|
+
"domProps": {
|
|
74950
|
+
"innerHTML": message
|
|
74951
|
+
}
|
|
74952
|
+
});
|
|
74953
|
+
}
|
|
74954
|
+
|
|
74955
|
+
return h("div", {
|
|
74956
|
+
"class": Toast_bem('text')
|
|
74957
|
+
}, [message]);
|
|
74958
|
+
}
|
|
74959
|
+
},
|
|
74960
|
+
render: function render() {
|
|
74961
|
+
var _ref;
|
|
74962
|
+
|
|
74963
|
+
var h = arguments[0];
|
|
74964
|
+
return h("transition", {
|
|
74965
|
+
"attrs": {
|
|
74966
|
+
"name": this.transition
|
|
74967
|
+
},
|
|
74968
|
+
"on": {
|
|
74969
|
+
"afterEnter": this.onAfterEnter,
|
|
74970
|
+
"afterLeave": this.onAfterLeave
|
|
74971
|
+
}
|
|
74972
|
+
}, [h("div", {
|
|
74973
|
+
"directives": [{
|
|
74974
|
+
name: "show",
|
|
74975
|
+
value: this.value
|
|
74976
|
+
}],
|
|
74977
|
+
"class": [Toast_bem([this.position, (_ref = {}, _ref[this.type] = !this.icon, _ref)]), this.className],
|
|
74978
|
+
"on": {
|
|
74979
|
+
"click": this.onClick
|
|
74980
|
+
}
|
|
74981
|
+
}, [this.genIcon(), this.genMessage()])]);
|
|
74982
|
+
}
|
|
74983
|
+
}));
|
|
74984
|
+
;// CONCATENATED MODULE: ./node_modules/vant/es/toast/index.js
|
|
74985
|
+
|
|
74986
|
+
|
|
74987
|
+
|
|
74988
|
+
|
|
74989
|
+
|
|
74990
|
+
var defaultOptions = {
|
|
74991
|
+
icon: '',
|
|
74992
|
+
type: 'text',
|
|
74993
|
+
// @deprecated
|
|
74994
|
+
mask: false,
|
|
74995
|
+
value: true,
|
|
74996
|
+
message: '',
|
|
74997
|
+
className: '',
|
|
74998
|
+
overlay: false,
|
|
74999
|
+
onClose: null,
|
|
75000
|
+
onOpened: null,
|
|
75001
|
+
duration: 2000,
|
|
75002
|
+
iconPrefix: undefined,
|
|
75003
|
+
position: 'middle',
|
|
75004
|
+
transition: 'van-fade',
|
|
75005
|
+
forbidClick: false,
|
|
75006
|
+
loadingType: undefined,
|
|
75007
|
+
getContainer: 'body',
|
|
75008
|
+
overlayStyle: null,
|
|
75009
|
+
closeOnClick: false,
|
|
75010
|
+
closeOnClickOverlay: false
|
|
75011
|
+
}; // default options of specific type
|
|
75012
|
+
|
|
75013
|
+
var defaultOptionsMap = {};
|
|
75014
|
+
var queue = [];
|
|
75015
|
+
var multiple = false;
|
|
75016
|
+
|
|
75017
|
+
var currentOptions = _extends({}, defaultOptions);
|
|
75018
|
+
|
|
75019
|
+
function parseOptions(message) {
|
|
75020
|
+
if (utils_isObject(message)) {
|
|
75021
|
+
return message;
|
|
75022
|
+
}
|
|
75023
|
+
|
|
75024
|
+
return {
|
|
75025
|
+
message: message
|
|
75026
|
+
};
|
|
75027
|
+
}
|
|
75028
|
+
|
|
75029
|
+
function isInDocument(element) {
|
|
75030
|
+
return document.body.contains(element);
|
|
75031
|
+
}
|
|
75032
|
+
|
|
75033
|
+
function toast_createInstance() {
|
|
75034
|
+
/* istanbul ignore if */
|
|
75035
|
+
if (isServer) {
|
|
75036
|
+
return {};
|
|
75037
|
+
}
|
|
75038
|
+
|
|
75039
|
+
queue = queue.filter(function (item) {
|
|
75040
|
+
return !item.$el.parentNode || isInDocument(item.$el);
|
|
75041
|
+
});
|
|
75042
|
+
|
|
75043
|
+
if (!queue.length || multiple) {
|
|
75044
|
+
var toast = new (external_commonjs_vue_commonjs2_vue_root_Vue_default().extend(Toast))({
|
|
75045
|
+
el: document.createElement('div')
|
|
75046
|
+
});
|
|
75047
|
+
toast.$on('input', function (value) {
|
|
75048
|
+
toast.value = value;
|
|
75049
|
+
});
|
|
75050
|
+
queue.push(toast);
|
|
75051
|
+
}
|
|
75052
|
+
|
|
75053
|
+
return queue[queue.length - 1];
|
|
75054
|
+
} // transform toast options to popup props
|
|
75055
|
+
|
|
75056
|
+
|
|
75057
|
+
function transformOptions(options) {
|
|
75058
|
+
return _extends({}, options, {
|
|
75059
|
+
overlay: options.mask || options.overlay,
|
|
75060
|
+
mask: undefined,
|
|
75061
|
+
duration: undefined
|
|
75062
|
+
});
|
|
75063
|
+
}
|
|
75064
|
+
|
|
75065
|
+
function toast_Toast(options) {
|
|
75066
|
+
if (options === void 0) {
|
|
75067
|
+
options = {};
|
|
75068
|
+
}
|
|
75069
|
+
|
|
75070
|
+
var toast = toast_createInstance(); // should add z-index if previous toast has not disappeared
|
|
75071
|
+
|
|
75072
|
+
if (toast.value) {
|
|
75073
|
+
toast.updateZIndex();
|
|
75074
|
+
}
|
|
75075
|
+
|
|
75076
|
+
options = parseOptions(options);
|
|
75077
|
+
options = _extends({}, currentOptions, defaultOptionsMap[options.type || currentOptions.type], options);
|
|
75078
|
+
|
|
75079
|
+
if (false) {}
|
|
75080
|
+
|
|
75081
|
+
options.clear = function () {
|
|
75082
|
+
toast.value = false;
|
|
75083
|
+
|
|
75084
|
+
if (options.onClose) {
|
|
75085
|
+
options.onClose();
|
|
75086
|
+
options.onClose = null;
|
|
75087
|
+
}
|
|
75088
|
+
|
|
75089
|
+
if (multiple && !isServer) {
|
|
75090
|
+
toast.$on('closed', function () {
|
|
75091
|
+
clearTimeout(toast.timer);
|
|
75092
|
+
queue = queue.filter(function (item) {
|
|
75093
|
+
return item !== toast;
|
|
75094
|
+
});
|
|
75095
|
+
removeNode(toast.$el);
|
|
75096
|
+
toast.$destroy();
|
|
75097
|
+
});
|
|
75098
|
+
}
|
|
75099
|
+
};
|
|
75100
|
+
|
|
75101
|
+
_extends(toast, transformOptions(options));
|
|
75102
|
+
|
|
75103
|
+
clearTimeout(toast.timer);
|
|
75104
|
+
|
|
75105
|
+
if (options.duration > 0) {
|
|
75106
|
+
toast.timer = setTimeout(function () {
|
|
75107
|
+
toast.clear();
|
|
75108
|
+
}, options.duration);
|
|
75109
|
+
}
|
|
75110
|
+
|
|
75111
|
+
return toast;
|
|
75112
|
+
}
|
|
75113
|
+
|
|
75114
|
+
var createMethod = function createMethod(type) {
|
|
75115
|
+
return function (options) {
|
|
75116
|
+
return toast_Toast(_extends({
|
|
75117
|
+
type: type
|
|
75118
|
+
}, parseOptions(options)));
|
|
75119
|
+
};
|
|
75120
|
+
};
|
|
75121
|
+
|
|
75122
|
+
['loading', 'success', 'fail'].forEach(function (method) {
|
|
75123
|
+
toast_Toast[method] = createMethod(method);
|
|
75124
|
+
});
|
|
75125
|
+
|
|
75126
|
+
toast_Toast.clear = function (all) {
|
|
75127
|
+
if (queue.length) {
|
|
75128
|
+
if (all) {
|
|
75129
|
+
queue.forEach(function (toast) {
|
|
75130
|
+
toast.clear();
|
|
75131
|
+
});
|
|
75132
|
+
queue = [];
|
|
75133
|
+
} else if (!multiple) {
|
|
75134
|
+
queue[0].clear();
|
|
75135
|
+
} else {
|
|
75136
|
+
queue.shift().clear();
|
|
75137
|
+
}
|
|
75138
|
+
}
|
|
75139
|
+
};
|
|
75140
|
+
|
|
75141
|
+
toast_Toast.setDefaultOptions = function (type, options) {
|
|
75142
|
+
if (typeof type === 'string') {
|
|
75143
|
+
defaultOptionsMap[type] = options;
|
|
75144
|
+
} else {
|
|
75145
|
+
_extends(currentOptions, type);
|
|
75146
|
+
}
|
|
75147
|
+
};
|
|
75148
|
+
|
|
75149
|
+
toast_Toast.resetDefaultOptions = function (type) {
|
|
75150
|
+
if (typeof type === 'string') {
|
|
75151
|
+
defaultOptionsMap[type] = null;
|
|
75152
|
+
} else {
|
|
75153
|
+
currentOptions = _extends({}, defaultOptions);
|
|
75154
|
+
defaultOptionsMap = {};
|
|
75155
|
+
}
|
|
75156
|
+
};
|
|
75157
|
+
|
|
75158
|
+
toast_Toast.allowMultiple = function (value) {
|
|
75159
|
+
if (value === void 0) {
|
|
75160
|
+
value = true;
|
|
75161
|
+
}
|
|
75162
|
+
|
|
75163
|
+
multiple = value;
|
|
75164
|
+
};
|
|
75165
|
+
|
|
75166
|
+
toast_Toast.install = function () {
|
|
75167
|
+
external_commonjs_vue_commonjs2_vue_root_Vue_default().use(Toast);
|
|
75168
|
+
};
|
|
75169
|
+
|
|
75170
|
+
(external_commonjs_vue_commonjs2_vue_root_Vue_default()).prototype.$toast = toast_Toast;
|
|
75171
|
+
/* harmony default export */ var toast = (toast_Toast);
|
|
73249
75172
|
;// CONCATENATED MODULE: ./packages/npmaio/mappaio/index.js
|
|
73250
75173
|
function mappaio_typeof(o) { "@babel/helpers - typeof"; return mappaio_typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, mappaio_typeof(o); }
|
|
73251
75174
|
function mappaio_ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
@@ -73288,13 +75211,14 @@ function mappaio_arrayWithHoles(r) { if (Array.isArray(r)) return r; }
|
|
|
73288
75211
|
|
|
73289
75212
|
|
|
73290
75213
|
|
|
75214
|
+
|
|
73291
75215
|
var mappaio_components = [app, auth, eventBus, user, Building, Basicform, Basicform_DatetimeField, Basicform_FileField, Basicform_InputField, Basicform_SelectField, Basicform_SwitchField, Basicform_TextareaField, Basicform_IdeaField, DatetimeRange, DataTable, InnerTable, FooterButtonGroup, FloatButtonGroup, NativeWebView, SelectDialog, WfStatus, PopupDialog];
|
|
73292
75216
|
|
|
73293
75217
|
// ---------- 重型组件异步全局注册清单(chunk 级按需加载) ----------
|
|
73294
75218
|
var asyncComponents = [
|
|
73295
75219
|
// ========== ecmapp 业务功能 ==========
|
|
73296
75220
|
['RichtextEditor', function () {
|
|
73297
|
-
return Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__,
|
|
75221
|
+
return Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__, 8071));
|
|
73298
75222
|
}], ['PdfTools', function () {
|
|
73299
75223
|
return Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__, 2283)).then(function (m) {
|
|
73300
75224
|
return m.PdfTools;
|
|
@@ -73306,39 +75230,39 @@ var asyncComponents = [
|
|
|
73306
75230
|
}],
|
|
73307
75231
|
// ========== ecmapp/Wflowform 工作流表单子组件 → chunk: m-wflow-form ==========
|
|
73308
75232
|
['Attachment', function () {
|
|
73309
|
-
return Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__,
|
|
75233
|
+
return Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__, 280)).then(function (m) {
|
|
73310
75234
|
return m.Attachment;
|
|
73311
75235
|
});
|
|
73312
75236
|
}], ['BodyFile', function () {
|
|
73313
|
-
return Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__,
|
|
75237
|
+
return Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__, 280)).then(function (m) {
|
|
73314
75238
|
return m.BodyFile;
|
|
73315
75239
|
});
|
|
73316
75240
|
}], ['HandleIdea', function () {
|
|
73317
|
-
return Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__,
|
|
75241
|
+
return Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__, 280)).then(function (m) {
|
|
73318
75242
|
return m.HandleIdea;
|
|
73319
75243
|
});
|
|
73320
75244
|
}], ['SelectOuterDeputy', function () {
|
|
73321
|
-
return Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__,
|
|
75245
|
+
return Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__, 280)).then(function (m) {
|
|
73322
75246
|
return m.SelectOuterDeputy;
|
|
73323
75247
|
});
|
|
73324
75248
|
}], ['SubmitHandle', function () {
|
|
73325
|
-
return Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__,
|
|
75249
|
+
return Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__, 280)).then(function (m) {
|
|
73326
75250
|
return m.SubmitHandle;
|
|
73327
75251
|
});
|
|
73328
75252
|
}], ['SubmitDialog', function () {
|
|
73329
|
-
return Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__,
|
|
75253
|
+
return Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__, 280)).then(function (m) {
|
|
73330
75254
|
return m.SubmitDialog;
|
|
73331
75255
|
});
|
|
73332
75256
|
}], ['ShortcutProcessing', function () {
|
|
73333
|
-
return Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__,
|
|
75257
|
+
return Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__, 280)).then(function (m) {
|
|
73334
75258
|
return m.ShortcutProcessing;
|
|
73335
75259
|
});
|
|
73336
75260
|
}], ['WfNodelogList', function () {
|
|
73337
|
-
return Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__,
|
|
75261
|
+
return Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__, 280)).then(function (m) {
|
|
73338
75262
|
return m.WfNodelogList;
|
|
73339
75263
|
});
|
|
73340
75264
|
}], ['WriteToReadIdea', function () {
|
|
73341
|
-
return Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__,
|
|
75265
|
+
return Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__, 280)).then(function (m) {
|
|
73342
75266
|
return m.WriteToReadIdea;
|
|
73343
75267
|
});
|
|
73344
75268
|
}]];
|
|
@@ -73348,6 +75272,11 @@ var mappaio_install = function install(Vue) {
|
|
|
73348
75272
|
if (install.installed) return;
|
|
73349
75273
|
install.installed = true;
|
|
73350
75274
|
|
|
75275
|
+
// vant Toast 默认 z-index 为 2000,会低于 PopupDialog(van-popup) 自增的弹层层级,全局提高,避免弹层内提示被遮挡
|
|
75276
|
+
toast.setDefaultOptions({
|
|
75277
|
+
zIndex: 9999
|
|
75278
|
+
});
|
|
75279
|
+
|
|
73351
75280
|
// 1. 同步注册核心组件
|
|
73352
75281
|
mappaio_components.map(function (component) {
|
|
73353
75282
|
Vue.use(component);
|
|
@@ -73391,7 +75320,7 @@ var WfengineModule = function WfengineModule() {
|
|
|
73391
75320
|
return Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__, 8838));
|
|
73392
75321
|
};
|
|
73393
75322
|
var WflowformModule = function WflowformModule() {
|
|
73394
|
-
return Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__,
|
|
75323
|
+
return Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__, 280));
|
|
73395
75324
|
};
|
|
73396
75325
|
|
|
73397
75326
|
// ---------- 重型功能(PDF/富文本,仅特定页面使用) ----------
|
|
@@ -73406,7 +75335,7 @@ var PdfViewerModule = function PdfViewerModule() {
|
|
|
73406
75335
|
});
|
|
73407
75336
|
};
|
|
73408
75337
|
var RichtextEditorModule = function RichtextEditorModule() {
|
|
73409
|
-
return Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__,
|
|
75338
|
+
return Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__, 8071));
|
|
73410
75339
|
};
|
|
73411
75340
|
;// CONCATENATED MODULE: ./node_modules/@vue/cli-service/lib/commands/build/entry-lib.js
|
|
73412
75341
|
|