mirror of
https://github.com/lc-soft/LCUI.git
synced 2026-11-30 16:48:21 +01:00
24 lines
625 B
TypeScript
24 lines
625 B
TypeScript
import { widgetFields, FieldData } from "./widget";
|
|
|
|
export const attachmentMediaFields: FieldData[] = [
|
|
...widgetFields,
|
|
{
|
|
name: "variant",
|
|
type: '"icon" | "image"',
|
|
default: '"icon"',
|
|
description: {
|
|
en: "Whether the media slot holds an icon or an image preview.",
|
|
"zh-CN": "媒体槽位显示图标还是图片预览。",
|
|
},
|
|
},
|
|
{
|
|
name: "src",
|
|
type: "string",
|
|
default: "-",
|
|
description: {
|
|
en: "Local image path used as the media background when variant is image.",
|
|
"zh-CN": "variant 为 image 时用作媒体背景的本地图片路径。",
|
|
},
|
|
},
|
|
];
|