iview

A high quality UI Toolkit built on Vue.js 2.0

OTHER License

Downloads
47.6K
Stars
24K
Committers
180

Bot releases are hidden (Show)

iview - v2.7.3

Published by icarusion almost 7 years ago

  • Fixed problem that can not be used in Nuxt.js under version 2.7.0.
  • Fixed a bug about InputNumber. #2418
  • Update Spanish. #2426

  • 修复 2.7.0 版本下,无法在 Nuxt.js 中使用的问题。
  • 修复 InputNumber 的一个问题。#2418
  • 修改了西班牙语。#2426
iview - v2.7.2

Published by icarusion almost 7 years ago

  • Fixed bug when Tabs was destroyed.

  • 修复 Tabs 销毁时报错的问题。
iview - v2.7.1

Published by icarusion almost 7 years ago

  • Fix the problem of errors in Tabs. #2407

  • 修复 Tabs 组件报错的问题。#2407
iview - v2.7.0 Lara Croft GO

Published by icarusion almost 7 years ago

  • i18n support vue-i18n 6.x+ version, and support using with script tag. Improve the i18n doc. View
  • Now you can load components on demand. View
  • Form validation method validate supporting Promise. #2018
  • Form add new property autocomplete.
  • BreadcrumbItem href support the to Object of vue-router, and add new property to, the same as href. The href property will be abandoned in the future. #2214
  • Input add new property spellcheck, and some components add autocomplete and spellcheck as default. #2324
  • Modal add new event on-visible-change.
  • Transfer add new event on-selected-change. #2019
  • InputNumber add new event on-focus and on-blur.
  • Avatar style adjusts to center. #1926
  • Fixed InputNumber bug that sometimes unable to enter the range of numbers. #2205
  • Fixed Table bug when it is not set width and in vertical scroll, the fixed column's position is wrong. #2102
  • Fixed Table bug when the column is expandable and fixed, the fixed column will be rendered again. #1648
  • Fixed DatePicker and TimePicker that can not trigger on-change event when click clear button at first time. #2215
  • Fixed DatePicker, TimePicker and ColorPicker bug that using in FormItem, the icon is incorrect. #2219
  • Fixed an IE bug of TimePicker. #2330
  • Fixed Page bug in simple mode, enter an empty string, it shows NaN. #1575
  • Fixed Tooltip bug when change the content, the position is wrong. #1482
  • Add Ukrainian. @f3man

  • i18n 兼容 vue-i18n 6.x+ 版本,并支持通过 <script> 引入,完善国际化使用文档。查看
  • 现在可以更好地按需加载组件了。查看
  • Form 验证方法 validate 支持 Promise。#2018
  • Form 新增 autocomplete 属性。
  • BreadcrumbItem 的 href 属性支持传入 vue-router 的 to 对象,同时新增 to 属性,与 href 相同,未来将废弃 href 属性。#2214
  • Input 新增 spellcheck 属性,部分可输入类组件设置了默认的 autocompletespellcheck 属性。#2324
  • Modal 增加事件 on-visible-change
  • Transfer 新增选中项变化事件 on-selected-change。#2019
  • InputNumber 新增事件 on-focuson-blur
  • Avatar 样式调整为居中。#1926
  • 修复 InputNumber 有时无法输入范围内数字的 bug。#2205
  • 修复 Table 在未设置 width,垂直滚动时,固定列出现错位的 bug。#2102
  • 修复 Table 在可展开且有固定列时,固定一列重复渲染的 bug。#1648
  • 修复 DatePicker、TimePicker 第一次点击清除按钮时,无法触发 on-change 事件的 bug。#2215
  • 修复 DatePicker、TimePicker、ColorPicker 在 FormItem 内使用时,图标位置不正确的 bug。#2219
  • 修复 TimePicker 在 IE 下的一个问题。#2330
  • 修复 Page 在 simple 模式下,输入页码为空时,回车显示为 NaN 的 bug。#1575
  • 修复 Tooltip 在动态改变 content 时,错位的 bug。#1482
  • 增加乌克兰语。@f3man
iview - v2.6.0 FRAMED

