study-element
TypeScript icon, indicating that this package has built-in type declarations

1.0.2 • Public • Published

安装

npm i study-element -S

开始使用

全局使用

// 引入所有组件
import StElement from 'study-element'
// 引入样式
import 'study-element/dist/index.css'

import App from './App.vue'
// 全局使用
createApp(App).use(StElement).mount('#app')
<template>
  <st-button>我是 StButton</st-button>
</template>

单个导入

StElement 提供了基于 ES Module 的开箱即用的 Tree Shaking 功能。

<template>
  <Button>我是Button</Button>
</template>
<script>
import { Button } from 'study-element'
export default {
  components: { Button },
}
</script>

Package Sidebar

Install

npm i study-element

Weekly Downloads

0

Version

1.0.2

License

MIT

Unpacked Size

1.23 MB

Total Files

54

Last publish

Collaborators

  • hogancv