1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283 |
- Component({
- properties: {
-
- current: {
- type: Number,
- value: 0
- },
-
- color: {
- type: String,
- value: "#666"
- },
-
- selectedColor: {
- type: String,
- value: "#5677FC"
- },
-
- backgroundColor: {
- type: String,
- value: "#FFFFFF"
- },
-
- hump: {
- type: Boolean,
- value: false
- },
-
- isFixed: {
- type: Boolean,
- value: true
- },
-
-
-
-
-
-
-
-
-
- tabBar: {
- type: Array,
- value: []
- },
-
- badgeColor: {
- type: String,
- value: "#fff"
- },
-
- badgeBgColor: {
- type: String,
- value: "#F74D54"
- },
- unlined: {
- type: Boolean,
- value: false
- }
- },
- data: {
- },
- methods: {
- tabbarSwitch(e) {
- let index = Number(e.currentTarget.dataset.index);
- let hump = false;
- let pagePath = "";
- let verify = false
- if (this.data.tabBar.length > 0) {
- hump = this.data.tabBar[index].hump;
- pagePath = this.data.tabBar[index].pagePath;
- verify = this.data.tabBar[index].verify;
- }
- this.triggerEvent("click", {
- index: index,
- hump: hump,
- pagePath: pagePath,
- verify: verify
- })
- }
- }
- })
|