This commit is contained in:
syuilo 2020-02-06 17:48:05 +09:00
parent d580622d1b
commit a96076ee5b
1 changed files with 3 additions and 3 deletions

View File

@ -100,9 +100,9 @@
class="sortable" class="sortable"
@sort="onWidgetSort" @sort="onWidgetSort"
> >
<div v-for="widget in widgets" class="customize-container" :key="widget.id"> <div v-for="widget in widgets" class="customize-container _panel" :key="widget.id">
<header> <header>
<span class="handle"><fa :icon="faBars"/></span>{{ widget.name }}<button class="remove" @click="removeWidget(widget)"><fa :icon="faTimes"/></button> <span class="handle"><fa :icon="faBars"/></span>{{ widget.name }}<button class="remove _button" @click="removeWidget(widget)"><fa :icon="faTimes"/></button>
</header> </header>
<div @click="widgetFunc(widget.id)"> <div @click="widgetFunc(widget.id)">
<component :is="`mkw-${widget.name}`" :widget="widget" :ref="widget.id" :is-customize-mode="true"/> <component :is="`mkw-${widget.name}`" :widget="widget" :ref="widget.id" :is-customize-mode="true"/>
@ -965,10 +965,10 @@ export default Vue.extend({
> header { > header {
position: relative; position: relative;
line-height: 32px; line-height: 32px;
background: #eee;
> .handle { > .handle {
padding: 0 8px; padding: 0 8px;
cursor: move;
} }
> .remove { > .remove {