diff --git a/CHANGELOG.md b/CHANGELOG.md index 5693e666..86e6aa48 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,10 @@ # Change Log +## 0.6.13 +- [!] fixed[wxc-overlay](https://alibaba.github.io/weex-ui/#/cn/packages/wxc-dialog/)problem on[wxc-tab-bar](https://alibaba.github.io/weex-ui/#/cn/packages/wxc-tab-bar/) +- [+] add wxc-swipe-action +- [!] [!] Fix [wxc-button](https://alibaba.github.io/weex-ui/#/cn/packages/wxc-button/) displaying style problem, add isHighlight attribute to control whether button is highlighted or not. + ## 0.6.12 - [!] Fixed set transparency issues [wxc-lightbox](https://alibaba.github.io/weex-ui/#/cn/packages/wxc-lightbox/). - [!] Fixed set transparency issues [wxc-mask](https://alibaba.github.io/weex-ui/#/cn/packages/wxc-mask/). diff --git a/CHANGELOG_cn.md b/CHANGELOG_cn.md index 21e215b5..8bd747c9 100644 --- a/CHANGELOG_cn.md +++ b/CHANGELOG_cn.md @@ -1,5 +1,10 @@ # 升级日志 +## 0.6.13 +- [!] 修复[wxc-overlay](https://alibaba.github.io/weex-ui/#/cn/packages/wxc-dialog/)在[wxc-tab-bar](https://alibaba.github.io/weex-ui/#/cn/packages/wxc-tab-bar/)上使用问题 +- [+] 添加wxc-swipe-action侧滑组件 +- [!] 修复[wxc-button](https://alibaba.github.io/weex-ui/#/cn/packages/wxc-button/) 设置display样式问题,添加isHighlight属性控制button是否高亮显示 + ## 0.6.12 - [!] 修复 [wxc-lightbox](https://alibaba.github.io/weex-ui/#/cn/packages/wxc-lightbox/) 设置透明度问题 - [!] 修复 [wxc-mask](https://alibaba.github.io/weex-ui/#/cn/packages/wxc-mask/) 设置透明度问题 diff --git a/docs/_coverpage.md b/docs/_coverpage.md index 1ca30a8c..df08cd9c 100644 --- a/docs/_coverpage.md +++ b/docs/_coverpage.md @@ -1,6 +1,6 @@ -# Weex Ui 0.6.12 +# Weex Ui 0.6.13 > A rich interaction, lightweight, high performance UI library. diff --git a/docs/_sidebar.md b/docs/_sidebar.md index 18173b19..4dea1054 100644 --- a/docs/_sidebar.md +++ b/docs/_sidebar.md @@ -9,6 +9,7 @@ - [wxc-popup](packages/wxc-popup/) - [wxc-result](packages/wxc-result/) - [wxc-slide-nav](packages/wxc-slide-nav/) + - [wxc-swipe-action](packages/wxc-swipe-action/) - Navigator - [wxc-minibar](packages/wxc-minibar/) diff --git a/docs/_sidebar_cn.md b/docs/_sidebar_cn.md index f5688b5d..4d1ddec5 100644 --- a/docs/_sidebar_cn.md +++ b/docs/_sidebar_cn.md @@ -9,6 +9,8 @@ - [wxc-popup 弹层](cn/packages/wxc-popup/) - [wxc-result 结果页](cn/packages/wxc-result/) - [wxc-slide-nav 视窗增大](cn/packages/wxc-slide-nav/) + - [wxc-swipe-action 滑动操作 cell](cn/packages/wxc-swipe-action/) + - 导航 - [wxc-minibar 导航栏](cn/packages/wxc-minibar/) diff --git a/example/swipe-action/index.js b/example/swipe-action/index.js new file mode 100644 index 00000000..6191d836 --- /dev/null +++ b/example/swipe-action/index.js @@ -0,0 +1,4 @@ +import entry from './index.vue' + +entry.el = '#root' +export default new Vue(entry) diff --git a/example/swipe-action/index.vue b/example/swipe-action/index.vue new file mode 100644 index 00000000..4ffefd71 --- /dev/null +++ b/example/swipe-action/index.vue @@ -0,0 +1,86 @@ + + + + + + + + + + + + + + + diff --git a/index.js b/index.js index 72009a4c..09f7c7c2 100644 --- a/index.js +++ b/index.js @@ -40,6 +40,7 @@ import WxcSlideNav from './packages/wxc-slide-nav'; import WxcSliderBar from './packages/wxc-slider-bar'; import WxcSpecialRichText from './packages/wxc-special-rich-text'; import WxcStepper from './packages/wxc-stepper'; +import WxcSwipeAction from './packages/wxc-swipe-action'; import WxcTabBar from './packages/wxc-tab-bar'; import WxcTabPage from './packages/wxc-tab-page'; import WxcTag from './packages/wxc-tag'; @@ -82,6 +83,7 @@ export { WxcSliderBar, WxcSpecialRichText, WxcStepper, + WxcSwipeAction, WxcTabBar, WxcTabPage, WxcTag diff --git a/package.json b/package.json index 532b9809..1db4c8c3 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "weex-ui", - "version": "0.6.12", + "version": "0.6.13", "description": "A rich interaction, lightweight, high performance UI library based on Weex", "main": "index.js", "lib": "vue", diff --git a/packages/wxc-button/README.md b/packages/wxc-button/README.md index 00c92e87..7610c3f8 100644 --- a/packages/wxc-button/README.md +++ b/packages/wxc-button/README.md @@ -39,6 +39,7 @@ More details can be found in [here](https://github.com/alibaba/weex-ui/blob/mast | **`type`** | `String` | `N` | `red` | can be set to `white`/`red`/`yellow`/`blue`/`green` | | **`size`** | `String` | `N` | `full` | can be set to `full`/`big`/`medium`/`small` | | **`disabled`** | `Boolean` | `N` | `false` | set disabled(*1) | +| **`isHighlight`** | `Boolean` | `N` | `false` | Whether to highlight | | **`btnStyle`** | `Object` | `N` | `{}` | custom style about button(*2) | | **`textStyle`** | `Object` | `N` | `{}` | custom style about text (*3) | diff --git a/packages/wxc-button/README_cn.md b/packages/wxc-button/README_cn.md index 49835293..3b473e9d 100644 --- a/packages/wxc-button/README_cn.md +++ b/packages/wxc-button/README_cn.md @@ -38,6 +38,7 @@ | **`type`** | `String` | `N` | `red` | 类型:`white`/`red`/`yellow`/`blue`/`green` | | **`size`** | `String` | `N` | `full` | 类型:`full`/`big`/`medium`/`small` | | **`disabled`** | `Boolean` | `N` | `false` | 是否 disabled(注1) | +| **`isHighlight`** | `Boolean` | `N` | `false` | 是否高亮显示 | | **`btnStyle`** | `Object` | `N` | `{}` | 按钮的样式对象(注2) | | **`textStyle`** | `Object` | `N` | `{}` | 文字的样式对象(注3) | diff --git a/packages/wxc-button/index.vue b/packages/wxc-button/index.vue index b0150a60..f9cb1dbd 100644 --- a/packages/wxc-button/index.vue +++ b/packages/wxc-button/index.vue @@ -2,7 +2,7 @@ - - - + + {{title}} @@ -118,6 +118,7 @@ +``` + +### API +|Prop|Type|Required|Default|Description| +|-------------|------------|--------|-----|-----| +|data|Array|Y|[]|list| + +### Data API +|Prop|Description|Type|Default| +|-------------|------------|--------|-----| +|title|content|String|null| +|right|Right button group|Array|null| +|autoClose|Hide the button automatically after clicking the button|Boolean|false| + +### Button +|Prop|Type|Description| +|-------------|------------|--------| +|text|String|copywriting| +|style|Object|button style| +|onPress|():void|click| + +### Event + +``` +// click +`@onNodeClick='onTest'` +``` diff --git a/packages/wxc-swipe-action/README_cn.md b/packages/wxc-swipe-action/README_cn.md new file mode 100644 index 00000000..8b0019ef --- /dev/null +++ b/packages/wxc-swipe-action/README_cn.md @@ -0,0 +1,125 @@ +# wxc-swipe-action + +!> 这个富交互体验组件依赖于 [BindingX](https://alibaba.github.io/bindingx/) 特性,使用前请确定你的App [是否安装](https://github.com/alibaba/bindingx#installation) + +### 规则 +- 一次只可滑动一行列表 +- 点击右边按钮或点击列表可隐藏操作。 + +## [Demo] + + +## 使用方法 +```vue + + + + + + + +``` + +### 可配置参数 +|参数|类型|是否要引入|默认值|描述| +|-------------|------------|--------|-----|-----| +|data|Array|Y|[]|列表数据| + +### Data API +|属性|说明|类型|默认值| +|-------------|------------|--------|-----| +|title|标题|String|null| +|right|右侧按钮组|Array|null| +|autoClose|点击按钮后自动隐藏按钮|Boolean|false| + +### Button +|参数|类型|描述| +|-------------|------------|--------| +|text|String|文案| +|style|Object|按钮样式| +|onPress|():void|单击事件| + +### 事件回调 + +``` +// 单击列表 +`@onNodeClick='onTest'` +``` diff --git a/packages/wxc-swipe-action/index.js b/packages/wxc-swipe-action/index.js new file mode 100644 index 00000000..14bcbde6 --- /dev/null +++ b/packages/wxc-swipe-action/index.js @@ -0,0 +1 @@ +export { default } from './index.vue'; diff --git a/packages/wxc-swipe-action/index.vue b/packages/wxc-swipe-action/index.vue new file mode 100644 index 00000000..ea4a4deb --- /dev/null +++ b/packages/wxc-swipe-action/index.vue @@ -0,0 +1,174 @@ + + + + + + !isAndroid && onPanStart(e, item, i)" @horizontalpan="(e) => isAndroid && onPanStart(e, item, i)" @touchend="(e) => onPanEnd(e, item, i)"> + {{item.title}} + + {{child.text}} + + + + + + + + diff --git a/packages/wxc-swipe-action/package.json b/packages/wxc-swipe-action/package.json new file mode 100644 index 00000000..6e22ed1f --- /dev/null +++ b/packages/wxc-swipe-action/package.json @@ -0,0 +1,26 @@ +{ + "name": "wxc-simple-flow", + "version": "0.1.0", + "description": "Weex侧滑列表", + "main": "index.js", + "type": "weex", + "repository": "https://github.com/alibaba/weex-ui/tree/master/packages/wxc-simple-flow", + "keywords": [ + "Weex", + "Vue", + "WeexComponent", + "DataDisplay", + "SimpleFlow", + "WeexUi" + ], + "weex": { + "plugins": {}, + "market": { + "thumbnail": "https://img.alicdn.com/tfs/TB12jLwSpXXXXcVaXXXXXXXXXXX-750-1334.png" + } + }, + "author": "wjun94", + "license": "MIT", + "dependencies": { + } +}