mirror of
https://github.com/Tencent/tmagic-editor.git
synced 2025-09-27 12:22:09 +08:00
feat(table): 支持expand内容可以为html
This commit is contained in:
parent
8de58a2101
commit
f824b661bd
@ -12,6 +12,7 @@
|
|||||||
:config="config.form"
|
:config="config.form"
|
||||||
:init-values="config.values || (config.prop && scope.row[config.prop]) || {}"
|
:init-values="config.values || (config.prop && scope.row[config.prop]) || {}"
|
||||||
></MForm>
|
></MForm>
|
||||||
|
<div v-if="config.expandContent" v-html="config.expandContent(scope.row, config.prop)"></div>
|
||||||
</template>
|
</template>
|
||||||
</TMagicTableColumn>
|
</TMagicTableColumn>
|
||||||
</template>
|
</template>
|
||||||
|
@ -55,4 +55,5 @@ export type ColumnConfig = {
|
|||||||
sortable?: boolean | 'custom';
|
sortable?: boolean | 'custom';
|
||||||
action?: 'tip' | 'actionLink' | 'img' | 'link' | 'tag';
|
action?: 'tip' | 'actionLink' | 'img' | 'link' | 'tag';
|
||||||
handler?: (row: any) => void;
|
handler?: (row: any) => void;
|
||||||
|
expandContent?: (row: any, prop?: string) => string;
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user