feat:转账插件
This commit is contained in:
@@ -13,10 +13,10 @@
|
||||
>¥</text
|
||||
>
|
||||
<view class="u-text__prefix-icon" v-if="prefixIcon">
|
||||
<u-icon
|
||||
<up-icon
|
||||
:name="prefixIcon"
|
||||
:customStyle="addStyle(iconStyle)"
|
||||
></u-icon>
|
||||
></up-icon>
|
||||
</view>
|
||||
<u-link
|
||||
v-if="mode === 'link'" class="u-text__value"
|
||||
@@ -59,10 +59,10 @@
|
||||
>{{ value }}</text
|
||||
>
|
||||
<view class="u-text__suffix-icon" v-if="suffixIcon">
|
||||
<u-icon
|
||||
<up-icon
|
||||
:name="suffixIcon"
|
||||
:customStyle="addStyle(iconStyle)"
|
||||
></u-icon>
|
||||
></up-icon>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
@@ -78,7 +78,7 @@ import { addStyle, addUnit, deepMerge } from '../../libs/function/index';
|
||||
/**
|
||||
* Text 文本
|
||||
* @description 此组件集成了文本类在项目中的常用功能,包括状态,拨打电话,格式化日期,*替换,超链接...等功能。 您大可不必在使用特殊文本时自己定义,text组件几乎涵盖您能使用的大部分场景。
|
||||
* @tutorial https://ijry.github.io/uview-plus/components/loading.html
|
||||
* @tutorial https://uview-plus.jiangruyi.com/components/loading.html
|
||||
* @property {String} type 主题颜色
|
||||
* @property {Boolean} show 是否显示(默认 true )
|
||||
* @property {String | Number} text 显示的值
|
||||
@@ -120,26 +120,28 @@ export default {
|
||||
}
|
||||
// 占满剩余空间
|
||||
if (this.flex1) {
|
||||
style.flex = 1;
|
||||
// #ifndef APP-NVUE
|
||||
style.width = '100%';
|
||||
style.flex = 1;
|
||||
// #ifndef APP-NVUE
|
||||
style.width = '100%';
|
||||
// #endif
|
||||
}
|
||||
}
|
||||
return style;
|
||||
},
|
||||
valueStyle() {
|
||||
const style = {
|
||||
textDecoration: this.decoration,
|
||||
fontWeight: this.bold ? 'bold' : 'normal',
|
||||
wordWrap: this.wordWrap,
|
||||
fontSize: addUnit(this.size)
|
||||
}
|
||||
!this.type && (style.color = this.color)
|
||||
this.isNvue && this.lines && (style.lines = this.lines)
|
||||
this.lineHeight &&
|
||||
(style.lineHeight = addUnit(this.lineHeight))
|
||||
!this.isNvue && this.block && (style.display = 'block')
|
||||
return deepMerge(style, addStyle(this.customStyle))
|
||||
valueStyle() {
|
||||
const style = {
|
||||
textDecoration: this.decoration,
|
||||
fontWeight: this.bold ? 'bold' : 'normal',
|
||||
wordWrap: this.wordWrap,
|
||||
fontSize: addUnit(this.size)
|
||||
}
|
||||
if (!this.type) {
|
||||
style.color = this.color || this.upThemeVar('--up-content-color', this.$u?.color?.contentColor || '#606266')
|
||||
}
|
||||
this.isNvue && this.lines && (style.lines = this.lines)
|
||||
this.lineHeight &&
|
||||
(style.lineHeight = addUnit(this.lineHeight))
|
||||
!this.isNvue && this.block && (style.display = 'block')
|
||||
return deepMerge(style, addStyle(this.customStyle))
|
||||
},
|
||||
isNvue() {
|
||||
let nvue = false
|
||||
@@ -175,8 +177,6 @@ export default {
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
@import '../../libs/css/components.scss';
|
||||
|
||||
.u-text {
|
||||
@include flex(row);
|
||||
align-items: center;
|
||||
|
||||
Reference in New Issue
Block a user