🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

sh-vue3-components

Package Overview
Dependencies
Maintainers
3
Versions
54
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sh-vue3-components

基于vue3前端组件库

0.1.55
latest
npm
Version published
Maintainers
3
Created
Source

sh-vue3-components 基于vue3前端组件库

完整引入

// main.js
import SHElement from 'sh-vue3-components';
import 'sh-vue3-components/dist/style/theme.scss';
import 'sh-vue3-components/dist/style/index.scss';

app.use(SHElement, ?option);

按需导入

<Button>按钮</Button>
import { Button } from 'sh-vue3-components';

// main.js
import 'sh-vue3-components/dist/style/theme.scss';
import 'sh-vue3-components/dist/style/button.scss';

用户引导

  • 安装数环vue3组件库
npm install sh-vue3-components --save
  • 引入
import { introJs } from "sh-vue3-components/dist/utils";
  • 使用
// 确保所有的 element dom已经渲染完毕,才能调用 introJs
introJs({
  steps: [
    {
      intro: "Hello World! 👋", // 介绍文案
      element: ".element", // dom
    },
    {
      intro: "highlight elements ✨",
      element: "#element",
    },
    {
      intro: "And this is our third step!",
      placement: "left", // 定义弹窗位置, 默认 bottom-start
      element: "#element > div",
    },
    {
      intro: "And this is the last step!",
      element: ".g-fs-14.g-m-r-20",
    },
  ],
});

FAQs

Package last updated on 09 Aug 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts