feat : 对接用电量/省电量数据及新增用电量echarts图表模块
This commit is contained in:
@@ -14,13 +14,7 @@
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
const props = defineProps({
|
||||
time: {
|
||||
type: Date,
|
||||
default: '',
|
||||
},
|
||||
});
|
||||
const selectButton = ref(props.time);
|
||||
const selectButton = ref('');
|
||||
const emit = defineEmits(["update:modelValue", "select"]);
|
||||
const disabledDate = (time) => {
|
||||
// return time.getTime() > Date.now()//不能选择之后的数据
|
||||
@@ -34,6 +28,12 @@ const dataSelect = (val) => {
|
||||
emit("update:modelValue", val);
|
||||
emit("select", val);
|
||||
};
|
||||
const clearData = () => {
|
||||
selectButton.value=''
|
||||
}
|
||||
defineExpose({
|
||||
clearData
|
||||
})
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
|
||||
Reference in New Issue
Block a user