f18e7565创建于 2024年10月18日历史提交
<template>
    <div class="styles">
        <common-styles :value="form.common_style" @update:value="common_styles_update" />
    </div>
</template>
<script setup lang="ts">
/**
 * @description: 富文本(样式)
 * @param value{Object} 样式数据
 */
const props = defineProps({
    value: {
        type: Object,
        default: () => {
            return {};
        },
    },
});
const emit = defineEmits(['update:value']);
// 默认值
let form = reactive(props.value);
// 公共样式回调
const common_styles_update = (val: Object) => {
    form.common_style = val;
};
</script>
<style lang="scss" scoped></style>