插件路径
########################################################
# Atom Wepy Snippet #
# #
#####################################################
".text.html.vue":
"view ->wpy":
"prefix": "wview"
"body": """
<view></view>
"""
"text ->wpy":
"prefix": "wte"
"body": """
<text></text>
"""
"image ->wpy":
"prefix": "wige"
"body": """
<image mode="" src=""></image>
"""
"switch ->wpy":
"prefix": "wsh"
"body": """
<switch name="switch"/>
"""
"input ->wpy":
"prefix": "wipt"
"body": """
<input placeholder="" />
"""
"label ->wpy":
"prefix": "wilal"
"body": """
<label><radio value=""/>radio1</label>
"""
"button ->wpy":
"prefix": "wilal"
"body": """
<button>Submit</button>
"""
"textarea ->wpy":
"prefix": "wtxea"
"body": """
<textarea placeholder="" auto-focus />
"""
"picker ->wpy":
"prefix": "wpir"
"body": """
<view class="">
<view class="">时间选择器</view>
<picker mode="time" value="{{}}" start="09:01" end="21:01" bindchange="bindTimeChange">
<view class="">
当前选择: {{}}
</view>
</picker>
</view>
"""
"page ->wpy":
"prefix": "wpge"
"body": """
<style lang="scss">
</style>
<template>
<view class="container">
</view>
</template>
<script>
import wepy from 'wepy'
export default class ${1} extends wepy.page {
config = {
navigationBarTitleText: ''
}
components = {
}
data = {
}
methods = {
}
onShow(){
}
onLoad(e) {
}
}
</script>
"""
"component->wpy":
"prefix": "wcom"
"body": """
<style lang="scss">
</style>
<template>
<view class="">
</view>
</template>
<script>
import wepy from 'wepy'
export default class ${1} extends wepy.component {
props = {
}
data = {
}
components = {
}
methods = {
}
onLoad () {
}
}
</script>
"""