mirror of
https://gitee.com/dromara/go-view.git
synced 2026-04-23 00:00:12 +08:00
feat: 新增 sass 循环样式类,新增接口下载提示
This commit is contained in:
+15
-9
@@ -20,16 +20,10 @@
|
||||
<help-outline-icon></help-outline-icon>
|
||||
</n-icon>
|
||||
</template>
|
||||
<ul>
|
||||
<ul class="go-pl-0">
|
||||
开发环境使用 mock 数据,请输入
|
||||
<li>
|
||||
<n-text type="info"> 【图表】{{ chartDataUrl }} </n-text>
|
||||
</li>
|
||||
<li>
|
||||
<n-text type="info"> 【表格】{{ rankListUrl }} </n-text>
|
||||
</li>
|
||||
<li>
|
||||
<n-text type="info"> 【0~1数字】{{ numberUrl }} </n-text>
|
||||
<li v-for="item in apiList" :key="item.value">
|
||||
<n-text type="info"> {{item.value}} </n-text>
|
||||
</li>
|
||||
</ul>
|
||||
</n-tooltip>
|
||||
@@ -83,6 +77,18 @@ const { requestOriginUrl } = toRefs(chartEditStore.getRequestGlobalConfig)
|
||||
const loading = ref(false)
|
||||
const showMatching = ref(false)
|
||||
|
||||
const apiList = [
|
||||
{
|
||||
value: `【图表】${ chartDataUrl }`
|
||||
},
|
||||
{
|
||||
value: `【表格】${ rankListUrl }`
|
||||
},
|
||||
{
|
||||
value: `【0~1数字】${ numberUrl }`
|
||||
}
|
||||
]
|
||||
|
||||
// 选项
|
||||
const selectOptions: SelectHttpType[] = [
|
||||
{
|
||||
|
||||
+20
-8
@@ -46,14 +46,24 @@
|
||||
</n-button>
|
||||
</n-space>
|
||||
</n-upload>
|
||||
<n-button class="sourceBtn-item" @click="download">
|
||||
<template #icon>
|
||||
<n-icon>
|
||||
<document-download-icon />
|
||||
</n-icon>
|
||||
</template>
|
||||
下载
|
||||
</n-button>
|
||||
<div>
|
||||
<n-button class="sourceBtn-item" @click="download">
|
||||
<template #icon>
|
||||
<n-icon>
|
||||
<document-download-icon />
|
||||
</n-icon>
|
||||
</template>
|
||||
下载
|
||||
</n-button>
|
||||
<n-tooltip trigger="hover">
|
||||
<template #trigger>
|
||||
<n-icon class="go-ml-1" size="21" :depth="3">
|
||||
<help-outline-icon></help-outline-icon>
|
||||
</n-icon>
|
||||
</template>
|
||||
<n-text depth="3">点击【下载】查看完整数据</n-text>
|
||||
</n-tooltip>
|
||||
</div>
|
||||
</n-space>
|
||||
<n-card>
|
||||
<n-code :code="getSource" language="json"></n-code>
|
||||
@@ -83,7 +93,9 @@ const props = defineProps({
|
||||
// 表格标题
|
||||
const tableTitle = ['字段', '映射', '状态']
|
||||
|
||||
const { HelpOutlineIcon } = icon.ionicons5
|
||||
const { DocumentAddIcon, DocumentDownloadIcon } = icon.carbon
|
||||
|
||||
const source = ref()
|
||||
const dimensions = ref()
|
||||
const dimensionsAndSource = ref()
|
||||
|
||||
Reference in New Issue
Block a user