Code Monkey home page Code Monkey logo

Comments (10)

riophae avatar riophae commented on May 22, 2024

你好,看上去像是样式问题?可以提供更多信息吗,比如搭配了什么前端框架?

from vue-treeselect.

Sarch-X avatar Sarch-X commented on May 22, 2024

你好,前端框架用的是bootstrap,是放在模态框里使用的,我检查下了页面元素,发现我的页面上
treeselect_label-wrapper内 没有label的内容,而官网上的例子则有
image

from vue-treeselect.

Sarch-X avatar Sarch-X commented on May 22, 2024

image
这是你官网上的则有

from vue-treeselect.

riophae avatar riophae commented on May 22, 2024

嗯,这样看来不是样式问题了,可以把你调用 vue-treeselect 这一部分的代码贴出来看看吗?console 里面有没有报错?Vue 是不是最新版本?

from vue-treeselect.

Sarch-X avatar Sarch-X commented on May 22, 2024

你好,vue版本是 2.2.1,控制台也没有报错
treeselect我目前是按官网最简单的方式配的,
image

image

image

from vue-treeselect.

riophae avatar riophae commented on May 22, 2024

嗯,在这里建议你先试一下升级 Vue 到新版看看,原因是,这个 label 的地方用到了 scoped slots,旧版本可能支持得不好

from vue-treeselect.

Sarch-X avatar Sarch-X commented on May 22, 2024

你好 刚升级vue至2.5.16 试了还是不行 label仍然无法展示
image

from vue-treeselect.

riophae avatar riophae commented on May 22, 2024

@FanNanTx 我刚刚试了一下,我也是把文档里那段代码直接复制了过来,发现是正常的……还有什么别的信息可以提供吗?

from vue-treeselect.

Sarch-X avatar Sarch-X commented on May 22, 2024

我在新搭建的vue空项目里使用是正常的,但是在我的项目中我实在找不到导致出现这种情况的原因

from vue-treeselect.

riophae avatar riophae commented on May 22, 2024

@FanNanTx 这样说的话,似乎还是和你这个项目配置有关系?从目前提供的这些信息,我也实在没有啥别的建议了

from vue-treeselect.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.