Skip to content

Commit c9656e8

Browse files
fix: Fix table rendering errors
1 parent cbbdef0 commit c9656e8

File tree

5 files changed

+34
-5
lines changed

5 files changed

+34
-5
lines changed

ui/src/components/app-icon/KnowledgeIcon.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
shape="square"
1818
:size="size"
1919
>
20-
<img src="@/assets/knowledge/logo_workflow.svg" style="width: 100%" alt="" />
20+
<img src="@/assets/knowledge/logo_workflow.svg" style="width: 60%" alt="" />
2121
</el-avatar>
2222
<el-avatar v-else class="avatar-blue" shape="square" :size="size">
2323
<img src="@/assets/knowledge/icon_document.svg" style="width: 58%" alt="" />

ui/src/components/app-icon/icons/knowledge.ts

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,4 +127,33 @@ export default {
127127
])
128128
},
129129
},
130+
'app-workflow': {
131+
iconReader: () => {
132+
return h('i', [
133+
h(
134+
'svg',
135+
{
136+
style: { height: '100%', width: '100%' },
137+
viewBox: '0 0 1024 1024',
138+
version: '1.1',
139+
xmlns: 'http://www.w3.org/2000/svg',
140+
},
141+
[
142+
h('path', {
143+
d: 'M163.029333 207.189333C204.586667 179.114667 252.842667 170.666667 285.056 170.666667H640a42.666667 42.666667 0 1 0 0 85.333333H285.098667c-20.096 0-50.432 5.76-74.325334 21.930667-21.546667 14.506667-40.106667 38.656-40.106666 83.754666 0 45.141333 18.645333 69.845333 40.448 84.821334 24.021333 16.512 54.272 22.528 73.984 22.528h457.173333c32.554667 0 80.170667 8.832 120.96 37.376 43.093333 30.122667 75.434667 80.341333 75.434667 154.453333 0 74.154667-32.341333 124.458667-75.306667 154.752-40.746667 28.672-88.405333 37.717333-121.088 37.717333H384a42.666667 42.666667 0 1 0 0-85.333333h358.272c19.669333 0 48.896-5.973333 71.936-22.186667 20.778667-14.634667 39.125333-39.168 39.125333-84.906666s-18.346667-70.101333-38.997333-84.608c-22.997333-16.042667-52.224-21.930667-72.064-21.930667H285.098667c-32.682667 0-80.938667-9.045333-122.368-37.546667C119.04 486.698667 85.333333 436.309333 85.333333 361.642667c0-74.794667 33.792-124.842667 77.696-154.453334z',
144+
fill: 'currentColor',
145+
}),
146+
h('path', {
147+
d: 'M384 768a42.666667 42.666667 0 1 0 0 85.333333H128a42.666667 42.666667 0 1 1 0-85.333333h256zM640 256a42.666667 42.666667 0 1 0 0-85.333333h253.653333a42.666667 42.666667 0 1 1 0 85.333333H640z',
148+
fill: 'currentColor',
149+
}),
150+
h('path', {
151+
d: 'M640 170.666667a42.666667 42.666667 0 1 0 0 85.333333 42.666667 42.666667 0 0 0 0-85.333333z m-128 42.666666a128 128 0 1 1 256 0 128 128 0 0 1-256 0zM384 768a42.666667 42.666667 0 1 0 0 85.333333 42.666667 42.666667 0 0 0 0-85.333333z m-128 42.666667a128 128 0 1 1 256 0 128 128 0 0 1-256 0z',
152+
fill: 'currentColor',
153+
}),
154+
],
155+
),
156+
])
157+
},
158+
},
130159
}

ui/src/components/app-table/index.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ const appTableRef = ref()
9494
const loading = ref(false)
9595
const showInput = ref(false)
9696
const inputValue = ref('')
97-
const tableHeight = ref(null)
97+
const tableHeight = ref<number | string>('')
9898
watch(showInput, (bool: boolean) => {
9999
if (!bool) {
100100
inputValue.value = ''

ui/src/router/modules/document.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,8 +112,8 @@ const DocumentRouter = {
112112
path: 'knowledge-workflow-setting',
113113
name: 'knowledgeWorkflowSetting',
114114
meta: {
115-
title: 'views.workflow.knowledgeWorkflow',
116-
icon: 'app-problems',
115+
title: 'views.workflow.workflow',
116+
icon: 'app-workflow',
117117
activeMenu: '/knowledge',
118118
sameRoute: 'knowledge',
119119
permission: [

ui/src/views/knowledge/KnowledgeSetting.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@
8282
>
8383
<div class="flex align-center">
8484
<el-avatar class="avatar-purple mt-4" shape="square" :size="32">
85-
<img src="@/assets/knowledge/logo_workflow.svg" style="width: 100%" alt="" />
85+
<img src="@/assets/knowledge/logo_workflow.svg" style="width: 600%" alt="" />
8686
</el-avatar>
8787
<div>
8888
<p>

0 commit comments

Comments
 (0)