<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>

                企業??AI智能體構建引擎,智能編排和調試,一鍵部署,支持知識庫和私有化部署方案 廣告
                官網:[LottileFiles](https://lottiefiles.com/ "LottileFiles"),需要注冊登錄 安裝:`npm install --save vue-lottie` 如果需要重復使用,推薦寫成組件,不需要重復使用的話,可以通過cdn引入,直接使用 **1.cdn引入的方式:在官網直接復制html** ``` <script src="https://unpkg.com/@lottiefiles/lottie-player@latest/dist/lottie-player.js"></script> <lottie-player src="https://assets1.lottiefiles.com/packages/lf20_JioBzM286M.json" background="transparent" speed="1" style="width: 300px; height: 300px;" loop autoplay> </lottie-player> ``` **2.在vue中組件的形式:** ``` //動畫組件 <template> <div> <!-- lottie動畫組件 --> <lottie :options="options" :height="height" :width="width" @animCreated="handleAnimation" /> </div> </template> <script> import lottie from "vue-lottie";//引入組件 export default { components : {lottie}, props: { // 寬 width : { type : Number, default : 200, }, // 高 height : { type : Number, default : 200, }, // 配置屬性 options : { type : Object, default : ()=>{ return {} } } }, data() { return { anim : null, }; }, created() {}, methods: { // 方法:速度、暫停、開始等 handleAnimation(anim){ this.anim = anim; } }, }; </script> ``` ``` //引入使用自定義的組件 //動畫json需求去官網下載成json格式的文件 <span style="display: inline-block"> <lottieAnim :options="defaultOptions" :height="200" :width="200" /> </span> <script> import lottieAnim from "@/components/lottie/index";//引入組件 import * as lottieJson from "../assets/lottieJson/129188-planning-poker-pup.json"; //lottie動畫json data() { return { //lottie配置 defaultOptions: { animationData: lottieJson.default /*文件資源*/, }, } } </script> ``` ![](https://img.kancloud.cn/c8/17/c8176c476a639620ca176ee7218872cf_1690x378.png)
                  <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>

                              哎呀哎呀视频在线观看