123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657 |
- Component({
- properties: {
-
- type: {
- type: String,
- value: 'primary'
- },
-
- shadow: {
- type: Boolean,
- value: false
- },
-
- width: {
- type: String,
- value: '100%'
- },
-
- height: {
- type: String,
- value: '94rpx'
- },
-
- size: {
- type: Number,
- value: 32
- },
-
- shape: {
- type: String,
- value: 'square'
- },
- plain: {
- type: Boolean,
- value: false
- },
- disabled: {
- type: Boolean,
- value: false
- },
- loading: {
- type: Boolean,
- value: false
- }
- },
- data: {
- },
- methods: {
- handleClick() {
- if (this.data.disabled) {
- return false;
- }
- this.triggerEvent('click', {})
- }
- }
- })
|