From e71fe872fc13336c37dff15e4c69bb4ed72b1f6e Mon Sep 17 00:00:00 2001 From: zhixin Date: Wed, 24 Jul 2024 17:20:32 +0800 Subject: [PATCH 1/5] Added buttonsAttributeTitle option --- index.html | 1 + options/buttons-attribute-title.html | 35 ++++++++++++++++++++++++++++ 2 files changed, 36 insertions(+) create mode 100644 options/buttons-attribute-title.html diff --git a/index.html b/index.html index e08a3691..27a47aec 100644 --- a/index.html +++ b/index.html @@ -161,6 +161,7 @@
  • Basic Columns
  • Buttons Custom
  • Buttons Align
  • +
  • Buttons Attribute Title
  • Buttons Class
  • Buttons Order
  • Buttons Prefix
  • diff --git a/options/buttons-attribute-title.html b/options/buttons-attribute-title.html new file mode 100644 index 00000000..834550fa --- /dev/null +++ b/options/buttons-attribute-title.html @@ -0,0 +1,35 @@ + + + + + + + + + + +
    IDItem NameItem Price
    From 693894bbcbc9752f13ec5a0cee04bd7407637b99 Mon Sep 17 00:00:00 2001 From: zhixin Date: Fri, 26 Jul 2024 11:27:42 +0800 Subject: [PATCH 2/5] Added show footer to export extension example --- extensions/export.html | 27 ++++++++++++++++++++++++--- 1 file changed, 24 insertions(+), 3 deletions(-) diff --git a/extensions/export.html b/extensions/export.html index ab06b111..6ad1cc95 100644 --- a/extensions/export.html +++ b/extensions/export.html @@ -36,12 +36,30 @@ data-toolbar="#toolbar" data-show-toggle="true" data-show-columns="true" + data-show-footer="true" data-url="https://examples.wenzhixin.net.cn/examples/bootstrap_table/data"> From 1f8615ffccc0a59cfcc0bf97eddadf18186ab28e Mon Sep 17 00:00:00 2001 From: zhixin Date: Fri, 26 Jul 2024 13:39:14 +0800 Subject: [PATCH 4/5] Update insertRow, updateRow and updateCell examples --- methods/insert-row.html | 13 +++++++++---- methods/update-cell.html | 36 ++++++++++++++++++++++++++++-------- methods/update-row.html | 7 ++++--- 3 files changed, 41 insertions(+), 15 deletions(-) diff --git a/methods/insert-row.html b/methods/insert-row.html index 570e1b3d..ca7fa871 100644 --- a/methods/insert-row.html +++ b/methods/insert-row.html @@ -11,12 +11,13 @@ + data-toggle="table" + data-toolbar="#toolbar" + data-height="428" + data-url="json/data1.json"> + @@ -40,5 +41,9 @@ } }) }) + + $table.on('check.bs.table', (event, row) => { + console.log(JSON.stringify(row)) + }) } diff --git a/methods/update-cell.html b/methods/update-cell.html index e873ca5f..3f748f92 100644 --- a/methods/update-cell.html +++ b/methods/update-cell.html @@ -8,6 +8,12 @@
    +
    + + +
    ID Item Name Item Price
    - - - + + +
    IDItem NameItem PriceIDItem NameItem Price
    @@ -32,15 +39,28 @@ function mounted() { $button.click(function () { - let i = 0 - setInterval(() => { + const checked = $('#reinit').prop('checked') + + if (!checked) { + let i = 0 + const timeout = setInterval(() => { + $table.bootstrapTable('updateCell', { + index: 1, + field: 'name', + value: `Updated Name ${i++}`, + reinit: false + }) + if (i > 10) { + clearInterval(timeout) + } + }, 100) + } else { $table.bootstrapTable('updateCell', { index: 1, field: 'name', - value: `Updated Name ${i++}`, - reinit: false + value: 'Updated Name' }) - }, 100) + } }) } diff --git a/methods/update-row.html b/methods/update-row.html index cc1ca2db..d0510000 100644 --- a/methods/update-row.html +++ b/methods/update-row.html @@ -15,12 +15,13 @@ data-toggle="table" data-toolbar="#toolbar" data-height="428" + data-search="true" data-url="json/data1.json"> - ID - Item Name - Item Price + ID + Item Name + Item Price From 150330a30db59afb8eeac67ed0e5ed9de192876b Mon Sep 17 00:00:00 2001 From: zhixin Date: Sun, 28 Jul 2024 00:00:23 +0800 Subject: [PATCH 5/5] Build 1.23.2 --- assets/js/template.js | 2 +- crud/index.html | 4 ++-- options/table-locale.html | 2 +- package.json | 2 +- vue-starter/package.json | 2 +- webpack-starter/package.json | 2 +- welcome.html | 2 +- welcomes/vue-component.html | 2 +- 8 files changed, 9 insertions(+), 9 deletions(-) diff --git a/assets/js/template.js b/assets/js/template.js index e9d956df..7e16179f 100644 --- a/assets/js/template.js +++ b/assets/js/template.js @@ -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.1/dist/', + cdnUrl: 'https://cdn.jsdelivr.net/npm/bootstrap-table@1.23.2/dist/', localUrl: '../bootstrap-table/src/', testUrl: '/src/' } diff --git a/crud/index.html b/crud/index.html index f8b8a47b..9debbbf4 100644 --- a/crud/index.html +++ b/crud/index.html @@ -5,7 +5,7 @@ - +