Giter Site home page Giter Site logo

日历组件Calendar: end-date 设置为今天之前,比如昨天,但是今天的日期还是高亮,能自己指定高亮的日期吗?? about nutui HOT 7 CLOSED

jdf2e avatar jdf2e commented on May 16, 2024
日历组件Calendar: end-date 设置为今天之前,比如昨天,但是今天的日期还是高亮,能自己指定高亮的日期吗??

from nutui.

Comments (7)

kevinlxj avatar kevinlxj commented on May 16, 2024

测试时发现第一次显示当天,如4月1号,取消再点开就正常了,为3月31号,是bug?

from nutui.

irisSong avatar irisSong commented on May 16, 2024

输入startDate、endDate、defaultValue 截图一下

from nutui.

kevinlxj avatar kevinlxj commented on May 16, 2024

测试代码如下:
image

以今天为例:
第一次打开显示为4月2号,不是我希望的,如下图,endDate、defaultValue 为2019-04-01,但是currDate 和 defaultDate均为4月2号,导致第一次打开显示为4月2号
image
关闭后再打开就显示为4月1号,这是我希望的,如下图, 此时currDate 和 defaultDate均为4月1号了,
image

from nutui.

irisSong avatar irisSong commented on May 16, 2024

defaultValue 改成在created里面赋值可解决

from nutui.

yyccQQu avatar yyccQQu commented on May 16, 2024

添加一点

<nut-datepicker
					:is-visible="isVisible"
					type="date"
					title="请选择日期"
					:is-show-chinese="false"
                    startDate="1900-01-01"
                    endDate="2019-04-05"
					@close="switchPicker('isVisible')"
					@choose="setChooseValue"
				></nut-datepicker>

image

-- 结束日期能否只显示到4月5号

from nutui.

yyccQQu avatar yyccQQu commented on May 16, 2024

defaultValue 改成在created里面赋值可解决

·在吗

from nutui.

richard1015 avatar richard1015 commented on May 16, 2024

请升级最近版本进行测试

from nutui.

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.