Unverified Commit 39ab6e31 authored by LIUCHAO's avatar LIUCHAO Committed by GitHub

Fix: spelling mistake (#1234)

* fix(input): amend annotation spelling mistake

* fix(badge): amend annotation spelling mistake

* fix(modal): amend annotation spelling mistake

* fix(notice-bar): amend annotation spelling mistake

* fix(radio): amend annotation spelling mistake

* fix(tabs-swiper): amend ClassName spelling mistake

* fix(toast): amend annotation spelling mistake

* fix(message-input): amend ClassName spelling mistake

* fix(card): amend Image invalid mode

* fix(message-input): amend ClassName spelling mistake
parent 068c3434
...@@ -113,7 +113,7 @@ ...@@ -113,7 +113,7 @@
style.right = this.offset[1] + 'rpx'; style.right = this.offset[1] + 'rpx';
style.transform = "translateY(0) translateX(0)"; style.transform = "translateY(0) translateX(0)";
} }
// 如果尺寸为mini,后接上scal() // 如果尺寸为mini,后接上scale()
if(this.size == 'mini') { if(this.size == 'mini') {
style.transform = style.transform + " scale(0.8)"; style.transform = style.transform + " scale(0.8)";
} }
......
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
<image <image
:src="thumb" :src="thumb"
class="u-card__head--left__thumb" class="u-card__head--left__thumb"
mode="aspectfull" mode="aspectFill"
v-if="thumb" v-if="thumb"
:style="{ :style="{
height: thumbWidth + 'rpx', height: thumbWidth + 'rpx',
......
...@@ -251,7 +251,7 @@ export default { ...@@ -251,7 +251,7 @@ export default {
}, },
getStyle() { getStyle() {
let style = {}; let style = {};
// 如果没有自定义高度,就根据type为input还是textare来分配一个默认的高度 // 如果没有自定义高度,就根据type为input还是textarea来分配一个默认的高度
style.minHeight = this.height ? this.height + 'rpx' : this.type == 'textarea' ? style.minHeight = this.height ? this.height + 'rpx' : this.type == 'textarea' ?
this.textareaHeight + 'rpx' : this.inputHeight + 'rpx'; this.textareaHeight + 'rpx' : this.inputHeight + 'rpx';
style = Object.assign(style, this.customStyle); style = Object.assign(style, this.customStyle);
......
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
></view> ></view>
<view v-if="mode === 'middleLine' && charArrLength <= index" :class="[breathe && charArrLength == index ? 'u-breathe' : '', charArrLength === index ? 'u-middle-line-active' : '']" <view v-if="mode === 'middleLine' && charArrLength <= index" :class="[breathe && charArrLength == index ? 'u-breathe' : '', charArrLength === index ? 'u-middle-line-active' : '']"
class="u-middle-line" :style="{height: bold ? '4px' : '2px', background: charArrLength === index ? activeColor : inactiveColor}"></view> class="u-middle-line" :style="{height: bold ? '4px' : '2px', background: charArrLength === index ? activeColor : inactiveColor}"></view>
<view v-if="mode === 'bottomLine'" :class="[breathe && charArrLength == index ? 'u-breathe' : '', charArrLength === index ? 'u-buttom-line-active' : '']" <view v-if="mode === 'bottomLine'" :class="[breathe && charArrLength == index ? 'u-breathe' : '', charArrLength === index ? 'u-bottom-line-active' : '']"
class="u-bottom-line" :style="{height: bold ? '4px' : '2px', background: charArrLength === index ? activeColor : inactiveColor}"></view> class="u-bottom-line" :style="{height: bold ? '4px' : '2px', background: charArrLength === index ? activeColor : inactiveColor}"></view>
<block v-if="!dotFill"> {{ charArr[index] ? charArr[index] : ''}}</block> <block v-if="!dotFill"> {{ charArr[index] ? charArr[index] : ''}}</block>
<block v-else> <block v-else>
...@@ -294,7 +294,7 @@ ...@@ -294,7 +294,7 @@
transform: translate(-50%, -50%); transform: translate(-50%, -50%);
} }
.u-buttom-line-active { .u-bottom-line-active {
background: $u-type-primary; background: $u-type-primary;
} }
......
...@@ -44,7 +44,7 @@ ...@@ -44,7 +44,7 @@
* @property {Boolean} show-title 是否显示标题(默认true) * @property {Boolean} show-title 是否显示标题(默认true)
* @property {Boolean} async-close 是否异步关闭,只对确定按钮有效(默认false) * @property {Boolean} async-close 是否异步关闭,只对确定按钮有效(默认false)
* @property {Boolean} show-confirm-button 是否显示确认按钮(默认true) * @property {Boolean} show-confirm-button 是否显示确认按钮(默认true)
* @property {Stringr | Number} negative-top modal往上偏移的值 * @property {String | Number} negative-top modal往上偏移的值
* @property {Boolean} show-cancel-button 是否显示取消按钮(默认false) * @property {Boolean} show-cancel-button 是否显示取消按钮(默认false)
* @property {Boolean} mask-close-able 是否允许点击遮罩关闭modal(默认false) * @property {Boolean} mask-close-able 是否允许点击遮罩关闭modal(默认false)
* @property {String} confirm-text 确认按钮的文字内容(默认"确认") * @property {String} confirm-text 确认按钮的文字内容(默认"确认")
......
...@@ -68,8 +68,8 @@ ...@@ -68,8 +68,8 @@
* @property {String Number} font-size 字体大小,单位rpx(默认28) * @property {String Number} font-size 字体大小,单位rpx(默认28)
* @property {Boolean} is-circular mode为horizontal时,指明是否水平衔接滚动(默认true) * @property {Boolean} is-circular mode为horizontal时,指明是否水平衔接滚动(默认true)
* @property {String} play-state 播放状态,play - 播放,paused - 暂停(默认play) * @property {String} play-state 播放状态,play - 播放,paused - 暂停(默认play)
* @property {String Nubmer} border-radius 通知栏圆角(默认为0) * @property {String Number} border-radius 通知栏圆角(默认为0)
* @property {String Nubmer} padding 内边距,字符串,与普通的内边距css写法一直(默认"18rpx 24rpx") * @property {String Number} padding 内边距,字符串,与普通的内边距css写法一直(默认"18rpx 24rpx")
* @property {Boolean} no-list-hidden 列表为空时,是否显示组件(默认false) * @property {Boolean} no-list-hidden 列表为空时,是否显示组件(默认false)
* @property {Boolean} disable-touch 是否禁止通过手动滑动切换通知,只有mode = vertical,或者mode = horizontal且is-circular = false时有效(默认true) * @property {Boolean} disable-touch 是否禁止通过手动滑动切换通知,只有mode = vertical,或者mode = horizontal且is-circular = false时有效(默认true)
* @event {Function} click 点击通告文字触发,只有mode = vertical,或者mode = horizontal且is-circular = false时有效 * @event {Function} click 点击通告文字触发,只有mode = vertical,或者mode = horizontal且is-circular = false时有效
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
<script> <script>
import Emitter from '../../libs/util/emitter.js'; import Emitter from '../../libs/util/emitter.js';
/** /**
* radioRroup 单选框父组件 * radioGroup 单选框父组件
* @description 单选框用于有一个选择,用户只能选择其中一个的场景。搭配u-radio使用 * @description 单选框用于有一个选择,用户只能选择其中一个的场景。搭配u-radio使用
* @tutorial https://www.uviewui.com/components/radio.html * @tutorial https://www.uviewui.com/components/radio.html
* @property {Boolean} disabled 是否禁用所有radio(默认false) * @property {Boolean} disabled 是否禁用所有radio(默认false)
......
...@@ -94,7 +94,7 @@ ...@@ -94,7 +94,7 @@
this.parent.children.push(this); this.parent.children.push(this);
}, },
computed: { computed: {
// 是否禁用,如果父组件u-raios-group禁用的话,将会忽略子组件的配置 // 是否禁用,如果父组件u-radio-group禁用的话,将会忽略子组件的配置
elDisabled() { elDisabled() {
return this.disabled !== '' ? this.disabled : this.parentData.disabled !== null ? this.parentData.disabled : false; return this.disabled !== '' ? this.disabled : this.parentData.disabled !== null ? this.parentData.disabled : false;
}, },
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
background: bgColor background: bgColor
}"> }">
<scroll-view scroll-x class="u-scroll-view" :scroll-left="scrollLeft" scroll-with-animation :style="{ zIndex: zIndex + 1 }"> <scroll-view scroll-x class="u-scroll-view" :scroll-left="scrollLeft" scroll-with-animation :style="{ zIndex: zIndex + 1 }">
<view class="u-tabs-scroll-box" :class="{'u-tabs-scorll-flex': !isScroll}"> <view class="u-tabs-scroll-box" :class="{'u-tabs-scroll-flex': !isScroll}">
<view class="u-tabs-item" :style="[tabItemStyle(index)]" <view class="u-tabs-item" :style="[tabItemStyle(index)]"
v-for="(item, index) in getTabs" :key="index" :class="[preId + index]" @tap="emit(index)"> v-for="(item, index) in getTabs" :key="index" :class="[preId + index]" @tap="emit(index)">
<u-badge :count="item[count] || item['count'] || 0" :offset="offset" size="mini"></u-badge> <u-badge :count="item[count] || item['count'] || 0" :offset="offset" size="mini"></u-badge>
...@@ -428,12 +428,12 @@ ...@@ -428,12 +428,12 @@
position: relative; position: relative;
} }
.u-tabs-scorll-flex { .u-tabs-scroll-flex {
@include vue-flex; @include vue-flex;
justify-content: space-between; justify-content: space-between;
} }
.u-tabs-scorll-flex .u-tabs-item { .u-tabs-scroll-flex .u-tabs-item {
flex: 1; flex: 1;
} }
......
...@@ -48,7 +48,7 @@ ...@@ -48,7 +48,7 @@
}, },
computed: { computed: {
iconName() { iconName() {
// 只有不为none,并且type为error|warning|succes|info时候,才显示图标 // 只有不为none,并且type为error|warning|success|info时候,才显示图标
if (['error', 'warning', 'success', 'info'].indexOf(this.tmpConfig.type) >= 0 && this.tmpConfig.icon) { if (['error', 'warning', 'success', 'info'].indexOf(this.tmpConfig.type) >= 0 && this.tmpConfig.icon) {
let icon = this.$u.type2icon(this.tmpConfig.type); let icon = this.$u.type2icon(this.tmpConfig.type);
return icon; return icon;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment