publish(@omiu/bottom-nav)
This commit is contained in:
parent
c2c46fb95a
commit
5aa878a1e3
|
@ -42,5 +42,5 @@ Or use script tag to ref it.
|
|||
```
|
||||
### Events
|
||||
|
||||
* itemClick
|
||||
* item-click
|
||||
* change
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@omiu/bottom-nav",
|
||||
"version": "0.0.1",
|
||||
"version": "0.0.2",
|
||||
"description": "Mobile bottom navigation",
|
||||
"docsExtend": {
|
||||
"cnName": "底部导航",
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/**
|
||||
* @omiu/bottom-nav v0.0.1 http://omijs.org
|
||||
* @omiu/bottom-nav v0.0.2 http://omijs.org
|
||||
* Front End Cross-Frameworks Framework.
|
||||
* By dntzhang https://github.com/dntzhang
|
||||
* Github: https://github.com/Tencent/omi
|
||||
|
@ -106,7 +106,7 @@ var BottomNav = /** @class */ (function (_super) {
|
|||
function BottomNav() {
|
||||
var _this = _super !== null && _super.apply(this, arguments) || this;
|
||||
_this.clickHandler = function (item) {
|
||||
_this.fire('itemClick', item);
|
||||
_this.fire('item-click', item);
|
||||
if (!item.selected) {
|
||||
_this.props.items.forEach(function (_) { return _.selected = false; });
|
||||
item.selected = true;
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -268,7 +268,7 @@ var BottomNav = /** @class */ (function (_super) {
|
|||
function BottomNav() {
|
||||
var _this = _super !== null && _super.apply(this, arguments) || this;
|
||||
_this.clickHandler = function (item) {
|
||||
_this.fire('itemClick', item);
|
||||
_this.fire('item-click', item);
|
||||
if (!item.selected) {
|
||||
_this.props.items.forEach(function (_) { return _.selected = false; });
|
||||
item.selected = true;
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -21,7 +21,7 @@ export default class BottomNav extends WeElement<Props>{
|
|||
}
|
||||
|
||||
clickHandler = (item) => {
|
||||
this.fire('itemClick', item)
|
||||
this.fire('item-click', item)
|
||||
if (!item.selected) {
|
||||
this.props.items.forEach(_ => _.selected = false)
|
||||
item.selected = true
|
||||
|
|
|
@ -45,5 +45,5 @@ Or use script tag to ref it.
|
|||
```
|
||||
### Events
|
||||
|
||||
* itemClick
|
||||
* item-click
|
||||
* change
|
||||
|
|
|
@ -23,7 +23,7 @@ import '@omiu/bottom-nav'
|
|||
## 使用
|
||||
|
||||
```html
|
||||
<o-bottom-nav> </o-bottom-nav>
|
||||
<o-bottom-nav></o-bottom-nav>
|
||||
```
|
||||
|
||||
|
||||
|
@ -44,5 +44,5 @@ import '@omiu/bottom-nav'
|
|||
}
|
||||
```
|
||||
### 事件
|
||||
* itemClick
|
||||
* item-click
|
||||
* change
|
||||
|
|
Loading…
Reference in New Issue