Skip to content

Commit

Permalink
chore(Loading): add loadingPlugin to plugins file
Browse files Browse the repository at this point in the history
  • Loading branch information
anlyyao committed Jun 11, 2024
1 parent 21cf12d commit 25bb29c
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/loading/demos/attach.vue
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
</template>
<script setup lang="ts">
import { ref } from 'vue';
import TSwitch from '../../switch';
import TSwitch from 'tdesign-mobile-vue/switch';
const loading = ref(false);
</script>
Expand Down
2 changes: 1 addition & 1 deletion src/loading/demos/fullscreen.vue
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
</template>
<script setup lang="ts">
import { ref, watch } from 'vue';
import TSwitch from '../../switch';
import TSwitch from 'tdesign-mobile-vue/switch';
const loading = ref(false);
Expand Down
5 changes: 3 additions & 2 deletions src/loading/demos/mobile.vue
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@
<tdesign-demo-block title="03 加载速度" summary="加载速度调整">
<speed />
</tdesign-demo-block>
<tdesign-demo-block title="04 全屏加载" summary="全屏展示加载状态,阻止用户操作。">
<!-- 视觉稿待定,暂时注释 -->
<!-- <tdesign-demo-block title="04 全屏加载" summary="全屏展示加载状态,阻止用户操作。">
<fullscreen />
</tdesign-demo-block>
<tdesign-demo-block
Expand All @@ -39,7 +40,7 @@
</tdesign-demo-block>
<tdesign-demo-block title="06 函数方式调用">
<service />
</tdesign-demo-block>
</tdesign-demo-block> -->
</div>
</template>

Expand Down
4 changes: 2 additions & 2 deletions src/loading/demos/service.vue
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@

<script setup lang="ts">
import { ref } from 'vue';
import { LoadingPlugin } from '../plugin';
import TButton from '../../button';
import { LoadingPlugin } from 'tdesign-mobile-vue';
import TButton from 'tdesign-mobile-vue/button';
const content = ref(null);
const attachLoading = ref(false);
Expand Down
3 changes: 3 additions & 0 deletions src/loading/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ import { TdLoadingProps } from './type';
import './style';

export * from './type';
export * from './plugin';
export { default as LoadingPlugin } from './plugin';

export type LoadingProps = TdLoadingProps;

const _Loading: WithInstallType<typeof Loading> = withInstall(Loading);
Expand Down
1 change: 1 addition & 0 deletions src/plugins.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ export { DialogPlugin } from './dialog';
export { MessagePlugin } from './message';
export { ToastPlugin } from './toast';
export { DrawerPlugin } from './drawer';
export { LoadingPlugin } from './loading';

0 comments on commit 25bb29c

Please sign in to comment.