Skip to content

Commit 7be808f

Browse files
committed
* Update component DemoBlock
* Update demo BsChip, BsCombobox, BsToggleButton * Update package.json
1 parent 15bbf6c commit 7be808f

File tree

5 files changed

+21
-14
lines changed

5 files changed

+21
-14
lines changed

package.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
{
22
"name": "vue3-mdb-example",
33
"description": "Vue MDBootstrap v2.0 components demo",
4-
"version": "1.0.0",
4+
"version": "1.0.1",
55
"private": true,
66
"author": {
77
"name": "Ahmad Fajar",
88
"email": "ahmad.fajar234@hotmail.com"
99
},
10-
"license": "BSD-3-Clause",
10+
"license": "BSD-3-Clause",
1111
"type": "module",
1212
"scripts": {
1313
"dev": "vite",
@@ -20,13 +20,13 @@
2020
},
2121
"dependencies": {
2222
"vue": "^3.3.4",
23-
"vue-mdbootstrap": "^2.0.1",
24-
"vue-router": "^4.2.2"
23+
"vue-mdbootstrap": "^2.0.2",
24+
"vue-router": "^4.2.4"
2525
},
2626
"devDependencies": {
2727
"@rushstack/eslint-patch": "^1.3.2",
2828
"@tsconfig/node20": "^1.0.2",
29-
"@types/node": "^20.3.3",
29+
"@types/node": "^20.4.1",
3030
"@vitejs/plugin-vue": "^4.2.3",
3131
"@vue/eslint-config-prettier": "^7.1.0",
3232
"@vue/eslint-config-typescript": "^11.0.3",
@@ -36,8 +36,8 @@
3636
"npm-run-all": "^4.1.5",
3737
"prettier": "^2.8.8",
3838
"typescript": "^5.1.6",
39-
"vite": "^4.3.9",
40-
"vue-tsc": "^1.8.3"
39+
"vite": "^4.4.2",
40+
"vue-tsc": "^1.8.4"
4141
},
4242
"browserslist": [
4343
"> 5%",

src/components/DemoBlock.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,11 +61,11 @@ watch(
6161
styles['--md-field-button-color'] = textColor;
6262
6363
if (textColor.startsWith('#fff')) {
64-
styles['--md-field-active-indicator'] = 'var(--md-field-accent-indicator)';
64+
styles['--md-field-active-indicator'] = 'var(--md-field-accent-indicator-rgb)';
6565
styles['--md-field-button-active-bg'] = 'rgba(250,250,250,.25)';
6666
styles['--md-field-button-hover-bg'] = 'rgba(180,180,180,.15)';
6767
} else {
68-
styles['--md-field-active-indicator'] = 'var(--md-field-primary-indicator)';
68+
styles['--md-field-active-indicator'] = 'var(--md-field-primary-indicator-rgb)';
6969
styles['--md-field-button-active-bg'] = 'rgba(12,12,12,.25)';
7070
styles['--md-field-button-hover-bg'] = 'rgba(80,80,80,.2)';
7171
}

src/views/Components/DemoChip.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,11 +149,11 @@
149149
</template>
150150
Custom Icon
151151
</BsChip>
152-
<BsChip color="success">
153-
Custom Icon
152+
<BsChip color="success" icon-position="right">
154153
<template #icon>
155154
<icon-bullhorn height="18" width="18" />
156155
</template>
156+
Custom Icon
157157
</BsChip>
158158
</div>
159159
</DemoBlock>

src/views/Components/DemoCombobox.vue

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -174,8 +174,9 @@
174174
v-model="states11"
175175
:data-source="statesUS11"
176176
multiple
177+
chip-color="primary"
177178
chip-enabled
178-
chip-color="mdb-color"
179+
chip-outlined
179180
floating-label
180181
outlined
181182
>
@@ -187,10 +188,10 @@
187188
v-model="states12"
188189
:data-source="statesUS12"
189190
multiple
191+
chip-color="danger"
190192
chip-enabled
191193
chip-outlined
192194
chip-pill
193-
chip-color="danger"
194195
floating-label
195196
outlined
196197
placeholder="Placeholder"

src/views/Components/DemoToggleButton.vue

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,12 @@
4444
:pill="false"
4545
color="primary"
4646
rounded
47-
/>
47+
>
48+
<template #icon="item">
49+
<icon-bullhorn v-if="item.value === 'sunny'" width="18" height="18" />
50+
<BsIcon v-else :icon="item.icon" size="22" />
51+
</template>
52+
</BsToggleButton>
4853
</div>
4954
</div>
5055
<div class="row my-3">
@@ -77,6 +82,7 @@
7782

7883
<script lang="ts" setup>
7984
import { ref } from 'vue';
85+
import { IconBullhorn } from '@/sharedApi';
8086
8187
const drinks = [
8288
{

0 commit comments

Comments
 (0)