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

ie11下组件DatePicker 日期选择框不显示且控制台报错 #626

Closed
1 task
TTcom opened this issue Mar 24, 2019 · 7 comments
Closed
1 task

ie11下组件DatePicker 日期选择框不显示且控制台报错 #626

TTcom opened this issue Mar 24, 2019 · 7 comments
Assignees
Labels

Comments

@TTcom
Copy link

TTcom commented Mar 24, 2019

  • I have searched the issues of this repository and believe that this is not a duplicate.

Version

1.3.4

Environment

window10、ie11、vue2.5.22

Reproduction link

https://github.com/TTcom/tree-demo

Steps to reproduce

运行项目npm run serve,然后打开浏览器ie11,打开控制台就可看到报错

What is expected?

DatePicker 日期选择框组件可在ie11上正常使用

What is actually happening?

DatePicker 日期选择框组件可在ie11上无法使用

@sendya
Copy link
Member

sendya commented Mar 26, 2019

IE 请引入 @babel/polyfill 依赖,并处理相关配置

具体可以参考 Vue 官方文档
也可以参考我给你发起的一个 PR 请求的文件改动 TTcom/tree-demo#1

babel.config.js

module.exports = {
  presets: [
    '@vue/app',
    [
      '@babel/preset-env',
      {
        'useBuiltIns': 'entry'
      }
    ]
  ],
   plugins: [
    [
      "import",
      { libraryName: "ant-design-vue", libraryDirectory: "es", style: true }
    ]
  ]
}

20190326201318

@chenyulun
Copy link

麻烦调试一下代码,我都说明了打不开的原因和情况,请看#608

@sendya
Copy link
Member

sendya commented Mar 27, 2019

麻烦调试一下代码,我都说明了打不开的原因和情况,请看#608

你好,首先 我解决的是 IE11 下打不开 DatePicker

其二,我看了 #608 (有值的情况下),但是没有复现出来。
GIF

如果你需要解决这个问题,你应当提供一个能够复现的 repo 或者 codesandbox 以供我们查询定位问题

@tangjinzhou
Copy link
Member

@chenyulun 都给你pr了,我们还能做什么? 😓
and 如果问题解决了 麻烦关掉 issue

@TTcom
Copy link
Author

TTcom commented Mar 27, 2019

@sendya @tangjinzhou 代码我已经更新,按照你的提示日期组建是可以正常显示了,但还有两个问题
1、可是每次弹出日期框的时候都会现在网页左上角闪一下然后回到正确的位置。
2、在选择过日期然后在对日期控件进行v-if摧毁处理后控制台就会报错。
捕获1
捕获

@tangjinzhou
Copy link
Member

ref #865

@github-actions
Copy link

github-actions bot commented Jul 4, 2020

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 4, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

4 participants