🐛 修复隐藏排序问题 #317
This commit is contained in:
parent
3c1e30182f
commit
14baa176d9
@ -1,7 +1,7 @@
|
||||
const fs = require("fs");
|
||||
const JSZip = require("jszip");
|
||||
const ChromeExtension = require("crx");
|
||||
const { execSync, exec } = require("child_process");
|
||||
const { execSync } = require("child_process");
|
||||
const semver = require("semver");
|
||||
const manifest = require("../src/manifest.json");
|
||||
const package = require("../package.json");
|
||||
@ -47,8 +47,6 @@ if (process.env.GITHUB_REF_TYPE === "branch") {
|
||||
}
|
||||
|
||||
execSync("npm run build", { stdio: "inherit" });
|
||||
// 再打包分割的文件
|
||||
// execSync("npm run build:split", { stdio: "inherit" });
|
||||
|
||||
// 处理firefox和chrome的zip压缩包
|
||||
|
||||
|
@ -615,6 +615,7 @@ function ScriptList() {
|
||||
const dealColumns: ColumnProps[] = [];
|
||||
|
||||
newColumns.forEach((item) => {
|
||||
console.log(newColumns);
|
||||
switch (item.width) {
|
||||
case -1:
|
||||
break;
|
||||
@ -625,8 +626,9 @@ function ScriptList() {
|
||||
});
|
||||
|
||||
const sortIndex = dealColumns.findIndex((item) => item.key === "sort");
|
||||
|
||||
const SortableItem = (props: any) => {
|
||||
let SortableItem;
|
||||
if (sortIndex !== -1) {
|
||||
SortableItem = (props: any) => {
|
||||
const { attributes, listeners, setNodeRef, transform, transition } = useSortable({ id: props!.record.uuid });
|
||||
|
||||
const style = {
|
||||
@ -656,6 +658,7 @@ function ScriptList() {
|
||||
|
||||
return <tr ref={setNodeRef} style={style} {...attributes} {...props} />;
|
||||
};
|
||||
}
|
||||
|
||||
const components: ComponentsProps = {
|
||||
table: React.forwardRef(SortableWrapper),
|
||||
|
Loading…
x
Reference in New Issue
Block a user