<style lang="sass">
.test-sdk{
    padding: 20px;
    .test-input{
        line-height: 42px;
        border: 1px solid #f2f2f2;
        padding: 0 15px;
        margin-right: 15px;
    }
    .mint-button + .mint-button{
        margin-top: 20px;
    }
}
</style>

<template>
    <div class="test-sdk">
        <mt-button type="default" size="large" @click="checkHostApp">测试HostApp注入情况</mt-button>
        <mt-button type="default" size="large" @click="setTitle">setTitle</mt-button>
        <mt-button type="default" size="large" @click="showLoading">showLoading</mt-button>
        <mt-button type="default" size="large" @click="showTip">showTip</mt-button>
        <mt-button type="default" size="large" @click="confirm">confirm</mt-button>
        <mt-button type="default" size="large" @click="openUrl">openUrl</mt-button>
        <mt-button type="default" size="large" @click="closeWebview">closeWebview</mt-button>
        <mt-cell style="margin-top:20px">
            <div><input class="test-input" v-model="testProtocol" type="text" placeholder="请输入跳转协议地址"></div>
            <mt-button type="default" size="normal" @click="checkProtocol">测试跳转协议</mt-button>
        </mt-cell>
    </div>
</template>

<script>
import sdk from './js/sdk.js'
export default sdk
</script>
