Skip to content

Commit

Permalink
Merge pull request #8 from iq9891/master
Browse files Browse the repository at this point in the history
v0.0.4
  • Loading branch information
iq9891 authored Dec 13, 2019
2 parents 4c47d60 + 1bf6111 commit f4e0f5c
Show file tree
Hide file tree
Showing 18 changed files with 265 additions and 49 deletions.
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,13 @@
<img src="https://static2.evente.cn/static/img/water.gif" alt="自动补全的示例" style="display: block; width: 288px;" />


### 0.0.4

> 2019-12-13
- [fix] 修复遗漏的属性及标签。


### 0.0.3

> 2019-12-13
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "vscode-water-helper",
"displayName": "vscode-water-helper",
"description": "A vscode extension for WATER",
"version": "0.0.3",
"version": "0.0.4",
"engines": {
"vscode": "^1.40.0"
},
Expand Down
5 changes: 5 additions & 0 deletions src/maps/attrs/calendar/calendar.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,11 @@
"optionType": "Number",
"defaultValue": "0"
},
"w-calendar/pickerRender": {
"description": "自定义日期单元格的内容和样式",
"optionType": "Function",
"defaultValue": "-"
},
"w-calendar/change": {
"description": "输入时触发的方法,返回 {当前月份,当前年代区间,当前年的区间,当前年,面板数据集,面板类型,面板的值}({nowMonth,nowRangeAge,nowRangeYear,nowYear,tableOptions,tableType,value})",
"optionType": "Function",
Expand Down
9 changes: 7 additions & 2 deletions src/maps/attrs/checkbox/checkbox.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
{
"w-checkbox/value": {
"description": "选中的值",
"optionType": "Boolean, Number, String",
"description": "绑定值",
"optionType": "Number | String | Boolean",
"defaultValue": "-"
},
"w-checkbox/label": {
"description": "设置选中的值",
"optionType": "Number | String | Boolean",
"defaultValue": "-"
},
"w-checkbox/disabled": {
Expand Down
9 changes: 7 additions & 2 deletions src/maps/attrs/datepicker/datepicker.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"optionType": "Boolean",
"defaultValue": "true"
},
"w-calendar/type": {
"w-datepicker/type": {
"description": "日历类型",
"options": [
"week",
Expand Down Expand Up @@ -86,7 +86,7 @@
"defaultValue": "top"
},
"w-datepicker/interval": {
"description": "下拉框间距,单位 p",
"description": "下拉框间距,单位 px",
"optionType": "Number",
"defaultValue": "0"
},
Expand All @@ -110,6 +110,11 @@
"optionType": "Function",
"defaultValue": "-"
},
"w-datepicker/panelChange": {
"description": "点击面板的方法,返回 {面板类型,面板数据,当前月份,当前年份,当前年代,当前世纪}({tableType,tableOptions,nowMonth,nowYear,nowRangeYear,nowRangeAge,value})",
"optionType": "Function",
"defaultValue": "({tableType,tableOptions,nowMonth,nowYear,nowRangeYear,nowRangeAge,value}) => {}"
},
"w-datepicker/change": {
"description": "输入时触发的方法,返回 {Event对象,处理过的值,格式的值,当前的对象,当前行}({ev,trueValue,value,item,dateWeek})",
"optionType": "Function",
Expand Down
2 changes: 1 addition & 1 deletion src/maps/attrs/input-number/input-number.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"w-input/value": {
"w-input-number/value": {
"description": "改变的值",
"optionType": "String | Number",
"defaultValue": "-"
Expand Down
5 changes: 5 additions & 0 deletions src/maps/attrs/input/input.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,11 @@
"optionType": "String",
"defaultValue": "-"
},
"w-input/type": {
"description": "设置 input 原生的 type 值",
"optionType": "String",
"defaultValue": "text"
},
"w-input/size": {
"description": "设置大小",
"options": [
Expand Down
5 changes: 5 additions & 0 deletions src/maps/attrs/modal/modal.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,11 @@
"optionType": "Boolean",
"defaultValue": "-"
},
"w-modal/closable": {
"description": "是否显示关闭按钮",
"optionType": "Boolean",
"defaultValue": "true"
},
"w-modal/esc": {
"description": "是否支持键盘 esc 关闭",
"optionType": "Boolean",
Expand Down
10 changes: 10 additions & 0 deletions src/maps/attrs/page/page-jump.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,16 @@
"optionType": "Number",
"defaultValue": "-"
},
"w-page-jump/size": {
"description": "设置大小",
"options": [
"small",
"large",
"不设置"
],
"optionType": "String",
"defaultValue": "-"
},
"w-page-jump/prefix": {
"description": "设置前缀文案",
"optionType": "String",
Expand Down
10 changes: 10 additions & 0 deletions src/maps/attrs/page/page.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,16 @@
"optionType": "String",
"defaultValue": "-"
},
"w-page/size": {
"description": "设置大小",
"options": [
"small",
"large",
"不设置"
],
"optionType": "String",
"defaultValue": "-"
},
"w-page/total": {
"description": "数据总数",
"optionType": "Number",
Expand Down
5 changes: 5 additions & 0 deletions src/maps/attrs/popconfirm/popconfirm.json
Original file line number Diff line number Diff line change
Expand Up @@ -72,5 +72,10 @@
"description": "点击取消触发,返回 状态 ( status )",
"optionType": "Function",
"defaultValue": "(status) => {}"
},
"w-popcomfirm/before": {
"description": "确定之前触发的方法,返回 Promise 对象",
"optionType": "Function",
"defaultValue": "function() {return new Promise((resolve, reject) => {resolve();});}"
}
}
15 changes: 10 additions & 5 deletions src/maps/attrs/scroll/scroll.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,6 @@
"optionType": "Boolean",
"defaultValue": "-"
},
"w-scroll/color": {
"description": "自定义默认图片的颜色",
"optionType": "String",
"defaultValue": "#333"
},
"w-scroll/openPull": {
"description": "开启加载功能",
"optionType": "Boolean",
Expand Down Expand Up @@ -72,5 +67,15 @@
"description": "加载中触发的方法, 返回值: {Event对象,滚动的比例,滚动的距离,滚动的方向,事件触发类型}({ev, scrollScale, scrollChange, dir, eventType})",
"optionType": "Function",
"defaultValue": "({ev, scrollScale, scrollChange, dir, eventType}) => {}"
},
"w-scroll/wrapClassName": {
"description": "wrap 自定义 class, 0.20.0 新增",
"optionType": "String | Object | Array",
"defaultValue": "-"
},
"w-scroll/bodyClassName": {
"description": "body 自定义 class, 0.20.0 新增",
"optionType": "String | Object | Array",
"defaultValue": "-"
}
}
9 changes: 7 additions & 2 deletions src/maps/attrs/select/select.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@
"optionType": "String",
"defaultValue": "-"
},
"w-select/prefix": {
"w-select/suffix": {
"description": "选中的后缀",
"optionType": "String",
"defaultValue": "-"
Expand All @@ -94,10 +94,15 @@
"defaultValue": "bottom"
},
"w-select/interval": {
"description": "下拉框间距,单位 p",
"description": "下拉框间距,单位 px",
"optionType": "Number",
"defaultValue": "0"
},
"w-select/zIndex": {
"description": "下拉弹出的层级",
"optionType": "Number",
"defaultValue": "1"
},
"w-select/getContainer": {
"description": "浮层渲染父节点,默认渲染到 body 上。支持返回 Promise",
"optionType": "Function",
Expand Down
10 changes: 0 additions & 10 deletions src/maps/attrs/table/table.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,16 +44,6 @@
"optionType": "Object",
"defaultValue": "-"
},
"w-table/wrapClassName": {
"description": "wrap 的 class 名字 0.19.0 新增",
"optionType": "String | Object | Array",
"defaultValue": "-"
},
"w-table/bodyClassName": {
"description": "body 的 class 名字 0.19.0 新增",
"optionType": "String | Object | Array",
"defaultValue": "-"
},
"w-table/header": {
"description": "列头显示文字",
"optionType": "Function",
Expand Down
49 changes: 49 additions & 0 deletions src/maps/attrs/text/text.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
{
"w-text/disabled": {
"description": "设置禁用状态",
"optionType": "Boolean",
"defaultValue": "-"
},
"w-text/strong": {
"description": "是否加粗",
"optionType": "Boolean",
"defaultValue": "-"
},
"w-text/underline": {
"description": "是否添加下划线样式",
"optionType": "Boolean",
"defaultValue": "-"
},
"w-text/mark": {
"description": "是否添加标记样式",
"optionType": "Boolean",
"defaultValue": "-"
},
"w-text/code": {
"description": "是否添加代码样式",
"optionType": "Boolean",
"defaultValue": "-"
},
"w-text/delete": {
"description": "是否添加删除线样式",
"optionType": "Boolean",
"defaultValue": "-"
},
"w-text/type": {
"description": "文本类型",
"options": [
"danger",
"warning",
"secondary",
"info",
"success"
],
"optionType": "Boolean",
"defaultValue": "-"
},
"w-text/markStyle": {
"description": "设置标记样式",
"optionType": "String | Object",
"defaultValue": "background-color: #ffe58f"
}
}
105 changes: 105 additions & 0 deletions src/maps/attrs/timepicker/timepicker.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,105 @@
{
"w-timepicker/value": {
"description": "绑定值",
"optionType": "Boolean",
"defaultValue": "moment().format('HH:mm:ss')"
},
"w-timepicker/placeholder": {
"description": "输入框占位文本",
"optionType": "String",
"defaultValue": "-"
},
"w-timepicker/size": {
"description": "设置大小",
"options": [
"small",
"large",
"不设置"
],
"optionType": "String",
"defaultValue": "-"
},
"w-timepicker/format": {
"description": "显示在输入框中的格式,参考 moment 的日期格式",
"optionType": "String",
"defaultValue": "HH:mm:ss"
},
"w-timepicker/valueFormat": {
"description": "绑定值的格式,参考 moment 的日期格式",
"optionType": "String",
"defaultValue": "HH:mm:ss"
},
"w-timepicker/placement": {
"description": "气泡框位置",
"options": [
"top",
"bottom",
"topLeft",
"topRight",
"bottomLeft",
"bottomRight"
],
"optionType": "String",
"defaultValue": "top"
},
"w-timepicker/interval": {
"description": "下拉框间距,单位 px",
"optionType": "Number",
"defaultValue": "0"
},
"w-timepicker/editable": {
"description": "文本框可输入",
"optionType": "Boolean",
"defaultValue": "-"
},
"w-timepicker/disabled": {
"description": "设置禁用状态",
"optionType": "Boolean",
"defaultValue": "-"
},
"w-timepicker/open": {
"description": "控制弹层是否展开",
"optionType": "Boolean",
"defaultValue": "false"
},
"w-timepicker/transfer": {
"description": "是否转移到 body 下",
"optionType": "Boolean",
"defaultValue": "true"
},
"w-timepicker/clearable": {
"description": "是否显示清除按钮",
"optionType": "Boolean",
"defaultValue": "true"
},
"w-timepicker/pickerStyle": {
"description": "面板样式",
"optionType": "String | Object",
"defaultValue": "-"
},
"w-timepicker/disabledHourRender": {
"description": "禁用小时的渲染方法",
"optionType": "Function",
"defaultValue": "-"
},
"w-timepicker/disabledMinuteRender": {
"description": "禁用分钟的渲染方法",
"optionType": "Function",
"defaultValue": "-"
},
"w-timepicker/disabledSecondRender": {
"description": "禁用秒的渲染方法",
"optionType": "Function",
"defaultValue": "-"
},
"w-timepicker/getContainer": {
"description": "浮层渲染父节点,默认渲染到 body 上。支持返回 Promise",
"optionType": "Function",
"defaultValue": "-"
},
"w-datepicker/change": {
"description": "改变的方法,返回 {绑定值, 输入框显示值}({value, text})",
"optionType": "Function",
"defaultValue": "({value, text}) => {}"
}
}
Loading

0 comments on commit f4e0f5c

Please sign in to comment.