diff --git a/README.md b/README.md index 9ad186b..6602b7c 100644 --- a/README.md +++ b/README.md @@ -96,100 +96,6 @@ const option = ref({ -
-Vue 2 Demo → - -```vue - - - - - -``` - -
- > [!IMPORTANT] > We encourage manually importing components and charts from ECharts for smaller bundle size. We've built an [import code generator](https://vue-echarts.dev/#codegen) to help you with that. You can just paste in your `option` code and we'll generate the precise import code for you. > @@ -212,7 +118,7 @@ Drop ` + ``` @@ -227,24 +133,6 @@ app.component('v-chart', VueECharts) -
-Vue 2 Demo → - - -```html - - - -``` - - -```js -// register globally (or you can do it locally) -Vue.component("v-chart", VueECharts); -``` - -
- See more examples [here](https://github.com/ecomfe/vue-echarts/tree/main/src/demo). ### Props @@ -359,7 +247,7 @@ See supported events [here →](https://echarts.apache.org/en/api.html#events) #### Native DOM Events -As Vue-ECharts binds events to the ECharts instance by default, there is some caveat when using native DOM events. You need to prefix the event name with `native:` to bind native DOM events (or you can use the `.native` modifier in Vue 2, which is dropped in Vue 3). +As Vue-ECharts binds events to the ECharts instance by default, there is some caveat when using native DOM events. You need to prefix the event name with `native:` to bind native DOM events. ```vue