ecomfe
Repos
277

Events

opened issue
provide 的 [THEME_KEY] 不能动态监听其变化来实现切换主题

请确认

  • [X] 我可以确认这个问题无法在 ECharts 项目本身中复现。

您是如何将 Vue-ECharts 引入项目的?

通过 ES 模块 import

版本信息

+-- echarts@5.3.3
+-- vue@2.7.3
`-- vue-echarts@6.2.3

问题详情

我希望在页面顶层容器通过provide提供主题,然后让下属所有vue-echarts都响应这个主题变更,这个变更是发生在运行时的。目前看来,是不是一定要在每一个下属组件通过theme这个prop来传入改变?但是这样操作的话,跟没有这个provide没什么区别吧 非常麻烦。

在问题复现的链接里面,我在mounted处用定时器模拟了运行时的主题变更。

问题复现

https://codesandbox.io/s/great-snowflake-bzvpd8?file=/src/App.vue

Created at 2 minutes ago
create branch
Justineo create branch ghost-buttons
Created at 21 minutes ago
Created at 36 minutes ago
started
Created at 1 hour ago
Created at 1 hour ago
Created at 2 hours ago
Created at 2 hours ago
Created at 2 hours ago
started
Created at 3 hours ago
Created at 4 hours ago
Created at 5 hours ago
started
Created at 6 hours ago
pull request opened
chore(deps): bump decode-uri-component from 0.2.0 to 0.2.2

Bumps decode-uri-component from 0.2.0 to 0.2.2.

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
  • @dependabot use these labels will set the current labels as the default for future PRs for this repo and language
  • @dependabot use these reviewers will set the current reviewers as the default for future PRs for this repo and language
  • @dependabot use these assignees will set the current assignees as the default for future PRs for this repo and language
  • @dependabot use this milestone will set the current milestone as the default for future PRs for this repo and language

You can disable automated security fix PRs for this repo from the Security Alerts page.

Created at 7 hours ago
create branch
dependabot[bot] create branch dependabot/npm_and_yarn/decode-uri-component-0.2.2
Created at 7 hours ago
started
Created at 8 hours ago
Created at 11 hours ago
started
Created at 11 hours ago
Created at 13 hours ago
Created at 17 hours ago
Created at 19 hours ago
Created at 19 hours ago
Created at 19 hours ago
Created at 19 hours ago
started
Created at 20 hours ago

docs: update readme [skip ci]

Created at 20 hours ago
closed issue
vue2.x html属性根节点上绑定不了(dataset,id之类的)

请确认

  • [X] 我可以确认这个问题无法在 ECharts 项目本身中复现。

您是如何将 Vue-ECharts 引入项目的?

通过 ES 模块 import

版本信息

├─┬ @vue/cli-plugin-babel@4.5.17
│ └─┬ @vue/babel-preset-app@4.5.17
│   └── vue@2.6.14 deduped
├─┬ @vue/composition-api@1.6.1
│ └── vue@2.6.14 deduped
├── echarts@5.3.2
├─┬ vant@2.12.48
│ └── vue@2.6.14 deduped
├─┬ view-design@4.7.0
│ └── vue@2.6.14 deduped
├─┬ vue-echarts@6.0.2
│ ├── echarts@5.3.2 deduped
│ ├─┬ vue-demi@0.12.5
│ │ └── vue@2.6.14 deduped
│ └── vue@2.6.14 deduped
├── vue@2.6.14
└─┬ vuex@3.6.2
  └── vue@2.6.14

复现

Created at 21 hours ago
issue comment
vue2.x html属性根节点上绑定不了(dataset,id之类的)

Fixed in v6.2.4.

Created at 21 hours ago