feat:还原更新框架

This commit is contained in:
2026-07-23 14:49:48 +08:00
parent d5a6a16ea5
commit 75c7434f79
529 changed files with 43714 additions and 68201 deletions
@@ -13,10 +13,10 @@
>¥</text
>
<view class="u-text__prefix-icon" v-if="prefixIcon">
<up-icon
<u-icon
:name="prefixIcon"
:customStyle="addStyle(iconStyle)"
></up-icon>
></u-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">
<up-icon
<u-icon
:name="suffixIcon"
:customStyle="addStyle(iconStyle)"
></up-icon>
></u-icon>
</view>
</view>
</template>
@@ -78,7 +78,7 @@ import { addStyle, addUnit, deepMerge } from '../../libs/function/index';
/**
* Text 文本
* @description 此组件集成了文本类在项目中的常用功能,包括状态,拨打电话,格式化日期,*替换,超链接...等功能。 您大可不必在使用特殊文本时自己定义,text组件几乎涵盖您能使用的大部分场景。
* @tutorial https://uview-plus.jiangruyi.com/components/loading.html
* @tutorial https://ijry.github.io/uview-plus/components/loading.html
* @property {String} type 主题颜色
* @property {Boolean} show 是否显示(默认 true )
* @property {String | Number} text 显示的值
@@ -120,28 +120,26 @@ 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)
}
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))
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))
},
isNvue() {
let nvue = false
@@ -177,6 +175,8 @@ export default {
</script>
<style lang="scss" scoped>
@import '../../libs/css/components.scss';
.u-text {
@include flex(row);
align-items: center;