1234567891011121314151617181920212223242526272829303132333435363738 |
- // pages/mine/components/userorder/index.ts
- Component({
- options: {
- multipleSlots: true,
- addGlobalClass: true,
- },
- properties: {
- options: {
- type: Array,
- value: [],
- },
- title: {
- type: String,
- value: '我的订单',
- },
- desc: {
- type: String,
- value: '全部订单',
- },
- isTop: {
- type: Boolean,
- value: true,
- },
- classPrefix: {
- type: String,
- value: 'wr',
- },
- },
- methods: {
- onClickItem(e: any) {
- this.triggerEvent('onClickItem', e.currentTarget.dataset.item)
- },
- onClickTop() {
- this.triggerEvent('onClickTop', {})
- },
- },
- })
|