How to use okam-api-h5 - 5 common examples

To help you get started, we’ve selected a few okam-api-h5 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 ecomfe / okam / packages / okam-component-h5 / src / Navigator.vue View on Github external
case 'navigate':
                    router.navigateTo({url: this.url});
                    break;
                case 'redirect':
                    router.redirectTo({url: this.url});
                    break;
                case 'switchTab':
                    router.switchTab({url: this.url});
                    break;
                // case 'reLaunch':
                //     break;
                case 'navigateBack':
                    let delta = this.delta;
                    let opts;
                    delta && (opts = {delta});
                    router.navigateBack(opts);
                    break;
                default:
                    break;
            }

            this.$emit('click', e);
        }
    }
github ecomfe / okam / packages / okam-component-h5 / src / Navigator.vue View on Github external
onClick(e) {
            switch (this.openType) {
                case 'navigate':
                    router.navigateTo({url: this.url});
                    break;
                case 'redirect':
                    router.redirectTo({url: this.url});
                    break;
                case 'switchTab':
                    router.switchTab({url: this.url});
                    break;
                // case 'reLaunch':
                //     break;
                case 'navigateBack':
                    let delta = this.delta;
                    let opts;
                    delta && (opts = {delta});
                    router.navigateBack(opts);
                    break;
                default:
                    break;
            }

            this.$emit('click', e);
        }
    }
github ecomfe / okam / packages / okam-component-h5 / src / Navigator.vue View on Github external
onClick(e) {
            switch (this.openType) {
                case 'navigate':
                    router.navigateTo({url: this.url});
                    break;
                case 'redirect':
                    router.redirectTo({url: this.url});
                    break;
                case 'switchTab':
                    router.switchTab({url: this.url});
                    break;
                // case 'reLaunch':
                //     break;
                case 'navigateBack':
                    let delta = this.delta;
                    let opts;
                    delta && (opts = {delta});
                    router.navigateBack(opts);
                    break;
                default:
github ecomfe / okam / packages / okam-component-h5 / src / Navigator.vue View on Github external
onClick(e) {
            switch (this.openType) {
                case 'navigate':
                    router.navigateTo({url: this.url});
                    break;
                case 'redirect':
                    router.redirectTo({url: this.url});
                    break;
                case 'switchTab':
                    router.switchTab({url: this.url});
                    break;
                // case 'reLaunch':
                //     break;
                case 'navigateBack':
                    let delta = this.delta;
                    let opts;
                    delta && (opts = {delta});
                    router.navigateBack(opts);
                    break;
                default:
                    break;
            }
github ecomfe / okam / packages / okam-component-h5 / src / Navigator.vue View on Github external
mounted() {
        router._initRouterInstance(this.$router);
    },

okam-api-h5

The mini program API implementation in H5

MIT
Latest version published 4 years ago

Package Health Score

52 / 100
Full package analysis