@pisell/materials 1.0.307 → 1.0.308
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/build/lowcode/assets-daily.json +11 -11
- package/build/lowcode/assets-dev.json +2 -2
- package/build/lowcode/assets-prod.json +11 -11
- package/build/lowcode/index.js +1 -1
- package/build/lowcode/meta.js +1 -1
- package/build/lowcode/render/default/view.js +1 -1
- package/build/lowcode/view.js +1 -1
- package/dist/umd/materials.min.css +1 -0
- package/dist/umd/materials.min.js +1 -0
- package/dist/umd/static/DotsSix.57d66266.svg +1 -0
- package/dist/umd/static/arrow-left.e542294f.svg +1 -0
- package/dist/umd/static/arrow-right.763f03e0.svg +1 -0
- package/dist/umd/static/filter-lines.04a54ae9.svg +1 -0
- package/dist/umd/static/help-circle.31c9be40.svg +1 -0
- package/dist/umd/static/switch-vertical-01.7ebe3ba8.svg +1 -0
- package/es/components/table/index.js +11 -3
- package/lib/components/table/index.js +12 -3
- package/package.json +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg width="24" height="24" fill="currentColor" xmlns="http://www.w3.org/2000/svg"><path d="M8 13a1 1 0 1 0 0-2 1 1 0 0 0 0 2ZM8 6a1 1 0 1 0 0-2 1 1 0 0 0 0 2ZM8 20a1 1 0 1 0 0-2 1 1 0 0 0 0 2ZM16 13a1 1 0 1 0 0-2 1 1 0 0 0 0 2ZM16 6a1 1 0 1 0 0-2 1 1 0 0 0 0 2ZM16 20a1 1 0 1 0 0-2 1 1 0 0 0 0 2Z" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg width="24" height="24" fill="currentColor" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M12.707 4.293a1 1 0 0 1 0 1.414L7.414 11H19a1 1 0 1 1 0 2H7.414l5.293 5.293a1 1 0 0 1-1.414 1.414l-7-7a1 1 0 0 1 0-1.414l7-7a1 1 0 0 1 1.414 0Z"/></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg width="24" height="24" fill="currentColor" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M11.293 4.293a1 1 0 0 1 1.414 0l7 7a1 1 0 0 1 0 1.414l-7 7a1 1 0 0 1-1.414-1.414L16.586 13H5a1 1 0 1 1 0-2h11.586l-5.293-5.293a1 1 0 0 1 0-1.414Z"/></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg width="24" height="24" fill="currentColor" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M2 6a1 1 0 0 1 1-1h18a1 1 0 1 1 0 2H3a1 1 0 0 1-1-1Zm3 6a1 1 0 0 1 1-1h12a1 1 0 1 1 0 2H6a1 1 0 0 1-1-1Zm3 6a1 1 0 0 1 1-1h6a1 1 0 1 1 0 2H9a1 1 0 0 1-1-1Z"/></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg width="24" height="24" fill="currentColor" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M12 3a9 9 0 1 0 0 18 9 9 0 0 0 0-18ZM1 12C1 5.925 5.925 1 12 1s11 4.925 11 11-4.925 11-11 11S1 18.075 1 12Zm11.258-3.976a2 2 0 0 0-2.225 1.308 1 1 0 1 1-1.886-.664 4 4 0 0 1 7.773 1.333c0 1.53-1.135 2.54-1.945 3.081a8.044 8.044 0 0 1-1.686.848l-.035.013-.011.003-.004.002h-.002L11.92 13l.316.949a1 1 0 0 1-.633-1.897l.016-.006.074-.027a6.051 6.051 0 0 0 1.172-.6c.69-.46 1.055-.95 1.055-1.419v-.001a2 2 0 0 0-1.662-1.975ZM11 17a1 1 0 0 1 1-1h.01a1 1 0 1 1 0 2H12a1 1 0 0 1-1-1Z"/></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg width="24" height="24" fill="currentColor" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M6.293 3.293a1 1 0 0 1 1.414 0l4 4a1 1 0 0 1-1.414 1.414L8 6.414V20a1 1 0 1 1-2 0V6.414L3.707 8.707a1 1 0 0 1-1.414-1.414l4-4ZM16 17.586V4a1 1 0 1 1 2 0v13.586l2.293-2.293a1 1 0 0 1 1.414 1.414l-4 4a1 1 0 0 1-1.414 0l-4-4a1 1 0 0 1 1.414-1.414L16 17.586Z"/></svg>
|
|
@@ -110,9 +110,17 @@ var GridView = Provider( /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
110
110
|
}
|
|
111
111
|
return viewMode || defaultViewMode;
|
|
112
112
|
}, [viewMode, defaultViewMode, multiple]);
|
|
113
|
+
var removeTitleColumns = useMemo(function () {
|
|
114
|
+
var _columns = columns.map(function (item) {
|
|
115
|
+
return _objectSpread(_objectSpread({}, item), {}, {
|
|
116
|
+
title: undefined
|
|
117
|
+
});
|
|
118
|
+
});
|
|
119
|
+
return _columns;
|
|
120
|
+
}, [columns]);
|
|
113
121
|
var currentSettingHash = useMemo(function () {
|
|
114
|
-
return currentSettingKey || getHash(
|
|
115
|
-
}, [currentSettingKey, JSON.stringify(
|
|
122
|
+
return currentSettingKey || getHash(removeTitleColumns) || "";
|
|
123
|
+
}, [currentSettingKey, JSON.stringify(removeTitleColumns)]);
|
|
116
124
|
useEffect(function () {
|
|
117
125
|
var setting = getTableSettingFromLocalStorage(tableId);
|
|
118
126
|
if (setting.currentSettingHash !== currentSettingHash) {
|
|
@@ -232,7 +240,7 @@ var GridView = Provider( /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
232
240
|
form.setFieldValue("column_setting", {});
|
|
233
241
|
form.setFieldValue("column_setting", tableSettingRef.current.column_setting);
|
|
234
242
|
// JSON.stringify会丢失 render函数变更的监听 使用自定义stringify处理
|
|
235
|
-
}, [stringify(
|
|
243
|
+
}, [stringify(removeTitleColumns)]);
|
|
236
244
|
useEffect(function () {
|
|
237
245
|
form.setFieldsValue(initialValuesRef.current);
|
|
238
246
|
// ArraySetter在面板state变更时指针改变
|
|
@@ -122,9 +122,18 @@ var GridView = (0, import_model.Provider)(
|
|
|
122
122
|
}
|
|
123
123
|
return viewMode || defaultViewMode;
|
|
124
124
|
}, [viewMode, defaultViewMode, multiple]);
|
|
125
|
+
const removeTitleColumns = (0, import_react.useMemo)(() => {
|
|
126
|
+
let _columns = columns.map((item) => {
|
|
127
|
+
return {
|
|
128
|
+
...item,
|
|
129
|
+
title: void 0
|
|
130
|
+
};
|
|
131
|
+
});
|
|
132
|
+
return _columns;
|
|
133
|
+
}, [columns]);
|
|
125
134
|
const currentSettingHash = (0, import_react.useMemo)(() => {
|
|
126
|
-
return currentSettingKey || (0, import_utils.getHash)(
|
|
127
|
-
}, [currentSettingKey, JSON.stringify(
|
|
135
|
+
return currentSettingKey || (0, import_utils.getHash)(removeTitleColumns) || "";
|
|
136
|
+
}, [currentSettingKey, JSON.stringify(removeTitleColumns)]);
|
|
128
137
|
(0, import_react.useEffect)(() => {
|
|
129
138
|
const setting = (0, import_utils.getTableSettingFromLocalStorage)(tableId);
|
|
130
139
|
if (setting.currentSettingHash !== currentSettingHash) {
|
|
@@ -246,7 +255,7 @@ var GridView = (0, import_model.Provider)(
|
|
|
246
255
|
"column_setting",
|
|
247
256
|
tableSettingRef.current.column_setting
|
|
248
257
|
);
|
|
249
|
-
}, [(0, import_utils.stringify)(
|
|
258
|
+
}, [(0, import_utils.stringify)(removeTitleColumns)]);
|
|
250
259
|
(0, import_react.useEffect)(() => {
|
|
251
260
|
form.setFieldsValue(initialValuesRef.current);
|
|
252
261
|
}, [JSON.stringify(propsFilter)]);
|