ProseFieldGroup
将相关字段组合在一起,以获得全面的API文档。
用法
在列表中将字段分组在一起。
analytics
boolean
转换为
false。为您的项目启用分析(即将推出)。blob
boolean
支持blob存储来存储静态资产,如图像、视频等。
cache
boolean
转换为
false。使用硝基的cachedEventHandler和cachedFunction启用缓存存储来缓存服务器路由响应或函数。database
boolean
转换为
false。使SQL数据库能够存储应用程序的数据。::field-group
::field{name="analytics" type="boolean"}
Defaults to `false`. Enables analytics for your project (coming soon).
::
::field{name="blob" type="boolean"}
Defaults to `false`. Enables blob storage to store static assets, such as images, videos and more.
::
::field{name="cache" type="boolean"}
Defaults to `false`. Enables cache storage to cache your server route responses or functions using Nitro's `cachedEventHandler` and `cachedFunction`.
::
::field{name="database" type="boolean"}
Defaults to `false`. Enables SQL database to store your application's data.
::
::
API
Props
| Prop | Default | Type |
|---|---|---|
as | 'div' | anyThe element or component this component should render as. |
ui | { base?: any; } |
Slots
| Slot | Type |
|---|---|
default | {} |
Theme
app.config.ts
export default defineAppConfig({
ui: {
prose: {
fieldGroup: {
base: 'my-5 divide-y divide-default *:not-last:pb-5'
}
}
}
})vite.config.ts
import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import ui from '@nuxt/ui/vite'
export default defineConfig({
plugins: [
vue(),
ui({
ui: {
prose: {
fieldGroup: {
base: 'my-5 divide-y divide-default *:not-last:pb-5'
}
}
}
})
]
})Changelog
No recent changes