Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

1.24.0 #540

Merged
merged 9 commits into from
Dec 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion assets/js/template.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
window._config = {
isDebug: location.hash.slice(1) === 'is-debug' ||
['localhost', '127.0.0.1', 'dev.bootstrap-table.com'].indexOf(location.hostname) > -1,
cdnUrl: 'https://cdn.jsdelivr.net/npm/bootstrap-table@1.23.5/dist/',
cdnUrl: 'https://cdn.jsdelivr.net/npm/bootstrap-table@1.24.0/dist/',
localUrl: '../bootstrap-table/src/',
testUrl: '/src/'
}
Expand Down
4 changes: 2 additions & 2 deletions crud/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<meta charset="utf-8">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.6.2/dist/css/bootstrap.min.css">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@6.5.2/css/all.min.css">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-table@1.23.5/dist/bootstrap-table.min.css">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-table@1.24.0/dist/bootstrap-table.min.css">
<style>
.mr10 { margin-right: 10px; }
.alert {
Expand All @@ -17,7 +17,7 @@
<script src="https://cdn.jsdelivr.net/npm/jquery/dist/jquery.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/popper.js@1.16.1/dist/umd/popper.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@4.6.2/dist/js/bootstrap.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap-table@1.23.5/dist/bootstrap-table.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap-table@1.24.0/dist/bootstrap-table.min.js"></script>
</head>
<body>
<div class="container">
Expand Down
1 change: 1 addition & 0 deletions extensions/cookie.html
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
<th data-field="id" data-sortable="true">ID</th>
<th data-field="name" data-sortable="true">Item Name</th>
<th data-field="price" data-sortable="true">Item Price</th>
<th data-field="test" data-visible="false">Item Price</th>
</tr>
</thead>
</table>
Expand Down
2 changes: 1 addition & 1 deletion issues/563.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
</script>

<style>
.active {
.active td {
color: red;
font-weight: bold;
}
Expand Down
1 change: 1 addition & 0 deletions methods/toggle-view.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
data-url="json/data1.json">
<thead>
<tr>
<th data-field="state" data-checkbox="true">ID</th>
<th data-field="id">ID</th>
<th data-field="name">Item Name</th>
<th data-field="price">Item Price</th>
Expand Down
13 changes: 12 additions & 1 deletion options/row-style.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,13 @@
})
</script>

<style>
.table>:not(caption)>*>* {
color: inherit;
background-color: inherit;
}
</style>

<table
data-toggle="table"
data-url="json/data1.json"
Expand Down Expand Up @@ -42,7 +49,11 @@

if (index % 2 === 0 && index / 2 < classes.length) {
return {
classes: classes[index / 2]
classes: classes[index / 2],
css: {
color: 'white',
'font-weight': 'bold'
}
}
}
return {
Expand Down
2 changes: 1 addition & 1 deletion options/table-locale.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
links: ['bootstrap-table.min.css'],
scripts: [
'bootstrap-table.min.js',
'https://cdn.jsdelivr.net/npm/bootstrap-table@1.23.5/dist/bootstrap-table-locale-all.min.js'
'https://cdn.jsdelivr.net/npm/bootstrap-table@1.24.0/dist/bootstrap-table-locale-all.min.js'
]
})
</script>
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "bootstrap-table-examples",
"version": "1.23.5",
"version": "1.24.0",
"description": "bootstrap-table-examples",
"repository": {
"type": "git",
Expand Down
2 changes: 1 addition & 1 deletion vue-starter/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"@popperjs/core": "^2.11.8",
"bootstrap": "^5.3.3",
"bootstrap-icons": "^1.11.3",
"bootstrap-table": "^1.23.5",
"bootstrap-table": "^1.24.0",
"jquery": "^3.7.1",
"tableexport.jquery.plugin": "^1.30.0",
"vue": "^3.4.27"
Expand Down
21 changes: 11 additions & 10 deletions webpack-starter/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,21 @@
"main": "index.js",
"license": "MIT",
"devDependencies": {
"css-loader": "^3.6.0",
"style-loader": "^1.2.1",
"webpack": "^4.43.0",
"webpack-cli": "^3.3.12",
"webpack-dev-server": "^3.11.0"
"css-loader": "^7.1.2",
"style-loader": "^4.0.0",
"webpack": "^5.95.0",
"webpack-cli": "^5.1.4",
"webpack-dev-server": "^5.1.0"
},
"dependencies": {
"bootstrap": "^4.5.0",
"bootstrap-table": "^1.23.5",
"jquery": "^3.5.1",
"popper.js": "^1.16.1"
"@popperjs/core": "^2.11.8",
"bootstrap": "^5.3.3",
"bootstrap-table": "^1.24.0",
"jquery": "^3.7.1"
},
"scripts": {
"build": "webpack",
"dev": "webpack-dev-server --inline --progress"
"watch": "webpack --watch",
"serve": "webpack serve --open"
}
}
2 changes: 1 addition & 1 deletion webpack-starter/src/index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import 'bootstrap/dist/css/bootstrap.min.css'
import 'bootstrap-table/dist/bootstrap-table.min.css'