Published by icarusion almost 7 years ago

  • Refactor the Tree component to support Render function, asynchronous loading data, and perfect documentation. @SergioCrisostomo
  • Carousel add new properties loop and radius-dot. #2181 @lisafra
  • Tabs can be rolled when TabPane are too much. #1031 @marxy
  • The Date panel can display local year and month formats based on the current language package. #2097 @SergioCrisostomo
  • Table add new properties callback, quoted and separator in export csv file. #2114
  • Table add filter event on-filter-change. #2078
  • Tag add new property checkable. #2115
  • Scroll add new property distance-to-edge. #2137
  • Fix the Scroll component bug under the Firefox browser that unable to trigger the rolling event. #2135
  • Fix Select bug in remote and multiple mode, and when the data is cleared, the selected item is not empty. #2066
  • Fix Poptip bug in transfer mode, the float layer will be closed when click inside. #1700
  • Fix Tabs bug that can not update TabPane using v-for directive. #2100
  • Fix Cascader bug in trigger mode with only one item, sometimes it will be selected directly. #1922
  • Fix the bug when Input size is small, and using in FormItem, the icon's position is wrong. #2149

  • 重构 Tree 组件,支持 Render 函数、异步加载数据,完善文档。@SergioCrisostomo
  • Carousel 增加循环滚动属性 loop 和圆形指示器属性 radius-dot。#2181 @lisafra
  • Tabs 标签页过多时,可以进行滚动。#1031 @marxy
  • Date 面板可根据当前语言包显示当地的年月格式。#2097 @SergioCrisostomo
  • Table 导出 csv 数据方法新增 callbackquotedseparator 选项。#2114
  • Table 新增过滤事件 on-filter-change。#2078
  • Tag 新增可选择属性 checkable。#2115
  • Scroll 新增边缘距离属性 distance-to-edge。#2137
  • 修复 Scroll 组件在 Firefox 浏览器下,无法触发滚动事件的 bug。#2135
  • 修复 Select 在 remote、multiple 模式下,主动清空数据后,未清空选中项的 bug。#2066
  • 修复 Poptip 在 transfer 模式下,点击内部会关闭浮层的 bug。#1700
  • 修复 Tabs 的 TabPane 无法使用 v-for 动态更新的 bug。#2100
  • 修复 Cascader 在 trigger 为 hover 模式下,只有一项时,有时会直接选中的 bug。#1922
  • 修复 Input 在 FormItem 内,size 为 small 时,icon 错位的 bug。#2149
iview - v2.5.1

Published by icarusion about 7 years ago

  • Fixed bug in version 2.5.0 that the DatePicker will be displayed false when binding an empty data. #2119

  • 修复 2.5.0 版本下,DatePicker 绑定数据为空时,初始化显示为 false 的bug。#2119
iview - v2.5.0 Old Man’s Journey

Published by icarusion about 7 years ago

  • Publish management system template iview-admin.
  • Add infinite Scroll component. View
  • Date will automatically identify the weekly start Date according to the current language package. #1809
  • InputNumber add readonly and editable properties.
  • Optimize the performance of InputNumber real-time input. #2059
  • Optimized Date to focusout after entering a wrong Date format. #2002
  • Fix the problem that Date is not validated by the Form under SSR. #1971
  • Fix a problem with Date in IE11. #1937
  • Fix the bug that Date, Dropdown in transfer mode, the style is wrong when the body's width is 100%. #2050
  • Fix the bug that sometimes the error message cannot be cleared when the FormItem set error property. #2047
  • Fix Badge bug that when the dot is opened and the count is 0, the dot is displayed.
  • Fix InputNumber bug that when the precision is 0, unable to set the precision to an integer. #2026

  • 发布后台管理系统模板 iview-admin
  • 新增无限滚动组件 Scroll。查看
  • Date 会根据当前语言包自动识别每周起始日。#1809
  • InputNumber 新增 readonly 和 editable 属性。
  • 优化 InputNumber 实时输入的表现。#2059
  • 优化 Date 在输入一个错误日期格式后失焦的表现。#2002
  • 修复 Date 在 SSR 无法通过 Form 验证的问题。#1971
  • 修复 Date 在 IE11 下的一个问题。#1937
  • 修复 Date、Dropdown 在 transfer 模式下,body 宽度为 100% 时,样式错误的bug。#2050
  • 修复 FormItem 在动态设置 error 时,有时错误信息无法清空的bug。#2047
  • 修复 Badge 在开启 dot 且 count 为 0 时,扔显示 dot 的bug。
  • 修复 InputNumber 在 precision 为 0 时,无法设置精度为整数的bug。#2026
iview - v2.4.0 Monument

Published by icarusion about 7 years ago

  • InputNumber adds new property precision. #1810
  • Spin adds global usage $Spin. #1063
  • Optimize Spin styles, fix no longer mandatory set parent's width and height.
  • Table supports adaptive width. #690
  • Table adds property loading and named slot loading. #704
  • Table adds method clearCurrentRow to clear highlighted row. #1372
  • Table event @on-row-click and @on-row-dblclick params add index。#693
  • Date supports the dynamic toggle type. #1851
  • Steps supports dynamic setting Step.
  • All form components add name property. #812
  • FormItem adds label-for property. Input, AutoComplete, Cascader, Date, InputNumber, Select(filterable) add element-id property, click label can focus corresponding component when label-for is equivalent to element-id. #433
  • Modify the z-index value of the Menu. #823
  • Optimize Message styles. #1881
  • Optimize Select styles. #860
  • Optimize the interaction of Date when press tab key. #1930
  • Fix Table bug in stripe mode that hover style is not correct. #1380
  • Fix Tabs bug after closing all tabs. #1842
  • Fix Select bug in remote mode, highlight the search word, retype and select an item, the query is incorrect. #1865

  • InputNumber 新增精度属性 precision。#1810
  • Spin 增加全局用法 $Spin。#1063
  • Spin 样式调整,fix 时不再强制设置父级宽高。
  • Table 支持自适应宽度。#690
  • Table 新增加载中属性loading,及具名 slot loading。#704
  • Table 新增取消单选方法 clearCurrentRow。#1372
  • Table 事件 @on-row-click@on-row-dblclick 返回参数增加 index。#693
  • Date 支持动态切换 type。#1851
  • Steps 支持动态设置 Step。
  • 所有表单类组件都支持设置 name 属性。#812
  • FormItem 新增 label-for 属性,Input、AutoComplete、Cascader、Date、InputNumber、Select(filterable) 增加 element-id 属性,当设置一致时,点击 label 可以聚焦对应的控件。#433
  • 修改 Menu 的 z-index 值。#823
  • 优化 Message 样式。#1881
  • 优化 Select 样式。#860
  • 优化 Date 按 tab 建的交互。#1930
  • 修复 Table 在 stripe 模式下,hover 样式不正确的bug。#1380
  • 修复 Tabs 在关闭所有页签后,报错的bug。#1842
  • 修复 Select 在 remote 模式下,高亮搜索词时,再次键入并选择,query 不正确的bug。#1865
iview - v2.3.2

Published by icarusion about 7 years ago

  • Just update Select.
iview - v2.3.1

Published by icarusion about 7 years ago

  • Fix the bug that the slot cannot display correctly when the Switch uses true-value and false-value. #1797
  • Fix the bug that Select use the same Option data, only the first one can be selected. #1807

  • 修复 Switch 使用 true-value 和 false-value 时,设置 slot 无法正确显示的bug。#1797
  • 修复 Select 共用同一份 Option 数据时,仅第一个可以选择的bug。#1807
iview - v2.3.0 Lumino City

Published by icarusion about 7 years ago

  • Switch add new property true-value and false-value. #1399
  • Input add new property autocomplete.
  • Table column add type: html to avoid XSS. #993
  • When the Table column is expandable, it can set the title or renderHeader.
  • Improve Select rendering performance. #1777
  • Fix the bug when Table columns are empty. #1736
  • Fix Table bug in selection mode when all columns are disabled, the header will be checked. #1751
  • Fix Select bug that select an Option, the html tag will be included. #1690
  • Fix Select bug in remote mode, when clear data, the label will not be clear. #1743
  • Fix Rate bug in allow-half mode. #1761
  • Fix Date bug that unable to display the initial value in IE 11. #1422
  • Fix Date bug in datetime type, clear date and select again, the time is wrong. #1223
  • Fix Date bug without default value, sometimes choose the time one day ahead. #1734
  • Fix Tabs bug that bottom border is not correct in IE 11. #695
  • Fix Tooltip bug in always mode, the position is wrong. #1568
  • Fix Slider bug when dbclick, it will jump to the left. #1354
  • Fix Cascader bug in transfer mode, the style is wrong. #1728
  • Add Indonesian。@IndraGunawan

