Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in / Register
Toggle navigation
V
vue3-quasar-ts-study02
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hucy
vue3-quasar-ts-study02
Commits
b5043c05
Commit
b5043c05
authored
Aug 04, 2023
by
hucy
☘
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:Ag Grid Study
parent
3b877240
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
1 deletion
+15
-1
PageHome.vue
src/modules/home/PageHome.vue
+15
-1
No files found.
src/modules/home/PageHome.vue
View file @
b5043c05
...
...
@@ -6,17 +6,31 @@
<
script
setup
lang=
"ts"
>
import
{
reactive
,
onMounted
}
from
'vue'
;
import
{
AgGridVue
}
from
'ag-grid-vue3'
;
import
type
{
GridOptions
}
from
'ag-grid-community'
;
import
type
{
GridOptions
,
ValueFormatterParams
,
ValueFormatterFunc
,
}
from
'ag-grid-community'
;
// Ag Grid
const
gridOptions
:
GridOptions
<
any
>
=
reactive
({
rowModelType
:
'serverSide'
,
cacheBlockSize
:
50
,
// 这将块大小设置为50,因此每次回读50行。
maxBlocksInCache
:
2
,
// 这意味着网格将只在内存中保留两个块。
suppressContextMenu
:
true
,
// 阻止“右键单击”上下文菜单
suppressCellFocus
:
true
,
// 阻止单元格聚焦,这意味着键盘导航将对网格单元格禁用
defaultColDef
:
{
suppressMenu
:
true
,
// 阻止此列标头菜单显示
},
columnDefs
:
[
{
headerName
:
'序号'
,
maxWidth
:
80
,
valueFormatter
:
(
params
:
ValueFormatterParams
):
ValueFormatterFunc
=>
{
//
},
},
{
headerName
:
'运动员'
,
field
:
'athlete'
,
minWidth
:
170
},
{
headerName
:
'年龄'
,
field
:
'age'
},
{
headerName
:
'国家'
,
field
:
'country'
},
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment