Press n or j to go to the next uncovered block, b, p or k for the previous block.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 | 7x 7x 7x 7x 7x 583x 583x 583x 7x 7x 7x 7x 7x 7x 283x 283x 283x 7x | <template>
<span :class="$style.root" v-on="$listeners" vusion-slot-name-edit="text">
<slot>{{ text }}</slot>
</span>
</template>
<script>
export default {
name: 'u-text',
props: {
text: String,
},
};
</script>
<style module>
.root {
white-space: pre-wrap;
}
.root[size="small"] {
font-size: var(--text-font-size-small);
}
.root[size="normal"] { /* 父级字号不是默认大小时,该值有用的 */
font-size: var(--text-font-size);
}
.root[size="large"] {
font-size: var(--text-font-size-large);
}
.root[size="huge"] {
font-size: var(--text-font-size-huge);
}
.root[weight="normal"] {
font-weight: normal;
}
.root[weight="bold"] {
font-weight: bold;
}
.root[color="default"] {E
/* By default */
}
.root[color="primary"] {
color: var(--text-color-primary);
}
.root[color="secondary"] {
color: var(--text-color-secondary);
}
.root[color="success"] {
color: var(--text-color-success);
}
.root[color="warning"] {
color: var(--text-color-warning);
}
.root[color="error"] {
color: var(--text-color-error);
}
.root[color="disabled"] {
color: var(--text-color-disabled);
}
.root[overflow="ellipsis"], .root[wrap="ellipsis"] {
display: block;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
.root[overflow="break"], .root[wrap="break"] {
word-wrap: break-word;
hyphens: auto;
white-space: normal;
}
.root[overflow="nowrap"], .root[wrap="nowrap"] {
white-space: nowrap;
}
.root[display="block"] {
display: block;
}
</style>
|