1.0.23 • Published 3 months ago
we-vue-element v1.0.23
we-vue-element
Description
Expansion based on vue-element
Installation
npm install we-vue-element
Show demo
git clone https://gitee.com/sulir/we-vue-element.git
npm install
npm serve
open http://localhost:8080/
Basic Usage
- grid(table)
<we-grid ref="weGrid"
:items="items: [
{ key: 'orderId' },
{ key: 'paymentId' },
{ key: 'amount' },
{ key: 'userName' },
{ key: 'phone' },
{ key: 'subject' },
{ key: 'createAt', filter: 'time' },
{ width: '120px', key: 'paymentClass',
filter: 'enums',
enums: [ { value: 1, name: 'qrCode' },
{ value: 2, name: 'transfer' },
{ value: 3, name: 'recharge' },
{ value: 4, name: 'cashout' }
]
},
{ width: '80px', key: 'status', display: 'Status', filter: 'enums',
enums: paymentStatus: [
{ value: 0, name: 'fail' },
{ value: 1, name: 'success' }
]
}
]"
:operationButtons="[{
icon: 'el-icon-edit',
title: '编辑',
handle: (index, row) => {
alert(`index:${ index }`);
alert(`row:${ JSON.stringify(row) }`);
}
}
]"
:query="{ orderId: '1209950692047876096'}"
grid-url="grid1"
@change="()=>{console.log('change event.')}"
@onBeforeSearch="()=>{console.log('before search event.')}"
>
<template slot="status" slot-scope="scope">
<table-status-icon :colorEnum="{ 1: 'approved', 2: 'rejected' }"
:status="scope.row.status && scope.row.status"
:statusEnum="{ 1: 'enable', 2: 'disable' }" />
</template>
</we-grid>
Contribution
- Fork the repository
- Create Feat_xxx branch
- Commit your code
- Create Pull Request
1.0.23
3 months ago
1.0.22
3 months ago
1.0.19
1 year ago
1.0.18
1 year ago
1.0.17
1 year ago
1.0.16
1 year ago
1.0.21
1 year ago
1.0.20
1 year ago
1.0.15
1 year ago
1.0.14
1 year ago
1.0.13
1 year ago
1.0.12
1 year ago
1.0.11
1 year ago
1.0.10
1 year ago
1.0.9
2 years ago
1.0.8
2 years ago
1.0.7
2 years ago
1.0.6
2 years ago
1.0.5
2 years ago
1.0.4
2 years ago
1.0.2
2 years ago
1.0.3
2 years ago
1.0.1-all-2
2 years ago
1.0.1-all-1
2 years ago
1.0.1-develop-1
2 years ago
1.0.1-editor-1
2 years ago
1.0.1-readme-1
2 years ago
1.0.1
2 years ago
1.0.0-dev-1
3 years ago
1.0.0-dev
3 years ago
1.0.0
3 years ago