Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/algesthesiah/ane-element-ui
Convenient methods on element and vue
https://github.com/algesthesiah/ane-element-ui
element-ui vue
Last synced: about 1 month ago
JSON representation
Convenient methods on element and vue
- Host: GitHub
- URL: https://github.com/algesthesiah/ane-element-ui
- Owner: algesthesiah
- Created: 2019-09-19T07:07:14.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-11-20T03:34:53.000Z (about 5 years ago)
- Last Synced: 2024-11-07T12:37:39.977Z (about 2 months ago)
- Topics: element-ui, vue
- Language: JavaScript
- Size: 188 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# element-ui 一些便捷操作
## 需要在vue 和 element-ui 之后引入
``` javascript
import 'ane-element-ui'
```## 便捷弹窗
### 用法
``` javascript
this.$msg({
title: '确认重启',
msg: `你确认要重启服务${name}吗?`,
callBack: () => this.postStackRollback({
teamId,
envId,
stackName,
params: {
stack_ns, name, wise2cServiceType
}
}),
}).then(() => this.reGetStacks(team_id, envId))```
### 效果
![效果](./img/msg.png)