Skip to content

Commit

Permalink
feat: 发布npm
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangzhenfei committed Nov 12, 2020
1 parent 22e3a89 commit b9a1137
Show file tree
Hide file tree
Showing 8 changed files with 31 additions and 9 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,18 @@ PiUI基础库

```
"easycom": {
"^pi-(.*)": "@/piui/components/pi-$1/index.vue"
"^pi-(.*)": "sadais-piui/components/pi-$1/index.vue"
}
```
3. main.js引入piui

```js
// 引入piui
import piui from '@/piui'
import piui from 'sadais-piui'
Vue.use(piui)
```

* 以上@/piui路径根据实际clone的项目位置改
* 以上sadais-piui路径根据实际clone的项目位置改

## 注意事项
所有组件的点击事件请监听click,不要使用tap
Expand Down
2 changes: 1 addition & 1 deletion components/pi-form-item/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ export default {
</script>

<style lang="scss" scoped>
@import '~@/piui/scss/border.scss';
@import '../../scss/border.scss';
.pi-list-item {
height: $pi-form-item-height;
Expand Down
2 changes: 1 addition & 1 deletion components/pi-form/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ export default {
</script>

<style lang="scss" scoped>
@import '~@/piui/scss/border.scss';
@import '../../scss/border.scss';
.pi-form {
.form-title {
Expand Down
2 changes: 1 addition & 1 deletion components/pi-grid-item/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ export default {
</script>

<style lang="scss" scoped>
@import '~@/piui/scss/border.scss';
@import '../../scss/border.scss';
.pi-grid-item {
display: inline-block;
Expand Down
2 changes: 1 addition & 1 deletion components/pi-grid/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ export default {
</script>

<style lang="scss" scoped>
@import '~@/piui/scss/border.scss';
@import '../../scss/border.scss';
.pi-grid {
width: 100%;
Expand Down
2 changes: 1 addition & 1 deletion components/pi-list-item/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ export default {
</script>

<style lang="scss" scoped>
@import '~@/piui/scss/border.scss';
@import '../../scss/border.scss';
.pi-list-item {
height: $pi-form-item-height;
Expand Down
2 changes: 1 addition & 1 deletion components/pi-section/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ export default {
</script>

<style lang="scss" scoped>
@import '~@/piui/scss/border.scss';
@import '../../scss/border.scss';
.section {
position: relative;
line-height: 1;
Expand Down
22 changes: 22 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"name": "sadais-piui",
"version": "1.0.1",
"description": "piui组件库",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"repository": {
"type": "git",
"url": "git+https://github.com/sadais-org/piui.git"
},
"keywords": [
"piui sadais-piui"
],
"author": "sadais",
"license": "MIT",
"bugs": {
"url": "https://github.com/sadais-org/piui/issues"
},
"homepage": "https://github.com/sadais-org/piui#readme"
}

0 comments on commit b9a1137

Please sign in to comment.