Merge remote-tracking branch 'origin/main' into feat/trigger

This commit is contained in:
lyzno1 2025-11-04 09:55:43 +08:00
commit 587f83bc34
No known key found for this signature in database
4 changed files with 14 additions and 10 deletions

View File

@ -12,7 +12,10 @@ const AddField = () => {
const handleAddField = useCallback(() => { const handleAddField = useCallback(() => {
setIsAddingNewField(true) setIsAddingNewField(true)
emit('addField', { path: [] }) // fix: when user change the last property type, the 'hoveringProperty' value will be reset by 'setHoveringPropertyDebounced(null)', that cause the EditCard not showing
setTimeout(() => {
emit('addField', { path: [] })
}, 100)
}, [setIsAddingNewField, emit]) }, [setIsAddingNewField, emit])
return ( return (

View File

@ -122,7 +122,8 @@ const EditCard: FC<EditCardProps> = ({
}, [emit, path, parentPath, fields, currentFields]) }, [emit, path, parentPath, fields, currentFields])
const handlePropertyNameChange = useCallback((e: React.ChangeEvent<HTMLInputElement>) => { const handlePropertyNameChange = useCallback((e: React.ChangeEvent<HTMLInputElement>) => {
setCurrentFields(prev => ({ ...prev, name: e.target.value })) // fix: when user add name contains space, the variable reference will not work
setCurrentFields(prev => ({ ...prev, name: e.target.value?.trim() }))
}, []) }, [])
const handlePropertyNameBlur = useCallback(() => { const handlePropertyNameBlur = useCallback(() => {

View File

@ -74,7 +74,7 @@
"cmdk": "^1.1.1", "cmdk": "^1.1.1",
"copy-to-clipboard": "^3.3.3", "copy-to-clipboard": "^3.3.3",
"cron-parser": "^5.4.0", "cron-parser": "^5.4.0",
"dayjs": "^1.11.18", "dayjs": "^1.11.19",
"decimal.js": "^10.6.0", "decimal.js": "^10.6.0",
"dompurify": "^3.3.0", "dompurify": "^3.3.0",
"echarts": "^5.6.0", "echarts": "^5.6.0",

14
web/pnpm-lock.yaml generated
View File

@ -151,8 +151,8 @@ importers:
specifier: ^5.4.0 specifier: ^5.4.0
version: 5.4.0 version: 5.4.0
dayjs: dayjs:
specifier: ^1.11.18 specifier: ^1.11.19
version: 1.11.18 version: 1.11.19
decimal.js: decimal.js:
specifier: ^10.6.0 specifier: ^10.6.0
version: 10.6.0 version: 10.6.0
@ -4405,8 +4405,8 @@ packages:
dagre-d3-es@7.0.11: dagre-d3-es@7.0.11:
resolution: {integrity: sha512-tvlJLyQf834SylNKax8Wkzco/1ias1OPw8DcUMDE7oUIoSEW25riQVuiu/0OWEFqT0cxHT3Pa9/D82Jr47IONw==} resolution: {integrity: sha512-tvlJLyQf834SylNKax8Wkzco/1ias1OPw8DcUMDE7oUIoSEW25riQVuiu/0OWEFqT0cxHT3Pa9/D82Jr47IONw==}
dayjs@1.11.18: dayjs@1.11.19:
resolution: {integrity: sha512-zFBQ7WFRvVRhKcWoUh+ZA1g2HVgUbsZm9sbddh8EC5iv93sui8DVVz1Npvz+r6meo9VKfa8NyLWBsQK1VvIKPA==} resolution: {integrity: sha512-t5EcLVS6QPBNqM2z8fakk/NKel+Xzshgt8FFKAn+qwlD1pzZWxh0nVCrvFK7ZDb6XucZeF9z8C7CBWTRIVApAw==}
debounce@1.2.1: debounce@1.2.1:
resolution: {integrity: sha512-XRRe6Glud4rd/ZGQfiV1ruXSfbvfJedlV9Y6zOlP+2K04vBYiJEte6stfFkCP03aMnY5tsipamumUjL14fofug==} resolution: {integrity: sha512-XRRe6Glud4rd/ZGQfiV1ruXSfbvfJedlV9Y6zOlP+2K04vBYiJEte6stfFkCP03aMnY5tsipamumUjL14fofug==}
@ -12000,7 +12000,7 @@ snapshots:
dependencies: dependencies:
'@babel/runtime': 7.28.4 '@babel/runtime': 7.28.4
'@types/js-cookie': 3.0.6 '@types/js-cookie': 3.0.6
dayjs: 1.11.18 dayjs: 1.11.19
intersection-observer: 0.12.2 intersection-observer: 0.12.2
js-cookie: 3.0.5 js-cookie: 3.0.5
lodash: 4.17.21 lodash: 4.17.21
@ -12944,7 +12944,7 @@ snapshots:
d3: 7.9.0 d3: 7.9.0
lodash-es: 4.17.21 lodash-es: 4.17.21
dayjs@1.11.18: {} dayjs@1.11.19: {}
debounce@1.2.1: {} debounce@1.2.1: {}
@ -15298,7 +15298,7 @@ snapshots:
d3: 7.9.0 d3: 7.9.0
d3-sankey: 0.12.3 d3-sankey: 0.12.3
dagre-d3-es: 7.0.11 dagre-d3-es: 7.0.11
dayjs: 1.11.18 dayjs: 1.11.19
dompurify: 3.3.0 dompurify: 3.3.0
katex: 0.16.25 katex: 0.16.25
khroma: 2.1.0 khroma: 2.1.0