fix: yaml editor do not update when upload same file

This commit is contained in:
jialin
2025-11-13 16:53:11 +08:00
parent b61c0d6dee
commit aee9566bbb
13 changed files with 42 additions and 98 deletions
+22 -2
View File
@@ -22,6 +22,26 @@ import { useMemo } from 'react';
import styled from 'styled-components';
import { DEFAULT_ENTER_PAGE } from '../config/settings';
const NewLabel = styled.span`
position: relative;
bottom: 3px;
display: flex;
color: #fff;
width: 36px;
height: 15px;
margin-left: 5px;
justify-content: center;
align-items: center;
background-color: var(--ant-orange-5);
border-radius: 8px 8px 8px 0;
transform: scale(0.9);
.text {
transform: scale(0.8);
line-height: 1em;
}
`;
const IconWrapper = styled.span`
cursor: pointer;
display: flex;
@@ -173,11 +193,11 @@ export const ExtraContent = () => {
<>
<a className="m-l-8">{item.label}</a>
{showUpgrade && (
<span className="new-icon">
<NewLabel>
<span className="text">
{intl.formatMessage({ id: 'common.text.new' })}
</span>
</span>
</NewLabel>
)}
</>
) : (
-1
View File
@@ -339,7 +339,6 @@ export default (props: any) => {
};
const menuItemRender = (menuItemProps, defaultDom) => {
console.log('defaultdom==========', menuItemProps, defaultDom);
if (menuItemProps.isUrl || menuItemProps.children) {
return defaultDom;
}