@pisell/materials 2.2.7 → 2.2.9
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/meta.js +1 -1
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +1 -1
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +1 -1
- package/es/components/drag-sort-tree/index.js +6 -2
- package/es/components/drawer/index.js +1 -0
- package/es/components/drawer/index.less +8 -1
- package/lib/components/drag-sort-tree/index.js +2 -2
- package/lib/components/drawer/index.js +1 -0
- package/lib/components/drawer/index.less +8 -1
- package/package.json +2 -2
|
@@ -9,6 +9,8 @@ import { DndContext, useSensor, useSensors, PointerSensor } from '@dnd-kit/core'
|
|
|
9
9
|
import { SortableContext, verticalListSortingStrategy, arrayMove } from '@dnd-kit/sortable';
|
|
10
10
|
import TreeItem from "./TreeItem";
|
|
11
11
|
import { restrictToVerticalAxis, restrictToParentElement } from '@dnd-kit/modifiers';
|
|
12
|
+
// import './index.less';
|
|
13
|
+
|
|
12
14
|
var DragSortTree = function DragSortTree(props) {
|
|
13
15
|
var value = props.value,
|
|
14
16
|
rowKey = props.rowKey,
|
|
@@ -61,7 +63,9 @@ var DragSortTree = function DragSortTree(props) {
|
|
|
61
63
|
setItems(value);
|
|
62
64
|
onChange && onChange(value);
|
|
63
65
|
};
|
|
64
|
-
return /*#__PURE__*/React.createElement(
|
|
66
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
67
|
+
className: "pisell-lowcode-drag-sort-tree-wrap"
|
|
68
|
+
}, /*#__PURE__*/React.createElement(DndContext, {
|
|
65
69
|
sensors: sensors,
|
|
66
70
|
onDragEnd: handleDragEnd,
|
|
67
71
|
onDragStart: handleDragStart,
|
|
@@ -83,6 +87,6 @@ var DragSortTree = function DragSortTree(props) {
|
|
|
83
87
|
lists: items,
|
|
84
88
|
onChange: handleChange
|
|
85
89
|
});
|
|
86
|
-
})));
|
|
90
|
+
}))));
|
|
87
91
|
};
|
|
88
92
|
export default DragSortTree;
|
|
@@ -104,6 +104,7 @@ var Drawer = function Drawer(props) {
|
|
|
104
104
|
};
|
|
105
105
|
}
|
|
106
106
|
return _objectSpread({
|
|
107
|
+
rootClassName: "".concat(prefix, "basic-drawer-root"),
|
|
107
108
|
closeIcon: /*#__PURE__*/React.createElement(XClose, {
|
|
108
109
|
className: "".concat(prefix, "drawer-header-close-icon")
|
|
109
110
|
})
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
.@{pisell-prefix} {
|
|
4
4
|
&-drawer-header {
|
|
5
|
-
position:
|
|
5
|
+
position: unset !important;
|
|
6
6
|
}
|
|
7
7
|
|
|
8
8
|
&-drawer-header-close-icon {
|
|
@@ -61,4 +61,11 @@
|
|
|
61
61
|
&-drawer-outside-action-active {
|
|
62
62
|
background: var(--Primary-200, #E9D7FE) !important;
|
|
63
63
|
}
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
.@{pisell-prefix}-basic-drawer-root {
|
|
68
|
+
.@{pisell-prefix}-drawer-header {
|
|
69
|
+
position: relative !important;
|
|
70
|
+
}
|
|
64
71
|
}
|
|
@@ -80,7 +80,7 @@ var DragSortTree = (props) => {
|
|
|
80
80
|
setItems(value2);
|
|
81
81
|
onChange && onChange(value2);
|
|
82
82
|
};
|
|
83
|
-
return /* @__PURE__ */ import_react.default.createElement(
|
|
83
|
+
return /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode-drag-sort-tree-wrap" }, /* @__PURE__ */ import_react.default.createElement(
|
|
84
84
|
import_core.DndContext,
|
|
85
85
|
{
|
|
86
86
|
sensors,
|
|
@@ -109,6 +109,6 @@ var DragSortTree = (props) => {
|
|
|
109
109
|
}
|
|
110
110
|
))
|
|
111
111
|
)
|
|
112
|
-
);
|
|
112
|
+
));
|
|
113
113
|
};
|
|
114
114
|
var drag_sort_tree_default = DragSortTree;
|
|
@@ -127,6 +127,7 @@ var Drawer = (props) => {
|
|
|
127
127
|
};
|
|
128
128
|
}
|
|
129
129
|
return {
|
|
130
|
+
rootClassName: `${prefix}basic-drawer-root`,
|
|
130
131
|
closeIcon: /* @__PURE__ */ import_react.default.createElement(import_XClose.default, { className: `${prefix}drawer-header-close-icon` }),
|
|
131
132
|
...headerStyle
|
|
132
133
|
};
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
.@{pisell-prefix} {
|
|
4
4
|
&-drawer-header {
|
|
5
|
-
position:
|
|
5
|
+
position: unset !important;
|
|
6
6
|
}
|
|
7
7
|
|
|
8
8
|
&-drawer-header-close-icon {
|
|
@@ -61,4 +61,11 @@
|
|
|
61
61
|
&-drawer-outside-action-active {
|
|
62
62
|
background: var(--Primary-200, #E9D7FE) !important;
|
|
63
63
|
}
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
.@{pisell-prefix}-basic-drawer-root {
|
|
68
|
+
.@{pisell-prefix}-drawer-header {
|
|
69
|
+
position: relative !important;
|
|
70
|
+
}
|
|
64
71
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pisell/materials",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.9",
|
|
4
4
|
"main": "./lib/index.js",
|
|
5
5
|
"module": "./es/index.js",
|
|
6
6
|
"types": "./lib/index.d.ts",
|
|
@@ -61,8 +61,8 @@
|
|
|
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.25",
|
|
65
64
|
"@pisell/icon": "0.0.11",
|
|
65
|
+
"@pisell/utils": "1.0.25",
|
|
66
66
|
"@pisell/date-picker": "1.0.74"
|
|
67
67
|
},
|
|
68
68
|
"peerDependencies": {
|