xzs-mysql/source/wx/xzs-student/component/iView/page/index.js

43 lines
804 B
Java
Raw Normal View History

2020-09-02 08:44:41 +08:00
Component({
externalClasses: ['i-class'],
options: {
multipleSlots: true
},
properties: {
// button || number || pointer
mode: {
type: String,
value: 'button'
},
current: {
type: Number,
value: 1
},
total: {
type: Number,
value: 0
},
// 是否隐藏数值
simple: {
type: Boolean,
value: false
}
},
methods: {
handleChange (type) {
this.triggerEvent('change', {
type: type
});
},
handlePrev () {
this.handleChange('prev');
},
handleNext () {
this.handleChange('next');
}
}
});