1.0.9 • Published 1 year ago

probably-ui v1.0.9

Weekly downloads
-
License
ISC
Repository
github
Last release
1 year ago

1、写在最前面

概括:vue组件库、个人开发、不建议使用在生产环境、源代码值得一看

该组件由本人单独编写,根据日常开发经常接触的组件进行的一个组件总结,基本不采用第三方组件库(目前没有使用第三方,2023-1-21),但还是不建议您将这个组件库用在生产环境,它的缺点是很明显的,因为属于个人编写的代码,难免会出现一些比较魔幻的问题。但如果你是抱着看源代码的目的来的,值得一看。

2、使用

安装

npm i probably-ui

使用:完整引入

// main.ts
import { createApp } from "vue";
import App from "./App.vue";

import probablyUi from "probably-ui"
import  "probably-ui/style.css";

const app = createApp(App);

app.use(probablyUi);
app.mount("#app");

代码示例

<template>
  <div class="">
    <TButton @click="message({ _title: '服务器歇菜了;', _type: 'fail' })">别点了</TButton>
  </div>
</template>

<script setup>
import { ref } from 'vue'
import { message } from 'probably-ui'
const num = ref('')
</script>

<style scoped lang="scss">

</style>

3、感谢

https://github.com/coderyjw

编写组件的冲动来源于这个开源作家、编写组件的技巧来源于这个开源作家

1.0.9

1 year ago

1.0.8

1 year ago

1.0.7

1 year ago

1.0.6

1 year ago

1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago