Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DatePicker: 修复日期选择的type动态改变时,点击组件弹出的panel没有随着改变 #4417

Merged
merged 2 commits into from
Apr 28, 2017

Conversation

coffeedeveloper
Copy link
Contributor

@coffeedeveloper coffeedeveloper commented Apr 24, 2017

在动态修改el-date-picker的type属性,动态修改el-time-picker的is-range属性后,点击输入框弹出的panel选择框中并没有随之变化。因此加入了对type、isRange的watch来重新挂载Panel。
问题在线demo: https://jsfiddle.net/coffeedeveloper/Lqsfb7ev/

  • Make sure you follow Element's contributing guide (中文 | English).
  • Make sure you are merging your commits to dev branch.
  • Add some descriptions and refer relative issues for you PR.

@Leopoldthecoder Leopoldthecoder merged commit 4243920 into ElemeFE:dev Apr 28, 2017
bluejfox added a commit to setariajs/setaria-ui that referenced this pull request May 25, 2017
* commit '3c590edbab561819ec78b842d38ddf9a27cd733f': (35 commits)
  [release] 1.3.0-beta.1
  [build] 1.3.0-beta.1
  update docs vue version
  Changelog: update for 1.3.0-beta.1
  Transfer (ElemeFE#4337)
  Table: add summary row, fixed ElemeFE#1307, fixed ElemeFE#4451 (ElemeFE#4484)
  Update date.vue
  Update date.vue
  DatePicker: 当format不包括秒时,时间下拉菜单不展示ss
  update dependencies
  Radio: fix radio-button style when nested in a form-item
  DatePicker: make type responsive(ElemeFE#4417)
  Transition: update docs
  doc: add DatePicker default-value
  DatePicker: supports default value
  i18n: update doc about vue-i18n@6.x (ElemeFE#4471)
  support use transitiongroup in el-col (ElemeFE#4483)
  Switch:feat support number value
  Switch: feature add-expand-value
  fix upload can't select the same file
  ...

# Conflicts:
#	CHANGELOG.zh-CN.md
#	README.md
#	build/bin/version.js
#	build/deploy-ci.sh
#	examples/docs/zh-CN/dialog.md
#	examples/docs/zh-CN/upload.md
#	examples/versions.json
#	package.json
#	packages/date-picker/src/basic/time-spinner.vue
#	packages/date-picker/src/panel/date.vue
#	packages/dialog/src/component.vue
#	packages/upload/src/index.vue
#	packages/upload/src/upload.vue
#	src/index.js
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants