Skip to content

Commit

Permalink
style: update quote url
Browse files Browse the repository at this point in the history
  • Loading branch information
cnyballk committed Sep 19, 2018
1 parent 6d655d4 commit a9f914b
Show file tree
Hide file tree
Showing 36 changed files with 152 additions and 168 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
.vscode
node_modules
node_modules
.DS_Store
2 changes: 1 addition & 1 deletion dist/w-form/index.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"component": true,
"usingComponents": {
"w-input": "../../dist/w-input/index",
"w-input": "/dist/w-input/index",
"w-cell-group": "../w-cell-group/index"
}
}
1 change: 1 addition & 0 deletions dist/w-validate/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ Component({
},
methods: {
isValidate(value) {
if (!value) return;
this.setData({ value });

const wussValidate = new WussValidate(this.data.rules);
Expand Down
2 changes: 1 addition & 1 deletion dist/w-validate/index.wxml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
class="validate-icon"
bind:tap="validateToast"
type="info2-o"
size="20"
size="38"
color="red"
/>
</view>
Expand Down
4 changes: 3 additions & 1 deletion dist/w-validate/index.wxss
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,7 @@
padding-right: 30rpx;
}
.wuss-validate-showIcon .validate-icon {
display: block;
display: flex;
justify-content: center;
align-items: center;
}
22 changes: 11 additions & 11 deletions pages/index/index.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
{
"usingComponents": {
"w-calendar": "../../dist/w-calendar/index",
"w-drop-menu": "../../dist/w-drop-menu/index",
"w-mask-shadow": "../../dist/w-mask-shadow/index",
"w-popup": "../../dist/w-popup/index",
"w-activity-indicator": "../../dist/w-activity-indicator/index",
"w-button": "../../dist/w-button/index",
"w-icon": "../../dist/w-icon/index",
"w-pane": "../../dist/w-pane/index",
"w-cell": "../../dist/w-cell/index",
"w-cell-group": "../../dist/w-cell-group/index"
"w-calendar": "/dist/w-calendar/index",
"w-drop-menu": "/dist/w-drop-menu/index",
"w-mask-shadow": "/dist/w-mask-shadow/index",
"w-popup": "/dist/w-popup/index",
"w-activity-indicator": "/dist/w-activity-indicator/index",
"w-button": "/dist/w-button/index",
"w-icon": "/dist/w-icon/index",
"w-pane": "/dist/w-pane/index",
"w-cell": "/dist/w-cell/index",
"w-cell-group": "/dist/w-cell-group/index"
}
}
}
2 changes: 1 addition & 1 deletion pages/index/index.wxml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
hover-stop-propagation="false"
>
<view class="header">
<image class="logo" src="../../dist/common/image/logo.gif" ></image>
<image class="logo" src="/dist/common/image/logo.gif" ></image>
<text class="title">Wuss Weapp</text>
</view>

Expand Down
8 changes: 4 additions & 4 deletions pages/w-action-sheet/index.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"usingComponents": {
"w-pane": "../../dist/w-pane/index",
"w-button": "../../dist/w-button/index",
"w-action-sheet": "../../dist/w-action-sheet/index"
"w-pane": "/dist/w-pane/index",
"w-button": "/dist/w-button/index",
"w-action-sheet": "/dist/w-action-sheet/index"
}
}
}
6 changes: 3 additions & 3 deletions pages/w-activity-indicator/index.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"usingComponents": {
"w-indicator": "../../dist/w-activity-indicator/index",
"w-pane": "../../dist/w-pane/index"
"w-indicator": "/dist/w-activity-indicator/index",
"w-pane": "/dist/w-pane/index"
}
}
}
58 changes: 19 additions & 39 deletions pages/w-alert/index.js
Original file line number Diff line number Diff line change
@@ -1,96 +1,76 @@
/*
* @Author: Github.Caitingwei[https://github.com/Caitingwei]
* @Date: 2018-09-10 15:51:06
* @Last Modified by: Github.Caitingwei[https://github.com/Caitingwei]
* @Last Modified time: 2018-09-10 17:23:30
* @Last Modified by: cnyballk[https://github.com/cnyballk]
* @Last Modified time: 2018-09-19 09:20:34
*/
import {
Alert
} from '../../dist/common/index';
import { Alert } from '../../dist/common/index';

