Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion packages/canvas/container/src/container.ts
Original file line number Diff line number Diff line change
Expand Up @@ -468,9 +468,13 @@ const setSelectRect = (

const getElementDurationTime = (elementId?: string) => {
const element = elementId ? querySelectById(elementId) : getDocument().body
let delayTime = 50

if (!element) {
return delayTime
}
const transitionDuration = window.getComputedStyle(element).getPropertyValue('transition-duration')
const transitionDelay = window.getComputedStyle(element).getPropertyValue('transition-delay')
let delayTime = 0
const getMaxMillisecondNumber = (arr: string[]) => {
const millisecondNumber = arr.map((item) => {
if (item.endsWith('ms')) {
Expand Down
10 changes: 6 additions & 4 deletions packages/workspace/application-center/src/Main.vue
Original file line number Diff line number Diff line change
Expand Up @@ -191,10 +191,12 @@ export default {
if (state.orderBy === 'last_updated_time') {
params.orderBy = state.orderBy
}
fetchApplicationList(Object.fromEntries(Object.entries(params).filter(([, value]) => !!value))).then((res) => {
appList.value = res.apps || []
state.total = res.total
})
fetchApplicationList(Object.fromEntries(Object.entries(params).filter(([, value]) => Boolean(value)))).then(
(res) => {
appList.value = res.apps || []
state.total = res.total
}
)
}

const creatApp = () => {
Expand Down
2 changes: 1 addition & 1 deletion packages/workspace/template-center/src/Main.vue
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ export default {
industryId: state.industry,
framework: state.framework
}
fetchTemplateList(Object.fromEntries(Object.entries(params).filter(([, value]) => !!value)))
fetchTemplateList(Object.fromEntries(Object.entries(params).filter(([, value]) => Boolean(value))))
.then((res) => {
templateList.value = res.apps || []
state.total = res.total
Expand Down