Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion packages/canvas/src/components/container/CanvasMenu.vue
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,8 @@ export default {
},
{ name: '删除', code: 'del' },
{ name: '复制', code: 'copy' },
{ name: '绑定事件', code: 'bindEvent' }
{ name: '绑定事件', code: 'bindEvent' },
{ name: '新建区块', code: 'createBlock' }
])

const boxVisibility = ref(false)
Expand Down
4 changes: 2 additions & 2 deletions packages/common/component/PluginBlockList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -446,7 +446,7 @@ export default {
color: var(--ti-lowcode-component-block-list-setting-btn-color);
display: block;
&:hover {
cursor: not-allowed;
cursor: pointer;
color: var(--ti-lowcode-component-block-list-setting-btn-hover-color);
}
}
Expand Down Expand Up @@ -553,7 +553,7 @@ export default {
.block-detail-icon {
color: var(--ti-lowcode-component-block-list-setting-btn-color);
&:hover {
cursor: not-allowed;
cursor: pointer;
color: var(--ti-lowcode-component-block-list-setting-btn-hover-color);
}
}
Expand Down
4 changes: 3 additions & 1 deletion packages/plugins/block/src/Main.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<plugin-panel class="block-manage" title="区块管理" :isCloseLeft="false" @close="closePanel">
<template #header>
<link-button :href="docsUrl"></link-button>
<svg-button name="add-page" placement="bottom" tips="新建区块" style="cursor: not-allowed"></svg-button>
<svg-button name="add-page" placement="bottom" tips="新建区块" @click="openBlockAdd"></svg-button>
</template>
<template #content>
<div class="app-manage-search">
Expand Down Expand Up @@ -78,6 +78,8 @@
:blockStyle="state.layout"
default-icon-tip="查看区块"
:externalBlock="externalBlock"
@click="editBlock"
@iconClick="openSettingPanel"
></plugin-block-list>
<block-setting></block-setting>
<div class="block-footer">
Expand Down
3 changes: 1 addition & 2 deletions packages/plugins/materials/src/block/BlockGroup.vue
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ export default {
}

const handleAddGroup = () => {
return
state.showCreateGroupForm = true
}

const handleClickOption = ({ value: { groupId, groupName } }) => {
Expand Down Expand Up @@ -426,7 +426,6 @@ export default {
}
}
.add-group-btn {
cursor: not-allowed;
font-size: 16px;
width: 32px;
height: 32px;
Expand Down
5 changes: 3 additions & 2 deletions packages/plugins/materials/src/block/BlockList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,9 @@ export default {
const { message, confirm } = useModal()
const appId = useApp().appInfoState.selectedId

const openVersionPanel = async () => {
return
const openVersionPanel = async ({ item }) => {
selectedBlock.value = item
setBlockVersionPanelVisible(true)
}

const state = reactive({
Expand Down
2 changes: 1 addition & 1 deletion packages/plugins/materials/src/block/Main.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<tiny-search v-model="state.searchValue" placeholder="请输入关键字搜索">
<template #prefix> <tiny-icon-search /> </template>
</tiny-search>
<block-list v-model:blockList="filterBlocks" :show-add-button="false" :show-block-shot="true"></block-list>
<block-list v-model:blockList="filterBlocks" :show-add-button="true" :show-block-shot="true"></block-list>
</div>
</template>

Expand Down