Skip to content

Commit 6561470

Browse files
authored
Merge pull request #11 from iview/dewyzee/dev
update README
2 parents 288c6fd + 6dd0cd3 commit 6561470

File tree

167 files changed

+6471
-402
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

167 files changed

+6471
-402
lines changed

Diff for: README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
<p align="center">
22
<a href="https://weapp.iviewui.com">
3-
<img width="200" src="https://file.iviewui.com/weapp-logo.svg">
3+
<img width="200" src="http://mpvue.com/assets/logo.png">
44
</a>
55
</p>
66

7-
# iView Weapp
7+
# iView mpvue
88

9-
### 一套高质量的微信小程序 UI 组件库
9+
### 一套高质量的小程序 UI 组件库
1010

1111
## 文档
1212
[https://weapp.iviewui.com](https://weapp.iviewui.com)

Diff for: assets/wechat-mina.jpg

262 KB
Loading

Diff for: build/build-dev.js

+4-3
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,9 @@ gulp.task('compile-css', done => {
1414
.pipe(
1515
through2.obj(function (file, encoding, next) {
1616
this.push(file.clone())
17-
if (file.path.match(/(\/|\\)style(\/|\\)(.*)\.less$/)) {
17+
if (file.path.match(/(\/|\\)style(\/|\\)(.*)\.less$/)
18+
|| file.path.match(/(\/|\\)style\.less$/)
19+
) {
1820
transformLess(file.path)
1921
.then(css => {
2022
file.contents = Buffer.from(css)
@@ -42,8 +44,7 @@ gulp.task('compile-js', () => {
4244
through2.obj(function (file, encoding, next) {
4345
this.push(file.clone())
4446
if (
45-
file.path.match(/(\/|\\)style(\/|\\)index\.js/) ||
46-
file.path.match(/(\/|\\)src(\/|\\)index\.js/)
47+
file.path.match(/(\/|\\)style(\/|\\)index\.js/)
4748
) {
4849
const content = file.contents.toString(encoding)
4950
file.contents = Buffer.from(cssInjection(content))

Diff for: build/build-prod.js

+4-3
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,9 @@ function compile() {
1515
.pipe(
1616
through2.obj(function(file, encoding, next) {
1717
this.push(file.clone());
18-
if (file.path.match(/(\/|\\)style(\/|\\)(.*)\.less$/)) {
18+
if (file.path.match(/(\/|\\)style(\/|\\)(.*)\.less$/)
19+
|| file.path.match(/(\/|\\)style\.less$/)
20+
) {
1921
transformLess(file.path)
2022
.then(css => {
2123
file.contents = Buffer.from(css);
@@ -44,8 +46,7 @@ function compile() {
4446
through2.obj(function(file, encoding, next) {
4547
this.push(file.clone());
4648
if (
47-
file.path.match(/(\/|\\)style(\/|\\)index\.js/) ||
48-
file.path.match(/(\/|\\)src(\/|\\)index\.js/)
49+
file.path.match(/(\/|\\)style(\/|\\)index\.js/)
4950
) {
5051
const content = file.contents.toString(encoding);
5152
file.contents = Buffer.from(cssInjection(content));

Diff for: dist/components/action-sheet/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
import actionSheet from 'action-sheet.vue'
1+
import actionSheet from './action-sheet.vue'
22

33
export default actionSheet

Diff for: dist/components/alert/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
import alert from 'alert.vue'
1+
import alert from './alert.vue'
22

33
export default alert

Diff for: dist/components/avatar/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
import avatar from 'avatar.vue'
1+
import avatar from './avatar.vue'
22

33
export default avatar

Diff for: dist/components/badge/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
import badge from 'badge.vue'
1+
import badge from './badge.vue'
22

33
export default badge

Diff for: dist/components/card/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
import card from 'card.vue'
1+
import card from './card.vue'
22

33
export default card

Diff for: dist/components/cell-group/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
import cellGroup from 'cell-group.vue'
1+
import cellGroup from './cell-group.vue'
22

33
export default cellGroup

Diff for: dist/components/cell/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
import cell from 'cell.vue'
1+
import cell from './cell.vue'
22

33
export default cell

Diff for: dist/components/checkbox-group/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
import checkboxGroup from 'checkbox-group.vue'
1+
import checkboxGroup from './checkbox-group.vue'
22

33
export default checkboxGroup

Diff for: dist/components/col/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
import col from 'col.vue'
1+
import col from './col.vue'
22

33
export default col

Diff for: dist/components/collapse-item/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
import collapseItem from 'collapse-item.vue'
1+
import collapseItem from './collapse-item.vue'
22

33
export default collapseItem

Diff for: dist/components/collapse/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
import collapse from 'collapse.vue'
1+
import collapse from './collapse.vue'
22

33
export default collapse

Diff for: dist/components/countDown/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
import countDown from 'countDown.vue'
1+
import countDown from './countDown.vue'
22

33
export default countDown

Diff for: dist/components/divider/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
import divider from 'divider.vue'
1+
import divider from './divider.vue'
22

33
export default divider

Diff for: dist/components/drawer/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
import drawer from 'drawer.vue'
1+
import drawer from './drawer.vue'
22

33
export default drawer

Diff for: dist/components/grid-icon/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
import gridIcon from 'grid-icon.vue'
1+
import gridIcon from './grid-icon.vue'
22

33
export default gridIcon

Diff for: dist/components/grid-item/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
import gridItem from 'grid-item.vue'
1+
import gridItem from './grid-item.vue'
22

33
export default gridItem

Diff for: dist/components/grid-label/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
import gridLabel from 'grid-label.vue'
1+
import gridLabel from './grid-label.vue'
22

33
export default gridLabel

Diff for: dist/components/grid/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
import grid from 'grid.vue'
1+
import grid from './grid.vue'
22

33
export default grid

Diff for: dist/components/icon/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
import icon from 'icon.vue'
1+
import icon from './icon.vue'
22

33
export default icon

Diff for: dist/components/index-list/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
import indexList from 'index-list.vue'
1+
import indexList from './index-list.vue'
22

33
export default indexList

Diff for: dist/components/input-number/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
import inputNumber from 'input-number.vue'
1+
import inputNumber from './input-number.vue'
22

33
export default inputNumber

Diff for: dist/components/input/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
import input from 'input.vue'
1+
import input from './input.vue'
22

33
export default input

Diff for: dist/components/load-more/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
import loadMore from 'load-more.vue'
1+
import loadMore from './load-more.vue'
22

33
export default loadMore

Diff for: dist/components/message/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
import message from 'message.vue'
1+
import message from './message.vue'
22

33
export default message

Diff for: dist/components/modal/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
import modal from 'modal.vue'
1+
import modal from './modal.vue'
22

33
export default modal

Diff for: dist/components/notice-bar/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
import noticeBar from 'notice-bar.vue'
1+
import noticeBar from './notice-bar.vue'
22

33
export default noticeBar

Diff for: dist/components/page/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
import page from 'page.vue'
1+
import page from './page.vue'
22

33
export default page

Diff for: dist/components/page/page.vue

+16-4
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,14 @@
11
<template>
22
<div class="i-page" :class="iClass">
33
<div class="i-page-prev" v-if="mode === 'button'">
4-
<i-button i-class="i-page-button" type="ghost" @click="handlePrev" :disabled="current === 1">
4+
<button
5+
class="i-btn i-btn-ghost i-page-button"
6+
:class="[current == 1 ? 'i-btn-disabled' : '']"
7+
@click="handlePrev"
8+
hover-start-time="20"
9+
hover-stay-time="70">
510
<slot name="prev"></slot>
6-
</i-button>
11+
</button>
712
</div>
813
<div class="i-page-number" v-if="mode !== 'pointer' && !simple">
914
<div class="i-page-number-current">{{current}}</div>/{{total}}
@@ -12,9 +17,14 @@
1217
<div class="i-page-pointer-dot" :class="{'current': (index + 1) === current}" v-for="(item, index) in totalNumber" :key="index"></div>
1318
</div>
1419
<div class="i-page-next" v-if="mode === 'button'">
15-
<i-button i-class="i-page-button" type="ghost" @click="handleNext" :disabled="current == total">
20+
<button
21+
class="i-btn i-btn-ghost i-page-button"
22+
:class="[current == total ? 'i-btn-disabled' : '']"
23+
@click="handleNext"
24+
hover-start-time="20"
25+
hover-stay-time="70">
1626
<slot name="next"></slot>
17-
</i-button>
27+
</button>
1828
</div>
1929
</div>
2030
</template>
@@ -55,9 +65,11 @@ export default {
5565
},
5666
methods: {
5767
handlePrev () {
68+
if (this.current == 1) return
5869
this.handleChange('prev');
5970
},
6071
handleNext () {
72+
if (this.current == this.total) return
6173
this.handleChange('next');
6274
},
6375
handleChange (type) {

Diff for: dist/components/page/style/page.less

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
@import '../../common/_base.less';
22
@import '../../common/_mixins.less';
3-
@import '../../button//style/button.less';
3+
@import '../../button/style/button.less';
44

55
.i-page{
66
display: block;

Diff for: dist/components/panel/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
import panel from 'panel.vue'
1+
import panel from './panel.vue'
22

33
export default panel

Diff for: dist/components/progress/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
import progress from 'progress.vue'
1+
import progress from './progress.vue'
22

33
export default progress

Diff for: dist/components/radio-group/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
import radioGroup from 'radio-group.vue'
1+
import radioGroup from './radio-group.vue'
22

33
export default radioGroup

Diff for: dist/components/radio/index.js

-3
This file was deleted.

Diff for: dist/components/radio/radio.vue

-76
This file was deleted.

Diff for: dist/components/radio/style/css.js

-1
This file was deleted.

Diff for: dist/components/radio/style/index.js

-1
This file was deleted.

0 commit comments

Comments
 (0)