Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Hooke
/
data-table
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Graphs
Network
Create a new issue
Commits
Issue Boards
Authored by
hookehuyr
2023-03-08 15:39:42 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
c3c0d7119a864d691c128a34e2fb4b9b1ceceb34
c3c0d711
1 parent
4c2f7be8
✨ feat(标签控件): 可以隐藏标签标题
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
src/components/NoteField/index.vue
src/components/NoteField/index.vue
View file @
c3c0d71
<!--
* @Date: 2022-08-29 14:31:20
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2023-0
1-05 10:07:18
* @LastEditTime: 2023-0
3-08 15:28:33
* @FilePath: /data-table/src/components/NoteField/index.vue
* @Description: 富文本组件
-->
<template>
<div v-if="HideShow" class="note-field-page">
<div class="label">
<span v-if="item.component_props.required"> *</span>
{{ item.component_props.label }}
<span v-if="item.component_props.required"
class="required"
> *</span>
<span v-if="!item.component_props.hide_label">{{ item.component_props.label }}</span>
</div>
<div class="html" style="padding: 0.5rem 1rem 0 1rem;" v-html="item.component_props.note"></div>
</div>
...
...
@@ -32,7 +32,7 @@ const HideShow = computed(() => {
font-size: 0.9rem;
font-weight: bold;
span {
span
.required
{
color: red;
}
}
...
...
Please
register
or
login
to post a comment