刘妍 2025-05-06 16:51:14 +08:00
commit d17ed1ffae
2 changed files with 9 additions and 19 deletions

View File

@ -12,7 +12,7 @@
</template>
<script setup lang="ts">
import { onMounted } from 'vue'
import { onMounted, watch } from 'vue'
import { eventHandlerHook } from '@/hooks/eventHandler.hook';
import { useChartEditStore } from '@/store/modules/chartEditStore/chartEditStore';
@ -26,18 +26,21 @@ const props = defineProps({
})
const changeButton = (type) => {
props.chartConfig.option.selectButton = type
eventHandlerHook(
chartEditStore.getComponentList,
props.chartConfig.events.interactConfigEvents[type],
'click',
type,
);
}
watch(() => props.chartConfig.status.hide, (newVal) => {
if(!newVal && props.chartConfig.option.selectButton){
changeButton(props.chartConfig.option.selectButton)
}
})
const { list, selectButton } = props.chartConfig.option
</script>

View File

@ -11,21 +11,8 @@ export const option = {
textColor1: '#FFFFFF',
textSize2: 12,
textColor2: '#CBE6CD',
clockInRecordList:[
{
Name: '孙宗元',
CreateTime: '2025-03-25 10:32:00',
Lng: '118.042384994261',
Lat: '35.41264994152264'
}
],
xunChaGuiJiList:[
{
name: '孙宗元',
startTime: '2025-03-25 10:32:00',
endTime: '2025-03-25 17:32:00'
}
]
clockInRecordList:[],
xunChaGuiJiList:[]
}
export default class Config extends PublicConfigClass implements CreateComponentType {