{
// Place your 全局 snippets here. Each snippet is defined under a snippet name and has a scope, prefix, body and
// description. Add comma separated ids of the languages where the snippet is applicable in the scope field. If scope
// is left empty or omitted, the snippet gets applied to all languages. The prefix is what is
// used to trigger the snippet and the body will be expanded and inserted. Possible variables are:
// $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders.
// Placeholders with the same ids are connected.
// Example:
// "Print to console": {
// "scope": "javascript,typescript",
// "prefix": "log",
// "body": [
// "console.log('$1');",
// "$2"
// ],
// "description": "Log output to console"
// }
"WpAntdVueImportSnippet": {
"prefix": "w-antd-import",
"body": [
"import { ComponentName } from 'ant-design-vue'",
],
"description": "AntdVue组件导入代码片段"
},
"WpAntdVuePageHeaderWrapperSnippet": {
"prefix": "w-phw",
"body": [
",
" >",
" ",
" ",
" ",
" ",
" ",
" ",
" ",
" {{ timeFix }},{{ user.name }},{{ welcome }}",
" ",
" Hellow Antd Pro of Vue",
" ",
" ",
" ",
" ",
" ",
" ",
" ",
" ",
" ",
" ",
" ",
" ",
" ",
" ",
" ",
" ",
" ",
" ,
" type=\"flex\"",
" justify=\"space-between\"",
" align=\"middle\"",
" :gutter=\"[",
" { xs: 8, sm: 8, md: 8, lg: 8 },",
" { xs: 8, sm: 8, md: 8, lg: 8 }",
" ]\"",
" >",
" ",
" content ",
" content ",
" content ",
" content ",
" content ",
" content ",
" ,
" :xs=\"{ span: 1, offset: 0, order: 8 }\"",
" :sm=\"{ span: 1, offset: 0, order: 8 }\"",
" :md=\"{ span: 1, offset: 0, order: 8 }\"",
" :lg=\"{ span: 1, offset: 0, order: 8 }\"",
" :xl=\"{ span: 1, offset: 0, order: 8 }\"",
" :xxl=\"{ span: 1, offset: 0, order: 8 }\"",
" >cintent ,
" >",
" ",
" ",
" ",
],
"description": "AntdProLayoutPageHeaderWrapper"
},
"WpAntdVueGridSnippet": {
"prefix": "w-grid",
"body": [
",
" type=\"flex\"",
" justify=\"space-between\"",
" align=\"middle\"",
" :gutter=\"[",
" { xs: 8, sm: 8, md: 8, lg: 8 },",
" { xs: 8, sm: 8, md: 8, lg: 8 }",
" ]\"",
" >",
" content ",
" content ",
" content ",
" content ",
" content ",
" content ",
" ,
" :xs=\"{ span: 1, offset: 0, order: 8 }\"",
" :sm=\"{ span: 1, offset: 0, order: 8 }\"",
" :md=\"{ span: 1, offset: 0, order: 8 }\"",
" :lg=\"{ span: 1, offset: 0, order: 8 }\"",
" :xl=\"{ span: 1, offset: 0, order: 8 }\"",
" :xxl=\"{ span: 1, offset: 0, order: 8 }\"",
" >cintent ,
" >",
" ",
],
"description": "AntdVue栅格代码片段"
},
"WpAntdVueButtonSnippet": {
"prefix": "w-button",
"body": [
",
" type=\"primary\"",
" shape=\"round\"",
" icon=\"search\"",
" :loading=\"loading\"",
" size=\"default\"",
" block",
" @click=\"handleClickEvent\"",
" >查询 ,
" >",
],
"description": "AntdVue按钮代码片段"
},
"WpAntdVueSpaceSnippet": {
"prefix": "w-space",
"body": [
" ",
],
"description": "AntdVue间距代码片段"
},
"WpAntdVueIconSnippet": {
"prefix": "w-icon",
"body": [
" ,
" type=\"setting\"",
" theme=\"twoTone\"",
" two-tone-color=\"#52c41a\"",
" spin",
" :rotate=\"180\"",
" />",
],
"description": "AntdVue图标代码片段"
},
"WpAntdVueDropdownButtonSnippet": {
"prefix": "w-dropdown-button",
"body": [
",
" @click=\"handleButtonClick\"",
" >TestDropdown",
" ,
" #overlay",
" >" ,
" ,
" @click=\"handleMenuClick\"",
" v-for=\"(item, index) in data\"",
" :key=\"index\"",
" :disabled=\"item.disabled\"",
" > {{ item.content }} ,
" >",
" ,
" >",
" ",
" ",
],
"description": "AntdVue下拉菜单代码片段"
},
"WpAntdVuePaginationSnippet": {
"prefix": "w-pagination",
"body": [
",
" show-size-changer",
" showQuickJumper",
" v-model=\"currentPage\"",
" :page-size-options=\"pageSizeOptions\"",
" :default-current=\"1\"",
" :total=\"total\"",
" @change=\"onChange\"",
" @showSizeChange=\"onshowSizeChange\"",
" >",
" ",
" {{ props.value }}条/页",
" 全部",
" ",
" ",
],
"description": "AntdVue分页代码片段"
},
"WpAntdVueStepsSnippet": {
"prefix": "w-steps",
"body": [
",
" :current=\"currentStep\"",
" size=\"small\"",
" direction=\"horizontal\"",
" :status=\"status\"",
" >",
" " ,
" ",
" {{ item.title }} ",
" {{ item.description }}",
" ",
" ",
" ",
],
"description": "AntdVue步骤条代码片段"
},
"WpAntdVueCascaderSnippet": {
"prefix": "w-cascader",
"body": [
",
" size:large",
" :options=\"options\"",
" :default-value=\"defaultValues\"",
" :show-search=\"{ filter }\"",
" placeholder=\"请选择位置\"",
" change-on-select",
" @change=\"onChange\"",
" > ",
" ",
" ",
],
"description": "AntdVue级联选择器代码片段"
},
"WpAntdVueCheckboxSnippet": {
"prefix": "w-checkbox",
"body": [
",
" :default-checked=\"defaultChecked\"",
" :disabled=\"disabled\"",
" @change=\"onChange\"",
" >选择框测试 ,
" >",
" ",
],
"description": "AntdVue多选框代码片段"
},
"WpAntdVueCheckboxGroupSnippet": {
"prefix": "w-checkboxgroup",
"body": [
",
" v-model=\"groupValue\"",
" :options=\"options\"",
" :default-value=\"defaultGroupValue\"",
" @change=\"onGroupChange\"",
" > ",
" ",
],
"description": "AntdVue多选框组代码片段"
},
"WpAntdVueDateTimePickerSnippet": {
"prefix": "w-date-time-picker",
"body": [
",
" placeholder=\"请选择日期\"",
" :show-time=\"{ defaultValue: moment('08:00:00', dateTimeFormat) }\"",
" :format=\"dateTimeFormat\"",
" :default-value=\"moment(new Date().toLocaleDateString(), dateTimeFormat)\"",
" :disabled-date=\"disabledDate\"",
" :disabled-time=\"disabledTime\"",
" @change=\"onDateTimeChange\"",
" > ,
" > ",
" ",
],
"description": "AntdVue时间选择器代码片段"
},
"WpAntdVueRangePickerSnippet": {
"prefix": "w-range-picker",
"body": [
",
" :format=\"dateFormat\"",
" :disabled-date=\"disabledDate\"",
" :placeholder=\"['请选择开始时间', '请选择结束时间']\"",
" separator=\"到\"",
" @change=\"onRangeChange\"",
" @ok=\"onRangeOK\"",
" > ,
" > ",
" ",
],
"description": "AntdVue时间段选择器代码片段"
},
"WpAntdVueInputSnippet": {
"prefix": "w-input",
"body": [
"" ,
" 前置标签",
" 后置标签 ",
" ,
" >",
" ",
" ",
" ",
],
"description": "AntdVue输入框代码片段"
},
"WpAntdVueInputSearchSnippet": {
"prefix": "w-input-search",
"body": [
"" ,
" 前置标签",
" ,
" >",
" ",
" ",
" ",
" 查询 ",
" ",
" ",
],
"description": "AntdVue查询输入框代码片段"
},
"WpAntdVueInputGroupSnippet": {
"prefix": "w-input-group",
"body": [
"" ,
" " ,
" ,
" >",
" ",
" ",
" ",
" " ,
" ",
" 查询 ",
" ",
" ",
" ",
],
"description": "AntdVue输入框组代码片段"
},
"WpAntdVueInputNumberSnippet": {
"prefix": "w-input-number",
"body": [
",
" v-model=\"value\"",
" :min=\"0\"",
" :max=\"10\"",
" :step=\"1\"",
" @change=\"onChange\"",
" @pressEnter=\"onPressEnter\">",
" ,
" >",
],
"description": "AntdVue数字输入框代码片段"
},
"WpAntdVueMentionsSnippet": {
"prefix": "w-mentions",
"body": [
",
" v-model=\"value\"",
" split=\" \"",
" :prefix=\"prefixs\"",
" @change=\"onChange\"",
" @select=\"onSelect\"",
" @search=\"onSearch\"",
" >",
" {{" ,
" item",
" }} ,
" >",
" ",
],
"description": "AntdVue提及代码片段"
},
"WpAntdVueRadioGroupSnippet": {
"prefix": "w-radio-group",
"body": [
" ",
" ",
],
"description": "AntdVue单选框组代码片段"
},
"WpAntdVueRadioButtonGroupSnippet": {
"prefix": "w-radio-button-group",
"body": [
"" ,
" {{" ,
" item.label",
" }}",
" ",
" ",
],
"description": "AntdVue单选按钮组代码片段"
},
"WpAntdVueRateSnippet": {
"prefix": "w-rate",
"body": [
",
" v-model=\"value\"",
" allow-half",
" :tooltips=\"desc\"",
" :disabled=\"disabled\"",
" :count=\"count\"",
" @change=\"onChange\">",
" ",
" ",
" ",
" ",
" ",
],
"description": "AntdVue评分代码片段"
},
"WpAntdVueSelectSnippet": {
"prefix": "w-select",
"body": [
",
" label-in-value",
" v-model=\"value\"",
" placeholder=\"请选择一项\"",
" style=\"width: 300px\"",
" mode=\"tags\"",
" :allowClear=\"true\"",
" :token-separators=\"[',', ',', ' ']\"",
" :options=\"options\"",
" @change=\"onChange\"",
" @select=\"onSelect\"",
" >",
" ,
" >",
" ",
],
"description": "AntdVue选择器代码片段"
},
"WpAntdVueSelectGroupSnippet": {
"prefix": "w-select-group",
"body": [
",
" label-in-value",
" v-model=\"value\"",
" placeholder=\"请选择一项\"",
" style=\"width: 300px\"",
" mode=\"multiple\"",
" :allowClear=\"true\"",
" @change=\"onChange\"",
" @select=\"onSelect\"",
" >",
" ",
" ",
" " ,
" 直辖市",
" {{" ,
" item.label",
" }}",
" ",
" ",
" ",
],
"description": "AntdVue分组选择器代码片段"
},
"WpAntdVueSliderSnippet": {
"prefix": "w-slider",
"body": [
",
" v-model=\"value\"",
" style=\"width: 300px\"",
" :min=\"0\"",
" :max=\"100\"",
" :step=\"1\"",
" :tip-formatter=\"formatter\"",
" :marks=\"marks\"",
" @change=\"onChange\"",
" @afterChange=\"onAfterChange\"",
" > ",
" ",
],
"description": "AntdVue滑动输入条代码片段"
},
"WpAntdVueSliderRangeSnippet": {
"prefix": "w-slider-range",
"body": [
",
" range",
" v-model=\"rangeValue\"",
" style=\"width: 300px\"",
" :min=\"0\"",
" :max=\"100\"",
" :step=\"1\"",
" :tip-formatter=\"formatter\"",
" :marks=\"marks\"",
" @change=\"onRangeChange\"",
" @afterChange=\"onRangeAfterChange\"",
" > ",
" ",
],
"description": "AntdVue范围滑动输入条代码片段"
},
"WpAntdVueSwitchSnippet": {
"prefix": "w-switch",
"body": [
"" ,
" ",
" ,
" >",
" ",
],
"description": "AntdVue开关代码片段"
},
"WpAntdVueAvatarSnippet": {
"prefix": "w-avatar",
"body": [
",
" shape=\"square\"",
" size=\"large\"",
" src=\"https://www.baidu.com/img/PCtm_d9c8750bed0b3c7d089fa7d55720d6cf.png\"",
" style=\"background-color: white; width: 1000px; height: 500px\"",
" >",
" ",
" ",
],
"description": "AntdVue头像代码片段"
},
"WpAntdVueBadgeSnippet": {
"prefix": "w-badge",
"body": [
",
" :overflow-count=\"10\"",
" :count=\"count\"",
" title=\"Custom hover text\"",
" dot",
" color=\"#87d068\"",
" status=\"error\"",
" >",
" ",
" ",
],
"description": "AntdVue徽标代码片段"
},
"WpAntdVueCardSnippet": {
"prefix": "w-card",
"body": [
"" ,
" ,
" #extra",
" >",
" " ,
" ",
" ",
" ",
" ",
" {{ item }}
",
" " ,
" 数字列表描述",
" ",
" ",
" ",
" ",
" ",
" ",
" ",
],
"description": "AntdVue卡片代码片段"
},
"WpAntdVueCollapseSnippet": {
"prefix": "w-collapse",
"body": [
"" ,
" ",
" ",
" ",
" ,
" v-for=\"item in contents\"",
" :key=\"item.key\"",
" :header=\"item.header\"",
" :disabled=\"item.disabled\"",
" :show-arrow=\"item.showArrow\"",
" >",
" ",
" {{ item.content }}
",
" ",
" ",
" ",
],
"description": "AntdVue折叠面板代码片段"
},
"WpAntdVueListSnippet": {
"prefix": "w-list",
"body": [
"" ,
" 列表头",
" ",
" " ,
" ",
" ",
" ",
" ",
" ,
" v-for=\"(item, index) in actions\"",
" :key=\"index\"",
" @click=\"onClick(index)\"",
" > ",
" {{ item.text }}",
" ",
" ",
" ",
" " ,
" ",
" {{ item.title }}
,
" >",
" ",
" ",
" ",
" ",
" ",
" ",
" 列表尾",
" ",
" ",
],
"description": "AntdVue列表代码片段"
},
"WpAntdVuePopoverSnippet": {
"prefix": "w-popover",
"body": [
"" ,
" ",
" 气泡卡片测试内容
",
" 气泡卡片测试内容
",
" ",
" ",
" ",
],
"description": "AntdVue气泡卡片代码片段"
},
"WpAntdVueStatisticSnippet": {
"prefix": "w-statistic",
"body": [
",
" title=\"统计数值标题\"",
" :value=\"123.456\"",
" :precision=\"2\"",
" style=\"margin-right: 100px\"",
" :value-style=\"{ color: '#3f8600' }\"",
" >",
" % ",
" ",
" ",
],
"description": "AntdVue数据统计代码片段"
},
"WpAntdVueStatisticCountDownSnippet": {
"prefix": "w-statistic-countdown",
"body": [
"" ,
" ",
" ",
],
"description": "AntdVue数据统计倒计时组件代码片段"
},
"WpAntdVueTabsSnippet": {
"prefix": "w-tabs",
"body": [
",
" v-model=\"activeKey\"",
" style=\"width: 400px\"",
" tab-position=\"top\"",
" @change=\"onChange\"",
" @prevClick=\"callback\"",
" @nextClick=\"callback\"",
" >",
" ",
" ",
" ",
" ",
" " ,
" ",
" {{ item.title }},
" >",
" {{ item.content }},
" >",
" ",
" ",
],
"description": "AntdVue标签页代码片段"
},
"WpAntdVueTagSnippet": {
"prefix": "w-tag",
"body": [
"{{" ,
" item",
" }}",
" ",
],
"description": "AntdVue标签代码片段"
},
"WpAntdVueTagAddSnippet": {
"prefix": "w-tag-add",
"body": [
"",
" ",
" ",
" 20\" :key=\"tag\" :title=\"tag\">" ,
" handleClose(tag)\">" ,
" {{ `${tag.slice(0, 20)}...` }}",
" ",
" ",
" handleClose(tag)\">" ,
" {{ tag }}",
" ",
" ",
" ,
" v-if=\"inputVisible\"",
" ref=\"input\"",
" type=\"text\"",
" size=\"small\"",
" :style=\"{ width: '78px' }\"",
" :value=\"inputValue\"",
" @change=\"handleInputChange\"",
" @blur=\"handleInputConfirm\"",
" @keyup.enter=\"handleInputConfirm\"",
" />",
" " ,
" New Tag",
" ",
" ",
" ",
" ",
],
"description": "AntdVue可以添加标签模板代码片段"
},
"WpAntdVueTimelineSnippet": {
"prefix": "w-timeline",
"body": [
",
" pending=\"正在发生...\"",
" mode=\"alternate\"",
" style=\"width: 100%\"",
" >",
" ",
" " ,
" ",
" {{ item.title }}
",
" {{ item.content }}
",
" ",
" ",
" ",
],
"description": "AntdVue时间轴代码片段"
},
"WpAntdVueTooltipSnippet": {
"prefix": "w-tooltip",
"body": [
"" ,
" 文字提示测试,
" >",
],
"description": "AntdVue文字提示代码片段"
},
"WpAntdVueAlertSnippet": {
"prefix": "w-alert",
"body": [
",
" message=\"警告提示消息\"",
" type=\"error\"",
" :show-icon=\"true\"",
" closable",
" banner",
" style=\"min-width: 500px\"",
" @close=\"onClose\"",
" >",
" ",
" 这是一个警告提示测试
",
" ",
" ",
" " ,
" 关闭消息",
" ,
" type=\"setting\"",
" theme=\"twoTone\"",
" two-tone-color=\"#52c41a\"",
" spin",
" /> ,
" > ",
" ",
],
"description": "AntdVue警告消息代码片段"
},
"WpAntdVueDrawerSnippet": {
"prefix": "w-drawer",
"body": [
",
" title=\"抽屉标题\"",
" placement=\"right\"",
" :visible=\"visible\"",
" :closable=\"true\"",
" :width=\"700\"",
" @close=\"",
" () => {",
" this.visible = false",
" }",
" \"",
" >",
" ",
" ",
],
"description": "AntdVue抽屉代码片段"
},
"WpAntdVueMessageSnippet": {
"prefix": "w-message",
"body": [
",
" type=\"primary\"",
" shape=\"round\"",
" size=\"default\"",
" block",
" @click=\"",
" () => {",
" this.\\$message",
" .loading('Action in progress..', 2.5)",
" .then(() => this.\\$message.success('Loading finished', 2.5))",
" .then(() => this.\\$message.info({ content: 'Loading finished is finished', duration: 2.5 }))",
" }",
" \"",
" >全局提示测试 ,
" >",
" ",
],
"description": "AntdVue全局提示代码片段"
},
}