word 文档搜索添加可选中复制

This commit is contained in:
cwchen 2025-11-28 13:09:10 +08:00
parent 0df6553cc1
commit acdd310656
1 changed files with 95 additions and 0 deletions

View File

@ -928,6 +928,12 @@ export default {
color: #303133; color: #303133;
line-height: 1.8; line-height: 1.8;
font-size: 15px; font-size: 15px;
//
user-select: text;
-webkit-user-select: text;
-moz-user-select: text;
-ms-user-select: text;
cursor: text;
} }
.floating-search { .floating-search {
@ -1140,6 +1146,11 @@ export default {
scroll-behavior: smooth; scroll-behavior: smooth;
-webkit-overflow-scrolling: touch; -webkit-overflow-scrolling: touch;
will-change: scroll-position; will-change: scroll-position;
//
user-select: text;
-webkit-user-select: text;
-moz-user-select: text;
-ms-user-select: text;
// //
&::-webkit-scrollbar { &::-webkit-scrollbar {
@ -1170,6 +1181,20 @@ export default {
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
padding: 60px 80px; padding: 60px 80px;
min-height: calc(100vh - 200px); min-height: calc(100vh - 200px);
//
user-select: text;
-webkit-user-select: text;
-moz-user-select: text;
-ms-user-select: text;
//
::selection {
background: rgba(64, 158, 255, 0.2);
color: #303133;
}
::-moz-selection {
background: rgba(64, 158, 255, 0.2);
color: #303133;
}
@media (max-width: 1200px) { @media (max-width: 1200px) {
padding: 50px 60px; padding: 50px 60px;
@ -1190,10 +1215,20 @@ export default {
box-shadow: none; box-shadow: none;
overflow: visible; overflow: visible;
border: none; border: none;
//
user-select: text;
-webkit-user-select: text;
-moz-user-select: text;
-ms-user-select: text;
} }
::v-deep .docx-viewer-wrapper { ::v-deep .docx-viewer-wrapper {
background: transparent; background: transparent;
//
user-select: text;
-webkit-user-select: text;
-moz-user-select: text;
-ms-user-select: text;
} }
::v-deep .docx-viewer-wrapper>section.docx-viewer { ::v-deep .docx-viewer-wrapper>section.docx-viewer {
@ -1201,33 +1236,64 @@ export default {
box-shadow: none; box-shadow: none;
margin-bottom: 0 !important; margin-bottom: 0 !important;
padding: 0; padding: 0;
//
user-select: text;
-webkit-user-select: text;
-moz-user-select: text;
-ms-user-select: text;
} }
::v-deep .docx-viewer { ::v-deep .docx-viewer {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif;
color: #303133; color: #303133;
line-height: 1.8; line-height: 1.8;
//
user-select: text !important;
-webkit-user-select: text !important;
-moz-user-select: text !important;
-ms-user-select: text !important;
//
::selection {
background: rgba(64, 158, 255, 0.25) !important;
color: #303133 !important;
}
::-moz-selection {
background: rgba(64, 158, 255, 0.25) !important;
color: #303133 !important;
}
//
* {
user-select: text !important;
-webkit-user-select: text !important;
-moz-user-select: text !important;
-ms-user-select: text !important;
}
p { p {
margin: 0.8em 0; margin: 0.8em 0;
word-wrap: break-word; word-wrap: break-word;
word-break: break-word; word-break: break-word;
cursor: text;
} }
h1, h2, h3, h4, h5, h6 { h1, h2, h3, h4, h5, h6 {
margin: 1.2em 0 0.8em 0; margin: 1.2em 0 0.8em 0;
font-weight: 600; font-weight: 600;
line-height: 1.4; line-height: 1.4;
cursor: text;
} }
table { table {
border-collapse: collapse; border-collapse: collapse;
width: 100%; width: 100%;
margin: 1em 0; margin: 1em 0;
cursor: text;
td, th { td, th {
padding: 8px 12px; padding: 8px 12px;
border: 1px solid #e4e7ed; border: 1px solid #e4e7ed;
cursor: text;
} }
th { th {
@ -1239,10 +1305,12 @@ export default {
ul, ol { ul, ol {
margin: 0.8em 0; margin: 0.8em 0;
padding-left: 2em; padding-left: 2em;
cursor: text;
} }
li { li {
margin: 0.4em 0; margin: 0.4em 0;
cursor: text;
} }
img { img {
@ -1250,6 +1318,21 @@ export default {
height: auto; height: auto;
display: block; display: block;
margin: 1em auto; margin: 1em auto;
user-select: none;
-webkit-user-select: none;
cursor: default;
}
//
a {
cursor: pointer;
user-select: text !important;
}
//
code, pre {
user-select: text !important;
cursor: text;
} }
} }
@ -1308,6 +1391,12 @@ export default {
padding: 2px 4px; padding: 2px 4px;
border-radius: 3px; border-radius: 3px;
transition: all 0.2s ease; transition: all 0.2s ease;
//
user-select: text !important;
-webkit-user-select: text !important;
-moz-user-select: text !important;
-ms-user-select: text !important;
cursor: text;
} }
::v-deep .search-highlight.is-active, ::v-deep .search-highlight.is-active,
@ -1319,5 +1408,11 @@ export default {
padding: 2px 4px; padding: 2px 4px;
font-weight: 500; font-weight: 500;
transition: all 0.2s ease; transition: all 0.2s ease;
//
user-select: text !important;
-webkit-user-select: text !important;
-moz-user-select: text !important;
-ms-user-select: text !important;
cursor: text;
} }
</style> </style>