Giter Site home page Giter Site logo

Comments (6)

dwqs avatar dwqs commented on May 26, 2024

哪个版本?能看下代码和控制台的报错吗?

from vue-area-linkage.

JinGits avatar JinGits commented on May 26, 2024

from vue-area-linkage.

JinGits avatar JinGits commented on May 26, 2024

"vue": "^2.3.3",
"vue-area-linkage": "^1.2.5", 版本
代码
Invalid prop: custom validator check failed for prop "level". 报错

from vue-area-linkage.

dwqs avatar dwqs commented on May 26, 2024

控制台的报错信息能否截个图给看下?还有你的用例代码

from vue-area-linkage.

JinGits avatar JinGits commented on May 26, 2024

用例代码如下
<area-cascader type='all' v-model="three" :level="3"></area-cascader>
报错信息如下
Invalid prop: custom validator check failed for prop "level".
用例代码

from vue-area-linkage.

dwqs avatar dwqs commented on May 26, 2024

对于 area-cascader 组件,level 属性只接受 0 和 1, 0表示二联,1是三联

level: {
           type: Number,
           default: 0, // 0->二联 1->三联 
            validator: (val) => [0, 1].indexOf(val) > -1
 },

from vue-area-linkage.

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.