@pisell/materials 3.0.6 → 3.0.8
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/preview.js +7 -7
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +17 -17
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +20 -20
- package/es/components/Pagination/index.js +4 -4
- package/es/components/drawer/index.js +64 -6
- package/es/components/drawer/index.less +3 -0
- package/es/components/filter/index.js +2 -3
- package/es/components/filter/types.d.ts +1 -0
- package/es/components/table/Actions/index.js +4 -3
- package/es/components/table/Table/utils.d.ts +1 -1
- package/es/components/table/hooks/useIsMobileTable.d.ts +2 -0
- package/es/components/table/hooks/useIsMobileTable.js +9 -0
- package/es/components/table/index.js +17 -1
- package/es/components/table/model.d.ts +1 -0
- package/es/components/table/model.js +7 -1
- package/lib/components/Pagination/index.js +4 -4
- package/lib/components/drawer/index.js +66 -5
- package/lib/components/drawer/index.less +3 -0
- package/lib/components/filter/index.js +1 -3
- package/lib/components/filter/types.d.ts +1 -0
- package/lib/components/table/Actions/index.js +4 -3
- package/lib/components/table/Table/utils.d.ts +1 -1
- package/lib/components/table/hooks/useIsMobileTable.d.ts +2 -0
- package/lib/components/table/hooks/useIsMobileTable.js +32 -0
- package/lib/components/table/index.js +14 -1
- package/lib/components/table/model.d.ts +1 -0
- package/lib/components/table/model.js +5 -1
- package/lowcode/drawer/meta.ts +19 -0
- package/lowcode/table/meta.ts +5 -1
- package/package.json +3 -3
|
@@ -58,7 +58,8 @@ var defaultState = {
|
|
|
58
58
|
data: {
|
|
59
59
|
edit: 0
|
|
60
60
|
}
|
|
61
|
-
}
|
|
61
|
+
},
|
|
62
|
+
tableWidth: 500
|
|
62
63
|
};
|
|
63
64
|
var { Provider, Context } = (0, import_miniRedux.default)({
|
|
64
65
|
namespace: "state",
|
|
@@ -110,6 +111,9 @@ var { Provider, Context } = (0, import_miniRedux.default)({
|
|
|
110
111
|
},
|
|
111
112
|
setLocalPagination(state, payload) {
|
|
112
113
|
return { ...state, localPagination: payload };
|
|
114
|
+
},
|
|
115
|
+
setTableWidth(state, payload) {
|
|
116
|
+
return { ...state, tableWidth: payload };
|
|
113
117
|
}
|
|
114
118
|
}
|
|
115
119
|
});
|
package/lowcode/drawer/meta.ts
CHANGED
|
@@ -222,6 +222,20 @@ export default {
|
|
|
222
222
|
defaultValue: false,
|
|
223
223
|
setter: 'BoolSetter',
|
|
224
224
|
},
|
|
225
|
+
{
|
|
226
|
+
name: 'showPin',
|
|
227
|
+
title: { label: '展示pin按钮', tip: 'showPin | 展示pin按钮, 点击可以展示和内容并列展示' },
|
|
228
|
+
propType: 'bool',
|
|
229
|
+
defaultValue: false,
|
|
230
|
+
setter: 'BoolSetter',
|
|
231
|
+
},
|
|
232
|
+
{
|
|
233
|
+
name: 'persistent',
|
|
234
|
+
title: { label: '固定状态', tip: 'persistent | 是否固定展示,false时视图zIndex在上' },
|
|
235
|
+
propType: 'bool',
|
|
236
|
+
defaultValue: undefined,
|
|
237
|
+
setter: 'BoolSetter',
|
|
238
|
+
},
|
|
225
239
|
],
|
|
226
240
|
},
|
|
227
241
|
{
|
|
@@ -443,6 +457,11 @@ export default {
|
|
|
443
457
|
template:
|
|
444
458
|
"afterOpenChange(open,${extParams}){\n// 切换抽屉时动画结束后的回调\nconsole.log('afterOpenChange',open);}",
|
|
445
459
|
},
|
|
460
|
+
{
|
|
461
|
+
name: 'onPersistentChange',
|
|
462
|
+
template:
|
|
463
|
+
"onPersistentChange(persistent){}",
|
|
464
|
+
},
|
|
446
465
|
],
|
|
447
466
|
},
|
|
448
467
|
},
|
package/lowcode/table/meta.ts
CHANGED
|
@@ -1136,6 +1136,7 @@ export default {
|
|
|
1136
1136
|
if (value) {
|
|
1137
1137
|
target.parent.setPropValue("rowSelection", {
|
|
1138
1138
|
type: "radio",
|
|
1139
|
+
columnWidth: 48,
|
|
1139
1140
|
});
|
|
1140
1141
|
}
|
|
1141
1142
|
},
|
|
@@ -1192,7 +1193,10 @@ export default {
|
|
|
1192
1193
|
value: ["number", "string"],
|
|
1193
1194
|
},
|
|
1194
1195
|
setter: ["NumberSetter", "StringSetter", "VariableSetter"],
|
|
1195
|
-
|
|
1196
|
+
condition: {
|
|
1197
|
+
type: "JSFunction",
|
|
1198
|
+
value: 'target => !!target.getProps().getPropValue("rowSelection")',
|
|
1199
|
+
},
|
|
1196
1200
|
},
|
|
1197
1201
|
{
|
|
1198
1202
|
name: "rowSelection.selectedRowKeys",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pisell/materials",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.8",
|
|
4
4
|
"main": "./lib/index.js",
|
|
5
5
|
"module": "./es/index.js",
|
|
6
6
|
"types": "./lib/index.d.ts",
|
|
@@ -61,9 +61,9 @@
|
|
|
61
61
|
"react-window": "^1.8.10",
|
|
62
62
|
"react-virtualized-auto-sizer": "^1.0.20",
|
|
63
63
|
"crypto-js": "^4.2.0",
|
|
64
|
+
"@pisell/utils": "1.0.24",
|
|
64
65
|
"@pisell/icon": "0.0.8",
|
|
65
|
-
"@pisell/date-picker": "1.0.69"
|
|
66
|
-
"@pisell/utils": "1.0.24"
|
|
66
|
+
"@pisell/date-picker": "1.0.69"
|
|
67
67
|
},
|
|
68
68
|
"peerDependencies": {
|
|
69
69
|
"react": "^18.0.0",
|