ant3-ui
v0.3.2
Published
```js "exports": { "./lib/style.css": { "import": "./lib/style.css", "require": "./lib/style.css" } }, ```
Downloads
11
Readme
"exports": {
"./lib/style.css": {
"import": "./lib/style.css",
"require": "./lib/style.css"
}
},
复制组件
<x-copy>
<a-tag>fasdfad发顺丰 </a-tag>
<template #btn> 复制一下 </template>
</x-copy>
table组件
<template>
<div class="user_list con">
<x-table
:dealResponse="dealResponse"
:req="accountList"
:showPage="false"
:filterDict="searchDict"
>
<template v-slot:myTable="table">
<a-table
:data-source="table.data"
:pagination="false"
:columns="coloumns"
:scroll="{
y: `${table.tableH}px`,
}"
>
<template #bodyCell="{ column, record }">
<template v-if="column.key === 'action'">
<a-space>
<a-button type="primary">查看余额</a-button>
<a-button >交易明细</a-button>
</a-space>
</template>
</template>
</a-table>
</template>
</x-table>
</div>
</template>
<script setup lang="ts">
import { accountList } from "@/api";
import { coloumns, searchDict } from "./dict";
const dealResponse = (res: any) => {
if (res.success) {
return {
list: res.data,
};
}
};
</script>
<style lang="less" scoped>
</style>