Skip to content

Commit

Permalink
->v2.3.5
Browse files Browse the repository at this point in the history
  • Loading branch information
airyland committed Jun 9, 2017
1 parent 189507f commit 396b9dc
Show file tree
Hide file tree
Showing 9 changed files with 19 additions and 14 deletions.
5 changes: 5 additions & 0 deletions build/pre-publish.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@ if (!version) {
throw('no version specified')
}

const pkg = require(getPath('../package.json'))
pkg.version = version.replace('v', '')

fs.writeFileSync(getPath('../package.json'), JSON.stringify(pkg, null, 2))

glob(getPath('../src/**/**/metas.yml'), {}, function (err, files) {
let rs = []
files.forEach(function (file) {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "vux",
"version": "2.3.4",
"version": "2.3.5",
"main": "index.js",
"description": "Mobile web UI based on Vue and WeUI",
"keywords": [
Expand Down
2 changes: 1 addition & 1 deletion src/components/actionsheet/metas.yml
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ events:
en: triggers when clicking on mask
zh-CN: 点击遮罩时触发
changes:
next:
v2.3.5:
en:
- '[feature] Support slot:header #1381'
zh-CN:
Expand Down
4 changes: 2 additions & 2 deletions src/components/inline-calendar/metas.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,11 +89,11 @@ props:
zh-CN: 禁止选择未来的日期,该选项可以end-date同时使用
slots:
each-day:
version: next
version: v2.3.5
en: you can custom how to display each day
zh-CN: 用以自定义每一天的显示渲染,使用该 slot 就不需要 render-function 了
changes:
next:
v2.3.5:
en:
- '[feature] Support slot:each-day'
zh-CN:
Expand Down
4 changes: 2 additions & 2 deletions src/components/radio/metas.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,11 +76,11 @@ props:
zh-CN: 可填写时的label文字
slots:
each-item:
version: next
version: v2.3.5
en: custom how to display each item
zh-CN: 自定义如何显示每一项
changes:
next:
v2.3.5:
en:
- '[feature] Support slot:each-item'
zh-CN:
Expand Down
4 changes: 2 additions & 2 deletions src/components/search/metas.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,15 +66,15 @@ slots:
en: slot on the right of input
zh-CN: 输入框右侧 slot
left:
version: next
version: v2.3.5
en: slot on the left of input
zh-CN: 输入框左侧 slot
methods:
setFocus:
en: "set focus on input. you should call this method in a click event's callback function on Safari"
zh-CN: 获取 input 焦点,在 Safari 上你必须在 click 事件回调里使用才能生效
changes:
next:
v2.3.5:
en:
- '[feature] Add slot:left'
zh-CN:
Expand Down
2 changes: 1 addition & 1 deletion src/components/swiper/metas.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ props:
en: index value, use `v-model` for binding
zh-CN: index 绑定,使用`v-model`,一般不需要绑定
changes:
next:
v2.3.5:
en:
- '[fix] Fix repeat render bug #1458'
zh-CN:
Expand Down
8 changes: 4 additions & 4 deletions src/components/tab/metas.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,18 +43,18 @@ tab:
en: 'set active bar width, like `50px`. or you can use function, param is `(currentInex)`'
zh-CN: '设置底部`bar`宽度,默认宽度是整体tab宽度平分,比如`50px`。使用函数时参数为当前索引`index`,你可以定义不同`tab-item`对应的`bar`宽度。'
badge-label:
version: next
version: v2.3.5
type: String
en: badge label
zh-CN: 徽标文字
badge-background:
version: next
version: v2.3.5
type: String
default: #f74c31
en: badge background color
zh-CN: 徽标背景颜色
badge-color:
version: next
version: v2.3.5
type: String
default: #fff
en: badge font color
Expand All @@ -74,7 +74,7 @@ tab-item:
en: emits when current tabItem is clicked
zh-CN: 当前 tabItem 被点击时触发
changes:
next:
v2.3.5:
en:
- '[feature] Support badge #1513'
zh-CN:
Expand Down
2 changes: 1 addition & 1 deletion src/components/x-button/metas.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ props:
en: button's type value, one of `submit`, `button`, `reset`
zh-CN: '`button`的type属性,默认为浏览器默认(submit),可选为 `submit` `button` `reset`'
link:
version: next
version: v2.3.5
en: 'vue-router path, `BACK` is alias to `go(-1)`'
zh-CN: 'vue-router 路由, 值为 `BACK` 等同于 `go(-1)`'
slots:
Expand Down

0 comments on commit 396b9dc

Please sign in to comment.