Coder Social home page Coder Social logo

threecheckbox's Introduction

threeCheckBox

基于vue的可选择三级复选框的表格功能

使用map对象记录已选二级+三级复选框的id集合,并建立对应关系。

与checkTable区别:

  1. chectTable不限制一级、二级、三级复选框的数量限制,threeCheckBox只有一个一级复选框,二级、三级同样不限制。
  2. checkTable复选框只支持文字类型,threeCheckBox复选框支持各种数据类型,不限

数据结构为:

{
    articleId: 10,
    title: "商品1",
    article_goods: [
        {
            id: 1,
            spec_text: "红色",
            img_url:""
        },
        {
            id: 2,
            spec_text: "蓝色",
            img_url:""
        }
    ]
},
{
    articleId: 9,
    title: "商品2",
    article_goods: [
        {
            id: 4,
            spec_text: "粉色",
            img_url:""
            },
    ]
}

使用时: 除封装复选框功能外,HTML结构可自行扩充

效果图:

check

threecheckbox's People

Contributors

guoxiaxia avatar guoxx0219 avatar

Watchers

James Cloos avatar  avatar

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.