|
@@ -29,26 +29,44 @@
|
|
|
</template>
|
|
</template>
|
|
|
<span>{{ item.title }}</span>
|
|
<span>{{ item.title }}</span>
|
|
|
</n-tooltip>
|
|
</n-tooltip>
|
|
|
|
|
+
|
|
|
|
|
+ <n-divider vertical />
|
|
|
|
|
+
|
|
|
|
|
+ <!-- 保存 -->
|
|
|
|
|
+ <n-tooltip placement="bottom" trigger="hover">
|
|
|
|
|
+ <template #trigger>
|
|
|
|
|
+ <div class="save-btn" >
|
|
|
|
|
+ <n-button size="small" type="primary" ghost @click="dataSyncUpdate()">
|
|
|
|
|
+ <template #icon>
|
|
|
|
|
+ <n-icon>
|
|
|
|
|
+ <SaveIcon></SaveIcon>
|
|
|
|
|
+ </n-icon>
|
|
|
|
|
+ </template>
|
|
|
|
|
+ </n-button>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </template>
|
|
|
|
|
+ <span>保存</span>
|
|
|
|
|
+ </n-tooltip>
|
|
|
</n-space>
|
|
</n-space>
|
|
|
</n-space>
|
|
</n-space>
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
|
<script setup lang="ts">
|
|
<script setup lang="ts">
|
|
|
-import { toRefs, Ref, reactive, computed } from 'vue'
|
|
|
|
|
|
|
+import { toRefs, ref, Ref, reactive, computed } from 'vue'
|
|
|
import { renderIcon, goDialog, goHome } from '@/utils'
|
|
import { renderIcon, goDialog, goHome } from '@/utils'
|
|
|
import { icon } from '@/plugins'
|
|
import { icon } from '@/plugins'
|
|
|
import { useRemoveKeyboard } from '../../hooks/useKeyboard.hook'
|
|
import { useRemoveKeyboard } from '../../hooks/useKeyboard.hook'
|
|
|
-
|
|
|
|
|
|
|
+import { useSync } from '../../hooks/useSync.hook'
|
|
|
import { useChartEditStore } from '@/store/modules/chartEditStore/chartEditStore'
|
|
import { useChartEditStore } from '@/store/modules/chartEditStore/chartEditStore'
|
|
|
-
|
|
|
|
|
import { useChartHistoryStore } from '@/store/modules/chartHistoryStore/chartHistoryStore'
|
|
import { useChartHistoryStore } from '@/store/modules/chartHistoryStore/chartHistoryStore'
|
|
|
import { HistoryStackEnum } from '@/store/modules/chartHistoryStore/chartHistoryStore.d'
|
|
import { HistoryStackEnum } from '@/store/modules/chartHistoryStore/chartHistoryStore.d'
|
|
|
-
|
|
|
|
|
import { useChartLayoutStore } from '@/store/modules/chartLayoutStore/chartLayoutStore'
|
|
import { useChartLayoutStore } from '@/store/modules/chartLayoutStore/chartLayoutStore'
|
|
|
import { ChartLayoutStoreEnum } from '@/store/modules/chartLayoutStore/chartLayoutStore.d'
|
|
import { ChartLayoutStoreEnum } from '@/store/modules/chartLayoutStore/chartLayoutStore.d'
|
|
|
|
|
|
|
|
const { LayersIcon, BarChartIcon, PrismIcon, HomeIcon, ArrowBackIcon, ArrowForwardIcon } = icon.ionicons5
|
|
const { LayersIcon, BarChartIcon, PrismIcon, HomeIcon, ArrowBackIcon, ArrowForwardIcon } = icon.ionicons5
|
|
|
|
|
+const { SaveIcon } = icon.carbon
|
|
|
const { setItem } = useChartLayoutStore()
|
|
const { setItem } = useChartLayoutStore()
|
|
|
|
|
+const { dataSyncUpdate } = useSync()
|
|
|
const { getLayers, getCharts, getDetails } = toRefs(useChartLayoutStore())
|
|
const { getLayers, getCharts, getDetails } = toRefs(useChartLayoutStore())
|
|
|
const chartEditStore = useChartEditStore()
|
|
const chartEditStore = useChartEditStore()
|
|
|
const chartHistoryStore = useChartHistoryStore()
|
|
const chartHistoryStore = useChartHistoryStore()
|