You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
478 lines
12 KiB
478 lines
12 KiB
{
|
|
"block": {
|
|
"description": "block节点"
|
|
},
|
|
"view": {
|
|
"description": "基本视图容器",
|
|
"attributes": [
|
|
"hover-class",
|
|
"hover-stop-propagation",
|
|
"hover-start-time",
|
|
"hover-stay-time"
|
|
]
|
|
},
|
|
"scroll-view": {
|
|
"description": "可滚动视图区域",
|
|
"attributes": [
|
|
"scroll-x",
|
|
"scroll-y",
|
|
"upper-threshold",
|
|
"lower-threshold",
|
|
"scroll-top",
|
|
"scroll-left",
|
|
"scroll-into-view",
|
|
"scroll-with-animation",
|
|
"enable-back-to-top",
|
|
"scroll-x",
|
|
"scroll-x"
|
|
]
|
|
},
|
|
"match-media": {
|
|
"description": "media query 匹配检测节点",
|
|
"attributes": [
|
|
"width",
|
|
"min-width",
|
|
"max-width",
|
|
"height",
|
|
"min-height",
|
|
"max-height",
|
|
"orientation"
|
|
]
|
|
},
|
|
"swiper": {
|
|
"description": "滑块视图容器",
|
|
"attributes": [
|
|
"indicator-dots",
|
|
"indicator-color",
|
|
"indicator-active-color",
|
|
"active-class",
|
|
"changing-class",
|
|
"acceleration",
|
|
"disable-programmatic-animation",
|
|
"disable-touch",
|
|
"touchable",
|
|
"easing-function",
|
|
"autoplay",
|
|
"current",
|
|
"current-item-id",
|
|
"interval",
|
|
"duration",
|
|
"circular",
|
|
"vertical",
|
|
"previous-margin",
|
|
"next-margin",
|
|
"display-multiple-items",
|
|
"skip-hidden-item-layout"
|
|
]
|
|
},
|
|
"swiper-item": {
|
|
"description": "仅可放置在 swiper 组件中,宽高自动设置为100%",
|
|
"attributes": [
|
|
"item-id"
|
|
]
|
|
},
|
|
"movable-view": {
|
|
"description": "可移动的视图容器,在页面中可以拖拽滑动",
|
|
"attributes": [
|
|
"direction",
|
|
"inertia",
|
|
"out-of-bounds",
|
|
"x",
|
|
"y",
|
|
"damping",
|
|
"friction",
|
|
"disabled",
|
|
"scale",
|
|
"scale-min",
|
|
"scale-max",
|
|
"scale-value",
|
|
"animation"
|
|
]
|
|
},
|
|
"movable-area": {
|
|
"description": "movable-view 的可移动区域",
|
|
"attributes": []
|
|
},
|
|
"text": {
|
|
"description": "文本",
|
|
"attributes": [
|
|
"selectable",
|
|
"space",
|
|
"decode"
|
|
]
|
|
},
|
|
"rich-text": {
|
|
"description": "富文本",
|
|
"attributes": [
|
|
"nodes"
|
|
]
|
|
},
|
|
"progress": {
|
|
"description": "进度条",
|
|
"attributes": [
|
|
"percent",
|
|
"show-info",
|
|
"stroke-width",
|
|
"color",
|
|
"activeColor",
|
|
"backgroundColor",
|
|
"active",
|
|
"active-mode"
|
|
]
|
|
},
|
|
"button": {
|
|
"description": "按钮",
|
|
"attributes": [
|
|
"disabled",
|
|
"hover-class",
|
|
"hover-stop-propagation",
|
|
"hover-start-time",
|
|
"hover-stay-time",
|
|
"size",
|
|
"type",
|
|
"plain",
|
|
"loading",
|
|
"form-type",
|
|
"open-type",
|
|
"lang",
|
|
"session-from",
|
|
"send-message-title",
|
|
"send-message-path",
|
|
"send-message-img",
|
|
"show-message-card",
|
|
"app-parameter"
|
|
]
|
|
},
|
|
"checkbox-group": {
|
|
"description": "多项选择器,内部由多个checkbox组成",
|
|
"attributes": []
|
|
},
|
|
"checkbox": {
|
|
"description": "多选项目",
|
|
"attributes": [
|
|
"disabled",
|
|
"value",
|
|
"checked",
|
|
"color"
|
|
]
|
|
},
|
|
"form": {
|
|
"description": "表单",
|
|
"attributes": [
|
|
"disabled",
|
|
"report-submit"
|
|
]
|
|
},
|
|
"input": {
|
|
"description": "输入框",
|
|
"attributes": [
|
|
"disabled",
|
|
"value",
|
|
"type",
|
|
"password",
|
|
"placeholder",
|
|
"placeholder-style",
|
|
"placeholder-class",
|
|
"maxlength",
|
|
"cursor-spacing",
|
|
"auto-focus",
|
|
"focus",
|
|
"confirm-type",
|
|
"confirm-hold",
|
|
"cursor",
|
|
"selection-start",
|
|
"selection-end",
|
|
"adjust-position"
|
|
]
|
|
},
|
|
"label": {
|
|
"description": "用来改进表单组件的可用性,使用for属性找到对应的id,或者将控件放在该标签下,当点击时,就会触发对应的控件",
|
|
"attributes": [
|
|
"disabled",
|
|
"for"
|
|
]
|
|
},
|
|
"picker": {
|
|
"description": "从底部弹起的滚动选择器,现支持五种选择器,通过mode来区分,分别是普通选择器,多列选择器,时间选择器,日期选择器,省市区选择器,默认是普通选择器。",
|
|
"attributes": [
|
|
"disabled",
|
|
"mode",
|
|
"range",
|
|
"range-key",
|
|
"value",
|
|
"start",
|
|
"end",
|
|
"fields",
|
|
"custom-item"
|
|
]
|
|
},
|
|
"picker-view": {
|
|
"description": "嵌入页面的滚动选择器",
|
|
"attributes": [
|
|
"disabled",
|
|
"value",
|
|
"indicator-style",
|
|
"indicator-class",
|
|
"mask-style",
|
|
"mask-class"
|
|
]
|
|
},
|
|
"radio-group": {
|
|
"description": "单项选择器,内部由多个 radio 组成",
|
|
"attributes": [
|
|
"disabled"
|
|
]
|
|
},
|
|
"radio": {
|
|
"description": "单选项目",
|
|
"attributes": [
|
|
"disabled",
|
|
"value",
|
|
"checked",
|
|
"color"
|
|
]
|
|
},
|
|
"slider": {
|
|
"description": "滑动选择器",
|
|
"attributes": [
|
|
"disabled",
|
|
"min",
|
|
"max",
|
|
"step",
|
|
"value",
|
|
"color",
|
|
"select-color",
|
|
"activeColor",
|
|
"backgroundColor",
|
|
"block-size",
|
|
"block-color",
|
|
"show-value"
|
|
]
|
|
},
|
|
"switch": {
|
|
"description": "开关选择器",
|
|
"attributes": [
|
|
"checked",
|
|
"type",
|
|
"color",
|
|
"disabled"
|
|
]
|
|
},
|
|
"textarea": {
|
|
"description": "多行输入框",
|
|
"attributes": [
|
|
"display",
|
|
"value",
|
|
"placeholder",
|
|
"placeholder-style",
|
|
"placeholder-class",
|
|
"maxlength",
|
|
"auto-focus",
|
|
"focus",
|
|
"cursor",
|
|
"auto-height",
|
|
"fixed",
|
|
"cursor-spacing",
|
|
"show-confirm-bar",
|
|
"selection-start",
|
|
"selection-end",
|
|
"adjust-position"
|
|
]
|
|
},
|
|
"navigator": {
|
|
"description": "页面链接",
|
|
"attributes": [
|
|
"target",
|
|
"url",
|
|
"open-type",
|
|
"delta",
|
|
"app-id",
|
|
"path",
|
|
"extra-data",
|
|
"version",
|
|
"animation-type",
|
|
"animation-duration",
|
|
"hover-class",
|
|
"hover-stop-propagation",
|
|
"hover-start-time",
|
|
"hover-stay-time"
|
|
]
|
|
},
|
|
"audio": {
|
|
"description": "音频",
|
|
"attributes": [
|
|
"loop",
|
|
"src",
|
|
"controls",
|
|
"poster",
|
|
"name",
|
|
"author"
|
|
]
|
|
},
|
|
"image": {
|
|
"description": "图片",
|
|
"attributes": [
|
|
"loop",
|
|
"src",
|
|
"mode",
|
|
"lazy-load",
|
|
"fade-show",
|
|
"webp",
|
|
"show-menu-by-longpress"
|
|
]
|
|
},
|
|
"video": {
|
|
"description": "视频",
|
|
"attributes": [
|
|
"loop",
|
|
"src",
|
|
"initial-time",
|
|
"duration",
|
|
"controls",
|
|
"danmu-list",
|
|
"danmu-btn",
|
|
"enable-danmu",
|
|
"autoplay",
|
|
"muted",
|
|
"page-gesture",
|
|
"direction",
|
|
"show-progress",
|
|
"show-fullscreen-btn",
|
|
"show-play-btn",
|
|
"show-center-play-btn",
|
|
"enable-progress-gesture",
|
|
"objectFit",
|
|
"poster",
|
|
"show-mute-btn",
|
|
"title",
|
|
"play-btn-position",
|
|
"enable-play-gesture",
|
|
"auto-pause-if-navigate",
|
|
"auto-pause-if-open-native",
|
|
"vslide-gesture",
|
|
"vslide-gesture-in-fullscreen",
|
|
"ad-unit-id",
|
|
"poster-for-crawler"
|
|
]
|
|
},
|
|
"map": {
|
|
"description": "地图",
|
|
"attributes": [
|
|
"longitude",
|
|
"latitude",
|
|
"scale",
|
|
"markers",
|
|
"covers",
|
|
"polyline",
|
|
"circles",
|
|
"controls",
|
|
"include-points",
|
|
"show-location"
|
|
]
|
|
},
|
|
"canvas": {
|
|
"description": "画布",
|
|
"attributes": [
|
|
"canvas-id",
|
|
"disable-scroll"
|
|
]
|
|
},
|
|
"web-view": {
|
|
"description": "承载网页的容器",
|
|
"attributes": [
|
|
"src",
|
|
"webview-styles"
|
|
]
|
|
},
|
|
"cover-view": {
|
|
"description": "覆盖在原生组件之上的文本视图,可覆盖的原生组件包括map、video、canvas、camera,只支持嵌套cover-view、cover-image",
|
|
"attributes": []
|
|
},
|
|
"cover-image": {
|
|
"description": "覆盖在原生组件之上的图片视图,可覆盖的原生组件同cover-view,支持嵌套在cover-view里。",
|
|
"attributes": [
|
|
"v-for",
|
|
"v-if",
|
|
"v-show",
|
|
"src"
|
|
]
|
|
},
|
|
"icon": {
|
|
"description": "图标",
|
|
"attributes": [
|
|
"type",
|
|
"size",
|
|
"color"
|
|
]
|
|
},
|
|
"picker-view-column": {
|
|
"description": "仅可放置于 picker-view 中,其孩子节点的高度会自动设置成与picker-view的选中框的高度一致",
|
|
"attributes": [
|
|
"disabled"
|
|
]
|
|
},
|
|
"camera": {
|
|
"description": "相机组件",
|
|
"attributes": [
|
|
"flash",
|
|
"device-position"
|
|
]
|
|
},
|
|
"live-player": {
|
|
"description": "实时音视频播放",
|
|
"attributes": [
|
|
"src",
|
|
"mode",
|
|
"autoplay",
|
|
"muted",
|
|
"orientation",
|
|
"object-fit",
|
|
"background-mute",
|
|
"min-cache",
|
|
"max-cache"
|
|
]
|
|
},
|
|
"live-pusher": {
|
|
"description": "实时音视频录制",
|
|
"attributes": [
|
|
"url",
|
|
"mode",
|
|
"autopush",
|
|
"muted",
|
|
"enable-camera",
|
|
"auto-focus",
|
|
"orientation",
|
|
"beauty",
|
|
"aspect",
|
|
"min-bitrate",
|
|
"max-bitrate",
|
|
"waiting-image",
|
|
"waiting-image-md5",
|
|
"background-mute"
|
|
]
|
|
},
|
|
"open-data": {
|
|
"description": "用于展示微信开放的数据",
|
|
"attributes": [
|
|
"type",
|
|
"open-gid",
|
|
"lang"
|
|
]
|
|
},
|
|
"ad": {
|
|
"description": "广告",
|
|
"attributes": [
|
|
"unit-id"
|
|
]
|
|
},
|
|
"editor": {
|
|
"description": "富文本编辑器,可以对图片、文字进行编辑。",
|
|
"attributes": [
|
|
"read-only",
|
|
"placeholder",
|
|
"show-img-size",
|
|
"show-img-toolbar",
|
|
"show-img-resize"
|
|
]
|
|
}
|
|
} |