mirror of
https://gitee.com/xuliangzhan_admin/vxe-table.git
synced 2026-01-21 05:27:57 +08:00
修复已知问题
This commit is contained in:
@@ -319,7 +319,7 @@ const apis = [
|
||||
name: 'filter-method',
|
||||
descKey: 'app.api.tableColumn.desc.filterMethod',
|
||||
version: '',
|
||||
type: 'Function',
|
||||
type: '({ value, cellValue, row, column }) => boolean',
|
||||
enum: '',
|
||||
defVal: '',
|
||||
list: []
|
||||
|
||||
@@ -1112,7 +1112,7 @@ const apis = [
|
||||
name: 'filterMethod',
|
||||
desc: '全局筛选方法,当触发筛选时会调用该函数返回是否有效',
|
||||
version: '',
|
||||
type: '(params: { options, values, row, column }) => boolean',
|
||||
type: '(params: { options, values, cellValue, row, column }) => boolean',
|
||||
enum: '',
|
||||
defVal: '',
|
||||
list: []
|
||||
@@ -2064,8 +2064,8 @@ const apis = [
|
||||
list: []
|
||||
},
|
||||
{
|
||||
name: 'isCalcValue',
|
||||
desc: '只对 extendByCopy 启用后有效,当选取大于两行或两列时,扩展区域时将自动识别数字规则进行计算(同时按住 ctrl 键可取消值自动识别数字功能)',
|
||||
name: 'extendByCalc',
|
||||
desc: '只对 mouse-config.extension 启用后有效,当选取大于两行或两列时,自动识别最近两行或两列数据运算规则进行计算(同时按住 ctrl 键可取消值自动识别数字功能)',
|
||||
version: 'pro',
|
||||
type: 'boolean',
|
||||
enum: '',
|
||||
@@ -2074,7 +2074,7 @@ const apis = [
|
||||
},
|
||||
{
|
||||
name: 'extendCalcMethod',
|
||||
desc: '只对 isCalcValue 启用后有效,重写单元格扩展区域计算值的方法',
|
||||
desc: '只对 extendByCalc 启用后有效,重写单元格扩展区域计算值的方法',
|
||||
version: 'pro',
|
||||
type: '(params: { rows, cols, targetValues, targetRows, targetCols, extendRows, extendCols, direction }) => any[][]',
|
||||
enum: '',
|
||||
|
||||
@@ -100,6 +100,21 @@
|
||||
<pre-code class="xml">{{ demoCodes[8] }}</pre-code>
|
||||
<pre-code class="javascript">{{ demoCodes[9] }}</pre-code>
|
||||
</pre>
|
||||
|
||||
<vxe-toolbar>
|
||||
<template #buttons>
|
||||
<vxe-button @click="printEvent6">打印图片</vxe-button>
|
||||
</template>
|
||||
</vxe-toolbar>
|
||||
|
||||
<img id="myPrint6" src="/vxe-table/static/other/invoice.png" style="width: 300px">
|
||||
|
||||
<p class="demo-code">{{ $t('app.body.button.showCode') }}</p>
|
||||
|
||||
<pre>
|
||||
<pre-code class="xml">{{ demoCodes[10] }}</pre-code>
|
||||
<pre-code class="javascript">{{ demoCodes[11] }}</pre-code>
|
||||
</pre>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
@@ -589,6 +604,28 @@ export default {
|
||||
}
|
||||
}
|
||||
}
|
||||
`,
|
||||
`
|
||||
<vxe-toolbar>
|
||||
<template #buttons>
|
||||
<vxe-button @click="printEvent6">打印图片</vxe-button>
|
||||
</template>
|
||||
</vxe-toolbar>
|
||||
|
||||
<img id="myPrint6" src="/vxe-table/static/other/invoice.png" style="width: 300px">
|
||||
`,
|
||||
`
|
||||
export default {
|
||||
methods: {
|
||||
printEvent6 () {
|
||||
const imgEl = document.getElementById('myPrint6')
|
||||
this.$XPrint({
|
||||
sheetName: '打印图片',
|
||||
content: \`<img src="\${imgEl.src}">\`
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
`
|
||||
]
|
||||
}
|
||||
@@ -827,6 +864,13 @@ export default {
|
||||
sheetName: '打印下面区域',
|
||||
content: divEl.innerHTML
|
||||
})
|
||||
},
|
||||
printEvent6 () {
|
||||
const imgEl = document.getElementById('myPrint6')
|
||||
this.$XPrint({
|
||||
sheetName: '打印图片',
|
||||
content: `<img src="${imgEl.src}">`
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "vxe-table",
|
||||
"version": "3.2.6",
|
||||
"version": "3.2.7",
|
||||
"description": "一个基于 vue 的 PC 端表格组件,支持增删改查、虚拟滚动、懒加载、快捷菜单、数据校验、树形结构、打印导出、表单渲染、数据分页、虚拟列表、模态窗口、自定义模板、渲染器、贼灵活的配置项、扩展接口等...",
|
||||
"scripts": {
|
||||
"serve": "vue-cli-service serve",
|
||||
|
||||
BIN
public/static/other/invoice.png
Normal file
BIN
public/static/other/invoice.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 114 KiB |
Reference in New Issue
Block a user