zoukankan      html  css  js  c++  java
  • 这几天搭建出现的问题

    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

  • 相关阅读:
    https://www.cnblogs.com/marost/p/4668664.html
    UEFI 坑 Ubuntu
    Spring《六》管理Bean
    Spring《五》集合的注入方式
    Spring《四-一》解决自动装配的问题
    spring《四》自动装配
    Spring《三》ref 引用其他bean
    Spring《二》 Bean的生命周期
    Spring《一》
    Fragment间相互调用并传值
  • 原文地址:https://www.cnblogs.com/rabbit-lin0903/p/14423528.html
Copyright © 2011-2022 走看看