-
-
Notifications
You must be signed in to change notification settings - Fork 626
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(code): refine component structure
- Loading branch information
Showing
23 changed files
with
178 additions
and
201 deletions.
There are no files selected for viewing
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,6 +10,7 @@ const imports = { | |
'@varlet/ui': usePreviewVersion ? './varlet.esm.js' : 'https://cdn.jsdelivr.net/npm/@varlet/ui/es/varlet.esm.js', | ||
'@varlet/ui/json/area.json': './varlet-area.js', | ||
zod: 'https://cdn.jsdelivr.net/npm/zod/lib/index.mjs', | ||
shiki: 'https://esm.sh/[email protected]', | ||
} | ||
|
||
const appFile = 'src/App.vue' | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,22 @@ | ||
:root { | ||
--code-border-radius: 4px; | ||
--code-content-padding: 16px; | ||
--code-font-size: 14px; | ||
--code-line-height: 1.7; | ||
} | ||
|
||
.var-code { | ||
border-radius: var(--code-border-radius); | ||
position: relative; | ||
overflow: hidden; | ||
width: 100%; | ||
height: 100%; | ||
line-height: var(--code-line-height); | ||
font-size: var(--code-font-size); | ||
|
||
pre { | ||
padding: var(--code-content-padding); | ||
border-radius: var(--code-border-radius); | ||
width: 100%; | ||
height: 100%; | ||
margin: 0; | ||
overflow: auto; | ||
background-color: transparent !important; | ||
} | ||
|
||
&--word-wrap pre { | ||
white-space: pre-wrap; | ||
word-break: break-all; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.