|
@@ -1,6 +1,5 @@
|
|
import { cx } from "@linaria/core";
|
|
import { cx } from "@linaria/core";
|
|
import { Tag } from "ant-design-vue";
|
|
import { Tag } from "ant-design-vue";
|
|
-import dayjs from "dayjs";
|
|
|
|
import { upperFirst } from "lodash";
|
|
import { upperFirst } from "lodash";
|
|
import { Container, Draggable } from "vue-dndrop";
|
|
import { Container, Draggable } from "vue-dndrop";
|
|
import { number, string } from "vue-types";
|
|
import { number, string } from "vue-types";
|
|
@@ -11,9 +10,9 @@ import { useResource } from "@/modules/resource";
|
|
import { useAuth } from "@queenjs-modules/auth";
|
|
import { useAuth } from "@queenjs-modules/auth";
|
|
import { Image, Loadmore } from "@queenjs/ui";
|
|
import { Image, Loadmore } from "@queenjs/ui";
|
|
import { defineUI, queenApi } from "queenjs";
|
|
import { defineUI, queenApi } from "queenjs";
|
|
-import Menu from "./Menu";
|
|
|
|
-import ListFilter from "./ListFilter";
|
|
|
|
import { onMounted, watch } from "vue";
|
|
import { onMounted, watch } from "vue";
|
|
|
|
+import ListFilter from "./ListFilter";
|
|
|
|
+import Menu from "./Menu";
|
|
|
|
|
|
export default defineUI({
|
|
export default defineUI({
|
|
props: {
|
|
props: {
|
|
@@ -86,7 +85,7 @@ export default defineUI({
|
|
}}
|
|
}}
|
|
>
|
|
>
|
|
{dataSource.map((item: compType) => {
|
|
{dataSource.map((item: compType) => {
|
|
- const items = ["删除", "编辑"];
|
|
|
|
|
|
+ const items = ["编辑", "删除"];
|
|
|
|
|
|
if (isSys) {
|
|
if (isSys) {
|
|
item.published
|
|
item.published
|
|
@@ -129,7 +128,7 @@ export default defineUI({
|
|
<Menu
|
|
<Menu
|
|
items={items}
|
|
items={items}
|
|
onMenu={async (name) => {
|
|
onMenu={async (name) => {
|
|
- console.log("name", name);
|
|
|
|
|
|
+ // console.log("name", name);
|
|
if (name == "删除") {
|
|
if (name == "删除") {
|
|
const title = {
|
|
const title = {
|
|
comp: "组合",
|
|
comp: "组合",
|