Skip to content

Commit 4eeb53f

Browse files
author
Volker Thiel
committed
Merged feature/table-index into develop
2 parents bf3e31b + 8d89e6e commit 4eeb53f

File tree

15 files changed

+511
-415
lines changed

15 files changed

+511
-415
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
<img alt="" src="https://img.shields.io/badge/code_style-XO-5ed9c7.svg">
1111
<a href="https://www.codacy.com/app/pi0/bootstrap-vue?utm_source=github.com&amp;utm_medium=referral&amp;utm_content=bootstrap-vue/bootstrap-vue&amp;utm_campaign=Badge_Grade"><img src="https://api.codacy.com/project/badge/Grade/efdefff98c8848a9b6038b164f10acc6"/></a>
1212
<img alt="" src="https://img.shields.io/badge/bootstrap-4.0.0--alpha.6-800080.svg">
13-
<img alt="" src="https://img.shields.io/badge/vue.js-2.1.10-green.svg">
13+
<img alt="" src="https://img.shields.io/badge/vue.js-2.2.0-green.svg">
1414
</p>
1515

1616
# Getting started

components/alert.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@
7070
this.dismissed = false;
7171
7272
// No timer for boolean values
73-
if (this.show === true || this.show === false || this.show === null) {
73+
if (this.show === true || this.show === false || this.show === null || this.show === 0) {
7474
return;
7575
}
7676

components/button-radio.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
:disabled="item.disabled"
1212
v-html="item.text"
1313
/>
14+
</label>
1415
</div>
1516
</template>
1617

components/form-fieldset.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
},
4343
labelSize: {
4444
type: Number,
45-
default: 3
45+
default: 6
4646
},
4747
enabled: {
4848
type: Boolean,

components/table.vue

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,17 @@
33
<thead>
44
<tr>
55
<th @click="headClick(field,key)"
6-
:class="[field.sortable?'sorting':null,sort===key?'sorting_'+(sortDesc?'desc':'asc'):'']"
6+
:class="[field.sortable?'sorting':null,sort===key?'sorting_'+(sortDesc?'desc':'asc'):'',field.class?field.class:null]"
77
v-for="field,key in fields"
88
>
99
{{field.label}}
1010
</th>
1111
</tr>
1212
</thead>
1313
<tbody>
14-
<tr v-for="item in _items" :key="items_key" :class="[item.state?'table-'+item.state:null]">
15-
<td v-for="(field,key) in fields">
16-
<slot :name="key" :value="item[key]" :item="item">{{item[key]}}</slot>
14+
<tr v-for="(item,index) in _items" :key="items_key" :class="[item.state?'table-'+item.state:null]">
15+
<td v-for="(field,key) in fields" :class="[field.class?field.class:null]">
16+
<slot :name="key" :value="item[key]" :item="item" :index="index">{{item[key]}}</slot>
1717
</td>
1818
</tr>
1919
</tbody>

docs/data/site.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export default {
1414
title: 'Components',
1515
slug: 'components',
1616
pages: [
17-
{title: 'Alerts', new: true},
17+
{title: 'Alerts'},
1818
{title: 'Breadcrumb'},
1919
{title: 'Buttons'},
2020
{title: 'Button group'},
@@ -25,7 +25,7 @@ export default {
2525
{title: 'Form Checkbox'},
2626
{title: 'Form Select'},
2727
{title: 'Nav'},
28-
{title: 'NavBar', new: true},
28+
{title: 'NavBar'},
2929
{title: 'Pagination'},
3030
{title: 'Popover', new: true},
3131
{title: 'Tables', new: true}

docs/includes/sidebar.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
<b-nav-item
1010
v-for="page in group.pages"
1111
:to="'/docs/'+group.slug+'/'+page.title.replace(' ','-').toLowerCase()"
12+
:key="group.slug"
1213
>
1314
{{ page.title }}
1415
<span class="badge badge-danger" v-if="page.new">NEW</span>

docs/layouts/docs.vue

Lines changed: 20 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@
1717
<div class="col-12 col-md-9 bd-content">
1818

1919
<b-button-group class="float-right mb-auto">
20-
<b-btn size="sm" @click="issue">Report an issue</b-btn>
21-
<b-btn size="sm" @click="editPage">Edit this page</b-btn>
22-
<slot name="actions"></slot>
20+
<b-btn variant="secondary" size="sm" @click="issue">Report an issue</b-btn>
21+
<b-btn variant="secondary" size="sm" @click="editPage">Edit this page</b-btn>
22+
<slot variant="secondary" name="actions"></slot>
2323
</b-button-group>
2424

2525
<slot name="content"></slot>
@@ -32,10 +32,10 @@
3232
</div>
3333
</div>
3434

35-
<div class="container">
36-
<div id="disqus_script"></div>
37-
<div id="disqus_thread"></div>
38-
</div>
35+
<!--<div class="container">-->
36+
<!--<div id="disqus_script"></div>-->
37+
<!--<div id="disqus_thread"></div>-->
38+
<!--</div>-->
3939

4040
</layout>
4141
</template>
@@ -46,9 +46,7 @@
4646
4747
export default {
4848
components: {layout, mSidebar},
49-
data() {
50-
return {};
51-
},
49+
5250
methods: {
5351
editPage() {
5452
const base = 'https://github.com/bootstrap-vue/bootstrap-vue/tree/master/docs/pages';
@@ -66,18 +64,18 @@
6664
}
6765
},
6866
mounted() {
69-
if (!document.disqus) {
70-
const disqus_script = document.getElementById('disqus_script');
71-
if (disqus_script) {
72-
const script = document.createElement('script');
73-
script.src = '//bootstrap-vue.disqus.com/embed.js';
74-
script.setAttribute('data-timestamp', Number(new Date()));
75-
disqus_script.appendChild(script);
76-
document.disqus = true;
77-
}
78-
} else if (window.DISQUS) {
79-
window.DISQUS.reset({reload: true});
80-
}
67+
// if (!document.disqus) {
68+
// const disqus_script = document.getElementById('disqus_script');
69+
// if (disqus_script) {
70+
// const script = document.createElement('script');
71+
// script.src = '//bootstrap-vue.disqus.com/embed.js';
72+
// script.setAttribute('data-timestamp', Number(new Date()));
73+
// disqus_script.appendChild(script);
74+
// document.disqus = true;
75+
// }
76+
// } else if (window.DISQUS) {
77+
// window.DISQUS.reset({reload: true});
78+
// }
8179
}
8280
};
8381
</script>

docs/pages/docs/components/buttons.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
<template
1616
v-for="variant in ['primary','secondary','success','outline-success','warning','danger','link']">
1717
<div class="col-md-4 pb-2" v-for="size in ['sm','','lg']">
18-
<b-button :size="size" :variant="variant" href="#">
18+
<b-button :size="size" :variant="variant" href="">
1919
{{variant}} {{size}}
2020
</b-button>
2121
</div>

docs/pages/docs/components/form-fieldset.vue

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,16 @@
1010

1111
<template slot="demo">
1212

13-
<b-form-fieldset
14-
:feedback="text.length?'':'Please enter something'"
15-
description="We'll convert your name to lowercase automatically."
16-
label="Example Label"
17-
:state="text.length?'success':'warning'"
18-
>
13+
<b-form-fieldset
14+
:feedback="text.length?'':'Please enter something'"
15+
description="We'll convert your name to lowercase automatically."
16+
label="Example Label"
17+
:state="text.length?'success':'warning'"
18+
>
1919

20-
<b-form-input v-model="text"></b-form-input>
20+
<b-form-input v-model="text"></b-form-input>
2121

22-
</b-form-fieldset>
22+
</b-form-fieldset>
2323

2424

2525
</template>

docs/pages/docs/index.vue

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -79,13 +79,9 @@
7979
</template>
8080

8181
<script>
82-
import site from '../../data/site';
8382
import layout from '../../layouts/docs.vue';
8483
8584
export default {
86-
components: {layout},
87-
computed: {
88-
site
89-
}
85+
components: {layout}
9086
};
9187
</script>

package.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "bootstrap-vue",
3-
"version": "0.8.2",
3+
"version": "0.9.2",
44
"description": "Bootstrap 4 Components for Vue.js 2",
55
"main": "dist/bootstrap-vue.common.js",
66
"license": "MIT",
@@ -78,7 +78,7 @@
7878
"dependencies": {
7979
"bootstrap": "^4.0.0-",
8080
"tether": "latest",
81-
"vue": "2.1.10"
81+
"vue": "2.2.0"
8282
},
8383
"devDependencies": {
8484
"babel-core": "^6.22.1",
@@ -88,14 +88,14 @@
8888
"eslint-plugin-html": "^2.0.0",
8989
"highlightjs": "^9.8.0",
9090
"node-sass": "^4.5.0",
91-
"nuxt": "0.9.7",
91+
"nuxt": "^0.9.9",
9292
"postcss-loader": "^1.2.2",
93-
"sass-loader": "^5.0.0",
93+
"sass-loader": "^6.0.2",
9494
"vue-analytics": "^2.2.0",
9595
"vue-loader": "^10.0.2",
96-
"vue-server-renderer": "2.1.10",
97-
"vue-style-loader": "^2.0.0",
98-
"vue-template-compiler": "2.1.10",
96+
"vue-server-renderer": "2.2.0",
97+
"vue-style-loader": "^2.0.2",
98+
"vue-template-compiler": "^2.1.10",
9999
"webpack": "^2.2.0",
100100
"xo": "^0.17.1"
101101
},

scripts/webpack.common.js

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,9 @@
1-
const Path = require('path');
2-
31
// Extend Base Config
42
const config = module.exports = require('./webpack');
53

64
// This is a node.js bundle
75
config.target = 'node';
86

9-
config.entry = {
10-
bootstrapVue: Path.resolve(__dirname, '../index')
11-
};
12-
137
// Output settings
148
config.output.filename = 'bootstrap-vue.common.js';
159
config.output.libraryTarget = 'commonjs2';

scripts/webpack.js

Lines changed: 0 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -43,68 +43,16 @@ config.module = {
4343
test: /\.vue$/,
4444
loader: 'vue-loader'
4545
},
46-
// Vue HTML
47-
{
48-
test: /\.html$/,
49-
loader: 'vue-html-loader'
50-
},
5146
// JS
5247
{
5348
test: /\.js$/,
5449
loader: 'babel-loader',
5550
// important: exclude files in node_modules, otherwise it's going to be really slow!
5651
exclude: /node_modules|vendor/
57-
},
58-
// JSON
59-
{
60-
test: /\.json$/,
61-
loader: 'json-loader'
62-
},
63-
// CSS
64-
{
65-
test: /\.css$/,
66-
loader: 'vue-style-loader!css-loader'
67-
},
68-
// SCSS
69-
{
70-
test: /\.scss$/,
71-
loader: 'vue-style-loader!sass-loader'
72-
},
73-
// Font
74-
{
75-
test: /\.(eot|svg|ttf|woff|woff2)$/,
76-
loader: 'file'
77-
},
78-
// Media
79-
{
80-
test: /\.(png|jpg|gif|svg)$/,
81-
loader: 'url',
82-
query: {
83-
// limit for base64 inlining in bytes
84-
limit: 10000,
85-
// custom naming format if file is larger than the threshold
86-
name: '[name].[ext]?[hash]'
87-
}
88-
},
89-
// Node
90-
{
91-
test: /\.node$/,
92-
loader: 'node-loader'
9352
}
9453
]
9554
};
9655

97-
// Config Vue style loader
98-
config.plugins.push(new Webpack.LoaderOptionsPlugin({
99-
options: {
100-
vue: {
101-
loaders: {
102-
scss: 'css-loader!sass-loader' // This will match all <style lang=scss> tags
103-
}
104-
}
105-
}
106-
}));
107-
10856
if (process.env.NODE_ENV === 'production') {
10957
// Production Config
11058
config.devtool = '#source-map';

0 commit comments

Comments
 (0)