0.0.29 • Published 1 year ago

tingfeng v0.0.29

Weekly downloads
-
License
MIT
Repository
-
Last release
1 year ago

开始

1. 下载方式

你可以通过npmyarn下载

npm install tingfeng
yarn add tingfeng

2. 引用

main.ts中引用

    
import TingFengUI from 'tingfeng'

import 'tingfeng/css';

app.use(TingFengUI)
    

3. 使用

Tbutton组件示例

<script lang="ts" setup>
const click = (e: MouseEvent) => {
  console.log(e);
};
</script>

<template>
  <Tbutton size="large" type="primary" @handleClick="click">测试组件</Tbutton>
</template>

<style lang="less" scoped></style>
    

4. TS类型支持

tsconfig.json中添加types字段

{
  "compilerOptions": {
    "types": ["tingfeng/src/components.d.ts"]
  }
}
0.0.28

1 year ago

0.0.29

1 year ago

0.0.27

1 year ago

0.0.26

1 year ago

0.0.25

1 year ago

0.0.24

1 year ago

0.0.23

1 year ago

0.0.22

1 year ago

0.0.21

1 year ago

0.0.20

1 year ago

0.0.19

1 year ago

0.0.18

1 year ago

0.0.17

1 year ago

0.0.16

1 year ago

0.0.15

1 year ago

0.0.14

1 year ago

0.0.13

1 year ago

0.0.12

1 year ago

0.0.11

1 year ago

0.0.10

1 year ago

0.0.9

1 year ago

0.0.8

1 year ago

0.0.7

1 year ago

0.0.6

1 year ago

0.0.5

1 year ago

0.0.1

1 year ago