refactor(projects): refactor unocss shortcuts: wh-full => size-full

This commit is contained in:
Soybean
2024-03-03 10:30:00 +08:00
parent fb3b94b1e3
commit b4c00ce199
8 changed files with 9 additions and 12 deletions

View File

@ -5,7 +5,7 @@ defineOptions({
</script>
<template>
<svg class="wh-full">
<svg class="size-full">
<defs>
<symbol id="geometry-left" viewBox="0 0 214 36">
<path d="M17 0h197v36H0v-2c4.5 0 9-3.5 9-8V8c0-4.5 3.5-8 8-8z"></path>

View File

@ -7,9 +7,6 @@ export function presetSoybeanAdmin(): Preset<Theme> {
const preset: Preset<Theme> = {
name: 'preset-soybean-admin',
shortcuts: [
{
'wh-full': 'w-full h-full'
},
{
'flex-center': 'flex justify-center items-center',
'flex-x-center': 'flex justify-center',
@ -33,7 +30,7 @@ export function presetSoybeanAdmin(): Preset<Theme> {
'absolute-tr': 'absolute-rt',
'absolute-bl': 'absolute-lb',
'absolute-br': 'absolute-rb',
'absolute-center': 'absolute-lt flex-center wh-full',
'absolute-center': 'absolute-lt flex-center size-full',
'fixed-lt': 'fixed left-0 top-0',
'fixed-lb': 'fixed left-0 bottom-0',
'fixed-rt': 'fixed right-0 top-0',
@ -42,7 +39,7 @@ export function presetSoybeanAdmin(): Preset<Theme> {
'fixed-tr': 'fixed-rt',
'fixed-bl': 'fixed-lb',
'fixed-br': 'fixed-rb',
'fixed-center': 'fixed-lt flex-center wh-full'
'fixed-center': 'fixed-lt flex-center size-full'
},
{
'nowrap-hidden': 'overflow-hidden whitespace-nowrap',