mirror of
https://iceshrimp.dev/crimekillz/iceshrimp-161sh.git
synced 2024-11-22 12:13:48 +01:00
Pages: ボタンを色付き表示できるように
This commit is contained in:
parent
b5fdc2d578
commit
15384920c4
@ -2024,6 +2024,7 @@ pages:
|
|||||||
|
|
||||||
_button:
|
_button:
|
||||||
text: "タイトル"
|
text: "タイトル"
|
||||||
|
colored: "色付き"
|
||||||
action: "ボタンを押したときの動作"
|
action: "ボタンを押したときの動作"
|
||||||
_action:
|
_action:
|
||||||
dialog: "ダイアログを表示する"
|
dialog: "ダイアログを表示する"
|
||||||
|
@ -4,6 +4,7 @@
|
|||||||
|
|
||||||
<section class="xfhsjczc">
|
<section class="xfhsjczc">
|
||||||
<ui-input v-model="value.text"><span>{{ $t('blocks._button.text') }}</span></ui-input>
|
<ui-input v-model="value.text"><span>{{ $t('blocks._button.text') }}</span></ui-input>
|
||||||
|
<ui-switch v-model="value.primary"><span>{{ $t('blocks._button.colored') }}</span></ui-switch>
|
||||||
<ui-select v-model="value.action">
|
<ui-select v-model="value.action">
|
||||||
<template #label>{{ $t('blocks._button.action') }}</template>
|
<template #label>{{ $t('blocks._button.action') }}</template>
|
||||||
<option value="dialog">{{ $t('blocks._button._action.dialog') }}</option>
|
<option value="dialog">{{ $t('blocks._button._action.dialog') }}</option>
|
||||||
@ -52,6 +53,7 @@ export default Vue.extend({
|
|||||||
if (this.value.content == null) Vue.set(this.value, 'content', null);
|
if (this.value.content == null) Vue.set(this.value, 'content', null);
|
||||||
if (this.value.event == null) Vue.set(this.value, 'event', null);
|
if (this.value.event == null) Vue.set(this.value, 'event', null);
|
||||||
if (this.value.message == null) Vue.set(this.value, 'message', null);
|
if (this.value.message == null) Vue.set(this.value, 'message', null);
|
||||||
|
if (this.value.message == null) Vue.set(this.value, 'primary', false);
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<ui-button class="kudkigyw" @click="click()">{{ script.interpolate(value.text) }}</ui-button>
|
<ui-button class="kudkigyw" @click="click()" :primary="value.primary">{{ script.interpolate(value.text) }}</ui-button>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user