feat: 属性面板以及简单撤销重做功能

This commit is contained in:
2026-08-15 21:32:02 +08:00
parent a043fd9d8e
commit f99324adb4
19 changed files with 580 additions and 156 deletions
+13 -1
View File
@@ -1,10 +1,22 @@
import type { MaterialDefinition } from '../types'
import type { MaterialDefinition } from '@/schema/materials.ts'
import TextMaterial from './component.vue'
const textMaterial: MaterialDefinition = {
name: '文本',
icon: '',
group: 'info',
setters: [
{
type: 'input',
label: '内容',
key: 'props.content',
},
{
type: 'color',
label: '颜色',
key: 'style.color',
},
],
schema: {
type: 'text',
name: '文本',