zan-choose-dialog
Advanced tools
Comparing version 4.1.5 to 4.1.6-beta
@@ -8,2 +8,6 @@ 'use strict'; | ||
var _react = require('react'); | ||
var _react2 = _interopRequireDefault(_react); | ||
var _compatible = require('../compatible'); | ||
@@ -17,3 +21,2 @@ | ||
// 优惠券 | ||
function getConfig(config) { | ||
@@ -26,7 +29,14 @@ return { | ||
name: 'name', | ||
width: '70%' | ||
width: '50%' | ||
}, { | ||
title: '面值', | ||
name: 'value', | ||
width: '10%' | ||
title: '价值', | ||
bodyRender: function bodyRender(data) { | ||
return data.preferential_type === 2 ? data.discount / 10 + '\u6298' : _react2['default'].createElement( | ||
'div', | ||
null, | ||
data.value, | ||
'\u5143', | ||
!!data.value_random_to && ' ~ ' + data.value_random_to + '\u5143' | ||
); | ||
} | ||
}, { | ||
@@ -41,2 +51,3 @@ title: '使用条件', | ||
p: data.page, | ||
source: 'feature', | ||
v: 2, | ||
@@ -75,3 +86,3 @@ keyword: data.search, | ||
}; | ||
} | ||
} // 优惠券 | ||
module.exports = exports['default']; |
{ | ||
"name": "zan-choose-dialog", | ||
"version": "4.1.5", | ||
"version": "4.1.6-beta", | ||
"description": "这是一个React组件", | ||
@@ -5,0 +5,0 @@ "main": "./lib/index.js", |
@@ -82,6 +82,6 @@ ## zan-choose-dialog | ||
return ( | ||
<ChooseMenu | ||
value={this.state.value} | ||
onChoose={this.onMenuChoose} | ||
config={global} | ||
<ChooseMenu | ||
value={this.state.value || {}} | ||
onChoose={this.onMenuChoose} | ||
config={global} | ||
/> | ||
@@ -221,1 +221,6 @@ ); | ||
* 增加了小程序微页面弹窗 | ||
#### 4.1.6-beta (2017-10-19) | ||
* 增加了拼团,门店弹窗 | ||
* 优惠券弹窗列表接口增加source: 'feature'参数;价值展示规则修改 |
// 优惠券 | ||
import React from 'react'; | ||
import { | ||
@@ -16,8 +17,16 @@ extractCurrentPageFromHtml, | ||
name: 'name', | ||
width: '70%' | ||
width: '50%' | ||
}, | ||
{ | ||
title: '面值', | ||
name: 'value', | ||
width: '10%' | ||
title: '价值', | ||
bodyRender(data) { | ||
return data.preferential_type === 2 ? ( | ||
`${data.discount / 10}折` | ||
) : ( | ||
<div> | ||
{data.value}元 | ||
{!!data.value_random_to && ` ~ ${data.value_random_to}元`} | ||
</div> | ||
); | ||
} | ||
}, | ||
@@ -34,2 +43,3 @@ { | ||
p: data.page, | ||
source: 'feature', | ||
v: 2, | ||
@@ -36,0 +46,0 @@ keyword: data.search, |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1095384
113
31795
225
2