Skip to content

FeatureList

Zhexuan Liu edited this page Jun 21, 2018 · 5 revisions

FeatureList

image

FeatureList 为 Mission 开始后,在界面的图传下方显示的 Feature 列表。包含 FeatureList 控件的页面会以 FeatureListViewController 来展示:

<featurelist>
  <feature icon="feature_filming"  enter="filming" on-click={ linkEvent(this, xxx) }>
    Filming
  </feature>
  <feature icon="feature_map"  enter="map">
    Map
  </feature>
  <feature icon="feature_waypoint"  enter="waypoint">
    Waypoint
  </feature>
  <feature icon="feature_focus"  enter="focus">
    Focus
  </feature>
</featurelist>
import { FeatureList } from 'mesh-envoy-tag'

const list = (
  <FeatureList>
    <FeatureList.Feature icon="feature_filming"  enter="filming" onClick={ linkEvent(this, xxx) }>
      Filming
    </FeatureList.Feature>
    <FeatureList.Feature icon="feature_map"  enter="map">
      Map
    </FeatureList.Feature>
    <FeatureList.Feature icon="feature_waypoint"  enter="waypoint">
      Waypoint
    </FeatureList.Feature>
    <FeatureList.Feature icon="feature_focus"  enter="focus">
      Focus
    </FeatureList.Feature>
  </FeatureList>
)
属性 作用 必须 可更改
feature.text Feature 的名字,显示为 Feature Cell 内的 Title true false
feature.icon Feature 的图标,显示为 Feature Cell 内的 Icon。
icon 的命名为图片文件的名称,不包含扩展名,例如 foobar 对应 [email protected][email protected]
true false
事件 触发条件 附带参数
feature.click 点击列表中某个项目时
Clone this wiki locally