Special thanks to @SergioCrisostomo


  • Switch 新增 true-value 和 false-value 属性。#1399
  • Input 新增 autocomplete 属性。
  • Table 的 column 新增 type: html,避免 XSS。#993
  • Table 列为可展开时,支持设置 title 或 renderHeader。
  • 提高 Select 渲染性能。#1777
  • 修复 Table 在 columns 为空时,报错的bug。#1736
  • 修复 Table 在多选模式下,将所有列都禁用时,状态标记为全部选中的bug。#1751
  • 修复 Select 选择 Option 时,将 slot 内的标签一同携带的bug。#1690
  • 修复 Select 在 remote 模式下,手动清空数据后没有清空 label 的bug。#1743
  • 修复 Rate 半选状态初始化不正确的bug。#1761
  • 修复 Date 在 IE11 下无法显示初始值的bug。#1422
  • 修复 Date 在选择时间模式下,清空再次选择后时间错误的bug。#1223
  • 修复 Date 无默认值时,有时选择的时间提前一天的bug。#1734
  • 修复 Tabs 在 IE11 下,边线宽度设置不正确的bug。#695
  • 修复 Tooltip 在 always 模式下,错位的bug。#1568
  • 修复 Slider 双击滑块时,滑块跳动的bug。#1354
  • 修复 Cascader 在 transfer 模式下,部分样式错误的bug。#1728
  • 新增印尼语。@IndraGunawan

特别感谢 @SergioCrisostomo

iview - v2.2.0 Shadowmatic

Published by icarusion about 7 years ago

  • Add Avatar component. View
  • Add ColorPicker component. View
  • Add AutoComplete component. View
  • Form supports validation of ColorPicker and AutoComplete components.
  • Radio and RadioGroup add size property.
  • Checkbox and CheckboxGroup add size property.
  • Components with size property add default value.
  • Fix the bug that the Select can still input when opening the disabled in the filterable mode. #1547
  • Fix Poptip in the transfer mode, using the confirm style bug. #1612
  • Fix a problem with InputNumber. #1654
  • Optimize the Grid component for gutter settings. #1661

  • 新增头像组件 Avatar。查看
  • 新增颜色选择器组件 ColorPicker。查看
  • 新增自动完成组件 AutoComplete。查看
  • Form 支持对 ColorPicker 和 AutoComplete 组件的验证。
  • Radio 和 RadioGroup 新增 size 属性。
  • Checkbox 和 CheckboxGroup 新增 size 属性。
  • 具有 size 属性的组件都增加了 default。
  • 修复 Select 在 filterable 模式下,开启 disabled 后仍然能够输入的bug。#1547
  • 修复 Poptip 在 transfer 模式下,使用 confirm 样式错乱的bug。#1612
  • 修复 InputNumber 的一个问题。#1654
  • 优化 Grid 组件对 gutter 的设置。#1661
iview - v2.1.0 Alto's Adventure

Published by icarusion about 7 years ago

  • TimePicker add new property steps, You can set the interval of hours, minutes, and seconds. @SergioCrisostomo
  • Radio、Checkbox add new property true-value and false-value. #1191
  • The current of the Page supports the .sync modifier.
  • Poptip、Tooltip add event on-popper-show.
  • Optimize the export of csv in the Safari browser.
  • Fix Cascader bug in change-on-select mode that when you choose item again, the panel does not reset the sublist. #1553
  • Fix Cascader bug in the dynamic load option, when the child's data is empty, recursively triggered the requested.
  • Fix InputNumber bug that sometimes to calculate inaccurate. #1452
  • Fix InputNumber bug that not watch for min and max. #1134
  • Fix Page when changing the total, the page number is incorrect. #1543
  • Fix Date in datetimerange mode, the data is incorrectly returned. #1220
  • Fix the bug that the Tree automatically checked when children were empty. #1504
  • Fix a bug that after the replacement of the Form, some of the components can not be verified for the first time. #1534
  • Add Vietnamese. @hckhanh
  • Add Portuguese. @SergioCrisostomo
  • Add Swedish. @SergioCrisostomo

  • TimePicker 新增属性 steps, 可以设置小时、分钟、秒的间隔。@SergioCrisostomo
  • Radio、Checkbox 新增 true-value 和 false-value 属性。#1191
  • Page 的 current 属性支持 .sync 修饰符。
  • Poptip、Tooltip 增加 on-popper-show 事件。
  • 优化 Table 导出 csv 在 Safari 浏览器下的表现。
  • 修复 Cascader 在 change-on-select 模式下,再次选择时没有重置子列表的bug。#1553
  • 修复 Cascader 在动态加载选项,children 的数据为空时递归触发请求的bug。
  • 修复 InputNumber 有时计算不准确的bug。#1452
  • 修复 InputNumber 没有监听 min 和 max 的bug。#1134
  • 修复 Page 在改变 total 时,页码计算不正确的bug。#1543
  • 修复 Date 在 datetimerange 模式下,返回数据不正确的bug。#1220
  • 修复 Tree 在 children 为空时,自动勾选的bug。#1504
  • 修复 Form 重置后,部分组件首次无法校验的bug。#1534
  • 新增越南语。@hckhanh
  • 新增葡萄牙语。@SergioCrisostomo
  • 新增瑞典语。@SergioCrisostomo
