|
|
|
@ -42,11 +42,8 @@ const configFilterRef = ref<any>([]) // 获取排序的值
|
|
|
|
|
initAsideValueRef.value = cloneDeep(asideMap)
|
|
|
|
|
|
|
|
|
|
onBeforeMount(async () => {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
finalStore.fetchConfig()
|
|
|
|
|
finalStore.fetchCustomConfig()
|
|
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
Object.keys(asideMap).forEach((key) => {
|
|
|
|
@ -77,8 +74,6 @@ const mousetrap = inject('mousetrap') as any
|
|
|
|
|
mousetrap.bind('[', collapseHandler)
|
|
|
|
|
|
|
|
|
|
onMounted(() => {
|
|
|
|
|
|
|
|
|
|
//console.log(asideMap)
|
|
|
|
|
nextTick(() => {
|
|
|
|
|
computeSlideHeight()
|
|
|
|
|
})
|
|
|
|
@ -115,7 +110,9 @@ function computeSlideHeight() {
|
|
|
|
|
|
|
|
|
|
useWindowSizeFn(computeSlideHeight, 280)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
onBeforeMount(async () => {
|
|
|
|
|
finalStore.fetchCustomConfig()
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
nextTick(() => {
|
|
|
|
|
finalStore.$subscribe(() => {
|
|
|
|
@ -224,7 +221,7 @@ nextTick(() => {
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
customTempObjRef.value = customObjRef.value
|
|
|
|
|
console.log('asideValue直接处理后的结果q', asideValue)
|
|
|
|
|
console.log('asideValue直接处理后的结果', asideValue)
|
|
|
|
|
console.log('customTempObjRef.value', customTempObjRef.value)
|
|
|
|
|
const tempobj = cloneDeep(asideValue)
|
|
|
|
|
console.log('tempObj', tempobj)
|
|
|
|
@ -254,17 +251,12 @@ nextTick(() => {
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
watch(asideVisible, (newVal) => {
|
|
|
|
|
|
|
|
|
|
Object.keys(asideValue).forEach((key) => {
|
|
|
|
|
if (newVal[key] === false)
|
|
|
|
|
asideValue[key] = asideMap[key].defaultValue
|
|
|
|
|
})
|
|
|
|
|
})
|
|
|
|
|
watch(asideValue, (newVal) => {
|
|
|
|
|
|
|
|
|
|
console.log(newVal)
|
|
|
|
|
|
|
|
|
|
})
|
|
|
|
|
const asideEnter = ref(false)
|
|
|
|
|
|
|
|
|
|
const showCollapse = computed(() => {
|
|
|
|
@ -340,10 +332,10 @@ function updateComponent(key, e) {
|
|
|
|
|
customObjRef.value = tempobj
|
|
|
|
|
// asideValue = Object.assign({}, asideValue, tempobj);
|
|
|
|
|
console.log('asideValue跟新值', tempobj)
|
|
|
|
|
finalStore.setAsideValue(tempobj)
|
|
|
|
|
finalStore.setAsideValue(tempobj)
|
|
|
|
|
}
|
|
|
|
|
defineExpose({
|
|
|
|
|
showSearch,asideValue
|
|
|
|
|
showSearch,
|
|
|
|
|
})
|
|
|
|
|
useKeydown('s', () => setShowSearch(true))
|
|
|
|
|
</script>
|
|
|
|
|