Commit b7cdeb86ff6df463266676bed72705e6f7a012c1
1 parent
5f277be5
feat(packages/external): 点击按钮新增跳转提示
Showing
1 changed file
with
33 additions
and
7 deletions
| ... | ... | @@ -28,17 +28,28 @@ |
| 28 | 28 | <n-input-number v-model:value="optionData.buttonTextSize" /> |
| 29 | 29 | </setting-item> |
| 30 | 30 | </setting-item-box> |
| 31 | - <setting-item-box name="跳转配置" :alone="true"> | |
| 31 | + <setting-item-box :alone="true"> | |
| 32 | + <template #name> | |
| 33 | + <n-text>跳转</n-text> | |
| 34 | + <n-tooltip trigger="hover"> | |
| 35 | + <template #trigger> | |
| 36 | + <n-icon size="21" :depth="3"> | |
| 37 | + <help-outline-icon></help-outline-icon> | |
| 38 | + </n-icon> | |
| 39 | + </template> | |
| 40 | + <span class="help-span">{{ threeFileHelpMessgae }}</span> | |
| 41 | + </n-tooltip> | |
| 42 | + </template> | |
| 32 | 43 | <setting-item v-for="(item, index) in optionData.dataset" :key="index"> |
| 33 | - <n-input v-model:value="item.label" size="small" placeholder="按钮文字id"></n-input> | |
| 44 | + <n-input v-model:value="item.label" size="small" placeholder="按钮文字"></n-input> | |
| 34 | 45 | <div style="height: 5px"></div> |
| 35 | - <n-input v-model:value="item.currentButton" size="small" placeholder="当前按钮id"></n-input> | |
| 46 | + <n-input v-model:value="item.currentButton" size="small" placeholder="填写当前按钮id(事件里面)"></n-input> | |
| 36 | 47 | <div style="height: 5px"></div> |
| 37 | - <n-input v-model:value="item.targetButton" size="small" placeholder="目标按钮id"></n-input> | |
| 48 | + <n-input v-model:value="item.targetButton" size="small" placeholder="填写目标按钮id(事件里面)"></n-input> | |
| 38 | 49 | <div style="height: 5px"></div> |
| 39 | - <n-input v-model:value="item.current" size="small" placeholder="当前页面id"></n-input> | |
| 50 | + <n-input v-model:value="item.current" size="small" placeholder="填写当前页面id(事件里面)"></n-input> | |
| 40 | 51 | <div style="height: 5px"></div> |
| 41 | - <n-input v-model:value="item.target" size="small" placeholder="目标页面id"></n-input> | |
| 52 | + <n-input v-model:value="item.target" size="small" placeholder="填写目标页面id(事件里面)"></n-input> | |
| 42 | 53 | <div style="height: 5px"></div> |
| 43 | 54 | </setting-item> |
| 44 | 55 | </setting-item-box> |
| ... | ... | @@ -46,9 +57,10 @@ |
| 46 | 57 | </template> |
| 47 | 58 | |
| 48 | 59 | <script lang="ts" setup> |
| 49 | -import { PropType } from 'vue' | |
| 60 | +import { PropType, ref } from 'vue' | |
| 50 | 61 | import { CollapseItem, SettingItemBox } from '@/components/Pages/ChartItemSetting' |
| 51 | 62 | import { option } from './config' |
| 63 | +import { icon } from '@/plugins' | |
| 52 | 64 | |
| 53 | 65 | defineProps({ |
| 54 | 66 | optionData: { |
| ... | ... | @@ -57,6 +69,12 @@ defineProps({ |
| 57 | 69 | } |
| 58 | 70 | }) |
| 59 | 71 | |
| 72 | +const { HelpOutlineIcon } = icon.ionicons5 | |
| 73 | + | |
| 74 | +const threeFileHelpMessgae = ref(` | |
| 75 | +在事件里面复制对应组件id,填写你要跳转的目标,相当于一个按钮就绑定了一个页面(分组),然后跳转到另一个页面,其实就是点击当前页隐藏,目标页显示 | |
| 76 | +`) | |
| 77 | + | |
| 60 | 78 | const buttonTypeOptions = [ |
| 61 | 79 | { |
| 62 | 80 | label: 'default', |
| ... | ... | @@ -88,3 +106,11 @@ const buttonTypeOptions = [ |
| 88 | 106 | } |
| 89 | 107 | ] |
| 90 | 108 | </script> |
| 109 | +<style lang="scss" scoped> | |
| 110 | +.help-span { | |
| 111 | + display: flex; | |
| 112 | + flex-wrap: wrap; | |
| 113 | + width: 8vw; | |
| 114 | + color: white; | |
| 115 | +} | |
| 116 | +</style> | ... | ... |