<!--
 * @Author: micky 1254597151@qq.com
 * @Date: 2023-09-10 16:22:06
 * @LastEditors: micky 1254597151@qq.com
 * @LastEditTime: 2023-09-11 14:24:26
 * @FilePath: \housekeeping-admin\src\views\decorate\component\widgets\category\content.vue
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
<template>
    <div>
        <el-form label-width="70px">
            <el-form-item label="是否启用">
                <el-radio-group v-model="content.enabled">
                    <el-radio :label="1">开启</el-radio>
                    <el-radio :label="0">停用</el-radio>
                </el-radio-group>
            </el-form-item>
            <el-form-item label="分类设置">
                <div class="flex-1">
                    <div class="form-tips mb-4">最多可添加6个，建议图片尺寸：350px*250px</div>
                    <addCategory v-model="content.data" />
                </div>
            </el-form-item>
        </el-form>
    </div>
</template>
<script lang="ts" setup>
import type { PropType } from 'vue'
import type options from './options'
import addCategory from './add-category.vue'
type OptionsType = ReturnType<typeof options>
defineProps({
    content: {
        type: Object as PropType<OptionsType['content']>,
        default: () => ({})
    },
    styles: {
        type: Object as PropType<OptionsType['styles']>,
        default: () => ({})
    }
})
</script>

<style lang="scss" scoped></style>
