mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2025-03-07 13:48:31 +08:00
fix: type error caused by vue
This commit is contained in:
parent
95703aa04e
commit
5b7935e336
@ -79,7 +79,7 @@
|
||||
"@vue/compiler-sfc": "^3.0.10",
|
||||
"@vue/eslint-config-standard": "^6.0.0",
|
||||
"@vue/eslint-config-typescript": "^7.0.0",
|
||||
"@vue/server-renderer": "^3.0.11",
|
||||
"@vue/server-renderer": "3.2.8",
|
||||
"@vue/test-utils": "^2.0.0-rc.9",
|
||||
"autoprefixer": "^10.2.6",
|
||||
"babel-eslint": "^10.1.0",
|
||||
@ -109,7 +109,7 @@
|
||||
"superagent": "^6.1.0",
|
||||
"typescript": "^4.4.2",
|
||||
"vite": "^2.1.3",
|
||||
"vue": "^3.2.8",
|
||||
"vue": "3.2.8",
|
||||
"vue-router": "^4.0.5"
|
||||
},
|
||||
"peerDependencies": {
|
||||
|
@ -16,6 +16,7 @@ export interface BaseOption {
|
||||
value?: ValueAtom
|
||||
disabled?: boolean
|
||||
children?: BaseOption[]
|
||||
[key: string]: unknown
|
||||
}
|
||||
|
||||
export type ExpandTrigger = 'hover' | 'click'
|
||||
|
@ -452,12 +452,12 @@ export default defineComponent({
|
||||
// virtual list should have a fast path
|
||||
const { rowSpan, colSpan } = column
|
||||
const mergedColSpan = isSummary
|
||||
? (rowInfo.rawNode as SummaryRowData)[colKey].colSpan || 1
|
||||
? rowInfo.rawNode[colKey].colSpan || 1
|
||||
: colSpan
|
||||
? colSpan(rowData, rowIndex)
|
||||
: 1
|
||||
const mergedRowSpan = isSummary
|
||||
? (rowInfo.rawNode as SummaryRowData)[colKey].rowSpan || 1
|
||||
? rowInfo.rawNode[colKey].rowSpan || 1
|
||||
: rowSpan
|
||||
? rowSpan(rowData, rowIndex)
|
||||
: 1
|
||||
@ -528,13 +528,13 @@ export default defineComponent({
|
||||
{hasChildren && colIndex === firstContentfulColIndex
|
||||
? [
|
||||
repeat(
|
||||
isSummary ? 0 : (rowInfo as TmNode).level,
|
||||
isSummary ? 0 : rowInfo.level,
|
||||
<div
|
||||
class={`${mergedClsPrefix}-data-table-indent`}
|
||||
style={indentStyle}
|
||||
/>
|
||||
),
|
||||
isSummary || !(rowInfo as TmNode).children ? (
|
||||
isSummary || !rowInfo.children ? (
|
||||
<div
|
||||
class={`${mergedClsPrefix}-data-table-expand-placeholder`}
|
||||
/>
|
||||
@ -624,7 +624,7 @@ export default defineComponent({
|
||||
]}
|
||||
colspan={colCount}
|
||||
>
|
||||
{renderExpand!(rowData, rowIndex)}
|
||||
{renderExpand(rowData, rowIndex)}
|
||||
</td>
|
||||
</tr>
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user