Browse Source
* fix: naive组件库 主题适配报错,需将hsl转换为rgb格式 * feat: 增加NDataTable示例 * chore: hsl转换函数移动到@vben/utils内 * fix: 优化正则表达式 * fix: 优化正则表达式2 * fix: 正则表达式优化,优化hlsStringToRGB函数 * fix: 使用tinyColor进行转换 * Update packages/@core/base/shared/src/colorful/convert.ts Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> * fix: lint error --------- Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> Co-authored-by: vince <vince292007@gmail.com>pull/4068/head
committed by
GitHub
6 changed files with 76 additions and 6 deletions
@ -0,0 +1,31 @@ |
|||
<script setup lang="ts"> |
|||
import { ref } from 'vue'; |
|||
|
|||
import { NDataTable } from 'naive-ui'; |
|||
|
|||
const columns = ref([ |
|||
{ |
|||
key: 'no', |
|||
title: 'No', |
|||
}, |
|||
{ |
|||
key: 'title', |
|||
title: 'Title', |
|||
}, |
|||
{ |
|||
key: 'length', |
|||
title: 'Length', |
|||
}, |
|||
]); |
|||
const data = [ |
|||
{ length: '4:18', no: 3, title: 'Wonderwall' }, |
|||
{ length: '4:48', no: 4, title: "Don't Look Back in Anger" }, |
|||
{ length: '7:27', no: 12, title: 'Champagne Supernova' }, |
|||
]; |
|||
</script> |
|||
|
|||
<template> |
|||
<NDataTable :columns="columns" :data="data" /> |
|||
</template> |
|||
|
|||
<style scoped></style> |
|||
Loading…
Reference in new issue