feat: 属性面板以及简单撤销重做功能
This commit is contained in:
@@ -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: '文本',
|
||||
|
||||
Reference in New Issue
Block a user