UNPKG

2.04 kBJavaScriptView Raw
1import Icon from './icon';
2import Image from './image';
3import Picker from './picker';
4import ScrollView from './scroll-view';
5import Text from './text';
6var components = [// 视图容器
7'taro-cover-image', 'taro-cover-view', 'taro-match-media', 'taro-movable-area', 'taro-movable-view', 'taro-page-container', 'taro-root-portal', ['taro-scroll-view', {
8 type: 'component',
9 component: ScrollView
10}], 'taro-share-element', 'taro-swiper', ['taro-swiper-item', {
11 classNames: ['swiper-slide']
12}], 'taro-view', // 基础内容
13['taro-icon', {
14 type: 'component',
15 component: Icon
16}], ['taro-progress', {
17 classNames: ['weui-progress']
18}], 'taro-rich-text', ['taro-text', {
19 type: 'component',
20 component: Text
21}], // 表单组件
22'taro-button', ['taro-checkbox', {
23 classNames: ['weui-cells_checkbox']
24}], 'taro-checkbox-group', 'taro-editor', 'taro-form', ['taro-input', {
25 type: 'forms',
26 event: 'input'
27}], 'taro-keyboard-accessory', 'taro-label', ['taro-picker', {
28 type: 'component',
29 component: Picker
30}], 'taro-picker-view', 'taro-picker-view-column', ['taro-radio', {
31 classNames: ['weui-cells_checkbox']
32}], ['taro-radio-group', {
33 classNames: ['weui-cells_radiogroup']
34}], ['taro-slider', {
35 type: 'forms',
36 event: 'change',
37 modelValue: 'value',
38 classNames: ['weui-slider-box']
39}], ['taro-switch', {
40 type: 'forms',
41 event: 'change',
42 modelValue: 'checked'
43}], ['taro-textarea', {
44 type: 'forms',
45 event: 'input'
46}], // 导航
47'taro-functional-page-navigator', 'taro-navigator', // 媒体组件
48'taro-audio', 'taro-camera', ['taro-image', {
49 type: 'component',
50 component: Image
51}], 'taro-live-player', ['taro-video', {
52 classNames: ['taro-video-container']
53}], 'taro-voip-room', // 地图
54'taro-map', // 画布
55'taro-canvas', // 开放能力
56'taro-web-view', 'taro-ad', 'taro-ad-custom', 'taro-official-account', 'taro-open-data', // 导航栏
57'taro-navigation-bar', // 页面属性配置节点
58'taro-page-meta', // 其他
59'taro-block', 'taro-custom-wrapper', 'taro-slot'];
60export default components;
\No newline at end of file