Skip to content

Commit 11869e4

Browse files
committed
unify base components
1 parent 7afbbcc commit 11869e4

13 files changed

+49
-15
lines changed

src/components/OpenwbBaseAlert.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<template>
22
<div class="card-text alert" :class="'alert-' + subtype">
3-
<slot />
3+
<slot></slot>
44
</div>
55
</template>
66

src/components/OpenwbBaseArrayInput.vue

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
<template>
22
<openwb-base-setting-element>
3-
<template #title>{{ title }}</template>
3+
<template #title>
4+
<slot name="title">{{ title }}</slot>
5+
</template>
46
<template #help>
57
<slot name="help"></slot>
68
</template>

src/components/OpenwbBaseButtonGroupInput.vue

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
<template>
22
<openwb-base-setting-element>
3-
<template #title>{{ title }}</template>
3+
<template #title>
4+
<slot name="title">
5+
{{ title }}
6+
</slot>
7+
</template>
48
<template #help>
59
<slot name="help"></slot>
610
</template>

src/components/OpenwbBaseButtonInput.vue

+6-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
<template>
22
<openwb-base-setting-element>
3-
<template #title>{{ title }}</template>
3+
<template #title>
4+
<slot name="title">
5+
{{ title }}
6+
</slot>
7+
</template>
48
<template #help>
59
<slot name="help"></slot>
610
</template>
@@ -19,7 +23,7 @@
1923

2024
<script>
2125
export default {
22-
name: "OpenwbButtonInput2",
26+
name: "OpenwbButtonInput",
2327
inheritAttrs: false,
2428
props: {
2529
title: String,

src/components/OpenwbBaseCheckboxInput.vue

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
<template>
22
<openwb-base-setting-element>
3-
<template #title>{{ title }}</template>
3+
<template #title>
4+
<slot name="title">
5+
{{ title }}
6+
</slot>
7+
</template>
48
<template #help>
59
<slot name="help"></slot>
610
</template>

src/components/OpenwbBaseCopyToClipboard.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<template>
22
<span ref="slot-wrapper" :title="tooltip" class="copy-me" @click="click">
3-
<slot />
3+
<slot></slot>
44
<font-awesome-icon
55
fixed-width
66
:icon="isCopied ? ['fas', 'clipboard-check'] : ['fas', 'clipboard']"

src/components/OpenwbBaseHeading.vue

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<template>
22
<div class="card-text card-text-heading" v-bind="$attrs">
33
<div class="heading-text" v-on:click="toggleHelp">
4-
<slot />
4+
<slot></slot>
55
<font-awesome-icon
66
v-if="$slots.help"
77
:icon="
@@ -13,7 +13,7 @@
1313
/>
1414
</div>
1515
<span v-if="$slots.actions" class="actions">
16-
<slot name="actions" />
16+
<slot name="actions"></slot>
1717
</span>
1818
</div>
1919
<div class="">

src/components/OpenwbBaseNumberInput.vue

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
<template>
22
<openwb-base-setting-element>
3-
<template #title>{{ title }}</template>
3+
<template #title>
4+
<slot name="title">
5+
{{ title }}
6+
</slot>
7+
</template>
48
<template #help>
59
<slot name="help"></slot>
610
</template>

src/components/OpenwbBaseRangeInput.vue

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
<template>
22
<openwb-base-setting-element>
3-
<template #title>{{ title }}</template>
3+
<template #title>
4+
<slot name="title">
5+
{{ title }}
6+
</slot>
7+
</template>
48
<template #help>
59
<slot name="help"></slot>
610
</template>

src/components/OpenwbBaseSelectInput.vue

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
<template>
22
<openwb-base-setting-element>
3-
<template #title>{{ title }}</template>
3+
<template #title>
4+
<slot name="title">
5+
{{ title }}
6+
</slot>
7+
</template>
48
<template #help>
59
<slot name="help"></slot>
610
</template>

src/components/OpenwbBaseTextInput.vue

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
<template>
22
<openwb-base-setting-element>
3-
<template #title>{{ title }}</template>
3+
<template #title>
4+
<slot name="title">
5+
{{ title }}
6+
</slot>
7+
</template>
48
<template #help>
59
<slot name="help"></slot>
610
</template>

src/components/OpenwbBaseTextarea.vue

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
<template>
22
<openwb-base-setting-element>
3-
<template #title>{{ title }}</template>
3+
<template #title>
4+
<slot name="title">
5+
{{ title }}
6+
</slot>
7+
</template>
48
<template #help>
59
<slot name="help"></slot>
610
</template>

src/components/OpenwbBaseToast.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
</button>
1515
</div>
1616
<div class="toast-body">
17-
<slot />
17+
<slot></slot>
1818
</div>
1919
</div>
2020
</template>

0 commit comments

Comments
 (0)