fix IsAnonymous

This commit is contained in:
2023-12-19 21:27:47 +08:00
parent 971af73e19
commit 0dcc8c5912
9 changed files with 192 additions and 47 deletions

View File

@@ -15,25 +15,27 @@ function navigate(url: string) {
}
</script>
<script>
export type SimpleIndexConfig = {
<script lang="ts">
export type ConfigType = {
cover?: string
}
export const Config: TemplateConfig<SimpleIndexConfig> = {
export const Config: TemplateConfig<ConfigType> = {
name: 'Template.Index.Simple',
items: [
{
name: '封面',
type: 'image',
imageLimit: 1,
onUploaded: (url, config) => {config.cover = (url instanceof String ? url as string : url[0])}
onUploaded: (url, config) => {
config.cover = url instanceof String ? (url as string) : url[0]
},
},
{
name: 'test',
type: 'default',
render: (config) => h('div', '1')
}
]
type: 'render',
render: (config) => h('div', '1'),
},
],
}
</script>