Compare commits

...

2 Commits

Author SHA1 Message Date
qiaopengfei d1ac7cd359 Merge pull request '时间' (#7) from qiaopengfei into master
Reviewed-on: #7
2024-07-09 10:37:12 +08:00
qiaopengfei bc47718607 时间 2024-07-09 10:36:44 +08:00
2 changed files with 18 additions and 23 deletions

View File

@ -2,6 +2,7 @@
<el-date-picker <el-date-picker
:style="{ width }" :style="{ width }"
:prefix-icon="iconClass" :prefix-icon="iconClass"
clear-icon="ag-icon-clear"
v-model="dateArr" v-model="dateArr"
v-bind="attrs" v-bind="attrs"
v-on="inputListeners" v-on="inputListeners"
@ -157,7 +158,7 @@ export default {
(item) => item !== null && item !== undefined && item !== "" (item) => item !== null && item !== undefined && item !== ""
) )
) { ) {
this.width = "205px"; this.width = "190px";
this.date_picker = true; this.date_picker = true;
} else { } else {
this.width = "160px"; this.width = "160px";
@ -168,14 +169,7 @@ export default {
deep: true, deep: true,
}, },
}, },
methods: { methods: {},
mouseleave() {
console.log(999);
},
mousemove() {
console.log(888);
},
},
}; };
</script> </script>
@ -194,17 +188,22 @@ export default {
-webkit-font-smoothing: antialiased; -webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale; -moz-osx-font-smoothing: grayscale;
} }
.ag-datePicker { .el-input__icon.el-range__close-icon {
color: red; position: absolute;
&:hover { width: 16px;
.ag-el-icon-prefix-hide { font-size: 16px;
display: none; margin-left: -5px;
line-height: 30px;
right: 8px;
top: 0;
z-index: 1;
}
.ag-icon-clear {
&:before {
content: "\e6db";
} }
} }
}
// .el-input__icon,
// .el-range__close-icon {
// }
.ag-icon-prefix-show { .ag-icon-prefix-show {
width: 16px; width: 16px;
@ -221,9 +220,5 @@ export default {
.ag-icon-prefix-hide { .ag-icon-prefix-hide {
display: none; display: none;
} }
.el-icon-circle-close:before {
content: "\e6db";
}
} }
</style> </style>

View File

@ -77,7 +77,7 @@ export default {
<style lang="scss" scoped> <style lang="scss" scoped>
::v-deep { ::v-deep {
.el-input__inner { .el-date-editor--daterange.el-input__inner {
width: none; width: none;
} }
.el-input__suffix { .el-input__suffix {