amis.define('docs/components/mapping.md', function(require, exports, module, define) { module.exports = { "title": "Mapping 映射", "description": null, "type": 0, "group": "⚙ 组件", "menuName": "Mapping 映射", "icon": null, "order": 57, "html": "

基本用法

\n

渲染 HTML

\n

用作 Field 时

当用在 Table 的列配置 Column、List 的内容、Card 卡片的内容和表单的Static-XXX 中时,可以设置name属性,映射同名变量

\n

Table 中的列类型

\n

List 的内容、Card 卡片的内容配置同上

\n

Form 中静态展示

\n

属性表

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
属性名类型默认值说明
typestring如果在 Table、Card 和 List 中,为"color";在 Form 中用作静态展示,为"static-color"
classNamestring外层 CSS 类名
placeholderstring占位文本
mapobject映射配置
\n", "toc": { "label": "目录", "type": "toc", "children": [ { "label": "基本用法", "fragment": "%E5%9F%BA%E6%9C%AC%E7%94%A8%E6%B3%95", "fullPath": "#%E5%9F%BA%E6%9C%AC%E7%94%A8%E6%B3%95", "level": 2 }, { "label": "渲染 HTML", "fragment": "%E6%B8%B2%E6%9F%93-html", "fullPath": "#%E6%B8%B2%E6%9F%93-html", "level": 2 }, { "label": "用作 Field 时", "fragment": "%E7%94%A8%E4%BD%9C-field-%E6%97%B6", "fullPath": "#%E7%94%A8%E4%BD%9C-field-%E6%97%B6", "level": 2, "children": [ { "label": "Table 中的列类型", "fragment": "table-%E4%B8%AD%E7%9A%84%E5%88%97%E7%B1%BB%E5%9E%8B", "fullPath": "#table-%E4%B8%AD%E7%9A%84%E5%88%97%E7%B1%BB%E5%9E%8B", "level": 3 }, { "label": "Form 中静态展示", "fragment": "form-%E4%B8%AD%E9%9D%99%E6%80%81%E5%B1%95%E7%A4%BA", "fullPath": "#form-%E4%B8%AD%E9%9D%99%E6%80%81%E5%B1%95%E7%A4%BA", "level": 3 } ] }, { "label": "属性表", "fragment": "%E5%B1%9E%E6%80%A7%E8%A1%A8", "fullPath": "#%E5%B1%9E%E6%80%A7%E8%A1%A8", "level": 2 } ], "level": 0 } }; });