<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                # Loading ## Usage ```vue <template> <div class="p-5" ref="wrapEl" v-loading="loadingRef" loading-tip="加載中..."> <a-button class="my-4 mr-4" type="primary" @click="openCompFullLoading">全屏 Loading</a-button> <a-button class="my-4" type="primary" @click="openCompAbsolute">容器內 Loading</a-button> <Loading :loading="loading" :absolute="absolute" :tip="tip" /> </div> </template> <script lang="ts"> import { defineComponent, reactive, toRefs, ref } from 'vue'; import { Loading } from '/@/components/Loading'; export default defineComponent({ components: { Loading }, setup() { const compState = reactive({ absolute: false, loading: false, tip: '加載中...', }); function openLoading(absolute: boolean) { compState.absolute = absolute; compState.loading = true; setTimeout(() => { compState.loading = false; }, 2000); } function openCompFullLoading() { openLoading(false); } function openCompAbsolute() { openLoading(true); } return { openCompFullLoading, openCompAbsolute, ...toRefs(compState), }; }, }); </script> ``` ### Props | 屬性 | 類型 | 默認值 | 可選值 | 說明 | | --- | --- | --- | --- | --- | | tip | `string` | - | - | 加載文本 | | size | `default, small , large` | `default` | - | 大小 | | absolute | `boolean` | false | - | 絕對定位,為 `false` 時可以全屏 | | loading | `boolean` | - | - | 當前加載狀態 | | background | `string` | - | - | 背景色 | | theme | `'dark' or 'light'` | `light` | - | 背景色主題,當背景色不為空時使用背景色 |
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看