Skip to content

Commit

Permalink
fix(vue&react): fix some demo codes in examples and README (Grsmto#668)
Browse files Browse the repository at this point in the history
Co-authored-by: TseX <[email protected]>
  • Loading branch information
X-sky and X-sky authored May 2, 2023
1 parent be79cf1 commit 6f87061
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion examples/react/src/App.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React, { Component } from 'react';
import SimpleBar from 'simplebar-react';

import 'simplebar/dist/simplebar.min.css';
import 'simplebar-react/dist/simplebar.min.css';
import logo from './logo.svg';
import './App.css';

Expand Down
2 changes: 1 addition & 1 deletion examples/vue-2.7/src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<script>
import simplebar from 'simplebar-vue';
import 'simplebar/dist/simplebar.min.css';
import 'simplebar-vue/dist/simplebar.min.css';
export default {
name: 'app',
Expand Down
2 changes: 1 addition & 1 deletion examples/vue-3/src/App.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<script setup>
import Simplebar from 'simplebar-vue';
// import 'simplebar-vue/dist/simplebar.min.css';
import 'simplebar-vue/dist/simplebar.min.css';
</script>

<template>
Expand Down
4 changes: 2 additions & 2 deletions packages/simplebar-vue/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,13 @@

### Usage

Check out the [Demo project](https://github.com/Grsmto/simplebar/blob/master/examples/vue).
Check out the [Demo project(vue2)](https://github.com/Grsmto/simplebar/blob/master/examples/vue-2.7/src/App.vue) and the [Demo project(vue3)](https://github.com/Grsmto/simplebar/blob/master/examples/vue-3/src/App.vue)

First, register it in your Vue app:

```js
import simplebar from 'simplebar-vue';
import 'simplebar/dist/simplebar.min.css';
import 'simplebar-vue/dist/simplebar.min.css';

export default {
components: {
Expand Down

0 comments on commit 6f87061

Please sign in to comment.