Coder Social home page Coder Social logo

cm-calendar's Introduction

element-ui组件Calendar仅渲染当月版本

cm-calendar 中的 cm 取名自 “current-month” 两个单词首字母

使用方法

  1. 复制 cm-calendar 文件夹及内容到自己项目中
  2. 在要使用的页面上引入组件(路径根据自己情况修改):
    import CMCalendar from '@/components/cm-calendar'
    
  3. 在 页面的 components 中注册组件:
    ... 
    components: {
        ...
        CMCalendar
    },
    ... 
    
  4. el-calendar 的使用方法完全相同,只是把组件名换成 CMCalendar
    <CMCalendar v-model="value"></CMCalendar>
    

闭坑

不同element-ui的版本如果引入后无效,解决方法是:检查一下下面的文件

node_modules/element-ui/packages/calendar/src/dataTable.vue

在部分elementui的版本中,这个文件名字叫:data-table.vue,这时候需要修改一下cm-datatable.vue的第3行。

cm-calendar's People

Contributors

sunzsh avatar

Stargazers

 avatar njlizhi avatar

Watchers

 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.