传统html页面使用 vue-content-loader 组件

陆光济
2023-12-01
<div id="testapp">
<template>
  <div>
    <list-loader></list-loader>
  </div>
</template>
</div>

<script src="https://cdn.jsdelivr.net/npm/vue-content-loader@0.2.3/dist/vue-content-loader.js"></script>
<script>
    var ContentLoader = contentLoaders.ContentLoader;
    var ListLoader = contentLoaders.ListLoader;
    var testapp = new Vue({
        el: '#testapp',
        data: function() {
            return {
            }
        },
        components: {
            ContentLoader,
            ListLoader,
        }
    });
</script>
 类似资料: