Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
球球不吃虾
vue-vben-admin
提交
e9e51b2f
V
vue-vben-admin
项目概览
球球不吃虾
/
vue-vben-admin
与 Fork 源项目一致
从无法访问的项目Fork
通知
1
Star
0
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,发现更多精彩内容 >>
提交
e9e51b2f
编写于
6月 28, 2021
作者:
V
Vben
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
perf(scrollbar): scrollbar update when slot changed
上级
1bde4041
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
43 addition
and
35 deletion
+43
-35
package.json
package.json
+4
-4
src/components/Scrollbar/src/Scrollbar.vue
src/components/Scrollbar/src/Scrollbar.vue
+9
-1
yarn.lock
yarn.lock
+30
-30
未找到文件。
package.json
浏览文件 @
e9e51b2f
...
@@ -66,7 +66,7 @@
...
@@ -66,7 +66,7 @@
"devDependencies"
:
{
"devDependencies"
:
{
"
@commitlint/cli
"
:
"
^12.1.4
"
,
"
@commitlint/cli
"
:
"
^12.1.4
"
,
"
@commitlint/config-conventional
"
:
"
^12.1.4
"
,
"
@commitlint/config-conventional
"
:
"
^12.1.4
"
,
"
@iconify/json
"
:
"
^1.1.36
1
"
,
"
@iconify/json
"
:
"
^1.1.36
2
"
,
"
@purge-icons/generated
"
:
"
^0.7.0
"
,
"
@purge-icons/generated
"
:
"
^0.7.0
"
,
"
@types/codemirror
"
:
"
^5.60.1
"
,
"
@types/codemirror
"
:
"
^5.60.1
"
,
"
@types/crypto-js
"
:
"
^4.0.1
"
,
"
@types/crypto-js
"
:
"
^4.0.1
"
,
...
@@ -83,9 +83,9 @@
...
@@ -83,9 +83,9 @@
"
@types/sortablejs
"
:
"
^1.10.6
"
,
"
@types/sortablejs
"
:
"
^1.10.6
"
,
"
@typescript-eslint/eslint-plugin
"
:
"
^4.28.0
"
,
"
@typescript-eslint/eslint-plugin
"
:
"
^4.28.0
"
,
"
@typescript-eslint/parser
"
:
"
^4.28.0
"
,
"
@typescript-eslint/parser
"
:
"
^4.28.0
"
,
"
@vitejs/plugin-legacy
"
:
"
^1.4.
2
"
,
"
@vitejs/plugin-legacy
"
:
"
^1.4.
3
"
,
"
@vitejs/plugin-vue
"
:
"
^1.2.
3
"
,
"
@vitejs/plugin-vue
"
:
"
^1.2.
4
"
,
"
@vitejs/plugin-vue-jsx
"
:
"
^1.1.
5
"
,
"
@vitejs/plugin-vue-jsx
"
:
"
^1.1.
6
"
,
"
@vue/compiler-sfc
"
:
"
3.1.2
"
,
"
@vue/compiler-sfc
"
:
"
3.1.2
"
,
"
@vue/test-utils
"
:
"
^2.0.0-rc.9
"
,
"
@vue/test-utils
"
:
"
^2.0.0-rc.9
"
,
"
autoprefixer
"
:
"
^10.2.6
"
,
"
autoprefixer
"
:
"
^10.2.6
"
,
...
...
src/components/Scrollbar/src/Scrollbar.vue
浏览文件 @
e9e51b2f
...
@@ -29,6 +29,7 @@
...
@@ -29,6 +29,7 @@
nextTick
,
nextTick
,
provide
,
provide
,
computed
,
computed
,
watch
,
unref
,
unref
,
}
from
'
vue
'
;
}
from
'
vue
'
;
import
Bar
from
'
./bar
'
;
import
Bar
from
'
./bar
'
;
...
@@ -64,7 +65,7 @@
...
@@ -64,7 +65,7 @@
default
:
'
div
'
,
default
:
'
div
'
,
},
},
},
},
setup
(
props
)
{
setup
(
props
,
{
slots
}
)
{
const
sizeWidth
=
ref
(
'
0
'
);
const
sizeWidth
=
ref
(
'
0
'
);
const
sizeHeight
=
ref
(
'
0
'
);
const
sizeHeight
=
ref
(
'
0
'
);
const
moveX
=
ref
(
0
);
const
moveX
=
ref
(
0
);
...
@@ -81,6 +82,13 @@
...
@@ -81,6 +82,13 @@
return
props
.
wrapStyle
;
return
props
.
wrapStyle
;
});
});
watch
(
()
=>
slots
.
default
?.(),
()
=>
{
nextTick
(
update
);
}
);
const
handleScroll
=
()
=>
{
const
handleScroll
=
()
=>
{
if
(
!
props
.
native
)
{
if
(
!
props
.
native
)
{
moveY
.
value
=
(
unref
(
wrap
).
scrollTop
*
100
)
/
unref
(
wrap
).
clientHeight
;
moveY
.
value
=
(
unref
(
wrap
).
scrollTop
*
100
)
/
unref
(
wrap
).
clientHeight
;
...
...
yarn.lock
浏览文件 @
e9e51b2f
...
@@ -53,7 +53,7 @@
...
@@ -53,7 +53,7 @@
resolved "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.14.5.tgz#8ef4c18e58e801c5c95d3c1c0f2874a2680fadea"
resolved "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.14.5.tgz#8ef4c18e58e801c5c95d3c1c0f2874a2680fadea"
integrity sha512-kixrYn4JwfAVPa0f2yfzc2AWti6WRRyO3XjWW5PJAvtE11qhSayrrcrEnee05KAtNaPC+EwehE8Qt1UedEVB8w==
integrity sha512-kixrYn4JwfAVPa0f2yfzc2AWti6WRRyO3XjWW5PJAvtE11qhSayrrcrEnee05KAtNaPC+EwehE8Qt1UedEVB8w==
"@babel/core@>=7.9.0", "@babel/core@^7.1.0", "@babel/core@^7.11.1", "@babel/core@^7.1
2.10
", "@babel/core@^7.7.2", "@babel/core@^7.7.5":
"@babel/core@>=7.9.0", "@babel/core@^7.1.0", "@babel/core@^7.11.1", "@babel/core@^7.1
4.6
", "@babel/core@^7.7.2", "@babel/core@^7.7.5":
version "7.14.6"
version "7.14.6"
resolved "https://registry.npmjs.org/@babel/core/-/core-7.14.6.tgz#e0814ec1a950032ff16c13a2721de39a8416fcab"
resolved "https://registry.npmjs.org/@babel/core/-/core-7.14.6.tgz#e0814ec1a950032ff16c13a2721de39a8416fcab"
integrity sha512-gJnOEWSqTk96qG5BoIrl5bVtc23DCycmIePPYnamY9RboYdI4nFy5vAQMSl81O5K/W0sLDWfGysnOECC+KUUCA==
integrity sha512-gJnOEWSqTk96qG5BoIrl5bVtc23DCycmIePPYnamY9RboYdI4nFy5vAQMSl81O5K/W0sLDWfGysnOECC+KUUCA==
...
@@ -791,7 +791,7 @@
...
@@ -791,7 +791,7 @@
dependencies:
dependencies:
"@babel/helper-plugin-utils" "^7.14.5"
"@babel/helper-plugin-utils" "^7.14.5"
"@babel/plugin-transform-typescript@^7.1
2.1
":
"@babel/plugin-transform-typescript@^7.1
4.6
":
version "7.14.6"
version "7.14.6"
resolved "https://registry.npmjs.org/@babel/plugin-transform-typescript/-/plugin-transform-typescript-7.14.6.tgz#6e9c2d98da2507ebe0a883b100cde3c7279df36c"
resolved "https://registry.npmjs.org/@babel/plugin-transform-typescript/-/plugin-transform-typescript-7.14.6.tgz#6e9c2d98da2507ebe0a883b100cde3c7279df36c"
integrity sha512-XlTdBq7Awr4FYIzqhmYY80WN0V0azF74DMPyFqVHBvf81ZUgc4X7ZOpx6O8eLDK6iM5cCQzeyJw0ynTaefixRA==
integrity sha512-XlTdBq7Awr4FYIzqhmYY80WN0V0azF74DMPyFqVHBvf81ZUgc4X7ZOpx6O8eLDK6iM5cCQzeyJw0ynTaefixRA==
...
@@ -912,9 +912,9 @@
...
@@ -912,9 +912,9 @@
dependencies:
dependencies:
regenerator-runtime "^0.13.4"
regenerator-runtime "^0.13.4"
"@babel/standalone@^7.14.
6
":
"@babel/standalone@^7.14.
7
":
version "7.14.7"
version "7.14.7"
resolved "https://registry.
yarnpkg.com
/@babel/standalone/-/standalone-7.14.7.tgz#68635da005d6a34a0259599e0720d2e73133ecc3"
resolved "https://registry.
npmjs.org
/@babel/standalone/-/standalone-7.14.7.tgz#68635da005d6a34a0259599e0720d2e73133ecc3"
integrity sha512-7RlfMPR4604SbYpj5zvs2ZK587hVhixgU9Pd9Vs8lB8KYtT3U0apXSf0vZXhy8XRh549eUmJOHXhWKTO3ObzOQ==
integrity sha512-7RlfMPR4604SbYpj5zvs2ZK587hVhixgU9Pd9Vs8lB8KYtT3U0apXSf0vZXhy8XRh549eUmJOHXhWKTO3ObzOQ==
"@babel/template@^7.0.0", "@babel/template@^7.14.5", "@babel/template@^7.3.3":
"@babel/template@^7.0.0", "@babel/template@^7.14.5", "@babel/template@^7.3.3":
...
@@ -1189,10 +1189,10 @@
...
@@ -1189,10 +1189,10 @@
dependencies:
dependencies:
cross-fetch "^3.0.6"
cross-fetch "^3.0.6"
"@iconify/json@^1.1.36
1
":
"@iconify/json@^1.1.36
2
":
version "1.1.36
1
"
version "1.1.36
2
"
resolved "https://registry.
yarnpkg.com/@iconify/json/-/json-1.1.361.tgz#6222e7971467cc4a793c7e0bf2877b484827ae36
"
resolved "https://registry.
npmjs.org/@iconify/json/-/json-1.1.362.tgz#e104610f6341db0b5104794bb57959d41e5cea1b
"
integrity sha512-
p7RMNFNI1YLFCJ0Ads6LOtJyLsheYM+XBSrhcTYxjuCmr2dv2j4DFp0Bh3HLwybtdPo3cA7Xo8Wqk8djvoVm/g
==
integrity sha512-
oKU1KvmcLX/049RXi7FJsNgiodei7LhNetls3cv+oIkTUTIa5mi88oFfRj03B6c1Vja80ZLH+mSDLeTk1fMD5A
==
"@intlify/core-base@9.1.6":
"@intlify/core-base@9.1.6":
version "9.1.6"
version "9.1.6"
...
@@ -2228,33 +2228,33 @@
...
@@ -2228,33 +2228,33 @@
"@typescript-eslint/types" "4.28.0"
"@typescript-eslint/types" "4.28.0"
eslint-visitor-keys "^2.0.0"
eslint-visitor-keys "^2.0.0"
"@vitejs/plugin-legacy@^1.4.
2
":
"@vitejs/plugin-legacy@^1.4.
3
":
version "1.4.
2
"
version "1.4.
3
"
resolved "https://registry.
yarnpkg.com/@vitejs/plugin-legacy/-/plugin-legacy-1.4.2.tgz#219e7b86a9febe62b85a66b68127a89954ed93e5
"
resolved "https://registry.
npmjs.org/@vitejs/plugin-legacy/-/plugin-legacy-1.4.3.tgz#d022275d08e6f1f777891fb405816a9dd41a9f1f
"
integrity sha512-
D2ADBSpImP0QT8w9Eo+8KKOLg3I8OQhFwuBXGM8WQCRrEs55E3bCf9PTkL8S+tgliyLbJM+gjemxpRuoTTwphA
==
integrity sha512-
lxZUJaMWYMQuqvZM1wPzDP6KABQgA/drVL5fnaygEPcz9adc2OHhfFNN/SvvHQ1V0rP8gybIc7uA+iI1gAdkVQ
==
dependencies:
dependencies:
"@babel/standalone" "^7.14.
6
"
"@babel/standalone" "^7.14.
7
"
core-js "^3.1
4.0
"
core-js "^3.1
5.1
"
magic-string "^0.25.7"
magic-string "^0.25.7"
regenerator-runtime "^0.13.7"
regenerator-runtime "^0.13.7"
systemjs "^6.10.1"
systemjs "^6.10.1"
"@vitejs/plugin-vue-jsx@^1.1.
5
":
"@vitejs/plugin-vue-jsx@^1.1.
6
":
version "1.1.
5
"
version "1.1.
6
"
resolved "https://registry.npmjs.org/@vitejs/plugin-vue-jsx/-/plugin-vue-jsx-1.1.
5.tgz#e856ef42f59048e59c85f8714dc8397e15f81738
"
resolved "https://registry.npmjs.org/@vitejs/plugin-vue-jsx/-/plugin-vue-jsx-1.1.
6.tgz#c9e7b63d1ebf537a24a0b4b3b31f4beb8055cef6
"
integrity sha512-
YujG7IgbZR8zWGY/hZFxYKrAUdO+9OV4t3pqqQrvbtP/ESwvTY8vb0Zpw1VMO8zLWNGqf8jSbjBaCjN49diplw
==
integrity sha512-
1vKGALnBFt7hUIOgkC4ZAhTRgENpSgGBsdltJn3fPNcqrbrvR/HaRS5VThjCCoN69d0d+VlDXOTlWcfUpE3pfQ
==
dependencies:
dependencies:
"@babel/core" "^7.1
2.10
"
"@babel/core" "^7.1
4.6
"
"@babel/plugin-syntax-import-meta" "^7.10.4"
"@babel/plugin-syntax-import-meta" "^7.10.4"
"@babel/plugin-transform-typescript" "^7.1
2.1
"
"@babel/plugin-transform-typescript" "^7.1
4.6
"
"@rollup/pluginutils" "^4.1.0"
"@rollup/pluginutils" "^4.1.0"
"@vue/babel-plugin-jsx" "^1.0.
3
"
"@vue/babel-plugin-jsx" "^1.0.
6
"
hash-sum "^2.0.0"
hash-sum "^2.0.0"
"@vitejs/plugin-vue@^1.2.
3
":
"@vitejs/plugin-vue@^1.2.
4
":
version "1.2.
3
"
version "1.2.
4
"
resolved "https://registry.npmjs.org/@vitejs/plugin-vue/-/plugin-vue-1.2.
3.tgz#2e8e008b1cc3a6ad1dfbec75743c7ffd9b4872a6
"
resolved "https://registry.npmjs.org/@vitejs/plugin-vue/-/plugin-vue-1.2.
4.tgz#a7aa6e6a31c556a8b781de730316deeecf7f56f2
"
integrity sha512-
LlnLpObkGKZ+b7dcpL4T24l13nPSHLjo+6Oc7MbZiKz5PMAUzADfNJ3EKfYIQ0l0969nxf2jp/9vsfnuJ7h6fw
==
integrity sha512-
D/3H9plevPQGgQGwmV6eecvOnooLTecPR63HPffVVWPEhbfvmtYLWgznzs456NBb2DItiRTCIa1yWxvGqC+I8A
==
"@volar/code-gen@^0.25.22":
"@volar/code-gen@^0.25.22":
version "0.25.22"
version "0.25.22"
...
@@ -2301,7 +2301,7 @@
...
@@ -2301,7 +2301,7 @@
resolved "https://registry.npmjs.org/@vue/babel-helper-vue-transform-on/-/babel-helper-vue-transform-on-1.0.2.tgz#9b9c691cd06fc855221a2475c3cc831d774bc7dc"
resolved "https://registry.npmjs.org/@vue/babel-helper-vue-transform-on/-/babel-helper-vue-transform-on-1.0.2.tgz#9b9c691cd06fc855221a2475c3cc831d774bc7dc"
integrity sha512-hz4R8tS5jMn8lDq6iD+yWL6XNB699pGIVLk7WSJnn1dbpjaazsjZQkieJoRX6gW5zpYSCFqQ7jUquPNY65tQYA==
integrity sha512-hz4R8tS5jMn8lDq6iD+yWL6XNB699pGIVLk7WSJnn1dbpjaazsjZQkieJoRX6gW5zpYSCFqQ7jUquPNY65tQYA==
"@vue/babel-plugin-jsx@^1.0.
3
":
"@vue/babel-plugin-jsx@^1.0.
6
":
version "1.0.6"
version "1.0.6"
resolved "https://registry.npmjs.org/@vue/babel-plugin-jsx/-/babel-plugin-jsx-1.0.6.tgz#184bf3541ab6efdbe5079ab8b20c19e2af100bfb"
resolved "https://registry.npmjs.org/@vue/babel-plugin-jsx/-/babel-plugin-jsx-1.0.6.tgz#184bf3541ab6efdbe5079ab8b20c19e2af100bfb"
integrity sha512-RzYsvBhzKUmY2YG6LoV+W5PnlnkInq0thh1AzCmewwctAgGN6e9UFon6ZrQQV1CO5G5PeME7MqpB+/vvGg0h4g==
integrity sha512-RzYsvBhzKUmY2YG6LoV+W5PnlnkInq0thh1AzCmewwctAgGN6e9UFon6ZrQQV1CO5G5PeME7MqpB+/vvGg0h4g==
...
@@ -4074,10 +4074,10 @@ core-js@^3.12.1:
...
@@ -4074,10 +4074,10 @@ core-js@^3.12.1:
resolved "https://registry.npmjs.org/core-js/-/core-js-3.14.0.tgz#62322b98c71cc2018b027971a69419e2425c2a6c"
resolved "https://registry.npmjs.org/core-js/-/core-js-3.14.0.tgz#62322b98c71cc2018b027971a69419e2425c2a6c"
integrity sha512-3s+ed8er9ahK+zJpp9ZtuVcDoFzHNiZsPbNAAE4KXgrRHbjSqqNN6xGSXq6bq7TZIbKj4NLrLb6bJ5i+vSVjHA==
integrity sha512-3s+ed8er9ahK+zJpp9ZtuVcDoFzHNiZsPbNAAE4KXgrRHbjSqqNN6xGSXq6bq7TZIbKj4NLrLb6bJ5i+vSVjHA==
core-js@^3.1
4.0
:
core-js@^3.1
5.1
:
version "3.15.
0
"
version "3.15.
1
"
resolved "https://registry.
yarnpkg.com/core-js/-/core-js-3.15.0.tgz#db9554ebce0b6fd90dc9b1f2465c841d2d055044
"
resolved "https://registry.
npmjs.org/core-js/-/core-js-3.15.1.tgz#6c08ab88abdf56545045ccf5fd81f47f407e7f1a
"
integrity sha512-
GUbtPllXMYRzIgHNZ4dTYTcUemls2cni83Q4Q/TrFONHfhcg9oEGOtaGHfb0cpzec60P96UKPvMkjX1jET8rUw
==
integrity sha512-
h8VbZYnc9pDzueiS2610IULDkpFFPunHwIpl8yRwFahAEEdSpHlTy3h3z3rKq5h11CaUdBEeRViu9AYvbxiMeg
==
core-util-is@~1.0.0:
core-util-is@~1.0.0:
version "1.0.2"
version "1.0.2"
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录