publish(@omiu/action-sheet)

This commit is contained in:
dntzhang 2020-05-01 20:03:36 +08:00
parent f070afbedf
commit 0c54bde88f
9 changed files with 13 additions and 13 deletions

View File

@ -48,5 +48,5 @@ Or use script tag to ref it.
```
### Events
* ItemClick
* item-click
* close

View File

@ -1,6 +1,6 @@
{
"name": "@omiu/action-sheet",
"version": "0.0.3",
"version": "0.0.4",
"description": "Mobile pop-up options list",
"docsExtend": {
"cnName": "弹出式菜单",

View File

@ -1,5 +1,5 @@
/**
* @omiu/action-sheet v0.0.3 http://omijs.org
* @omiu/action-sheet v0.0.4 http://omijs.org
* Front End Cross-Frameworks Framework.
* By dntzhang https://github.com/dntzhang
* Github: https://github.com/Tencent/omi
@ -245,7 +245,7 @@ var ActionSheet = /** @class */ (function (_super) {
_a));
return (h("div", __assign({ key: idx, onClick: function (_) {
_this.hide();
_this.fire('ItemClick', menu);
_this.fire('item-click', menu);
} }, others, { class: cls }), label));
});
};
@ -271,7 +271,7 @@ var ActionSheet = /** @class */ (function (_super) {
_a));
return (h("div", __assign({ key: idx }, others, { onClick: function (_) {
_this.hide();
_this.fire('ItemClick', action);
_this.fire('item-click', action);
}, className: cls }), label));
});
};

File diff suppressed because one or more lines are too long

View File

@ -296,7 +296,7 @@ var ActionSheet = /** @class */ (function (_super) {
_a));
return (omi_1.h("div", __assign({ key: idx, onClick: function (_) {
_this.hide();
_this.fire('ItemClick', menu);
_this.fire('item-click', menu);
} }, others, { class: cls }), label));
});
};
@ -322,7 +322,7 @@ var ActionSheet = /** @class */ (function (_super) {
_a));
return (omi_1.h("div", __assign({ key: idx }, others, { onClick: function (_) {
_this.hide();
_this.fire('ItemClick', action);
_this.fire('item-click', action);
}, className: cls }), label));
});
};

File diff suppressed because one or more lines are too long

View File

@ -40,7 +40,7 @@ export default class ActionSheet extends WeElement<Props> {
return (
<div key={idx} onClick={_ => {
this.hide()
this.fire('ItemClick', menu)
this.fire('item-click', menu)
}} {...others} class={cls}>
{label}
</div>
@ -71,7 +71,7 @@ export default class ActionSheet extends WeElement<Props> {
return (
<div key={idx} {...others} onClick={_ => {
this.hide()
this.fire('ItemClick', action)
this.fire('item-click', action)
}} className={cls}>
{label}
</div>

View File

@ -51,5 +51,5 @@ Or use script tag to ref it.
```
### Events
* ItemClick
* item-click
* close

View File

@ -50,5 +50,5 @@ import '@omiu/action-sheet'
}
```
### 事件
* ItemClick
* item-click
* close