Page({

/**
* 页面的初始数据
*/
data: {

},
data: {},

/**
* 生命周期函数--监听页面加载
*/
onLoad: function (options) {

},
onLoad: function(options) {},

/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady: function () {

},
onReady: function() {},
handleClick() {
Alert({
title: '提示',
content: 'wuss weapp is good',
confirm: () => {
console.log('ok')
console.log('ok');
},
})
});
},
handleClick2() {
Alert({
title: 'ButtonColor',
content: '按钮字体颜色是#28a2f3',
buttonColor: '#28a2f3',
})
});
},
handleClick3() {
Alert({
title: 'MoreText',
content: '更多文字更多文字更多文字更多文字更多文字更多文字更多文字更多文字更多文字更多文字更多文字更多文字更多文字更多文字更多文字更多文字更多文字更多文字更多文字更多文字更多文字更多文字更多文字更多文字更多文字更多文字更多文字更多文字更多文字更多文字更多文字更多文字更多文字更多文字更多文字更多文字更多文字更多文字更多文字更多文字更多文字更多文字更多文字更多文字更多文字更多文字更多文字更多文字更多文字更多文字更多文字更多文字',
})
content:
'更多文字更多文字更多文字更多文字更多文字更多文字更多文字更多文字更多文字更多文字更多文字更多文字更多文字更多文字更多文字更多文字更多文字更多文字更多文字更多文字更多文字更多文字更多文字更多文字更多文字更多文字更多文字更多文字更多文字更多文字更多文字更多文字更多文字更多文字更多文字更多文字更多文字更多文字更多文字更多文字更多文字更多文字更多文字更多文字更多文字更多文字更多文字更多文字更多文字更多文字更多文字更多文字',
});
},
/**
* 生命周期函数--监听页面显示
*/
onShow: function () {

},
onShow: function() {},

/**
* 生命周期函数--监听页面隐藏
*/
onHide: function () {

},
onHide: function() {},

/**
* 生命周期函数--监听页面卸载
*/
onUnload: function () {

},
onUnload: function() {},

/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh: function () {

},
onPullDownRefresh: function() {},

/**
* 页面上拉触底事件的处理函数
*/
onReachBottom: function () {

},
onReachBottom: function() {},

