Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
monorepo
/
venus
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
1
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit a78888e0
authored
Feb 10, 2026
by
Lin
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
feat: 文件格式化处理
1 parent
30b7bb9e
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
12 deletions
packages/common-ui/vue-ui/src/components/ellipsis/index.vue
scripts/clean.mjs
stylelint.config.mjs
packages/common-ui/vue-ui/src/components/ellipsis/index.vue
View file @
a78888e
...
@@ -8,8 +8,6 @@
...
@@ -8,8 +8,6 @@
</
template
>
</
template
>
<
script
lang=
"ts"
>
<
script
lang=
"ts"
>
import
type
{
GLEllipsisProps
}
from
"../../types"
;
import
{
ElTooltip
}
from
"element-plus"
;
import
{
ElTooltip
}
from
"element-plus"
;
export
default
{
export
default
{
...
@@ -20,14 +18,16 @@ export default {
...
@@ -20,14 +18,16 @@ export default {
length
:
{
type
:
Number
,
default
:
20
},
length
:
{
type
:
Number
,
default
:
20
},
tooltip
:
{
type
:
Boolean
,
default
:
true
},
tooltip
:
{
type
:
Boolean
,
default
:
true
},
placement
:
{
type
:
String
,
default
:
"top"
},
placement
:
{
type
:
String
,
default
:
"top"
},
}
as
{
[
K
in
keyof
GLEllipsisProps
]:
any
}
,
},
computed
:
{
computed
:
{
truncatedContent
()
{
truncatedContent
():
string
{
if
(
!
this
.
content
)
return
""
;
const
content
=
this
.
$props
.
content
;
return
this
.
content
.
length
<=
this
.
length
?
this
.
content
:
`
${
this
.
content
.
slice
(
0
,
this
.
length
)
}
...`
;
const
length
=
this
.
$props
.
length
;
if
(
!
content
)
return
""
;
return
content
.
length
<=
length
?
content
:
`
${
content
.
slice
(
0
,
length
)}
...`
;
},
},
showTooltip
()
{
showTooltip
()
:
boolean
{
return
this
.
tooltip
&&
this
.
content
&&
this
.
content
.
length
>
this
.
length
;
return
Boolean
(
this
.
tooltip
)
&&
typeof
this
.
content
===
"string"
&&
this
.
content
.
length
>
this
.
length
;
},
},
},
},
};
};
...
...
scripts/clean.mjs
View file @
a78888e
...
@@ -7,7 +7,7 @@ const rootDir = process.cwd();
...
@@ -7,7 +7,7 @@ const rootDir = process.cwd();
const CONCURRENCY_LIMIT = 10;
const CONCURRENCY_LIMIT = 10;
// 需要跳过的目录,避免进入这些目录进行清理
// 需要跳过的目录,避免进入这些目录进行清理
const SKIP_DIRS = new Set([
".DS_Store", ".git", ".idea", ".vscode"
]);
const SKIP_DIRS = new Set([
".DS_Store", ".git", ".idea", ".vscode"
]);
/**
/**
* 处理单个文件/目录项
* 处理单个文件/目录项
...
@@ -104,9 +104,9 @@ async function cleanTargetsRecursively(currentDir, targets, depth = 0) {
...
@@ -104,9 +104,9 @@ async function cleanTargetsRecursively(currentDir, targets, depth = 0) {
(async function startCleanup() {
(async function startCleanup() {
// 要删除的目录及文件名称
// 要删除的目录及文件名称
const targets = [
"node_modules", "dist", ".turbo", "dist.zip"
];
const targets = [
"node_modules", "dist", ".turbo", "dist.zip"
];
const deleteLockFile = process.argv.includes("--del-lock");
const deleteLockFile = process.argv.includes("--del-lock");
const cleanupTargets = [
...targets
];
const cleanupTargets = [
...targets
];
if (deleteLockFile) {
if (deleteLockFile) {
cleanupTargets.push("pnpm-lock.yaml");
cleanupTargets.push("pnpm-lock.yaml");
...
...
stylelint.config.mjs
View file @
a78888e
export default {
export default {
extends: [
"@venus/stylelint-config"
],
extends: [
"@venus/stylelint-config"
],
root: true,
root: true,
};
};
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment