Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
weixin_54851307
vue-vben-admin
提交
a0b09e74
V
vue-vben-admin
项目概览
weixin_54851307
/
vue-vben-admin
与 Fork 源项目一致
从无法访问的项目Fork
通知
1
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
V
vue-vben-admin
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
a0b09e74
编写于
10月 16, 2020
作者:
V
vben
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix: fix window npm script
上级
b84de1a5
变更
7
隐藏空白更改
内联
并排
Showing
7 changed file
with
13 addition
and
15 deletion
+13
-15
.eslintrc.js
.eslintrc.js
+0
-1
build/script/preview.ts
build/script/preview.ts
+1
-1
package.json
package.json
+1
-2
src/components/Container/src/collapse/CollapseContainer.vue
src/components/Container/src/collapse/CollapseContainer.vue
+9
-4
src/components/Transition/src/ExpandTransition.ts
src/components/Transition/src/ExpandTransition.ts
+1
-5
src/views/demo/form/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 = {
sourceType
:
'
module
'
,
ecmaFeatures
:
{
jsx
:
true
,
jsx
:
true
,
},
},
...
...
build/script/preview.ts
浏览文件 @
a0b09e74
...
...
@@ -53,7 +53,7 @@ export const runPreview = async () => {
});
const
{
type
}
=
await
prompt
;
if
(
type
===
BUILD
)
{
runBuild
();
await
runBuild
();
}
startApp
();
};
package.json
浏览文件 @
a0b09e74
...
...
@@ -6,11 +6,10 @@
"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: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 "
,
"preview"
:
"node ./build/jsc.ts preview"
,
"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:lib"
:
"npx rimraf node_modules"
,
"ls-lint"
:
"npx ls-lint"
,
...
...
src/components/Container/src/collapse/CollapseContainer.vue
浏览文件 @
a0b09e74
...
...
@@ -4,12 +4,12 @@
<CollapseTransition
:enable=
"canExpan"
>
<Skeleton
v-if=
"loading"
/>
<div
class=
"collapse-container__body"
v-else
v-show=
"show"
>
<LazyContainer
:timeout=
"lazyTime"
v-if=
"lazy"
>
<
!--
<
LazyContainer
:timeout=
"lazyTime"
v-if=
"lazy"
>
<slot
/>
<template
#skeleton
>
<slot
name=
"lazySkeleton"
/>
</
template
>
</LazyContainer>
</LazyContainer>
-->
<slot
/>
</div>
</CollapseTransition>
...
...
@@ -24,13 +24,18 @@
import
CollapseHeader
from
'
./CollapseHeader.vue
'
;
import
{
Skeleton
}
from
'
ant-design-vue
'
;
import
LazyContainer
from
'
../LazyContainer
'
;
//
import LazyContainer from '../LazyContainer';
import
{
triggerWindowResize
}
from
'
/@/utils/event/triggerWindowResizeEvent
'
;
// hook
import
{
useTimeout
}
from
'
/@/hooks/core/useTimeout
'
;
export
default
defineComponent
({
components
:
{
Skeleton
,
LazyContainer
,
CollapseHeader
,
CollapseTransition
},
components
:
{
Skeleton
,
// LazyContainer,
CollapseHeader
,
CollapseTransition
,
},
name
:
'
CollapseContainer
'
,
props
:
{
// 标题
...
...
src/components/Transition/src/ExpandTransition.ts
浏览文件 @
a0b09e74
...
...
@@ -9,7 +9,6 @@ interface HTMLExpandElement extends HTMLElement {
_parent
?:
(
Node
&
ParentNode
&
HTMLElement
)
|
null
;
_initialStyle
:
{
transition
:
string
;
visibility
:
string
|
null
;
overflow
:
string
|
null
;
height
?:
string
|
null
;
width
?:
string
|
null
;
...
...
@@ -25,7 +24,6 @@ export default function (expandedParentClass = '', x = false) {
el
.
_parent
=
el
.
parentNode
as
(
Node
&
ParentNode
&
HTMLElement
)
|
null
;
el
.
_initialStyle
=
{
transition
:
el
.
style
.
transition
,
visibility
:
el
.
style
.
visibility
,
overflow
:
el
.
style
.
overflow
,
[
sizeProperty
]:
el
.
style
[
sizeProperty
],
};
...
...
@@ -35,7 +33,6 @@ export default function (expandedParentClass = '', x = false) {
const
initialStyle
=
el
.
_initialStyle
;
el
.
style
.
setProperty
(
'
transition
'
,
'
none
'
,
'
important
'
);
// Hide overflow to account for collapsed margins in the calculated height
el
.
style
.
overflow
=
'
hidden
'
;
const
offset
=
`
${
el
[
offsetProperty
]}
px`
;
...
...
@@ -60,7 +57,6 @@ export default function (expandedParentClass = '', x = false) {
leave
(
el
:
HTMLExpandElement
)
{
el
.
_initialStyle
=
{
transition
:
''
,
visibility
:
''
,
overflow
:
el
.
style
.
overflow
,
[
sizeProperty
]:
el
.
style
[
sizeProperty
],
};
...
...
@@ -88,6 +84,6 @@ export default function (expandedParentClass = '', x = false) {
const
size
=
el
.
_initialStyle
[
sizeProperty
];
el
.
style
.
overflow
=
el
.
_initialStyle
.
overflow
!
;
if
(
size
!=
null
)
el
.
style
[
sizeProperty
]
=
size
;
Reflect
.
deleteProperty
(
el
,
'
_initialStyle
'
)
;
delete
(
el
as
any
).
_initialStyle
;
}
}
src/views/demo/form/AdvancedForm.vue
浏览文件 @
a0b09e74
<
template
>
<div
class=
"m-4"
>
<div
class=
"mb-4"
>
</div>
<CollapseContainer
title=
"基础收缩示例"
>
<BasicForm
@
register=
"register"
/>
</CollapseContainer>
...
...
vite.config.ts
浏览文件 @
a0b09e74
...
...
@@ -40,7 +40,7 @@ const vitePlugins: VitePlugin[] = [];
if
(
isReportMode
())
{
// report
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
())
{
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录