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