123456789101112131415161718192021222324252627282930313233343536373839404142 |
- export default {
- props: {
- activePattern: {
- type: Number,
- default: 0
- },
- patternType: {
- type: Number,
- default: -9999
- },
- statusBarHeight: {
- type: Number,
- default: 0
- }
- },
- data() {
- return {
- initialEntry: true,
- };
- },
- methods: {
- },
- watch: {
- activePattern: {
- handler: function(newType, oldType) {
- if (this.patternType && this.patternType === newType && this.initialEntry) {
- this.initialEntry = false;
- setTimeout(() => {
- this.init()
- }, 100)
- }
- },
- immediate: true
- }
- }
- }
|