Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
wenzhixin committed Feb 27, 2024
2 parents b5b183a + 5f8bb00 commit 8b1c0a6
Show file tree
Hide file tree
Showing 25 changed files with 858 additions and 722 deletions.
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/[email protected].2/dist/',
cdnUrl: 'https://cdn.jsdelivr.net/npm/[email protected].3/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://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css">
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.6.3/css/all.css">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected].2/dist/bootstrap-table.min.css">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected].3/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/[email protected]/dist/umd/popper.min.js"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected].2/dist/bootstrap-table.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected].3/dist/bootstrap-table.min.js"></script>
</head>
<body>
<div class="container">
Expand Down
1 change: 1 addition & 0 deletions extensions/addrbar-page.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@

<table
id="table"
data-sort-reset="true"
data-addrbar="true"
data-pagination="true"
data-search="true"
Expand Down
11 changes: 6 additions & 5 deletions extensions/export.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,8 @@
'bootstrap-table.min.css'
],
scripts: [
'https://cdn.jsdelivr.net/npm/[email protected]/tableExport.min.js',
'https://cdn.jsdelivr.net/npm/[email protected]/libs/jsPDF/jspdf.min.js',
'https://cdn.jsdelivr.net/npm/[email protected]/libs/jsPDF-AutoTable/jspdf.plugin.autotable.js',
'https://cdn.jsdelivr.net/npm/[email protected]/tableExport.min.js',
'https://cdn.jsdelivr.net/npm/[email protected]/libs/jsPDF/jspdf.umd.min.js',
'bootstrap-table.min.js',
'extensions/export/bootstrap-table-export.min.js'
]
Expand Down Expand Up @@ -57,10 +56,12 @@
{
field: 'id',
title: 'ID'
}, {
},
{
field: 'name',
title: 'Item Name'
}, {
},
{
field: 'price',
title: 'Item Price'
}
Expand Down
3 changes: 2 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -186,8 +186,9 @@
<li><a href="#options/detail-view-unique-id.html">Detail View Unique ID</a></li>
<li><a href="#options/table-escape.html">Escape</a></li>
<li><a href="#options/table-escape-title.html">Escape Title</a></li>
<li><a href="#options/footer-field.html">Footer Field</a></li>
<li><a href="#options/filter-options.html">Filter Options</a></li>
<li><a href="#options/fixed-scroll.html">Fixed Scroll</a></li>
<li><a href="#options/footer-field.html">Footer Field</a></li>
<li><a href="#options/footer-style.html">Footer Style</a></li>
<li><a href="#options/header-style.html">Header Style</a></li>
<li><a href="#options/table-height.html">Height</a></li>
Expand Down
79 changes: 43 additions & 36 deletions integrate/angular/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,42 +49,49 @@ window.angular.module('app', ['bsTable'])
clickToSelect: false,
showToggle: true,
maintainSelected: true,
columns: [{
field: 'state',
checkbox: true
}, {
field: 'index',
title: '#',
align: 'right',
valign: 'bottom',
sortable: true
}, {
field: 'id',
title: 'Item ID',
align: 'center',
valign: 'bottom',
sortable: true
}, {
field: 'name',
title: 'Item Name',
align: 'center',
valign: 'middle',
sortable: true
}, {
field: 'workspace',
title: 'Workspace',
align: 'left',
valign: 'top',
sortable: true
}, {
field: 'flag',
title: 'Flag',
align: 'center',
valign: 'middle',
clickToSelect: false,
formatter: flagFormatter
// events: flagEvents
}]
columns: [
{
field: 'state',
checkbox: true
},
{
field: 'index',
title: '#',
align: 'right',
valign: 'bottom',
sortable: true
},
{
field: 'id',
title: 'Item ID',
align: 'center',
valign: 'bottom',
sortable: true
},
{
field: 'name',
title: 'Item Name',
align: 'center',
valign: 'middle',
sortable: true
},
{
field: 'workspace',
title: 'Workspace',
align: 'left',
valign: 'top',
sortable: true
},
{
field: 'flag',
title: 'Flag',
align: 'center',
valign: 'middle',
clickToSelect: false,
formatter: flagFormatter
// events: flagEvents
}
]
}
}
})
Expand Down
12 changes: 7 additions & 5 deletions issues/137.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,13 @@
var $table = $('#table')
function mounted() {
$table.bootstrapTable({
data: [{
'id': 0,
'name': 'Item 0',
'price': '$0'
}]
data: [
{
id: 0,
name: 'Item 0',
price: '$0'
}
]
})
$('#button').click(function () {
$table.bootstrapTable('refresh', {url: 'json/data1.json'})
Expand Down
27 changes: 15 additions & 12 deletions issues/177.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,19 +23,22 @@
function mounted() {
$('#table').bootstrapTable({
data: data,
columns: [{
field: 'fullName',
title: 'Full Name',
formatter: function (value, row) {
return [row.firstName, row.lastName].join(' ')
columns: [
{
field: 'fullName',
title: 'Full Name',
formatter: function (value, row) {
return [row.firstName, row.lastName].join(' ')
}
},
{
field: 'field',
title: 'Field',
formatter: function (value, row) {
return [row.field1, row.field2, row.field3].join('+')
}
}
}, {
field: 'field',
title: 'Field',
formatter: function (value, row) {
return [row.field1, row.field2, row.field3].join('+')
}
}]
]
})
}
</script>
6 changes: 4 additions & 2 deletions issues/4586.html
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,12 @@
{
field: 'id',
title: 'ID'
}, {
},
{
field: 'name',
title: 'Item Name'
}, {
},
{
field: 'price',
title: 'Item Price'
}
Expand Down
28 changes: 17 additions & 11 deletions issues/579.html
Original file line number Diff line number Diff line change
Expand Up @@ -28,17 +28,23 @@

function mounted() {
$table.bootstrapTable({
data: [{
name: 'Name 1'
}, {
name: 'Name 2'
}, {
name: 'Name 3'
}, {
name: 'Name 4'
}, {
name: 'Name 5'
}]
data: [
{
name: 'Name 1'
},
{
name: 'Name 2'
},
{
name: 'Name 3'
},
{
name: 'Name 4'
},
{
name: 'Name 5'
}
]
})
}

Expand Down
Loading

0 comments on commit 8b1c0a6

Please sign in to comment.