0.0.9 • Published 9 months ago

@fix-the-world/vue-utils v0.0.9

Weekly downloads
-
License
MIT
Repository
-
Last release
9 months ago

@fix-the-world/vue-utils

vue3的前端工具包,包含常用css类以及ts工具方法等。

安装

pnpm i @fix-the-world/vue-utils
// 或
yarn add @fix-the-world/vue-utils

使用

  1. vue项目的main.ts中
import vueUtils from '@fix-the-world/vue-utils';
import '@fix-the-world/vue-utils/dist/index.css';

app.use(vueUtils);
  1. vue组件中使用
<template>
  <div :class="[css.bm('color','red')]">
    hello world
  </div>
</template>
<script setup lang="ts">
import { utils } from '@fix-the-world/vue-utils';
const encryptStr=utils.aes.encrypt('hello world','encryptKey');
console.log('encryptStr',encryptStr);
</script>

样式列表

请查看dist/index.css

TODO

  • 用户环境中的css变量的ts支持
  • 全局的utils方法,不需要import
  • 用户可重写css的相关变量
  • 用户可调用相关sass变量和mixin
  • 二次封装的组件库
0.0.9

9 months ago

0.0.8

9 months ago

0.0.7

9 months ago

0.0.6

9 months ago

0.0.5

9 months ago

0.0.4

9 months ago

0.0.3

9 months ago

0.0.2

9 months ago