Skip to content

Commit

Permalink
fix: 1. 处理popup弹窗H5样式动画异常问题,以及其他多个组件修复。
Browse files Browse the repository at this point in the history
  • Loading branch information
wlxuqu committed Nov 22, 2021
1 parent 3305e52 commit 3129dfb
Show file tree
Hide file tree
Showing 100 changed files with 151 additions and 141 deletions.
2 changes: 1 addition & 1 deletion pages.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// "current": 0, //当前激活的模式(list 的索引项)
// "list": [{
// "name": "test", //模式名称
// "path": "pages/componentsB/dropdown/dropdown", //启动页面,必选
// "path": "pages/componentsA/test/test", //启动页面,必选
// "query": "" //启动参数,在页面的onLoad函数里面得到
// }]
// },
Expand Down
3 changes: 0 additions & 3 deletions pages/componentsA/test/test.nvue

This file was deleted.

5 changes: 5 additions & 0 deletions pages/componentsA/test/test.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<template>
<view>
<u-icon name="map"></u-icon>
</view>
</template>
3 changes: 2 additions & 1 deletion uni_modules/uview-ui/components/u--input/u--input.vue
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@
@blur="$emit('blur')"
@keyboardheightchange="$emit('keyboardheightchange')"
@change="e => $emit('change', e)"
@input="e => $emit('input', e)"
@input="e => $emit('input', e)"
@confirm="e => $emit('confirm', e)"
@clear="$emit('clear')"
@click="$emit('click')"
></uvInput>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@
}
</script>

<style lang="scss">
<style lang="scss" scoped>
@import "../../libs/css/components.scss";
$u-action-sheet-reset-button-width:100% !default;
$u-action-sheet-title-font-size: 16px !default;
Expand Down
2 changes: 1 addition & 1 deletion uni_modules/uview-ui/components/u-album/u-album.vue
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@
}
</script>

<style lang="scss">
<style lang="scss" scoped>
@import "../../libs/css/components.scss";
.u-album {
Expand Down
2 changes: 1 addition & 1 deletion uni_modules/uview-ui/components/u-alert/u-alert.vue
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@
}
</script>

<style lang="scss">
<style lang="scss" scoped>
@import "../../libs/css/components.scss";
.u-alert {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@
}
</script>

<style lang="scss">
<style lang="scss" scoped>
@import "../../libs/css/components.scss";
.u-avatar-group {
Expand Down
2 changes: 1 addition & 1 deletion uni_modules/uview-ui/components/u-avatar/u-avatar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@
}
</script>

<style lang="scss">
<style lang="scss" scoped>
@import "../../libs/css/components.scss";
.u-avatar {
Expand Down
2 changes: 1 addition & 1 deletion uni_modules/uview-ui/components/u-back-top/u-back-top.vue
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@
}
</script>

<style lang="scss">
<style lang="scss" scoped>
@import '../../libs/css/components.scss';
$u-back-top-flex:1 !default;
$u-back-top-height:100% !default;
Expand Down
2 changes: 1 addition & 1 deletion uni_modules/uview-ui/components/u-badge/u-badge.vue
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@
}
</script>

<style lang="scss">
<style lang="scss" scoped>
@import "../../libs/css/components.scss";
$u-badge-primary: $u-primary !default;
Expand Down
2 changes: 1 addition & 1 deletion uni_modules/uview-ui/components/u-button/u-button.vue
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ export default {
};
</script>

<style lang="scss">
<style lang="scss" scoped>
@import "../../libs/css/components.scss";
/* #ifndef APP-NVUE */
Expand Down
2 changes: 1 addition & 1 deletion uni_modules/uview-ui/components/u-calendar/header.vue
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
}
</script>

<style lang="scss">
<style lang="scss" scoped>
@import "../../libs/css/components.scss";
.u-calendar-header {
Expand Down
26 changes: 13 additions & 13 deletions uni_modules/uview-ui/components/u-calendar/month.vue
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@
// 不进行四舍五入的形式保留2位小数
const dayWidth = Number(parseFloat(this.width / 7).toFixed(3).slice(0, -1))
// 得出每个日期的宽度
style.width = uni.$u.addUnit(dayWidth)
style.width = uni.$u.addUnit(dayWidth)
style.height = uni.$u.addUnit(this.rowHeight)
if (index2 === 0) {
// 获取当前为星期几,如果为0,则为星期天,减一为每月第一天时,需要向左偏移的item个数
Expand All @@ -177,7 +177,7 @@
style.backgroundColor = this.color
}
if (this.mode === 'single') {
if (date === this.selected[0]) {
if (date === this.selected[0]) {
// 因为需要对nvue的兼容,只能这么写,无法缩写,也无法通过类名控制等等
style.borderTopLeftRadius = '3px'
style.borderBottomLeftRadius = '3px'
Expand Down Expand Up @@ -278,12 +278,12 @@
},
methods: {
init() {
this.$nextTick(() => {
// 这里需要另一个延时,因为获取宽度后,会进行月份数据渲染,只有渲染完成之后,才有真正的高度
this.$nextTick(() => {
// 这里需要另一个延时,因为获取宽度后,会进行月份数据渲染,只有渲染完成之后,才有真正的高度
// 因为nvue下,$nextTick并不是100%可靠的
uni.$u.sleep(10).then(() => {
this.getWrapperWidth()
this.getMonthRect()
uni.$u.sleep(10).then(() => {
this.getWrapperWidth()
this.getMonthRect()
})
})
},
Expand Down Expand Up @@ -311,15 +311,15 @@
// 一次性返回
Promise.all(promiseAllArr).then(
sizes => {
let height = 1
let height = 1
const topArr = []
for (let i = 0; i < this.months.length; i++) {
// 添加到months数组中,供scroll-view滚动事件中,判断当前滚动到哪个月份
topArr[i] = height
topArr[i] = height
height += sizes[i].height
}
// 由于微信下,无法通过this.months[i].top的形式(引用类型)去修改父组件的month的top值,所以使用事件形式对外发出
this.$emit('updateMonthTop', topArr)
}
// 由于微信下,无法通过this.months[i].top的形式(引用类型)去修改父组件的month的top值,所以使用事件形式对外发出
this.$emit('updateMonthTop', topArr)
})
},
// 获取每个月份区域的尺寸
Expand Down Expand Up @@ -448,7 +448,7 @@
}
</script>

<style lang="scss">
<style lang="scss" scoped>
@import "../../libs/css/components.scss";
.u-calendar-month-wrapper {
Expand Down
2 changes: 1 addition & 1 deletion uni_modules/uview-ui/components/u-calendar/u-calendar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@
}
</script>

<style lang="scss">
<style lang="scss" scoped>
@import "../../libs/css/components.scss";
.u-calendar {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@
};
</script>

<style lang="scss">
<style lang="scss" scoped>
@import "../../libs/css/components.scss";
$u-car-keyboard-background-color: rgb(224, 228, 230) !default;
$u-car-keyboard-padding:6px 0 6px !default;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
}
</script>

<style lang="scss">
<style lang="scss" scoped>
@import "../../libs/css/components.scss";
$u-cell-group-title-padding: 16px 16px 8px !default;
Expand Down
6 changes: 3 additions & 3 deletions uni_modules/uview-ui/components/u-cell/u-cell.vue
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@
methods: {
// 点击cell
clickHandler(e) {
if (this.disabled) return
if (this.disabled) return
this.$emit('click', {
name: this.name
})
Expand All @@ -91,7 +91,7 @@
}
</script>

<style lang="scss">
<style lang="scss" scoped>
@import "../../libs/css/components.scss";
$u-cell-padding: 10px 15px !default;
Expand Down Expand Up @@ -221,4 +221,4 @@
align-items: center;
}
}
</style>
</style>
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@
}
</script>

<style lang="scss">
<style lang="scss" scoped>
@import "../../libs/css/components.scss";
.u-checkbox-group {
Expand Down
2 changes: 1 addition & 1 deletion uni_modules/uview-ui/components/u-checkbox/u-checkbox.vue
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@
}
</script>

<style lang="scss">
<style lang="scss" scoped>
@import "../../libs/css/components.scss";
$u-checkbox-icon-wrap-margin-right:6px !default;
$u-checkbox-icon-wrap-font-size:6px !default;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@
}
</script>

<style lang="scss">
<style lang="scss" scoped>
@import "../../libs/css/components.scss";
.u-circle-progress {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@
}
</script>

<style lang="scss">
<style lang="scss" scoped>
@import "../../libs/css/components.scss";
.u-code-input {
Expand Down
2 changes: 1 addition & 1 deletion uni_modules/uview-ui/components/u-col/u-col.vue
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@
}
</script>

<style lang="scss">
<style lang="scss" scoped>
@import "../../libs/css/components.scss";
.u-col {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@
};
</script>

<style lang="scss">
<style lang="scss" scoped>
@import "../../libs/css/components.scss";
.u-collapse-item {
Expand Down
2 changes: 1 addition & 1 deletion uni_modules/uview-ui/components/u-collapse/u-collapse.vue
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,6 @@
}
</script>

<style lang="scss">
<style lang="scss" scoped>
@import "../../libs/css/components.scss";
</style>
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@
};
</script>

