Vant Weapp
vue-helper对Vant Weapp框架的提效主要集中在4个部分。
- 组件标签代码块生成
- 属性提示
- 属性值提示
- 文档查看及框架官网访问
代码块
html
<van-button type="primary">$1</van-button>
html
<van-button plain type="primary">$1</van-button>
html
<van-button plain hairline type="primary">$1</van-button>
html
<van-button type="primary" block>$1</van-button>
html
<van-cell title="$1" value="$2">$3</van-cell>
html
<van-cell title="$1" is-link value="$2">$3</van-cell>
html
<view slot="title">$1</view>
html
<view slot="label">$1</view>
html
<view slot="icon">$1</view>
html
<view slot="right-icon">$1</view>
html
<van-cell-group>$1</van-cell-group>
html
<van-cell-group title="$1">
<van-cell title="$2" value="$3"></van-cell>
</van-cell-group>
html
<van-icon name="close" />
html
<van-icon name="$1" dot />
html
<van-icon name="$1" info="$2" />
html
<van-image width="$1" height="$2" src="$3" />
html
<van-image width="$1" height="$2" fit="contain" src="$3" />
html
<van-image round width="$1" height="$2" src="$3" />
html
<van-image width="$1" height="$2" lazy-load src="$3" />
html
<van-col span="$1">$2</van-col>
html
<van-row>
<van-col span="$1">$2</van-col>$3
</van-row>
html
<van-popup show="{{ show }}" bind:close="onClose">$1</van-popup>
html
<van-popup show="{{ show }}" bind:close="onClose" position="top" custom-style="height: 20%;">$1</van-popup>
html
<van-popup show="{{ show }}" closeable bind:close="onClose" position="bottom" custom-style="height: 20%;">$1</van-popup>
html
<van-popup show="{{ show }}" round bind:close="onClose" position="bottom" custom-style="height: 20%;">$1</van-popup>
html
<van-toast id="van-toast" />
html
<van-transition show="{{ show }}" custom-class="block">$1</van-transition>
html
<van-calendar show="{{ show }}" bind:close="onClose" bind:confirm="onConfirm" />
html
<van-calendar show="{{ show }}" type="multiple" bind:close="onClose" bind:confirm="onConfirm" />
html
<van-calendar show="{{ show }}" type="range" bind:close="onClose" bind:confirm="onConfirm" />
html
<van-cascader value="{{ $1 }}" title="$2" options="{{ options }}" bind:close="onClose" bind:finish="onFinish" />
html
<van-checkbox value="{{ ${1:checked} }}" bind:change="${2:onChange}">$3</van-checkbox>
html
<van-checkbox value="{{ ${1:checked} }}" shape="square" bind:change="${2:onChange}">$3</van-checkbox>
html
<van-checkbox-group value="{{ $1 }}" bind:change="$2">
<van-checkbox name="$3">$4</van-checkbox>$5
</van-checkbox-group>
html
<van-datetime-picker type="datetime" value="{{ ${1:currentDate} }}" min-date="{{ ${2:minDate} }}" max-date="{{ ${3:maxDate} }}" bind:input="${4:onInput}" />
html
<van-datetime-picker type="${1:time}" value="{{ ${2:currentDate} }}" filter="{{ ${3:filter} }}" />
html
<van-field value="{{ $1 }}" placeholder="$2" border="{{ false }}" bind:change="$3" />
html
<van-field model:value="{{ $1 }}" placeholder="$2" border="{{ false }}" />
html
<van-field value="{{ $1 }}" label="$2" placeholder="$3" input-align="right" />
html
<van-field value="{{ $1 }}" center clearable label="" placeholder="" border="{{ false }}" use-button-slot>
<van-button slot="button" size="small" type="primary"></van-button>
</van-field>
html
<van-picker columns="{{ $1 }}" bind:change="$2" />
html
<van-picker columns="{{ $1 }}" default-index="{{ $2 }}" bind:change="$3" />
html
<van-radio name="$1">$2</van-radio>
html
<van-radio name="$1" shape="square">$2</van-radio>
html
<van-radio-group value="{{ $1 }}" bind:change="$2">$3</van-radio-group>
html
<van-radio-group value="{{ $1 }}" bind:change="$2">
<van-radio name="$3" shape="square">$4</van-radio>$5
</van-radio-group>
html
<van-rate value="{{ $1 }}" bind:change="$2" />
html
<van-rate value="{{ $1 }}" allow-half void-icon="star" void-color="#eee" bind:change="onChange" />
html
<van-search value="{{ $1 }}" placeholder="$2">$3</van-search>
html
<van-search value="{{ $1 }}" placeholder="$2" show-action bind:search="onSearch" bind:cancel="onCancel">$3</van-search>
html
<view slot="action">$1</view>
html
<view slot="label">$1</view>
html
<view slot="left-icon">$1</view>
html
<view slot="right-icon">$1</view>
html
<van-slider value="$1" bind:change="$2" />
html
<van-slider value="$1" range bind:change="$2" />
html
<van-stepper value="{{ $1 }}" bind:change="$2" />
html
<van-stepper value="{{ $1 }}" step="$2" bind:change="$3" />
html
<van-stepper value="{{ $1 }}" integer bind:change="$2" />
html
<van-switch checked="{{ $1 }}" bind:change="$2" />
html
<van-uploader file-list="{{ ${1:fileList} }}" bind:after-read="$2" />
html
<van-uploader file-list="{{ ${1:fileList} }}" bind:after-read="$2" deletable="{{ true }}" />
html
<van-action-sheet show="{{ ${1:show} }}" actions="{{ ${2:actions} }}" bind:close="$3" bind:select="$4" />
html
<van-action-sheet show="{{ ${1:show} }}" actions="{{ ${2:actions} }}" cancel-text="取消" bind:close="$3" bind:select="$4" />
html
<van-dialog id="van-dialog" />
html
<van-dialog use-slot title="" show="{{ show }}" show-cancel-button bind:close="onClose">$1</van-dialog>
html
<van-dropdown-menu>$1</van-dropdown-menu>
html
<van-dropdown-menu>
<van-dropdown-item value="$1" options="$2" />$3
</van-dropdown-menu>
html
<van-dropdown-item value="$1" options="$2"></van-dropdown-item>
html
<van-loading />
html
<van-loading type="spinner" />
html
<van-notify id="custom-selector" />
html
<van-overlay show="{{ show }}" bind:click="onClickHide">$1</van-overlay>
html
<van-share-sheet show="$1" title="$2" options="$3" bind:select="$4" bind:close="$5" />
html
<van-swipe-cell>$1</van-swipe-cell>
html
<view slot="left">$1</view>
html
<view slot="right">$1</view>
html
<van-circle value="$1" text="$2" />
html
<van-circle value="$1" stroke-width="$2" text="$3" />
html
<van-circle value="$1" layer-color="$2" color="$3" text="$4" />
html
<van-collapse value="$1" bind:change="$2">$3</van-collapse>
html
<van-collapse accordion value="$1" bind:change="$2">$3</van-collapse>
html
<van-collapse value="$1" bind:change="$2">
<van-collapse-item title="" name="">$3</van-collapse-item>
</van-collapse>
html
<van-collapse-item title="$1" name="$2">$3</van-collapse-item>
html
<van-count-down time="$1" />
html
<van-count-down millisecond time="$1" format="HH:mm:ss:SSS" />
html
<van-divider></van-divider>
html
<van-divider hairline></van-divider>
html
<van-divider dashed></van-divider>
html
<van-divider contentPosition="center">$1</van-divider>
html
<van-empty description="$1">$2</van-empty>
html
<van-empty image="$1" description="$2">$3</van-empty>
html
<van-empty description="$1">
<van-button round type="danger">按钮</van-button>
</van-empty>
html
<van-notice-bar left-icon="volume-o" text="$1" />
html
<van-notice-bar left-icon="volume-o" text="$1" scrollable />
html
<van-notice-bar left-icon="volume-o" text="$1" wrapable />
html
<van-notice-bar left-icon="volume-o" text="$1" mode="link" />
html
<van-progress percentage="$1" />
html
<van-progress :percentage="" stroke-width="" />
html
<van-skeleton title row="$1">$2</van-skeleton>
html
<van-skeleton avatar title row="$1">$2</van-skeleton>
html
<van-steps steps="$1" active="$2" />
html
<van-steps steps="$1" active="$2" direction="vertical" active-color="$3" />
html
<van-sticky>$1</van-sticky>
html
<van-sticky container="$1">$2</van-sticky>
html
<van-sticky offset-top="$1">$2</van-sticky>
html
<van-tag type="primary">$1</van-tag>
html
<van-tag plain type="primary">$1</van-tag>
html
<van-tag closeable type="primary">$1</van-tag>
html
<van-tag mark type="primary">$1</van-tag>
html
<van-tag round type="primary">$1</van-tag>
html
<van-grid>$1</van-grid>
html
<van-grid square>$1</van-grid>
html
<van-grid>
<van-grid-item icon="" text="" />
</van-grid>
html
<van-grid-item icon="" text="" />
html
<van-index-bar>$1</van-index-bar>
html
<van-index-bar index-list="$1">$2</van-index-bar>
html
<van-index-anchor index="$1">$2</van-index-anchor>
html
<van-nav-bar title="标题" left-text="返回" right-text="按钮" left-arrow bind:click-left="onClickLeft" bind:click-right="onClickRight">$1</van-nav-bar>
html
<view slot="title"></view>
html
<view slot="left"></view>
html
<view slot="right"></view>
html
<van-sidebar active-key="$1">$2</van-sidebar>
html
<van-sidebar active-key="$1">
<van-sidebar-item title="" />
</van-sidebar>
html
<van-sidebar-item title="$1" />
html
<van-sidebar-item title="$1" dot />
html
<van-sidebar-item title="$1" badge="$2" />
html
van-tab title="$1">$2</van-tab>
html
<van-tabs active="$1" bind:change="$2">$3</van-tabs>
html
<van-tabs sticky active="$1" bind:change="$2">$3</van-tabs>
html
<van-tabs type="card" active="$1" bind:change="$2">$3</van-tabs>
html
<van-tabs active="$1" bind:change="$2">
<van-tab title="$3"></van-tab>$4
</van-tabs>
html
<van-tabbar active="$1" bind:change="$2">$3</van-tabbar>
html
<van-tabbar active="$1" bind:change="$2"><van-tabbar-item name="$3" icon="$4">$5</van-tabbar-item></van-tabbar>
html
<van-tabbar-item icon="$1">$2</van-tabbar-item>
html
<van-tabbar-item icon="$1" dot>$2</van-tabbar-item>
html
<van-tabbar-item icon="$1" info>$2</van-tabbar-item>
html
<van-tree-select items="$1" main-active-index="$2" active-id="$3" bind:click-nav="$4" bind:click-item="$5" />
html
<van-tree-select items="$1" main-active-index="$2" active-id="$3" bind:click-nav="$4" bind:click-item="$5" max="$6" />
html
<van-area area-list="$1" />
html
<van-card num="$1" price="$2" desc="$3" title="$4" thumb="$5">$6</van-card>
html
<view slot="title"></view>
html
<view slot="desc"></view>
html
<view slot="num"></view>
html
<view slot="price"></view>
html
<view slot="origin-price"></view>
html
<view slot="price-top"></view>
html
<view slot="bottom"></view>
html
<view slot="thumb"></view>
html
<view slot="tag"></view>
html
<view slot="tags"></view>
html
<view slot="footer"></view>
html
<van-submit-bar price="$1" button-text="$2" bind:submit="$3">$4</van-submit-bar>
html
<view slot="top">$1</veiw>
html
<view slot="tip">$1</veiw>
html
<van-goods-action>$1</van-goods-action>
html
<van-goods-action-icon icon="$1" text="$2" bind:click="$3" />
html
<van-goods-action-button text="$2" bind:click="$3" />
html
<van-goods-action-button plain text="$2" bind:click="$3" />
html
<van-panel title="$1" desc="$2" status="$3">$4</van-panel>