How to use the nuxt-property-decorator.Provide function in nuxt-property-decorator

To help you get started, we’ve selected a few nuxt-property-decorator examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github phamhongphuc / uit.hotel / uit.hotel.client / components / special / horizontal-timeline / horizontal-timeline.vue View on Github external
return this.bookingObject.left;
    }

    get right() {
        return this.bookingObject.right;
    }

    get prices(): PriceItemRender[] {
        return this.bookingObject.priceItemsRender;
    }

    get priceVolatilities(): PriceItemRender[] {
        return this.bookingObject.priceVolatilityItemsRender;
    }

    @Provide()
    get min() {
        return getBounding(this.booking.baseNightCheckInTime, true);
    }

    @Provide()
    get max() {
        return getBounding(this.booking.baseDayCheckOutTime, false);
    }

    get days() {
        const { min, max } = this;

        return Array.from(
            { length: duration(max.diff(min)).asDays() },
            (v, index) =>
                min
github phamhongphuc / uit.hotel / uit.hotel.client / components / special / horizontal-timeline / horizontal-timeline.vue View on Github external
}

    get prices(): PriceItemRender[] {
        return this.bookingObject.priceItemsRender;
    }

    get priceVolatilities(): PriceItemRender[] {
        return this.bookingObject.priceVolatilityItemsRender;
    }

    @Provide()
    get min() {
        return getBounding(this.booking.baseNightCheckInTime, true);
    }

    @Provide()
    get max() {
        return getBounding(this.booking.baseDayCheckOutTime, false);
    }

    get days() {
        const { min, max } = this;

        return Array.from(
            { length: duration(max.diff(min)).asDays() },
            (v, index) =>
                min
                    .clone()
                    .add(index + 1, 'day')
                    .format('DD/MM'),
        );
    }