ant3-ui
TypeScript icon, indicating that this package has built-in type declarations

0.3.2 • Public • Published
 "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>

Readme

Keywords

none

Package Sidebar

Install

npm i ant3-ui

Weekly Downloads

1

Version

0.3.2

License

none

Unpacked Size

32.6 kB

Total Files

15

Last publish

Collaborators

  • xyf_coco