iview - v2.0.0 Leo's Fortune

Published by icarusion about 7 years ago

  • Nuxt.js support internationalization. View
  • Modal width will be displayed as a percentage when less than 100.
  • Progress add new property vertical. #629
  • Table add property sortType to achieve the default sort. #1403
  • Table will prevent bubbling under selection mode. #1271
  • Table replace renderHeader to a Render function. #1357
  • When sorting using Table, click the header title can also be sorted. #122
  • Fixed Table bug that using Select, Dropdown and other components can not be folded. #1341
  • Fixed Table bug that fixed column height is incorrect when data is empty. #1387
  • Fixed Table bug that column without width will be disappeared when data is empty. #658
  • Fixed Table bug, set the height and add some data, the height is incorrect when data is empty. https://github.com/iview/iview/commit/119eeafedea02d984650b82920abdcdf4e809f79
  • Modal, Poptip, Tooltip, Dropdown, Select, Date, Cascader add property transfer, it will be inserted to body when the value is true. #830 #844 #1187

    A component with a floating layer, when used in Tabs or a fixed Table column, suggests adding this property, it will not be affected by the parent style, resulting in better results.

  • Input add event @on-keyup, @on-keydown, @on-keypress.
  • Fixed Select bug that using in Modal, the layer position is not correct under remote mode. #1099
  • Fixed bug that when Tabs contains other Tabs, the outer one disable animation, the inner can not be clicked. #1427
  • Add Korean. @dokenzy

  • Nuxt.js 支持使用多语言。查看
  • Modal 的 width 当不大于 100 时,将以百分比显示。
  • Progress 新增垂直方向属性 vertical。#629
  • Table 新增默认排序属性 sortType。#1403
  • Table 在多选时,阻止冒泡。#1271
  • Table 的自定义表头方法 renderHeader 改为了 Render 函数。#1357
  • Table 在排序时,点击表头标题也可以进行排序。#122
  • 修复 Table 内使用 Select、Dropdown 等组件无法收起的bug。#1341
  • 修复 Table 在数据为空时,固定列高度不正确的bug。#1387
  • 修复 Table 在数据为空时,未设置宽度的 column 消失的bug。#658
  • 修复 Table 在数据为空,设置表格高度时,添加数据后,表格高度计算不正确的bug。https://github.com/iview/iview/commit/119eeafedea02d984650b82920abdcdf4e809f79
  • Modal、Poptip、Tooltip、Dropdown、Select、Date、Cascader 组件新增 transfer 属性,开启会将浮层移动到 body 内。#830 #844 #1187

    带有浮层的组件,在 Tabs、带有 fixed 的 Table 内使用时,建议添加此属性,它将不受父级样式影响,从而达到更好的效果。

  • Input 新增事件 @on-keyup、@on-keydown、@on-keypress。
  • 修复 Select 在 remote 模式下,在 Modal 内使用时,浮层错位的bug。#1099
  • 修复 Tabs 嵌套使用时,外层禁用动画,内层无法切换的bug。#1427
  • 新增韩语。@dokenzy
iview - v2.0.0-rc.19

