Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
npm
/
glsx-components
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
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 4c3050d6
authored
Nov 25, 2021
by
limin
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
还原表格滚动条 用el-table原生 不再改源码
1 parent
cbe5b7de
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
2 deletions
package-lock.json
package.json
src/packages/Table/src/index.vue
package-lock.json
View file @
4c3050d
{
{
"name"
:
"glsx-components"
,
"name"
:
"glsx-components"
,
"version"
:
"1.
0.3
"
,
"version"
:
"1.
2.0
"
,
"lockfileVersion"
:
1
,
"lockfileVersion"
:
1
,
"requires"
:
true
,
"requires"
:
true
,
"dependencies"
:
{
"dependencies"
:
{
...
...
package.json
View file @
4c3050d
{
{
"name"
:
"glsx-components"
,
"name"
:
"glsx-components"
,
"description"
:
"glsx vue components"
,
"description"
:
"glsx vue components"
,
"version"
:
"1.2.
0
"
,
"version"
:
"1.2.
2
"
,
"author"
:
"limin <17653212@qq.com>"
,
"author"
:
"limin <17653212@qq.com>"
,
"license"
:
"MIT"
,
"license"
:
"MIT"
,
"main"
:
"dist/glsx-components.common.js"
,
"main"
:
"dist/glsx-components.common.js"
,
...
...
src/packages/Table/src/index.vue
View file @
4c3050d
...
@@ -37,6 +37,14 @@
...
@@ -37,6 +37,14 @@
<
script
>
<
script
>
import
{
Table
,
TableColumn
,
Pagination
}
from
'element-ui'
import
{
Table
,
TableColumn
,
Pagination
}
from
'element-ui'
// 解决 ElTable 自动宽度高度导致的「ResizeObserver loop limit exceeded」问题
const
fixElTableErr
=
table
=>
{
const
oldResizeListener
=
table
.
methods
.
resizeListener
table
.
methods
.
resizeListener
=
function
()
{
window
.
requestAnimationFrame
(
oldResizeListener
.
bind
(
this
))
}
}
fixElTableErr
(
Table
)
export
default
{
export
default
{
name
:
'GLTable'
,
name
:
'GLTable'
,
...
...
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