diff --git a/src/component/Administrator/SE/allUser/index.vue b/src/component/Administrator/SE/allUser/index.vue index aa5be500..4e3c7489 100644 --- a/src/component/Administrator/SE/allUser/index.vue +++ b/src/component/Administrator/SE/allUser/index.vue @@ -1,600 +1,778 @@ - - + .admin_page .admin_table_search .admin_state { + display: flex; + width: 70%; + flex-wrap: wrap; + align-content: flex-start; + } + .admin_page .admin_table_search .admin_search { + display: flex; + flex-wrap: wrap; + width: 30%; + > .admin_search_item { + height: 4rem; + font-size: 1.6rem; + } + } + .plan_list { + margin-top: 1rem; + display: flex; + // flex-wrap: wrap; + padding-left: 2.8rem; + column-gap: 0.6rem; + margin-bottom: 2rem; + .plan_item { + height: 4rem; + width: auto; + min-width: 10rem; + display: flex; + align-items: center; + justify-content: center; + // font-size: 1.8rem; + + font-weight: 600; + border-radius: 1.3rem; + color: #fff; + cursor: pointer; + border: 1.8px solid #000; + background-color: #000; + padding: 0 1rem 0 2rem; + + &:hover { + color: #000; + background-color: #fff; + } + + &.active { + background: #ffffff; + color: #000000; + } + + &.disabled { + opacity: 0.5; + cursor: not-allowed; + background-color: #d9d9d9; + border-color: #d9d9d9; + color: #999; + + &:hover { + background-color: #d9d9d9; + color: #999; + } + } + } + + .plan_item { + column-gap: 0.6rem; + } + + .plan_more_icon { + font-size: 1.6rem; + cursor: pointer; + } + } + .subscription-plan-cell { + display: flex; + align-items: center; + justify-content: center; + } + .rename-plan-form { + padding: 2rem 0; + .admin_state_item { + display: flex; + align-items: center; + > span { + width: 10rem; + margin-right: 1rem; + } + } + } + .all-user { + .admin_table_content { + :deep(.ant-table-wrapper) { + overflow: hidden; + } + } + } + + \ No newline at end of file diff --git a/src/component/Canvas/CanvasEditor/commands/BackgroundCommands.js b/src/component/Canvas/CanvasEditor/commands/BackgroundCommands.js index 60fd70f9..35b3759b 100644 --- a/src/component/Canvas/CanvasEditor/commands/BackgroundCommands.js +++ b/src/component/Canvas/CanvasEditor/commands/BackgroundCommands.js @@ -207,7 +207,8 @@ export class BackgroundSizeCommand extends Command { this.bgLayer = this.layers.value.find((layer) => layer.isBackground); // 记录原尺寸 - this.backgroundObject = findObjectById(this.canvas, this.bgLayer.fabricObject.id).object; + this.bgId = this.bgLayer.fabricObject?.id || this.bgLayer.fabricObjects?.[0]?.id; + this.backgroundObject = findObjectById(this.canvas, this.bgId).object; this.oldWidth = this.backgroundObject.width; this.oldHeight = this.backgroundObject.height; diff --git a/src/component/Canvas/CanvasEditor/components/HeaderMenu.vue b/src/component/Canvas/CanvasEditor/components/HeaderMenu.vue index 9d2e2de9..d1e03863 100644 --- a/src/component/Canvas/CanvasEditor/components/HeaderMenu.vue +++ b/src/component/Canvas/CanvasEditor/components/HeaderMenu.vue @@ -11,6 +11,7 @@ const layerManager = inject("layerManager"); const isShowLayerPanel = inject("isShowLayerPanel", ref(false)); const props = defineProps({ + title: String, activeTool: String, canvasWidth: Number, canvasHeight: Number, @@ -274,7 +275,7 @@ onMounted(() => {