@modulbank/ui
Advanced tools
Changelog
0.3.0
Show any content you want in a modal programatically, like an image:
this.$modal.open(
`<p class="image is-4by3">
<img src="./static/placeholder-1280x960.png">
</p>`
)
or a component:
import CustomComponent from './components/CustomComponent'
this.$modal.open({
component: CustomComponent
})
Breakable changes on it, now requires a scoped slot to wrap the columns, and a slot inside the column. You have now full control over the content of cells:
<b-table :data="data">
<template scope="props">
<b-table-column field="id" label="ID" sortable numeric>
{{ props.row.id }}
</b-table-column>
<b-table-column field="user.first_name" label="First Name" sortable>
{{ props.row.user.first_name }}
</b-table-column>
<b-table-column field="date" label="Date" sortable
v-html="formatDate(props.row.date)">
</b-table-column>
<b-table-column field="gender" label="Gender">
<b-icon
pack="fa"
:icon="props.row.gender === 'Male' ? 'mars' : 'venus'">
</b-icon>
{{ props.row.gender }}
</b-table-column>
</template>
</b-table>
selectable
renamed to selected
and expects an Object, if you have Vuejs v2.3+ you can use the .sync
modifier to make it two-way binding:<b-table :data="data" :selected.sync="selectedRow">
is the same as:
<b-table :data="data" :selected="selectedRow" @select="row => selectedRow = row">
checked-rows
that expects an Array, if you have Vuejs v2.3+ you can use the .sync
modifier to make it two-way bindingrender-html
prop removed thanks to the new syntaxcomponent
prop removed thanks to the new syntaxfield
prop now accepts nested object keysChangelog
0.2.1
loading
property to Selectloading
overlapping other iconspassword-reveal
icon being overlapped by Field type
iconbackend-sorting
resetting sorted columntype
and message
Changelog
0.2.0
html
to render-html
bordered
sorted columnbackend-sorting
property and sort
eventcomponent
property on Table. Thanks to korpa!