mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2026-01-16 19:58:12 +00:00
refactor: 调整引擎内的行动点的 icon, 具体参见 #111480
This commit is contained in:
parent
ed5b10cbf1
commit
d312aaa5fc
@ -6,7 +6,7 @@ module.exports = {
|
|||||||
// // '^.+\\.(ts|tsx)$': 'ts-jest',
|
// // '^.+\\.(ts|tsx)$': 'ts-jest',
|
||||||
// // '^.+\\.(js|jsx)$': 'babel-jest',
|
// // '^.+\\.(js|jsx)$': 'babel-jest',
|
||||||
// },
|
// },
|
||||||
testMatch: ['**/bugs/*.test.ts'],
|
// testMatch: ['**/bugs/*.test.ts'],
|
||||||
// testMatch: ['(/tests?/.*(test))\\.[jt]s$'],
|
// testMatch: ['(/tests?/.*(test))\\.[jt]s$'],
|
||||||
transformIgnorePatterns: [
|
transformIgnorePatterns: [
|
||||||
`/node_modules/(?!${esModules})/`,
|
`/node_modules/(?!${esModules})/`,
|
||||||
|
|||||||
@ -471,7 +471,7 @@ const builtinComponentActions: ComponentAction[] = [
|
|||||||
{
|
{
|
||||||
name: 'lock',
|
name: 'lock',
|
||||||
content: {
|
content: {
|
||||||
icon: IconUnlock, // 解锁icon
|
icon: IconLock, // 锁定 icon
|
||||||
title: intlNode('lock'),
|
title: intlNode('lock'),
|
||||||
action(node: Node) {
|
action(node: Node) {
|
||||||
node.lock();
|
node.lock();
|
||||||
@ -485,7 +485,7 @@ const builtinComponentActions: ComponentAction[] = [
|
|||||||
{
|
{
|
||||||
name: 'unlock',
|
name: 'unlock',
|
||||||
content: {
|
content: {
|
||||||
icon: IconLock, // 锁定icon
|
icon: IconUnlock, // 解锁 icon
|
||||||
title: intlNode('unlock'),
|
title: intlNode('unlock'),
|
||||||
action(node: Node) {
|
action(node: Node) {
|
||||||
node.lock(false);
|
node.lock(false);
|
||||||
|
|||||||
@ -46,7 +46,7 @@ export default class PanelOperationRow extends Component<{ panel: Panel }> {
|
|||||||
{canSetFixed && (
|
{canSetFixed && (
|
||||||
// eslint-disable-next-line react/jsx-no-bind
|
// eslint-disable-next-line react/jsx-no-bind
|
||||||
<Button text className="lc-pane-icon-fix" onClick={this.setDisplay.bind(this)}>
|
<Button text className="lc-pane-icon-fix" onClick={this.setDisplay.bind(this)}>
|
||||||
{areaName === 'leftFloatArea' ? <IconFloat /> : <IconFix />}
|
{areaName === 'leftFloatArea' ? <IconFix /> : <IconFloat />}
|
||||||
</Button>
|
</Button>
|
||||||
)}
|
)}
|
||||||
<Button
|
<Button
|
||||||
|
|||||||
@ -1,8 +1,12 @@
|
|||||||
import { SVGIcon, IconProps } from '@ali/lowcode-utils';
|
import { SVGIcon, IconProps } from '@ali/lowcode-utils';
|
||||||
|
|
||||||
export function IconFix(props: IconProps) {
|
export function IconFix(props: IconProps) {
|
||||||
|
const rect = {
|
||||||
|
width: 13,
|
||||||
|
height: 13,
|
||||||
|
};
|
||||||
return (
|
return (
|
||||||
<SVGIcon viewBox="0 0 1024 1024" {...props}>
|
<SVGIcon viewBox="0 0 1024 1024" {...props} {...rect}>
|
||||||
<path d="M750.848 28.928l245.248 242.944a66.048 66.048 0 1 1-93.184 93.184l-25.6-19.456-249.6 353.792 78.336 78.336a66.048 66.048 0 0 1-93.184 92.672l-460.8-464.64a66.048 66.048 0 0 1 93.184-93.184l76.8 78.336 354.048-249.856-18.176-18.944a66.048 66.048 0 1 1 93.184-93.184zM380.672 732.416l-91.904-90.88c-74.24 89.6-191.488 219.904-212.736 247.04a419.84 419.84 0 0 0-70.656 128 419.84 419.84 0 0 0 128-70.144c27.136-21.248 157.44-138.496 246.528-214.016z" />
|
<path d="M750.848 28.928l245.248 242.944a66.048 66.048 0 1 1-93.184 93.184l-25.6-19.456-249.6 353.792 78.336 78.336a66.048 66.048 0 0 1-93.184 92.672l-460.8-464.64a66.048 66.048 0 0 1 93.184-93.184l76.8 78.336 354.048-249.856-18.176-18.944a66.048 66.048 0 1 1 93.184-93.184zM380.672 732.416l-91.904-90.88c-74.24 89.6-191.488 219.904-212.736 247.04a419.84 419.84 0 0 0-70.656 128 419.84 419.84 0 0 0 128-70.144c27.136-21.248 157.44-138.496 246.528-214.016z" />
|
||||||
</SVGIcon>
|
</SVGIcon>
|
||||||
);
|
);
|
||||||
|
|||||||
@ -186,7 +186,7 @@ class LockBtn extends Component<{ treeNode: TreeNode }> {
|
|||||||
treeNode.setLocked(!treeNode.locked);
|
treeNode.setLocked(!treeNode.locked);
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
{treeNode.locked ? <IconLock /> : <IconUnlock />}
|
{treeNode.locked ? <IconUnlock /> : <IconLock /> }
|
||||||
<Tip>{treeNode.locked ? intl('Unlock') : intl('Lock')}</Tip>
|
<Tip>{treeNode.locked ? intl('Unlock') : intl('Lock')}</Tip>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
@ -206,7 +206,7 @@ class HideBtn extends Component<{ treeNode: TreeNode }> {
|
|||||||
treeNode.setHidden(!treeNode.hidden);
|
treeNode.setHidden(!treeNode.hidden);
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
{treeNode.hidden ? <IconEyeClose /> : <IconEye />}
|
{treeNode.hidden ? <IconEye /> : <IconEyeClose />}
|
||||||
<Tip>{treeNode.hidden ? intl('Show') : intl('Hide')}</Tip>
|
<Tip>{treeNode.hidden ? intl('Show') : intl('Hide')}</Tip>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user