<style lang="scss">
<style lang="scss" scoped>
@import "../../libs/css/components.scss";
.u-notice {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@
}
</script>

<style lang="scss">
<style lang="scss" scoped>
@import "../../libs/css/components.scss";
$u-count-down-text-color:$u-content-color !default;
$u-count-down-text-font-size:15px !default;
Expand Down
2 changes: 1 addition & 1 deletion uni_modules/uview-ui/components/u-count-to/u-count-to.vue
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ export default {
};
</script>

<style lang="scss">
<style lang="scss" scoped>
@import "../../libs/css/components.scss";
.u-count-num {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -330,6 +330,6 @@
}
</script>

<style lang="scss">
<style lang="scss" scoped>
@import '../../libs/css/components.scss';
</style>
2 changes: 1 addition & 1 deletion uni_modules/uview-ui/components/u-divider/u-divider.vue
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@
}
</script>

<style lang="scss">
<style lang="scss" scoped>
@import '../../libs/css/components.scss';
$u-divider-margin:15px 0 !default;
$u-divider-text-margin:0 15px !default;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@
}
</script>

<style lang="scss">
<style lang="scss" scoped>
@import '../../libs/css/components.scss';
.u-drawdown-item {
Expand Down
2 changes: 1 addition & 1 deletion uni_modules/uview-ui/components/u-empty/u-empty.vue
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@
}
</script>

<style lang="scss">
<style lang="scss" scoped>
@import '../../libs/css/components.scss';
$u-empty-text-margin-top:20rpx !default;
$u-empty-slot-margin-top:20rpx !default;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@
}
</script>

<style lang="scss">
<style lang="scss" scoped>
@import "../../libs/css/components.scss";
.u-form-item {
Expand Down
2 changes: 1 addition & 1 deletion uni_modules/uview-ui/components/u-form/u-form.vue
Original file line number Diff line number Diff line change
Expand Up @@ -195,5 +195,5 @@
};
</script>
<style lang="scss">
<style lang="scss" scoped>
</style>
2 changes: 1 addition & 1 deletion uni_modules/uview-ui/components/u-gap/u-gap.vue
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,6 @@
};
</script>

<style lang="scss">
<style lang="scss" scoped>
@import "../../libs/css/components.scss";
</style>
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@
};
</script>
<style lang="scss">
<style lang="scss" scoped>
@import "../../libs/css/components.scss";
$u-grid-item-hover-class-opcatiy:.5 !default;
$u-grid-item-margin-top:1rpx !default;
Expand Down
2 changes: 1 addition & 1 deletion uni_modules/uview-ui/components/u-grid/u-grid.vue
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@
};
</script>

<style lang="scss">
<style lang="scss" scoped>
@import "../../libs/css/components.scss";
$u-grid-width:100% !default;
.u-grid {
Expand Down
Loading

0 comments on commit 3129dfb

Please sign in to comment.