這幾天搭建出現的問題


1. 報錯slot

slot` attributes are deprecated. 

改成了

<el-dropdown-menu>
              <slot name="dropdown">
              <el-dropdown-item>我的消息</el-dropdown-item>
              <el-dropdown-item>設置</el-dropdown-item>
              <el-dropdown-item divided @click="logout"
                >退出登錄</el-dropdown-item
              >
              </slot>
            </el-dropdown-menu>

el-table 中使用slot

<el-table-column
          label="數量"
          prop="maisuu"
          width="90px"
          sortable
          header-align="center"
          align="right"
        >
          <template v-slot="{row}">
            <span>{{
              (row.maisuu || 0)
                .toString()
                .replace(/(\d)(?=(?:\d{3})+$)/g, "$1,")
            }}</span>
          </template>
        </el-table-column>

 

 

2、ts 引入 js文件報錯

https://blog.csdn.net/a1059526327/article/details/110387567

 

3. vue3.0 不在支持native

https://blog.csdn.net/qq_33891000/article/details/111678309

 

4.eslint  prettieer 錯誤

https://skysys.blog.csdn.net/article/details/107464430

 

5、vue 3.0 掛載全局的方法

 

https://my.oschina.net/parchments/blog/4511734

const app = createApp(App)
// 全局掛載
app.config.globalProperties.$api = api
console.log(app.config)
app
  .use(store)
  .use(router)
  .use(ElementPlus)
  .use(api)
  .mount("#app");

 6、

https://my.oschina.net/parchments/blog/4511734

 

7、

https://zhuanlan.zhihu.com/p/68477600


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM