From 4867ffdfeb723b8140ffeadbb1bea3af98927468 Mon Sep 17 00:00:00 2001 From: unanmed <1319491857@qq.com> Date: Wed, 23 Jul 2025 18:39:00 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E7=AE=AD=E5=A4=B4=E5=9B=BE=E6=A0=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/render/components/icons.tsx | 156 ++++++++++++++++++ 1 file changed, 156 insertions(+) diff --git a/packages-user/client-modules/src/render/components/icons.tsx b/packages-user/client-modules/src/render/components/icons.tsx index 4c609b9..dc895cd 100644 --- a/packages-user/client-modules/src/render/components/icons.tsx +++ b/packages-user/client-modules/src/render/components/icons.tsx @@ -682,3 +682,159 @@ export const ExitFullscreen = defineComponent(props => { ); }; }, iconsProps); + +export const ArrowLeftTailless = defineComponent(props => { + const path = ref(); + + const width = computed(() => props.loc[2] ?? 200); + const height = computed(() => props.loc[3] ?? 200); + const generatePath = adjustPath(1, path, (ox, oy, width, height) => { + const path = new Path2D(); + const left = ox + width / 4; + const right = ox + width - width / 4; + const top = oy + height / 4; + const bottom = oy + height - height / 4; + + path.moveTo(right, top); + path.lineTo(left + width / 4, (top + right) / 2); + path.lineTo(right, bottom); + return path; + }); + + watch(props, () => { + generatePath(width.value, height.value); + }); + + onMounted(() => { + generatePath(width.value, height.value); + }); + + return () => { + return ( + + ); + }; +}, iconsProps); + +export const ArrowRightTailless = defineComponent(props => { + const path = ref(); + + const width = computed(() => props.loc[2] ?? 200); + const height = computed(() => props.loc[3] ?? 200); + const generatePath = adjustPath(1, path, (ox, oy, width, height) => { + const path = new Path2D(); + const left = ox + width / 4; + const right = ox + width - width / 4; + const top = oy + height / 4; + const bottom = oy + height - height / 4; + + path.moveTo(left, top); + path.lineTo(right - width / 4, (top + right) / 2); + path.lineTo(left, bottom); + return path; + }); + + watch(props, () => { + generatePath(width.value, height.value); + }); + + onMounted(() => { + generatePath(width.value, height.value); + }); + + return () => { + return ( + + ); + }; +}, iconsProps); + +export const ArrowUpTailless = defineComponent(props => { + const path = ref(); + + const width = computed(() => props.loc[2] ?? 200); + const height = computed(() => props.loc[3] ?? 200); + const generatePath = adjustPath(1, path, (ox, oy, width, height) => { + const path = new Path2D(); + const left = ox + width / 4; + const right = ox + width - width / 4; + const top = oy + height / 4; + const bottom = oy + height - height / 4; + + path.moveTo(left, bottom); + path.lineTo((left + right) / 2, top + height / 4); + path.lineTo(right, bottom); + return path; + }); + + watch(props, () => { + generatePath(width.value, height.value); + }); + + onMounted(() => { + generatePath(width.value, height.value); + }); + + return () => { + return ( + + ); + }; +}, iconsProps); + +export const ArrowDownTailless = defineComponent(props => { + const path = ref(); + + const width = computed(() => props.loc[2] ?? 200); + const height = computed(() => props.loc[3] ?? 200); + const generatePath = adjustPath(1, path, (ox, oy, width, height) => { + const path = new Path2D(); + const left = ox + width / 4; + const right = ox + width - width / 4; + const top = oy + height / 4; + const bottom = oy + height - height / 4; + + path.moveTo(left, top); + path.lineTo((left + right) / 2, bottom - height / 4); + path.lineTo(right, top); + return path; + }); + + watch(props, () => { + generatePath(width.value, height.value); + }); + + onMounted(() => { + generatePath(width.value, height.value); + }); + + return () => { + return ( + + ); + }; +}, iconsProps);