@nokecy/qc-ui 0.0.16 → 0.0.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/ag-grid-plus/ag-gridPlus.js +7 -1
- package/dist/cjs/ag-grid-plus/queryForm/queryForm.js +1 -1
- package/dist/cjs/ag-grid-plus/utils.js +1 -1
- package/dist/esm/ag-grid-plus/ag-gridPlus.js +7 -1
- package/dist/esm/ag-grid-plus/queryForm/queryForm.js +1 -1
- package/dist/esm/ag-grid-plus/utils.js +1 -1
- package/dist/umd/qc-ui.min.js +1 -1
- package/package.json +1 -1
|
@@ -132,7 +132,13 @@ function AgGridPlus(props) {
|
|
|
132
132
|
|
|
133
133
|
var defaultColDef = {
|
|
134
134
|
resizable: true,
|
|
135
|
-
sortable: true
|
|
135
|
+
sortable: true,
|
|
136
|
+
headerComponentParams: {
|
|
137
|
+
template: '<div class="ag-cell-label-container" role="presentation">' + // ' <span ref="eMenu" class="ag-header-icon ag-header-cell-menu-button" aria-hidden="true"></span>' +
|
|
138
|
+
' <div ref="eLabel" class="ag-header-cell-label" role="presentation">' + ' <span ref="eText" class="ag-header-cell-text"></span>' + // ' <span ref="eFilter" class="ag-header-icon ag-filter-icon"></span>' +
|
|
139
|
+
// ' <span ref="eSortOrder" class="ag-header-icon ag-sort-order"></span>' +
|
|
140
|
+
' <span ref="eSortAsc" class="ag-header-icon ag-sort-ascending-icon"></span>' + ' <span ref="eSortDesc" class="ag-header-icon ag-sort-descending-icon"></span>' + ' <span ref="eSortNone" class="ag-header-icon ag-sort-none-icon"></span>' + ' </div>' + '</div>'
|
|
141
|
+
}
|
|
136
142
|
}; //请求数据
|
|
137
143
|
|
|
138
144
|
(0, _react.useEffect)(function () {
|
|
@@ -24,7 +24,7 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
|
|
|
24
24
|
var useCollapseGrid = function useCollapseGrid(maxRows) {
|
|
25
25
|
var grid = (0, _react.useMemo)(function () {
|
|
26
26
|
return _antd.FormGrid.createFormGrid({
|
|
27
|
-
maxColumns:
|
|
27
|
+
maxColumns: 5,
|
|
28
28
|
maxWidth: 240,
|
|
29
29
|
maxRows: maxRows,
|
|
30
30
|
shouldVisible: function shouldVisible(node, grid) {
|
|
@@ -106,7 +106,13 @@ function AgGridPlus(props) {
|
|
|
106
106
|
|
|
107
107
|
var defaultColDef = {
|
|
108
108
|
resizable: true,
|
|
109
|
-
sortable: true
|
|
109
|
+
sortable: true,
|
|
110
|
+
headerComponentParams: {
|
|
111
|
+
template: '<div class="ag-cell-label-container" role="presentation">' + // ' <span ref="eMenu" class="ag-header-icon ag-header-cell-menu-button" aria-hidden="true"></span>' +
|
|
112
|
+
' <div ref="eLabel" class="ag-header-cell-label" role="presentation">' + ' <span ref="eText" class="ag-header-cell-text"></span>' + // ' <span ref="eFilter" class="ag-header-icon ag-filter-icon"></span>' +
|
|
113
|
+
// ' <span ref="eSortOrder" class="ag-header-icon ag-sort-order"></span>' +
|
|
114
|
+
' <span ref="eSortAsc" class="ag-header-icon ag-sort-ascending-icon"></span>' + ' <span ref="eSortDesc" class="ag-header-icon ag-sort-descending-icon"></span>' + ' <span ref="eSortNone" class="ag-header-icon ag-sort-none-icon"></span>' + ' </div>' + '</div>'
|
|
115
|
+
}
|
|
110
116
|
}; //请求数据
|
|
111
117
|
|
|
112
118
|
useEffect(function () {
|
|
@@ -7,7 +7,7 @@ import { observer } from '@formily/react';
|
|
|
7
7
|
var useCollapseGrid = function useCollapseGrid(maxRows) {
|
|
8
8
|
var grid = useMemo(function () {
|
|
9
9
|
return FormGrid.createFormGrid({
|
|
10
|
-
maxColumns:
|
|
10
|
+
maxColumns: 5,
|
|
11
11
|
maxWidth: 240,
|
|
12
12
|
maxRows: maxRows,
|
|
13
13
|
shouldVisible: function shouldVisible(node, grid) {
|