diff --git a/README.en.md b/README.en.md index 999e6949a..84e3e20c7 100644 --- a/README.en.md +++ b/README.en.md @@ -23,7 +23,7 @@ A [vue](https://www.npmjs.com/package/vue) based PC form component, support add, * [x] v1.0 Based on vue2.6+, it supports all mainstream browsers and realizes all practical functions of tables * [x] v2.0 Based on vue2.6+, it supports all mainstream browsers with both functions and performance * [x] v3.0 Based on vue2.6+, only modern browser is supported, ie is not supported, rendering performance is greatly improved - * [x] v4.0   10% Based on vue3+, only modern browser is supported, ie is not supported, rendering performance is greatly improved + * [x] v4.0   60% Based on vue3+, only modern browser is supported, ie is not supported, rendering performance is greatly improved ## Browser Support @@ -154,7 +154,7 @@ export default defineComponent({ ## Donate -If you think our open source software is helpful to you, you can scan the QR code below to support us.☕ +If the open source software is helpful to you, you can scan the QR code below to support us.☕ [👉 Supports the author💰](https://x-extends.github.io/vxe-table/#/donation/api) diff --git a/README.md b/README.md index 5e93d5a01..abe684201 100644 --- a/README.md +++ b/README.md @@ -23,7 +23,7 @@ * [x] v1.0 基于 vue2.6+,支持所有主流的浏览器,实现表格的一切实用的功能 * [x] v2.0 基于 vue2.6+,支持所有主流的浏览器,同时兼具功能与性能 * [x] v3.0 vue2.6+,只支持现代浏览器,不支持 IE,渲染性能大幅提升 - * [x] v4.0   10% 基于 vue3+,只支持现代浏览器,不支持 IE,渲染性能大幅提升 + * [x] v4.0   60% 基于 vue3+,只支持现代浏览器,不支持 IE,渲染性能大幅提升 ## 浏览器支持 @@ -154,7 +154,7 @@ export default defineComponent({ ## 捐赠 -如果您觉得我们的开源软件对您有所帮助,可以扫下方二维码支持我们。☕ +如果该开源软件对您有所帮助,可以扫下方二维码支持我们。☕ [👉 支持作者💰](https://xuliangzhan_admin.gitee.io/vxe-table/#/donation/api) diff --git a/README.zh-TW.md b/README.zh-TW.md index 593838b33..24635b757 100644 --- a/README.zh-TW.md +++ b/README.zh-TW.md @@ -23,7 +23,7 @@ * [x] v1.0 基於 vue2.6+,支持所有主流的瀏覽器,實現表格的一切實用的功能 * [x] v2.0 基於 vue2.6+,支持所有主流的瀏覽器,同時兼具功能與效能 * [x] v3.0 基於 vue2.6+,只支持現代瀏覽器,不支持IE,渲染效能大幅提升 - * [x] v4.0   10% 基於 vue3+,只支持現代瀏覽器,不支持IE,渲染效能大幅提升 + * [x] v4.0   60% 基於 vue3+,只支持現代瀏覽器,不支持IE,渲染效能大幅提升 ## 瀏覽器支持 @@ -154,7 +154,7 @@ export default defineComponent({ ## 捐贈 -如果您覺得我們的開源軟件對您有所幫助,可以掃下方二維碼支持我們。☕ +如果該開源軟件對您有所幫助,可以掃下方二維碼支持我們。☕ [👉 支持作者💰](https://xuliangzhan_admin.gitee.io/vxe-table/#/donation/api) diff --git a/examples/views/api/API.vue b/examples/views/api/API.vue index edf25d5f8..9e9da61e4 100644 --- a/examples/views/api/API.vue +++ b/examples/views/api/API.vue @@ -275,16 +275,23 @@ export default defineComponent({ const handleSearch = () => { const filterName = XEUtils.toString(apiData.filterName).trim().toLowerCase() if (filterName) { - const filterRE = new RegExp(filterName, 'gi') const options = { children: 'list' } - const searchProps = ['name', 'desc', 'type', 'enum', 'defVal'] - const rest = XEUtils.searchTree(apiData.tableData, (item: any) => searchProps.some(key => item[key].toLowerCase().indexOf(filterName) > -1), options) - XEUtils.eachTree(rest, item => { - searchProps.forEach(key => { - item[key] = item[key].replace(filterRE, (match: any) => `${match}`) - }) - }, options) - apiData.apiList = rest + if (filterName === 'pro') { + const rest = XEUtils.searchTree(apiData.tableData, item => item.version === filterName, options) + apiData.apiList = rest + } else { + const filterRE = new RegExp(filterName, 'gi') + const searchProps = ['name', 'desc', 'type', 'enum', 'defVal', 'version'] + const rest = XEUtils.searchTree(apiData.tableData, item => searchProps.some(key => item[key].toLowerCase().indexOf(filterName) > -1), options) + XEUtils.eachTree(rest, item => { + searchProps.forEach(key => { + if (key !== 'version') { + item[key] = item[key].replace(filterRE, (match: string) => `${match}`) + } + }) + }, options) + apiData.apiList = rest + } nextTick(() => { const $table = xTable.value if ($table) { diff --git a/examples/views/grid/CustomToolbar.vue b/examples/views/grid/CustomToolbar.vue index 2ab0e2f67..7c0f794cf 100644 --- a/examples/views/grid/CustomToolbar.vue +++ b/examples/views/grid/CustomToolbar.vue @@ -3,7 +3,7 @@

工具栏:通过 属性开启,还可以使用 插槽自定义模板

-