|
@@ -29,19 +29,10 @@
|
|
|
<p style="margin-top: 0">{{ item.question }}</p>
|
|
<p style="margin-top: 0">{{ item.question }}</p>
|
|
|
</div>
|
|
</div>
|
|
|
<!-- 如果是代码则不显示头像 -->
|
|
<!-- 如果是代码则不显示头像 -->
|
|
|
- <div class="dialog-header" v-if="item?.capacity && (!item.code || !item.sql)">
|
|
|
|
|
|
|
+ <div class="dialog-header" v-else-if="item?.capacity">
|
|
|
<img alt="avatar" src="/src/assets/slider/logo.jpg" width="28" />
|
|
<img alt="avatar" src="/src/assets/slider/logo.jpg" width="28" />
|
|
|
</div>
|
|
</div>
|
|
|
- <!-- 有代码则优先渲染代码,没有代码则渲染答案 -->
|
|
|
|
|
- <div class="dialog-code-footer" v-if="item.code || item.sql">
|
|
|
|
|
- <p class="dialog-code-footer-title" v-if="item.code">Python:</p>
|
|
|
|
|
- <span v-html="getHTML(item.code)"></span>
|
|
|
|
|
-
|
|
|
|
|
- <p class="dialog-code-footer-title" v-if="item.sql">SQL:</p>
|
|
|
|
|
- <span v-html="getHTML(item.sql)"></span>
|
|
|
|
|
- </div>
|
|
|
|
|
-
|
|
|
|
|
- <div class="dialog-footer" v-else-if="item.capacity"
|
|
|
|
|
|
|
+ <div class="dialog-footer" v-else-if="item?.capacity"
|
|
|
:style="{ display: dialogConfig.type === 'paper' ? 'inline-block' : 'block' }">
|
|
:style="{ display: dialogConfig.type === 'paper' ? 'inline-block' : 'block' }">
|
|
|
<div v-if="type === 'knowledge'" @click="openCapacity(key)"
|
|
<div v-if="type === 'knowledge'" @click="openCapacity(key)"
|
|
|
:class="[readonly || item.capacity.status === 'loading' ? 'disabled' : '']">
|
|
:class="[readonly || item.capacity.status === 'loading' ? 'disabled' : '']">
|
|
@@ -108,6 +99,19 @@
|
|
|
</p>
|
|
</p>
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
+ <!-- 没有处理答案则渲染代码和sql -->
|
|
|
|
|
+ <div class="dialog-code-footer" v-if="item.code || item.sql">
|
|
|
|
|
+ <div v-if="item.code">
|
|
|
|
|
+ <p class="dialog-code-footer-title" v-if="item.code">Python:</p>
|
|
|
|
|
+ <span v-html="item.code"></span>
|
|
|
|
|
+ </div>
|
|
|
|
|
+
|
|
|
|
|
+ <div v-if="item.sql">
|
|
|
|
|
+ <p class="dialog-code-footer-title" v-if="item.sql">SQL:</p>
|
|
|
|
|
+ <span v-html="item.sql"></span>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </div>
|
|
|
|
|
+
|
|
|
<div class="dialog-footer" v-else>
|
|
<div class="dialog-footer" v-else>
|
|
|
<span v-html="getHTML(item.answer)"></span>
|
|
<span v-html="getHTML(item.answer)"></span>
|
|
|
</div>
|
|
</div>
|
|
@@ -353,7 +357,7 @@ export default defineComponent({
|
|
|
const imageUrl = ref(undefined);
|
|
const imageUrl = ref(undefined);
|
|
|
const answerFile = ref(undefined);
|
|
const answerFile = ref(undefined);
|
|
|
const answerCode = ref(undefined);
|
|
const answerCode = ref(undefined);
|
|
|
- const answerSql = ref({});
|
|
|
|
|
|
|
+ const answerSql = ref(undefined);
|
|
|
const addQuestion = (question, file = null) => {
|
|
const addQuestion = (question, file = null) => {
|
|
|
let result = { question, capacity: null, answer: "", other: null, file: null, };
|
|
let result = { question, capacity: null, answer: "", other: null, file: null, };
|
|
|
addData(result);
|
|
addData(result);
|
|
@@ -386,7 +390,6 @@ export default defineComponent({
|
|
|
|
|
|
|
|
onMounted(() => {
|
|
onMounted(() => {
|
|
|
scrollToEnd();
|
|
scrollToEnd();
|
|
|
-
|
|
|
|
|
/**
|
|
/**
|
|
|
* 应用引用效果
|
|
* 应用引用效果
|
|
|
* 答案中 引用图标(感叹号)点击时,浮层显示引用内容
|
|
* 答案中 引用图标(感叹号)点击时,浮层显示引用内容
|
|
@@ -426,6 +429,7 @@ export default defineComponent({
|
|
|
addAnswer(loadingData.value);
|
|
addAnswer(loadingData.value);
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
if (type === "message") {
|
|
if (type === "message") {
|
|
|
message = replaceCode(message);
|
|
message = replaceCode(message);
|
|
|
answerData.value = getHTML(message);
|
|
answerData.value = getHTML(message);
|
|
@@ -443,40 +447,37 @@ export default defineComponent({
|
|
|
});
|
|
});
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ // 如果是智能数据则优先处理代码
|
|
|
if (props.type == 'smartData') {
|
|
if (props.type == 'smartData') {
|
|
|
|
|
+ answerData.value = '正在处理中...'
|
|
|
// 以下是智能数据对话的变量
|
|
// 以下是智能数据对话的变量
|
|
|
const { image_url, excel_url, excel_name, code, sql } = JSON.parse(event.data);
|
|
const { image_url, excel_url, excel_name, code, sql } = JSON.parse(event.data);
|
|
|
- answerCode.value = getHTML(code);
|
|
|
|
|
const port = window.location.port ? `:${window.location.port}` : '';
|
|
const port = window.location.port ? `:${window.location.port}` : '';
|
|
|
|
|
|
|
|
// 如果有图片或excel,则更新图片或excel地址
|
|
// 如果有图片或excel,则更新图片或excel地址
|
|
|
if (image_url) {
|
|
if (image_url) {
|
|
|
- console.log('port', port)
|
|
|
|
|
imageUrl.value = `http://${window.location.hostname}${port}${image_url}`
|
|
imageUrl.value = `http://${window.location.hostname}${port}${image_url}`
|
|
|
}
|
|
}
|
|
|
if (excel_url) {
|
|
if (excel_url) {
|
|
|
const file = {
|
|
const file = {
|
|
|
file_url: `http://${window.location.hostname}${port}${excel_url}`,
|
|
file_url: `http://${window.location.hostname}${port}${excel_url}`,
|
|
|
- // file_name: `${excel_name}` || 'excel.xlsx',
|
|
|
|
|
- // 没有名字,暂时显示点击下载xlsx
|
|
|
|
|
- file_name: '点击下载',
|
|
|
|
|
|
|
+ file_name: `${excel_name}.xlsx` || '点击下载',
|
|
|
}
|
|
}
|
|
|
- console.log('file', file)
|
|
|
|
|
answerFile.value = file
|
|
answerFile.value = file
|
|
|
}
|
|
}
|
|
|
|
|
+ if (code) answerCode.value = getHTML(code);
|
|
|
|
|
+ if (sql) answerSql.value = getHTML(sql);
|
|
|
|
|
|
|
|
- if (sql) {
|
|
|
|
|
- answerSql.value = sql;
|
|
|
|
|
- }
|
|
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-
|
|
|
|
|
if (answerData.value && !isLoaded.value) {
|
|
if (answerData.value && !isLoaded.value) {
|
|
|
answerLoaded();
|
|
answerLoaded();
|
|
|
}
|
|
}
|
|
|
addAnswer(loadingData.value);
|
|
addAnswer(loadingData.value);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
if (type === "close") {
|
|
if (type === "close") {
|
|
|
if (!answerData.value) {
|
|
if (!answerData.value) {
|
|
|
answerLoaded();
|
|
answerLoaded();
|
|
@@ -502,7 +503,6 @@ export default defineComponent({
|
|
|
if (props.type === 'doc') {
|
|
if (props.type === 'doc') {
|
|
|
sendData.doc_ids = [helper.read('docId')];
|
|
sendData.doc_ids = [helper.read('docId')];
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
helper.webSocket.send(JSON.stringify(sendData));
|
|
helper.webSocket.send(JSON.stringify(sendData));
|
|
|
});
|
|
});
|
|
|
helper.$bus.on("clear-message", () => {
|
|
helper.$bus.on("clear-message", () => {
|
|
@@ -581,15 +581,16 @@ export default defineComponent({
|
|
|
|
|
|
|
|
.paper-wrap {
|
|
.paper-wrap {
|
|
|
display: flex;
|
|
display: flex;
|
|
|
- /* TODO 加后缀 */
|
|
|
|
|
align-items: center;
|
|
align-items: center;
|
|
|
- margin-left: 40px;
|
|
|
|
|
margin-bottom: 10px;
|
|
margin-bottom: 10px;
|
|
|
cursor: pointer;
|
|
cursor: pointer;
|
|
|
|
|
+ background-color: #F5F7FE;
|
|
|
|
|
+ border-radius: 16px;
|
|
|
|
|
+ padding: 6px;
|
|
|
|
|
|
|
|
>img {
|
|
>img {
|
|
|
width: 50px;
|
|
width: 50px;
|
|
|
- margin-right: 10px;
|
|
|
|
|
|
|
+ margin: 8px 6px;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
>span {
|
|
>span {
|
|
@@ -739,218 +740,203 @@ export default defineComponent({
|
|
|
padding-left: 0;
|
|
padding-left: 0;
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
-.dialog-flex-wrap {
|
|
|
|
|
- position: relative;
|
|
|
|
|
- flex: 1;
|
|
|
|
|
- margin-top: 16px;
|
|
|
|
|
- height: 100%;
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
-.dialog-flex {
|
|
|
|
|
- position: absolute;
|
|
|
|
|
- left: 0;
|
|
|
|
|
- top: 0;
|
|
|
|
|
- right: 0;
|
|
|
|
|
- bottom: 0;
|
|
|
|
|
- overflow-y: auto;
|
|
|
|
|
- overflow-x: hidden;
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
-.section-open {
|
|
|
|
|
- margin-top: 12px;
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
-.dialog-file {
|
|
|
|
|
- width: 421px;
|
|
|
|
|
- height: 48px;
|
|
|
|
|
- border-radius: 12px;
|
|
|
|
|
- background-color: rgba(255, 255, 255, 1);
|
|
|
|
|
- color: rgba(16, 16, 16, 1);
|
|
|
|
|
- font-size: 14px;
|
|
|
|
|
- border: 1px solid rgba(229, 229, 229, 1);
|
|
|
|
|
- display: flex;
|
|
|
|
|
- align-items: center;
|
|
|
|
|
- margin-bottom: 16px;
|
|
|
|
|
- padding: 0 8px;
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
-.dialog-footer {
|
|
|
|
|
- border-radius: 12px;
|
|
|
|
|
- background-color: rgba(245, 247, 254, 1);
|
|
|
|
|
- padding: 12px 16px;
|
|
|
|
|
- margin: 16px 0;
|
|
|
|
|
-
|
|
|
|
|
- &:nth-child(2) {
|
|
|
|
|
- background-color: rgba(0, 0, 0, 0);
|
|
|
|
|
- margin: 0;
|
|
|
|
|
- }
|
|
|
|
|
|
|
|
|
|
- >p {
|
|
|
|
|
- color: rgba(16, 16, 16, 1);
|
|
|
|
|
- font-size: 14px;
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- >div {
|
|
|
|
|
- border: 1px solid rgba(64, 95, 234, 0.42);
|
|
|
|
|
- background-color: rgba(255, 255, 255, 1);
|
|
|
|
|
- color: rgba(16, 16, 16, 1);
|
|
|
|
|
|
|
+ .dialog-code-footer {
|
|
|
|
|
+ border-radius: 12px;
|
|
|
font-size: 14px;
|
|
font-size: 14px;
|
|
|
- display: inline-flex;
|
|
|
|
|
- padding: 4px 8px;
|
|
|
|
|
- border-radius: 4px;
|
|
|
|
|
- align-items: center;
|
|
|
|
|
- cursor: pointer;
|
|
|
|
|
- height: 30px;
|
|
|
|
|
|
|
+ background-color: #32333c;
|
|
|
|
|
+ color: #BCBDC3;
|
|
|
|
|
+ margin: 16px 0;
|
|
|
|
|
|
|
|
- &.disabled {
|
|
|
|
|
- cursor: not-allowed;
|
|
|
|
|
|
|
+ .dialog-code-footer-title {
|
|
|
|
|
+ font-size: 16px;
|
|
|
|
|
+ font-weight: 500;
|
|
|
|
|
+ margin: 12px 0;
|
|
|
|
|
+ width: 100%;
|
|
|
|
|
+ padding: 4px 8px;
|
|
|
|
|
+ background-color: #3D3F3F;
|
|
|
|
|
+ color: #BCBDC3;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- &:hover {
|
|
|
|
|
- background: rgb(245, 247, 254, 0.4);
|
|
|
|
|
|
|
+ &:nth-child(2) {
|
|
|
|
|
+ background-color: rgba(0, 0, 0, 0);
|
|
|
|
|
+ margin: 0;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- >span {
|
|
|
|
|
- margin: 0 8px;
|
|
|
|
|
|
|
+ >p {
|
|
|
|
|
+ font-size: 14px;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- >b {
|
|
|
|
|
- margin-right: 8px;
|
|
|
|
|
- }
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ >div {
|
|
|
|
|
+ font-size: 14px;
|
|
|
|
|
+ padding: 4px 8px;
|
|
|
|
|
+ border-radius: 4px;
|
|
|
|
|
+ align-items: center;
|
|
|
|
|
+ cursor: pointer;
|
|
|
|
|
|
|
|
- >section {
|
|
|
|
|
- padding: 0 16px;
|
|
|
|
|
- background-color: #ffffff;
|
|
|
|
|
- border-radius: 12px;
|
|
|
|
|
- margin-top: 16px;
|
|
|
|
|
|
|
+ &.disabled {
|
|
|
|
|
+ cursor: not-allowed;
|
|
|
|
|
+ }
|
|
|
|
|
|
|
|
- >p {
|
|
|
|
|
- display: inline-block;
|
|
|
|
|
- color: rgba(16, 16, 16, 1);
|
|
|
|
|
- font-size: 12px;
|
|
|
|
|
- margin-top: 16px;
|
|
|
|
|
- width: 100%;
|
|
|
|
|
|
|
+ >b {
|
|
|
|
|
+ margin-right: 8px;
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- >div {
|
|
|
|
|
- margin-top: 4px;
|
|
|
|
|
- overflow: hidden;
|
|
|
|
|
- margin-bottom: 16px;
|
|
|
|
|
- display: inline-block;
|
|
|
|
|
- width: 100%;
|
|
|
|
|
|
|
+ >section {
|
|
|
|
|
+ padding: 0 16px;
|
|
|
|
|
+ background-color: #ffffff;
|
|
|
|
|
+ border-radius: 12px;
|
|
|
|
|
+ margin-top: 16px;
|
|
|
|
|
+
|
|
|
|
|
+ >p {
|
|
|
|
|
+ display: inline-block;
|
|
|
|
|
+ color: rgba(16, 16, 16, 1);
|
|
|
|
|
+ font-size: 12px;
|
|
|
|
|
+ margin-top: 16px;
|
|
|
|
|
+ width: 100%;
|
|
|
|
|
+ }
|
|
|
|
|
|
|
|
>div {
|
|
>div {
|
|
|
- margin-top: 8px;
|
|
|
|
|
|
|
+ margin-top: 4px;
|
|
|
|
|
+ overflow: hidden;
|
|
|
|
|
+ margin-bottom: 16px;
|
|
|
|
|
+ display: inline-block;
|
|
|
|
|
+ width: 100%;
|
|
|
|
|
|
|
|
>div {
|
|
>div {
|
|
|
- &:nth-child(1) {
|
|
|
|
|
- border-radius: 4px;
|
|
|
|
|
- color: rgba(16, 16, 16, 1);
|
|
|
|
|
- font-size: 12px;
|
|
|
|
|
- height: 24px;
|
|
|
|
|
- border: 1px solid rgba(229, 229, 229, 1);
|
|
|
|
|
- display: flex;
|
|
|
|
|
- justify-content: center;
|
|
|
|
|
- align-items: center;
|
|
|
|
|
- padding-right: 8px;
|
|
|
|
|
- cursor: pointer;
|
|
|
|
|
-
|
|
|
|
|
- &.disabled {
|
|
|
|
|
- cursor: not-allowed;
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- &:hover {
|
|
|
|
|
- background: rgba(229, 229, 229, 0.2);
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ margin-top: 8px;
|
|
|
|
|
+
|
|
|
|
|
+ >div {
|
|
|
|
|
+ &:nth-child(1) {
|
|
|
|
|
+ border-radius: 4px;
|
|
|
|
|
+ color: rgba(16, 16, 16, 1);
|
|
|
|
|
+ font-size: 12px;
|
|
|
|
|
+ height: 24px;
|
|
|
|
|
+ border: 1px solid rgba(229, 229, 229, 1);
|
|
|
|
|
+ display: flex;
|
|
|
|
|
+ justify-content: center;
|
|
|
|
|
+ align-items: center;
|
|
|
|
|
+ padding-right: 8px;
|
|
|
|
|
+ cursor: pointer;
|
|
|
|
|
|
|
|
- >span {
|
|
|
|
|
- &:nth-child(1) {
|
|
|
|
|
- background-color: rgba(0, 174, 163, 0.2);
|
|
|
|
|
- color: #00aea3;
|
|
|
|
|
- font-size: 12px;
|
|
|
|
|
- border: 1px solid rgba(64, 95, 234, 0.13);
|
|
|
|
|
- padding: 0 4px;
|
|
|
|
|
- margin: 0 4px 0 0;
|
|
|
|
|
|
|
+ &.disabled {
|
|
|
|
|
+ cursor: not-allowed;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- &:nth-child(3) {
|
|
|
|
|
- color: #00aea3;
|
|
|
|
|
- font-size: 12px;
|
|
|
|
|
|
|
+ &:hover {
|
|
|
|
|
+ background: rgba(229, 229, 229, 0.2);
|
|
|
|
|
+ }
|
|
|
|
|
|
|
|
- em {
|
|
|
|
|
|
|
+ >span {
|
|
|
|
|
+ &:nth-child(1) {
|
|
|
|
|
+ background-color: rgba(0, 174, 163, 0.2);
|
|
|
|
|
+ color: #00aea3;
|
|
|
|
|
+ font-size: 12px;
|
|
|
|
|
+ border: 1px solid rgba(64, 95, 234, 0.13);
|
|
|
padding: 0 4px;
|
|
padding: 0 4px;
|
|
|
- font-style: normal;
|
|
|
|
|
- border-left: 1px solid rgba(64, 95, 234, 1);
|
|
|
|
|
- font-weight: bold;
|
|
|
|
|
|
|
+ margin: 0 4px 0 0;
|
|
|
|
|
+ }
|
|
|
|
|
|
|
|
- &:nth-child(1) {
|
|
|
|
|
- border: none;
|
|
|
|
|
|
|
+ &:nth-child(3) {
|
|
|
|
|
+ color: #00aea3;
|
|
|
|
|
+ font-size: 12px;
|
|
|
|
|
+
|
|
|
|
|
+ em {
|
|
|
|
|
+ padding: 0 4px;
|
|
|
|
|
+ font-style: normal;
|
|
|
|
|
+ border-left: 1px solid rgba(64, 95, 234, 1);
|
|
|
|
|
+ font-weight: bold;
|
|
|
|
|
+
|
|
|
|
|
+ &:nth-child(1) {
|
|
|
|
|
+ border: none;
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
- }
|
|
|
|
|
|
|
|
|
|
- &:nth-child(2) {
|
|
|
|
|
- >p {
|
|
|
|
|
- margin: 8px 0;
|
|
|
|
|
- display: flex;
|
|
|
|
|
|
|
+ &:nth-child(2) {
|
|
|
|
|
+ >p {
|
|
|
|
|
+ margin: 8px 0;
|
|
|
|
|
+ display: flex;
|
|
|
|
|
|
|
|
- >span {
|
|
|
|
|
- transform: translateY(2px);
|
|
|
|
|
- color: #00aea3;
|
|
|
|
|
- font-weight: bold;
|
|
|
|
|
- font-size: 12px;
|
|
|
|
|
- margin-right: 8px;
|
|
|
|
|
|
|
+ >span {
|
|
|
|
|
+ transform: translateY(2px);
|
|
|
|
|
+ color: #00aea3;
|
|
|
|
|
+ font-weight: bold;
|
|
|
|
|
+ font-size: 12px;
|
|
|
|
|
+ margin-right: 8px;
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- >p {
|
|
|
|
|
- float: left;
|
|
|
|
|
- width: 48%;
|
|
|
|
|
- border-radius: 4px;
|
|
|
|
|
- background-color: rgba(245, 247, 254, 1);
|
|
|
|
|
- color: rgba(16, 16, 16, 1);
|
|
|
|
|
- font-size: 12px;
|
|
|
|
|
- margin-top: 8px;
|
|
|
|
|
- height: 36px;
|
|
|
|
|
- line-height: 36px;
|
|
|
|
|
- padding: 0 8px;
|
|
|
|
|
- display: flex;
|
|
|
|
|
- align-items: center;
|
|
|
|
|
|
|
|
|
|
- &:nth-child(odd) {
|
|
|
|
|
- margin-right: 4%;
|
|
|
|
|
|
|
+ >p {
|
|
|
|
|
+ float: left;
|
|
|
|
|
+ width: 48%;
|
|
|
|
|
+ border-radius: 4px;
|
|
|
|
|
+ background-color: rgba(245, 247, 254, 1);
|
|
|
|
|
+ color: rgba(16, 16, 16, 1);
|
|
|
|
|
+ font-size: 12px;
|
|
|
|
|
+ margin-top: 8px;
|
|
|
|
|
+ height: 36px;
|
|
|
|
|
+ line-height: 36px;
|
|
|
|
|
+ padding: 0 8px;
|
|
|
|
|
+ display: flex;
|
|
|
|
|
+ align-items: center;
|
|
|
|
|
+
|
|
|
|
|
+ &:nth-child(odd) {
|
|
|
|
|
+ margin-right: 4%;
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-.dialog-code-footer {
|
|
|
|
|
|
|
+.dialog-flex-wrap {
|
|
|
|
|
+ position: relative;
|
|
|
|
|
+ flex: 1;
|
|
|
|
|
+ margin-top: 16px;
|
|
|
|
|
+ height: 100%;
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+.dialog-flex {
|
|
|
|
|
+ position: absolute;
|
|
|
|
|
+ left: 0;
|
|
|
|
|
+ top: 0;
|
|
|
|
|
+ right: 0;
|
|
|
|
|
+ bottom: 0;
|
|
|
|
|
+ overflow-y: auto;
|
|
|
|
|
+ overflow-x: hidden;
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+.section-open {
|
|
|
|
|
+ margin-top: 12px;
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+.dialog-file {
|
|
|
|
|
+ width: 421px;
|
|
|
|
|
+ height: 48px;
|
|
|
border-radius: 12px;
|
|
border-radius: 12px;
|
|
|
|
|
+ background-color: rgba(255, 255, 255, 1);
|
|
|
|
|
+ color: rgba(16, 16, 16, 1);
|
|
|
font-size: 14px;
|
|
font-size: 14px;
|
|
|
- background-color: #32333c;
|
|
|
|
|
- color: #BCBDC3;
|
|
|
|
|
|
|
+ border: 1px solid rgba(229, 229, 229, 1);
|
|
|
|
|
+ display: flex;
|
|
|
|
|
+ align-items: center;
|
|
|
|
|
+ margin-bottom: 16px;
|
|
|
|
|
+ padding: 0 8px;
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+.dialog-footer {
|
|
|
|
|
+ border-radius: 12px;
|
|
|
|
|
+ background-color: rgba(245, 247, 254, 1);
|
|
|
padding: 12px 16px;
|
|
padding: 12px 16px;
|
|
|
margin: 16px 0;
|
|
margin: 16px 0;
|
|
|
|
|
|
|
|
- .dialog-code-footer-title {
|
|
|
|
|
- font-size: 16px;
|
|
|
|
|
- font-weight: 500;
|
|
|
|
|
- margin: 16px 0;
|
|
|
|
|
- width: 100%;
|
|
|
|
|
- padding: 4px 8px;
|
|
|
|
|
- background-color: #3D3F3F;
|
|
|
|
|
- color: #BCBDC3;
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
&:nth-child(2) {
|
|
&:nth-child(2) {
|
|
|
background-color: rgba(0, 0, 0, 0);
|
|
background-color: rgba(0, 0, 0, 0);
|
|
|
margin: 0;
|
|
margin: 0;
|