mirror of
https://gitee.com/dromara/go-view.git
synced 2026-04-23 00:00:12 +08:00
feat: 新增数据请求配置
This commit is contained in:
+33
-3
@@ -1,7 +1,37 @@
|
||||
<template>
|
||||
<h1>全局接口配置</h1>
|
||||
<div>
|
||||
<setting-item-box name="源地址" :alone="true">
|
||||
<n-input
|
||||
v-model:value="requestConfig.requestUrl"
|
||||
placeholder="源地址如: http://127.0.0.1"
|
||||
></n-input>
|
||||
</setting-item-box>
|
||||
<setting-item-box name="更新间隔">
|
||||
<n-input-number
|
||||
v-model:value="requestConfig.requestInterval"
|
||||
min="0"
|
||||
:show-button="false"
|
||||
placeholder="为 0 不更新"
|
||||
>
|
||||
<template #suffix>
|
||||
秒
|
||||
</template>
|
||||
</n-input-number>
|
||||
</setting-item-box>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
|
||||
</script>
|
||||
import { computed, Ref } from 'vue'
|
||||
import { SettingItemBox } from '@/components/ChartItemSetting/index'
|
||||
import { useChartEditStore } from '@/store/modules/chartEditStore/chartEditStore'
|
||||
import { RequestConfigType } from '@/store/modules/chartEditStore/chartEditStore.d'
|
||||
|
||||
const chartEditStore = useChartEditStore()
|
||||
|
||||
const requestConfig: Ref<RequestConfigType> = computed(() => {
|
||||
return chartEditStore.getRequestConfig
|
||||
})
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped></style>
|
||||
|
||||
@@ -4,10 +4,8 @@
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
<script setup lang="ts" >
|
||||
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
|
||||
</style>
|
||||
<style lang="scss" scoped></style>
|
||||
|
||||
@@ -74,7 +74,7 @@ const selectId = computed(() => chartEditStore.getTargetChart.selectId)
|
||||
const selectTatget = computed(
|
||||
() => chartEditStore.getComponentList[chartEditStore.fetchTargetIndex()]
|
||||
)
|
||||
const selectAttr = computed(() => selectTatget.value.attr)
|
||||
const selectAttr = computed(() => selectTatget.value.attr || {})
|
||||
|
||||
// * 画布坐标
|
||||
const canvasPositionList = computed(() => {
|
||||
|
||||
@@ -44,7 +44,7 @@ const lines = {
|
||||
/* 横线 */
|
||||
#mb-ruler .v-container .lines .line {
|
||||
/* 最大缩放 200% */
|
||||
height: 200vw!important;
|
||||
width: 200vw!important;
|
||||
border-top: 1px dashed v-bind('themeColor') !important;
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user