import $ from 'jquery'
import './jquery'
import 'bootstrap'
import 'bootstrap-table' // dist/bootstrap-table.min.js by default

Expand Down
3 changes: 3 additions & 0 deletions webpack-starter/src/jquery.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import jQuery from 'jquery'
window.jQuery = jQuery
window.$ = jQuery
3 changes: 2 additions & 1 deletion webpack-starter/webpack.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
const path = require('path')

module.exports = {
mode: 'development',
entry: './src/index.js',
output: {
filename: 'main.js',
Expand All @@ -15,6 +16,6 @@ module.exports = {
]
},
devServer: {
contentBase: path.join(__dirname, 'dist')
static: './dist',
}
}
2 changes: 1 addition & 1 deletion welcome.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
scripts: [
'https://cdn.jsdelivr.net/npm/tableexport.jquery.plugin@1.29.0/tableExport.min.js',
'bootstrap-table.min.js',
'https://cdn.jsdelivr.net/npm/bootstrap-table@1.23.5/dist/bootstrap-table-locale-all.min.js',
'https://cdn.jsdelivr.net/npm/bootstrap-table@1.24.0/dist/bootstrap-table-locale-all.min.js',
'extensions/export/bootstrap-table-export.min.js'
]
})
Expand Down
38 changes: 19 additions & 19 deletions welcomes/from-data.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,35 +22,35 @@

function mounted() {
var data = [
{
'id': 0,
'name': 'Item 0',
'price': '$0'
{
id: 0,
name: 'Item 0',
_name_rowspan: 2,
price: '$0'
},
{
'id': 1,
'name': 'Item 1',
'price': '$1'
id: 1,
price: '$1'
},
{
'id': 2,
'name': 'Item 2',
'price': '$2'
id: 2,
name: 'Item 2',
price: '$2'
},
{
'id': 3,
'name': 'Item 3',
'price': '$3'
id: 3,
name: 'Item 3',
price: '$3'
},
{
'id': 4,
'name': 'Item 4',
'price': '$4'
id: 4,
name: 'Item 4',
price: '$4'
},
{
'id': 5,
'name': 'Item 5',
'price': '$5'
id: 5,
name: 'Item 5',
price: '$5'
}
]
$table.bootstrapTable({data: data})
Expand Down
6 changes: 5 additions & 1 deletion welcomes/vue-component.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
scripts: [
'https://unpkg.com/vue@3/dist/vue.global.js',
'bootstrap-table.min.js',
'https://cdn.jsdelivr.net/npm/bootstrap-table@1.23.5/dist/bootstrap-table-vue.umd.js'
'https://cdn.jsdelivr.net/npm/bootstrap-table@1.24.0/dist/bootstrap-table-vue.umd.js'
]
})
</script>
Expand Down Expand Up @@ -90,6 +90,10 @@
showColumns: true
})

setTimeout(() => {
options.value.showColumns = false
}, 10000)

return {
columns,
data,
Expand Down