/**
* 用户点击右上角分享
*/
onShareAppMessage: function () {

}
})
onShareAppMessage: function() {},
});
8 changes: 4 additions & 4 deletions pages/w-alert/index.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"usingComponents": {
"w-alert": "../../dist/w-alert/index",
"w-button": "../../dist/w-button/index",
"w-pane": "../../dist/w-pane/index"
"w-alert": "/dist/w-alert/index",
"w-button": "/dist/w-button/index",
"w-pane": "/dist/w-pane/index"
}
}
}
6 changes: 3 additions & 3 deletions pages/w-avatar/index.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"navigationBarTitleText": "Avtar 头像",
"usingComponents": {
"w-avatar": "../../dist/w-avatar/index",
"w-pane": "../../dist/w-pane/index"
"w-avatar": "/dist/w-avatar/index",
"w-pane": "/dist/w-pane/index"
}
}
}
8 changes: 4 additions & 4 deletions pages/w-badge/index.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"navigationBarTitleText": "badge 徽章",
"usingComponents": {
"w-badge": "../../dist/w-badge/index",
"w-button": "../../dist/w-button/index",
"w-pane": "../../dist/w-pane/index",
"w-icon": "../../dist/w-icon/index"
"w-badge": "/dist/w-badge/index",
"w-button": "/dist/w-button/index",
"w-pane": "/dist/w-pane/index",
"w-icon": "/dist/w-icon/index"
}
}
10 changes: 5 additions & 5 deletions pages/w-button/index.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"usingComponents": {
"w-button": "../../dist/w-button/index",
"w-pane": "../../dist/w-pane/index",
"w-cell": "../../dist/w-cell/index",
"w-cell-group": "../../dist/w-cell-group/index"
"w-button": "/dist/w-button/index",
"w-pane": "/dist/w-pane/index",
"w-cell": "/dist/w-cell/index",
"w-cell-group": "/dist/w-cell-group/index"
}
}
}
8 changes: 4 additions & 4 deletions pages/w-calendar/index.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"usingComponents": {
"w-calendar": "../../dist/w-calendar/index",
"w-button": "../../dist/w-button/index",
"w-pane": "../../dist/w-pane/index"
"w-calendar": "/dist/w-calendar/index",
"w-button": "/dist/w-button/index",
"w-pane": "/dist/w-pane/index"
}
}
}
10 changes: 5 additions & 5 deletions pages/w-cell/index.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"usingComponents": {
"w-cell": "../../dist/w-cell/index",
"w-cell-group": "../../dist/w-cell-group/index",
"w-button": "../../dist/w-button/index",
"w-pane": "../../dist/w-pane/index"
"w-cell": "/dist/w-cell/index",
"w-cell-group": "/dist/w-cell-group/index",
"w-button": "/dist/w-button/index",
"w-pane": "/dist/w-pane/index"
}
}
}
10 changes: 5 additions & 5 deletions pages/w-checkbox/index.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"navigationBarTitleText": "Checkbox 复选框",
"usingComponents": {
"w-cell": "../../dist/w-cell/index",
"w-cell-group": "../../dist/w-cell-group/index",
"w-button": "../../dist/w-button/index",
"w-checkbox": "../../dist/w-checkbox/index",
"w-pane": "../../dist/w-pane/index"
"w-cell": "/dist/w-cell/index",
"w-cell-group": "/dist/w-cell-group/index",
"w-button": "/dist/w-button/index",
"w-checkbox": "/dist/w-checkbox/index",
"w-pane": "/dist/w-pane/index"
}
}
8 changes: 4 additions & 4 deletions pages/w-countdown/index.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"navigationBarTitleText": "Countdown 倒计时",
"usingComponents": {
"w-countdown": "../../dist/w-countdown/index",
"w-button": "../../dist/w-button/index",
"w-pane": "../../dist/w-pane/index"
"w-countdown": "/dist/w-countdown/index",
"w-button": "/dist/w-button/index",
"w-pane": "/dist/w-pane/index"
}
}
}
8 changes: 4 additions & 4 deletions pages/w-dialog/index.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"usingComponents": {
"w-dialog": "../../dist/w-dialog/index",
"w-button": "../../dist/w-button/index",
"w-pane": "../../dist/w-pane/index"
"w-dialog": "/dist/w-dialog/index",
"w-button": "/dist/w-button/index",
"w-pane": "/dist/w-pane/index"
}
}
}
2 changes: 1 addition & 1 deletion pages/w-dialog/index.wxml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
bind:close="handleClose"
>
<view class="example-dialog" hover-class="none" hover-stop-propagation="false">
<image style="width: 100%;height: 300px;" class="" src="../../dist/common/image/logo.gif" ></image>
<image style="width: 100%;height: 300px;" class="" src="/dist/common/image/logo.gif" ></image>
</view>
</w-dialog>

Expand Down
6 changes: 3 additions & 3 deletions pages/w-drop-menu/index.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"usingComponents": {
"w-drop-menu": "../../dist/w-drop-menu/index",
"w-pane": "../../dist/w-pane/index"
"w-drop-menu": "/dist/w-drop-menu/index",
"w-pane": "/dist/w-pane/index"
}
}
}
22 changes: 11 additions & 11 deletions pages/w-form/index.json
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
{
"navigationBarTitleText": "Form 表单",
"usingComponents": {
"w-cell": "../../dist/w-cell/index",
"w-cell-group": "../../dist/w-cell-group/index",
"w-input": "../../dist/w-input/index",
"w-checkbox": "../../dist/w-checkbox/index",
"w-button": "../../dist/w-button/index",
"w-form": "../../dist/w-form/index",
"w-switch": "../../dist/w-switch/index",
"w-radio": "../../dist/w-radio/index",
"w-validate": "../../dist/w-validate/index",
"w-picker": "../../dist/w-picker/index",
"w-pane": "../../dist/w-pane/index"
"w-cell": "/dist/w-cell/index",
"w-cell-group": "/dist/w-cell-group/index",
"w-input": "/dist/w-input/index",
"w-checkbox": "/dist/w-checkbox/index",
"w-button": "/dist/w-button/index",
"w-form": "/dist/w-form/index",
"w-switch": "/dist/w-switch/index",
"w-radio": "/dist/w-radio/index",
"w-validate": "/dist/w-validate/index",
"w-picker": "/dist/w-picker/index",
"w-pane": "/dist/w-pane/index"
}
}
Loading

0 comments on commit a9f914b

Please sign in to comment.