update
This commit is contained in:
44
src/components/JumpMethod/index.vue
Normal file
44
src/components/JumpMethod/index.vue
Normal file
@@ -0,0 +1,44 @@
|
||||
<script setup>
|
||||
import {ref} from 'vue';
|
||||
const group = [
|
||||
{
|
||||
label: '站内URL',
|
||||
value: 0,
|
||||
},
|
||||
{
|
||||
label: '站内富文本页面',
|
||||
value: 1,
|
||||
},
|
||||
{
|
||||
label: '微信链接',
|
||||
value: 2,
|
||||
},
|
||||
{
|
||||
label: '外部链接',
|
||||
value: 3,
|
||||
},
|
||||
{
|
||||
label: '弹窗',
|
||||
value: 4,
|
||||
},
|
||||
{
|
||||
label: '空',
|
||||
value: 5,
|
||||
},
|
||||
];
|
||||
const type = ref(0);
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<a-radio-group v-model:model-value="type">
|
||||
<div class="grid grid-cols-3">
|
||||
<a-radio v-for="item in group" :key="item.value" :value="item.value">
|
||||
{{item.label}}
|
||||
</a-radio>
|
||||
</div>
|
||||
</a-radio-group>
|
||||
</template>
|
||||
|
||||
<style scoped lang="scss">
|
||||
|
||||
</style>
|
||||
@@ -23,7 +23,12 @@ onMounted(() => {
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<a-select v-bind="$attrs" :options="list" :field-names="fieldName" placeholder="请选择"></a-select>
|
||||
<a-select
|
||||
v-bind="$attrs"
|
||||
:options="list"
|
||||
:field-names="fieldName"
|
||||
placeholder="请选择">
|
||||
</a-select>
|
||||
</template>
|
||||
|
||||
<style scoped>
|
||||
|
||||
Reference in New Issue
Block a user