Skip to content

Commit e5d4846

Browse files
committed
Merge branch 'master' of https://github.com/Tencent/WeComponents
2 parents c90c8f4 + 050e165 commit e5d4846

File tree

2 files changed

+43
-42
lines changed

2 files changed

+43
-42
lines changed

README.md

Lines changed: 42 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<img src="logo.png" width="400" height="100" />
22

3-
WeComponents 是一个基于通用组件语言规范 (CLS) 实现的 Vue.js 声明式组件库,写完 JSON 就做好了页面,让开发变得简单。</p>
3+
WeComponents 是一个基于通用组件语言规范 (CLS) 实现的 Vue.js 声明式组件库,写完 JSON 就做好了页面,让开发更简单。</p>
44

55
[![License](https://img.shields.io/npm/l/%40weadmin%2Fwecomponents)](https://github.com/Tencent/WeComponents/blob/master/LICENSE) [![Build Status](https://travis-ci.org/Tencent/WeComponents.svg?branch=master)](https://travis-ci.org/Tencent/WeComponents) [![Coverage Status](https://coveralls.io/repos/github/Tencent/WeComponents/badge.svg?branch=master)](https://coveralls.io/github/Tencent/WeComponents?branch=master) [![Npm Version](https://img.shields.io/npm/v/@weadmin/wecomponents)](https://www.npmjs.com/package/@weadmin/wecomponents)
66

@@ -66,64 +66,65 @@ export default {
6666
```javascript
6767
[
6868
{
69-
component: 'container',
70-
items: [
69+
"component": "container",
70+
"items": [
7171
{
72-
component: 'form',
73-
attributes: { layout: 'row' },
74-
items: [
72+
"component": "form",
73+
"attributes": { "layout": "row" },
74+
"items": [
7575
{
76-
name: 'search',
77-
label: '搜索',
78-
component: 'input',
79-
attributes: { placeholder: '输入游戏名称进行搜索' }
76+
"name": "search",
77+
"label": "搜索",
78+
"component": "input",
79+
"attributes": { "placeholder": "输入游戏名称进行搜索" }
8080
},
8181
{
82-
label: '查询',
83-
component: 'submit',
84-
attributes: { type: 'primary' },
85-
events: { submitEventName: 'searchTable' }
82+
"label": "查询",
83+
"component": "submit",
84+
"attributes": { "type": "primary" },
85+
// @todo event handle function name in Vue methods
86+
"events": { "submitEventName": "searchTable" }
8687
}
8788
]
8889
},
8990
{
90-
id: 'list',
91-
component: 'table',
92-
attributes: { placeholder: '暂无数据', pagination: 'default' },
93-
items: [
91+
"id": "list",
92+
"component": "table",
93+
"attributes": { "placeholder": "暂无数据", "pagination": "default" },
94+
"items": [
9495
{
95-
name: "icon",
96-
label: "游戏图标",
97-
attributes: { width: 60, textAlign: "center" },
98-
// value filter function name in Vue methods
99-
valueFilterName: 'iconFilter'
96+
"name": "icon",
97+
"label": "游戏图标",
98+
"attributes": { "width": 60, "textAlign": "center" },
99+
// @todo value filter function name in Vue methods
100+
"valueFilterName": "iconFilter"
100101
},
101-
{ name: "name", label: "游戏名称" },
102+
{ "name": "name", "label": "游戏名称" },
102103
{
103-
name: "size",
104-
label: "大小",
105-
attributes: { textAlign: "right" },
106-
valueFilterName: 'sizeFilter'
104+
"name": "size",
105+
"label": "大小",
106+
"attributes": { "textAlign": "right" },
107+
"valueFilterName": "sizeFilter"
107108
},
108-
{ name: "intro", label: "简介" },
109+
{ "name": "intro", "label": "简介" },
109110
{
110-
label: "操作",
111-
name: 'option',
112-
valueFilterName: 'optionFilter'
111+
"label": "操作",
112+
"name": "option",
113+
"valueFilterName": "optionFilter"
113114
}
114115
],
115-
value: [
116+
"value": [
116117
{
117-
icon: 'http://mmocgame.qpic.cn/wechatgame/HurH4elIxzLGX0FjtUic0kcQtloVbicTO6LVjWicWYwrIvUBSsve2KWz40jS2MFM5Zu/0',
118-
name: '王者荣耀',
119-
size: 3675556864,
120-
intro: '爽快超神,腾讯5v5英雄公平对战手游'
118+
"icon": "http://mmocgame.qpic.cn/wechatgame/HurH4elIxzLGX0FjtUic0kcQtloVbicTO6LVjWicWYwrIvUBSsve2KWz40jS2MFM5Zu/0",
119+
"name": "王者荣耀",
120+
"size": 3675556864,
121+
"intro": "爽快超神,腾讯5v5英雄公平对战手游"
121122
},
122123
{
123-
icon: 'https://mmocgame.qpic.cn/wechatgame/duc2TvpEgSTLicunKH0MgcMLa8jicfvBvEXiaNAIReHzQJxhsibvgbVpIKtibgV8UcMEO/0',
124-
name: '和平精英',
125-
size: 3898905600,
126-
intro: '大吉大利,腾讯光子自研军事竞赛体验'
124+
"icon": "https://mmocgame.qpic.cn/wechatgame/duc2TvpEgSTLicunKH0MgcMLa8jicfvBvEXiaNAIReHzQJxhsibvgbVpIKtibgV8UcMEO/0",
125+
"name": "和平精英",
126+
"size": 3898905600,
127+
"intro": "大吉大利,腾讯光子自研军事竞赛体验"
127128
}
128129
]
129130
}

docs/App.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ export default {
138138
return {
139139
JS_DEV,
140140
name: '组件库',
141-
version: '2.0.8',
141+
version: '2.0.13',
142142
username: 'weadmin',
143143
currentQuery: {},
144144
currentRouter: {},

0 commit comments

Comments
 (0)