Skip to content

Commit

Permalink
Update apis.datetime.html of Edge
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangxinxu committed Nov 19, 2024
1 parent 6fb1d0a commit 069d2f1
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions edge/apis.datetime.html
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,12 @@ <h5>2. 初始值</h5>
有初始值:<input type="date" value="2020-11-27" is="ui-datetime">
</div>
<pre>&lt;input type="date" <mark>value="2020-11-27"</mark> is="ui-datetime"&gt;</pre>

<p>如果设置了value属性,但是值是空字符串,则采用和原生时间选择组件一样的规则,表现为“年-月-日(短横线也可能是斜杠)”,例如:</p>
<div>
空值占位:<input type="date" value="" is="ui-datetime">
</div>
<pre>&lt;input type="date" <mark>value=""</mark> is="ui-datetime"&gt;</pre>

<h5>3. 类型设置</h5>
<p>使用原生的<code>type</code>属性指定是哪种日期或时间类型选择,默认是<code>'date'</code>类型。</p>
Expand Down

0 comments on commit 069d2f1

Please sign in to comment.