Published by icarusion over 7 years ago

  • Support Vue 2.4.1
  • Support SSR and Nuxt.js. #1315
  • Page supports keypad operation. #1318
  • Table add new event @on-select-cancel to cancel select row. #705
  • Fixed Select bug in remote mode that set label does not take effect. #1286
  • Fixed Table, Cascader, Tree bug in Vue 2.4.1 #1353

  • 支持 Vue 2.4.1。
  • 支持 SSR 和 Nuxt.js。#1315
  • Page 支持小键盘操作。#1318
  • Table 新增取消当行事件 @on-select-cancel。#705
  • 修复 Select 在 remote 模式下,手动设置 label 不生效的bug。#1286
  • 修复 Table、Cascader、Tree 在 Vue 2.4.1 版本下,报错的问题。#1353
iview - v2.0.0-rc.18

Published by icarusion over 7 years ago

  • 废弃 Table 旧 render 方法。
  • 修复 Table 在使用展开功能时,render 重复触发的问题。#1195
  • 修复 Transfer 在特定条件下报错的问题。https://github.com/iview/iview/commit/778e921440f0fa7f1b9b3dfa980806b61480940b
  • 修复 Input 在 small 尺寸时,右间距不正确的问题。#1174
  • 修复 Poptip title 无法显示的bug。#1222
  • 修复 Poptip 使用 trigger 模式时,对普通元素无法生效的bug。
  • 修复 Select 多选在 Firefox 下样式不正确的bug。#1224
  • 修复 Upload 触发区域不准确的bug。#1258
  • 优化 Menu 样式。
  • 优化 Page 样式。#1252
  • Date 组件改为 inline-block。
  • 更新 async-validator 库到 1.7.1 版本。#1171
  • 新增德语。@dspangenberg
  • 新增葡萄牙语。@programadorthi
iview - v2.0.0-rc.17

Published by icarusion over 7 years ago

  • Table 新增禁用鼠标悬停高亮 prop:disabled-hover。@lcx960324
  • 修复 CheckboxGroup 的 Checkbox 向上寻找父组件时的bug。
  • 修复 Date 组件在禁用时,点击图标仍然会展开面板的bug。
  • 修复 Vue 2.3.3 版本下, Poptip 在 focus,slot 含有 input、textarea 元素时无法聚焦的bug。#1101
  • 修复 Menu 在手风琴模式下,on-open-change 返回值错误的bug。#1102
  • 优化 Table 单元格的渲染。
  • 优化 Table 展开项的渲染。@ckryo
  • 优化 Tabs 自定义标签页的渲染。
iview - v2.0.0-rc.16

Published by icarusion over 7 years ago

  • 支持 SSR。
  • $Modal 内容支持自定义组件。#1041
  • Table 可单独设置某行禁用展开功能。
  • Menu 增加展开时的过渡动画。#514
  • Collapse 增加展开时的过渡动画。
  • Tree 增加展开时的过渡动画。
  • 修复 Notice 的 destroy 方法无法使用的bug。#1054 @lcx960324
  • 修复 Badge 判断类型错误导致渲染错误的bug。#646
  • 新增法语。@LekisS
iview - v2.0.0-rc.15

Published by icarusion over 7 years ago

  • Table 新增可展开功能。
  • Message 支持可关闭,并调整参数。查看
  • Input 增加 type 为 textarea 时的 autofocus。#1017
  • 修复 Table 新 render 方法重复渲染组件的bug。#1011
  • 修复 Select 在 remote 模式下,绑定初始值但没有设置 label 时报错的问题。#978
  • 修复 BackTop 不支持 IE、Firefox 浏览器的bug。#995
  • 调整配色。
  • 新增俄语。@explosivebit
iview - v2.0.0-rc.14

Published by icarusion over 7 years ago

  • 修复 Table 重复调用 render 函数的问题。
  • Select 新增 prop: label,用于 remote 模式。
  • 修复 Select 在单选 remote 模式下,选中显示为 value 而不是 label 的bug。#915
  • 修复 Select 在 remote 模式下,设置初始值不生效的bug。#952
  • 优化 Select 在搜索模式下,手动赋值后,第一次展开显示为全部候选项。#957
  • 修复 Cascader 在搜索模式下,搜索结果过多时内容溢出的bug。
  • 优化 Cascader 在动态加载选项时,调用 loadData 的时机。#941
  • 修复 Form 在只有一个 Input 元素时,回车触发 submit 事件的问题。