|
@@ -2,8 +2,8 @@
|
|
<!-- 组件使用时 需要传入属性 openOptions:true|false 控制是否打开
|
|
<!-- 组件使用时 需要传入属性 openOptions:true|false 控制是否打开
|
|
left :string|0 left为侧边的按钮的定位 0 表示不改变 或者传入字符串 如-100px 表示css中left:-100px
|
|
left :string|0 left为侧边的按钮的定位 0 表示不改变 或者传入字符串 如-100px 表示css中left:-100px
|
|
-->
|
|
-->
|
|
- <div class="datePicker" v-clickoutside="handleClose">
|
|
|
|
- <a-range-picker
|
|
|
|
|
|
+ <div class="datePicker" >
|
|
|
|
+ <a-range-picker v-clickoutside="handleClose"
|
|
v-model="dateValue"
|
|
v-model="dateValue"
|
|
style="width:250px;height:150px"
|
|
style="width:250px;height:150px"
|
|
:open="openOptions"
|
|
:open="openOptions"
|
|
@@ -139,8 +139,13 @@ export default {
|
|
this.$parent.type = val.value
|
|
this.$parent.type = val.value
|
|
this.$parent.dateValue = val.dateValue
|
|
this.$parent.dateValue = val.dateValue
|
|
},
|
|
},
|
|
- handleClose() {
|
|
|
|
- this.$parent.opendateClose()
|
|
|
|
|
|
+ handleClose(e) {
|
|
|
|
+ console.log(e)
|
|
|
|
+ if(!e.target.nodeType){
|
|
|
|
+ this.$parent.opendateClose()
|
|
|
|
+ }
|
|
|
|
+ // this.$parent.opendateClose()
|
|
|
|
+
|
|
},
|
|
},
|
|
disabledDate(current) {
|
|
disabledDate(current) {
|
|
// console.log(current)
|
|
// console.log(current)
|