mirror of
https://gitee.com/dromara/go-view.git
synced 2026-05-30 00:00:05 +08:00
feat: 文本组件可进自定义换行
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
<template>
|
||||
<div class="go-text-box">
|
||||
<div class="content">
|
||||
<span style="cursor: pointer" v-if="link" @click="click">{{ option.dataset }}</span>
|
||||
<span v-else>{{ option.dataset }}</span>
|
||||
<span style="cursor: pointer; white-space: pre-wrap" v-if="link" @click="click"></span>
|
||||
<span style="white-space: pre-wrap" v-else>{{ option.dataset }}</span>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
@@ -82,7 +82,7 @@ const click = () => {
|
||||
border-width: v-bind('borderWidth + "px"');
|
||||
border-radius: v-bind('borderRadius + "px"');
|
||||
border-color: v-bind('borderColor');
|
||||
|
||||
|
||||
background-color: v-bind('backgroundColor');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user