美化属性面板
This commit is contained in:
@ -1,21 +1,64 @@
|
|||||||
<template>
|
<template>
|
||||||
<div>
|
<div style="background-color: #ffffff;padding-left: 16px;padding-right: 16px;">
|
||||||
<a-radio-group type="button">
|
|
||||||
<a-radio value="Beijing">Beijing</a-radio>
|
<!-- 属性选择器 -->
|
||||||
<a-radio value="Shanghai">Shanghai</a-radio>
|
<div style="display: flex;justify-content: center;padding-top: 8px;width: 100%">
|
||||||
<a-radio value="Guangzhou">Guangzhou</a-radio>
|
<a-radio-group size="large" type="button" v-model="selectedOption"
|
||||||
<a-radio value="Shenzhen">Shenzhen</a-radio>
|
style="width: 100%;justify-content: center;text-align: center">
|
||||||
</a-radio-group>
|
<a-radio style="width: 100%;" value="property" default-checked>属性</a-radio>
|
||||||
|
<a-radio style="width: 100%;" value="style">样式</a-radio>
|
||||||
|
<a-radio style="width: 100%;" value="interaction">交互</a-radio>
|
||||||
|
</a-radio-group>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- tabpannel -->
|
||||||
|
<div style="margin-top: 16px;">
|
||||||
|
<!-- 属性面板 -->
|
||||||
|
<div>
|
||||||
|
<a-input-search placeholder="Please enter something" />
|
||||||
|
<a-space direction="vertical" fill style="margin-top: 8px;">
|
||||||
|
<div style="display: flex;justify-content: space-between;vertical-align: middle;">
|
||||||
|
<span>组件ID</span>
|
||||||
|
<a-input style="width: 150px;" />
|
||||||
|
</div>
|
||||||
|
<div style="display: flex;justify-content: space-between;vertical-align: middle;">
|
||||||
|
<span>是否可见</span>
|
||||||
|
<a-switch />
|
||||||
|
</div>
|
||||||
|
<a-collapse :expand-icon-position="`right`" :default-active-key="['1', 2]">
|
||||||
|
<a-collapse-item header="基本配置" key="1">
|
||||||
|
</a-collapse-item>
|
||||||
|
</a-collapse>
|
||||||
|
<a-collapse :expand-icon-position="`right`" :default-active-key="['1', 2]">
|
||||||
|
<a-collapse-item header="循环" key="1">
|
||||||
|
</a-collapse-item>
|
||||||
|
</a-collapse>
|
||||||
|
<a-collapse :expand-icon-position="`right`" :default-active-key="['1', 2]">
|
||||||
|
<a-collapse-item header="插槽" key="1">
|
||||||
|
</a-collapse-item>
|
||||||
|
</a-collapse>
|
||||||
|
<a-collapse :expand-icon-position="`right`" :default-active-key="['1', 2]">
|
||||||
|
<a-collapse-item header="HTML属性" key="1">
|
||||||
|
</a-collapse-item>
|
||||||
|
</a-collapse>
|
||||||
|
<a-collapse :expand-icon-position="`right`" :default-active-key="['1', 2]">
|
||||||
|
<a-collapse-item header="高级属性" key="1">
|
||||||
|
</a-collapse-item>
|
||||||
|
</a-collapse>
|
||||||
|
</a-space>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { defineProps, computed } from 'vue';
|
import { defineProps, computed, ref } from 'vue';
|
||||||
|
|
||||||
const props = defineProps({
|
const props = defineProps({
|
||||||
scheme: Object
|
scheme: Object
|
||||||
});
|
});
|
||||||
|
|
||||||
|
const selectedOption = ref('property')
|
||||||
const scheme = computed(() => props.scheme || '');
|
const scheme = computed(() => props.scheme || '');
|
||||||
</script>
|
</script>
|
||||||
Reference in New Issue
Block a user