Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
B
basic-vue-admin
概览
概览
详情
活动
周期分析
版本库
存储库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
问题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
Basic
basic-vue-admin
Commits
a0b09e74
提交
a0b09e74
authored
10月 16, 2020
作者:
vben
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix: fix window npm script
上级
b84de1a5
隐藏空白字符变更
内嵌
并排
正在显示
7 个修改的文件
包含
13 行增加
和
15 行删除
+13
-15
.eslintrc.js
.eslintrc.js
+0
-1
preview.ts
build/script/preview.ts
+1
-1
package.json
package.json
+1
-2
CollapseContainer.vue
src/components/Container/src/collapse/CollapseContainer.vue
+9
-4
ExpandTransition.ts
src/components/Transition/src/ExpandTransition.ts
+1
-5
AdvancedForm.vue
src/views/demo/form/AdvancedForm.vue
+0
-1
vite.config.ts
vite.config.ts
+1
-1
没有找到文件。
.eslintrc.js
浏览文件 @
a0b09e74
...
@@ -6,7 +6,6 @@ module.exports = {
...
@@ -6,7 +6,6 @@ module.exports = {
sourceType
:
'module'
,
sourceType
:
'module'
,
ecmaFeatures
:
{
ecmaFeatures
:
{
jsx
:
true
,
jsx
:
true
,
jsx
:
true
,
},
},
},
},
...
...
build/script/preview.ts
浏览文件 @
a0b09e74
...
@@ -53,7 +53,7 @@ export const runPreview = async () => {
...
@@ -53,7 +53,7 @@ export const runPreview = async () => {
});
});
const
{
type
}
=
await
prompt
;
const
{
type
}
=
await
prompt
;
if
(
type
===
BUILD
)
{
if
(
type
===
BUILD
)
{
runBuild
();
await
runBuild
();
}
}
startApp
();
startApp
();
};
};
package.json
浏览文件 @
a0b09e74
...
@@ -6,11 +6,10 @@
...
@@ -6,11 +6,10 @@
"serve"
:
"cross-env ts-node --files -P ./build/tsconfig.json ./build/script/preserve && cross-env NODE_ENV=development vite"
,
"serve"
:
"cross-env ts-node --files -P ./build/tsconfig.json ./build/script/preserve && cross-env NODE_ENV=development vite"
,
"build"
:
"node ./build/jsc.ts build"
,
"build"
:
"node ./build/jsc.ts build"
,
"build:site"
:
"cross-env SITE=true npm run build "
,
"build:site"
:
"cross-env SITE=true npm run build "
,
"build:no-cache"
:
"yarn clean:cache && n
pm run
build"
,
"build:no-cache"
:
"yarn clean:cache && n
ode ./build/jsc.ts
build"
,
"report"
:
"cross-env REPORT=true npm run build "
,
"report"
:
"cross-env REPORT=true npm run build "
,
"preview"
:
"node ./build/jsc.ts preview"
,
"preview"
:
"node ./build/jsc.ts preview"
,
"log"
:
"node ./build/jsc.ts log"
,
"log"
:
"node ./build/jsc.ts log"
,
"gen:gz"
:
"node ./build/jsc.ts gzip"
,
"clean:cache"
:
"rimraf node_modules/.cache/ && rimraf node_modules/.vite_opt_cache"
,
"clean:cache"
:
"rimraf node_modules/.cache/ && rimraf node_modules/.vite_opt_cache"
,
"clean:lib"
:
"npx rimraf node_modules"
,
"clean:lib"
:
"npx rimraf node_modules"
,
"ls-lint"
:
"npx ls-lint"
,
"ls-lint"
:
"npx ls-lint"
,
...
...
src/components/Container/src/collapse/CollapseContainer.vue
浏览文件 @
a0b09e74
...
@@ -4,12 +4,12 @@
...
@@ -4,12 +4,12 @@
<CollapseTransition
:enable=
"canExpan"
>
<CollapseTransition
:enable=
"canExpan"
>
<Skeleton
v-if=
"loading"
/>
<Skeleton
v-if=
"loading"
/>
<div
class=
"collapse-container__body"
v-else
v-show=
"show"
>
<div
class=
"collapse-container__body"
v-else
v-show=
"show"
>
<LazyContainer
:timeout=
"lazyTime"
v-if=
"lazy"
>
<
!--
<
LazyContainer
:timeout=
"lazyTime"
v-if=
"lazy"
>
<slot
/>
<slot
/>
<template
#
skeleton
>
<template
#
skeleton
>
<slot
name=
"lazySkeleton"
/>
<slot
name=
"lazySkeleton"
/>
</
template
>
</
template
>
</LazyContainer>
</LazyContainer>
-->
<slot
/>
<slot
/>
</div>
</div>
</CollapseTransition>
</CollapseTransition>
...
@@ -24,13 +24,18 @@
...
@@ -24,13 +24,18 @@
import
CollapseHeader
from
'./CollapseHeader.vue'
;
import
CollapseHeader
from
'./CollapseHeader.vue'
;
import
{
Skeleton
}
from
'ant-design-vue'
;
import
{
Skeleton
}
from
'ant-design-vue'
;
import
LazyContainer
from
'../LazyContainer'
;
//
import LazyContainer from '../LazyContainer';
import
{
triggerWindowResize
}
from
'/@/utils/event/triggerWindowResizeEvent'
;
import
{
triggerWindowResize
}
from
'/@/utils/event/triggerWindowResizeEvent'
;
// hook
// hook
import
{
useTimeout
}
from
'/@/hooks/core/useTimeout'
;
import
{
useTimeout
}
from
'/@/hooks/core/useTimeout'
;
export
default
defineComponent
({
export
default
defineComponent
({
components
:
{
Skeleton
,
LazyContainer
,
CollapseHeader
,
CollapseTransition
},
components
:
{
Skeleton
,
// LazyContainer,
CollapseHeader
,
CollapseTransition
,
},
name
:
'CollapseContainer'
,
name
:
'CollapseContainer'
,
props
:
{
props
:
{
// 标题
// 标题
...
...
src/components/Transition/src/ExpandTransition.ts
浏览文件 @
a0b09e74
...
@@ -9,7 +9,6 @@ interface HTMLExpandElement extends HTMLElement {
...
@@ -9,7 +9,6 @@ interface HTMLExpandElement extends HTMLElement {
_parent
?:
(
Node
&
ParentNode
&
HTMLElement
)
|
null
;
_parent
?:
(
Node
&
ParentNode
&
HTMLElement
)
|
null
;
_initialStyle
:
{
_initialStyle
:
{
transition
:
string
;
transition
:
string
;
visibility
:
string
|
null
;
overflow
:
string
|
null
;
overflow
:
string
|
null
;
height
?:
string
|
null
;
height
?:
string
|
null
;
width
?:
string
|
null
;
width
?:
string
|
null
;
...
@@ -25,7 +24,6 @@ export default function (expandedParentClass = '', x = false) {
...
@@ -25,7 +24,6 @@ export default function (expandedParentClass = '', x = false) {
el
.
_parent
=
el
.
parentNode
as
(
Node
&
ParentNode
&
HTMLElement
)
|
null
;
el
.
_parent
=
el
.
parentNode
as
(
Node
&
ParentNode
&
HTMLElement
)
|
null
;
el
.
_initialStyle
=
{
el
.
_initialStyle
=
{
transition
:
el
.
style
.
transition
,
transition
:
el
.
style
.
transition
,
visibility
:
el
.
style
.
visibility
,
overflow
:
el
.
style
.
overflow
,
overflow
:
el
.
style
.
overflow
,
[
sizeProperty
]:
el
.
style
[
sizeProperty
],
[
sizeProperty
]:
el
.
style
[
sizeProperty
],
};
};
...
@@ -35,7 +33,6 @@ export default function (expandedParentClass = '', x = false) {
...
@@ -35,7 +33,6 @@ export default function (expandedParentClass = '', x = false) {
const
initialStyle
=
el
.
_initialStyle
;
const
initialStyle
=
el
.
_initialStyle
;
el
.
style
.
setProperty
(
'transition'
,
'none'
,
'important'
);
el
.
style
.
setProperty
(
'transition'
,
'none'
,
'important'
);
// Hide overflow to account for collapsed margins in the calculated height
el
.
style
.
overflow
=
'hidden'
;
el
.
style
.
overflow
=
'hidden'
;
const
offset
=
`
${
el
[
offsetProperty
]}
px`
;
const
offset
=
`
${
el
[
offsetProperty
]}
px`
;
...
@@ -60,7 +57,6 @@ export default function (expandedParentClass = '', x = false) {
...
@@ -60,7 +57,6 @@ export default function (expandedParentClass = '', x = false) {
leave
(
el
:
HTMLExpandElement
)
{
leave
(
el
:
HTMLExpandElement
)
{
el
.
_initialStyle
=
{
el
.
_initialStyle
=
{
transition
:
''
,
transition
:
''
,
visibility
:
''
,
overflow
:
el
.
style
.
overflow
,
overflow
:
el
.
style
.
overflow
,
[
sizeProperty
]:
el
.
style
[
sizeProperty
],
[
sizeProperty
]:
el
.
style
[
sizeProperty
],
};
};
...
@@ -88,6 +84,6 @@ export default function (expandedParentClass = '', x = false) {
...
@@ -88,6 +84,6 @@ export default function (expandedParentClass = '', x = false) {
const
size
=
el
.
_initialStyle
[
sizeProperty
];
const
size
=
el
.
_initialStyle
[
sizeProperty
];
el
.
style
.
overflow
=
el
.
_initialStyle
.
overflow
!
;
el
.
style
.
overflow
=
el
.
_initialStyle
.
overflow
!
;
if
(
size
!=
null
)
el
.
style
[
sizeProperty
]
=
size
;
if
(
size
!=
null
)
el
.
style
[
sizeProperty
]
=
size
;
Reflect
.
deleteProperty
(
el
,
'_initialStyle'
)
;
delete
(
el
as
any
).
_initialStyle
;
}
}
}
}
src/views/demo/form/AdvancedForm.vue
浏览文件 @
a0b09e74
<
template
>
<
template
>
<div
class=
"m-4"
>
<div
class=
"m-4"
>
<div
class=
"mb-4"
>
</div>
<CollapseContainer
title=
"基础收缩示例"
>
<CollapseContainer
title=
"基础收缩示例"
>
<BasicForm
@
register=
"register"
/>
<BasicForm
@
register=
"register"
/>
</CollapseContainer>
</CollapseContainer>
...
...
vite.config.ts
浏览文件 @
a0b09e74
...
@@ -40,7 +40,7 @@ const vitePlugins: VitePlugin[] = [];
...
@@ -40,7 +40,7 @@ const vitePlugins: VitePlugin[] = [];
if
(
isReportMode
())
{
if
(
isReportMode
())
{
// report
// report
rollupPlugins
.
push
(
rollupPlugins
.
push
(
visualizer
({
filename
:
'./
node_modules
/.cache/stats.html'
,
open
:
true
})
as
Plugin
visualizer
({
filename
:
'./
build
/.cache/stats.html'
,
open
:
true
})
as
Plugin
);
);
}
}
if
(
isBuildGzip
()
||
isSiteMode
())
{
if
(
isBuildGzip
()
||
isSiteMode
())
{
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论