Skip to content

Commit

Permalink
docs: 文档完善
Browse files Browse the repository at this point in the history
  • Loading branch information
叶锦湛 committed Jul 4, 2022
1 parent 10c9b41 commit a0f9191
Show file tree
Hide file tree
Showing 12 changed files with 1,168 additions and 19 deletions.
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,25 +9,25 @@
### Vu3
安装:
```shell
npm i @za/vue-za-swiper
npm i @next-fe/vue-za-swiper
```

使用:
```js
import ZaSwiper from '@za/vue-za-swiper'
import '@za/vue-za-swiper/dist/style.css'
import ZaSwiper from '@next-fe/vue-za-swiper'
import '@next-fe/vue-za-swiper/dist/style.css'
```

### Vu2
安装:
```shell
npm i @za/vue-za-swiper@1
npm i @next-fe/vue-za-swiper@1
```

使用:
```js
import ZaSwiper from '@za/vue-za-swiper'
import '@za/vue-za-swiper/dist/style.css'
import ZaSwiper from '@next-fe/vue-za-swiper'
import '@next-fe/vue-za-swiper/dist/style.css'
```

## 代码示例
Expand Down Expand Up @@ -66,7 +66,7 @@ import '@za/vue-za-swiper/dist/style.css'
</template>
<script>
import '@za/vue-za-swiper/dist/style.css'
import '@next-fe/vue-za-swiper/dist/style.css'
import ZaSwiper from 'vue-za-swiper'
import IMG1 from './assets/images/model/1.png'
import IMG2 from './assets/images/model/2.png'
Expand Down
3 changes: 2 additions & 1 deletion dev.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,9 @@ npm run build

cd ./packages/vue2
# 修改版本号,接着 publish
# 如果发布 beta 版这个参数 --tag beta
# 如果对外发布需要加这个参数 --access public
npm publish --tag latest-v1
# 如果发布 beta 版就用这个命令 npm publish --tag beta

cd ../vue3
# 修改版本号,接着 publish。
Expand Down
4 changes: 2 additions & 2 deletions packages/common/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@

<script>
// 测试用
// import ZaSwiper from '@za/vue-za-swiper'
// import '@za/vue-za-swiper/dist/style.css'
// import ZaSwiper from '@next-fe/vue-za-swiper'
// import '@next-fe/vue-za-swiper/dist/style.css'
import ZaSwiper from './za-swiper/index'
import IMG1 from './assets/images/model/1.png'
import IMG2 from './assets/images/model/2.png'
Expand Down
Loading

0 comments on commit a0f9191

Please sign in to comment.