
Security News
Browserslist-rs Gets Major Refactor, Cutting Binary Size by Over 1MB
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.
element-pro-vue3
Advanced tools
yarn add element-pro-vue3
在vue3项目中全局引用的方式
//main.ts or main.js
import { createApp } from 'vue';
import App from './App.vue';
import ElementPro from 'element-pro-vue3';
import 'element-pro-vue3/lib/style.css';
const app = createApp(App);
app.use(ElementPro);
app.mount('#app');
如果使用ts+vite的方式,需要在env.d.ts中加入最后一句声明,否则ts会检测报错。
/// <reference types="vite/client" />
declare module '*.vue' {
import type { DefineComponent } from 'vue'
// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/ban-types
const component: DefineComponent<{}, {}, any>
export default component
}
declare module 'vue3-starry-sky';
组件内使用
<script setup></script>
<template>
<starry-sky :stars-count="1000" :distance="1000" />
</template>
<style></style>
示例:
<script setup>
import { StarrySky } from '../packages/index';
</script>
<template>
<starry-sky :stars-count="1000" :distance="1000" />
</template>
<style></style>
属性 | 类型 | 默认值 |
---|---|---|
stars-count | Number | 800 |
distance | Number | 800 |
本项目基于vite+vue3基于之前的cli+vue2升级改造而来,想访问vue2库组件请点击下面链接地址:
npm config set registry https://registry.npmjs.org/
npm login
npm publish
FAQs
``` yarn add element-pro-vue3 ```
The npm package element-pro-vue3 receives a total of 3 weekly downloads. As such, element-pro-vue3 popularity was classified as not popular.
We found that element-pro-vue3 demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.
Research
Security News
Eight new malicious Firefox extensions impersonate games, steal OAuth tokens, hijack sessions, and exploit browser permissions to spy on users.
Security News
The official Go SDK for the Model Context Protocol is in development, with a stable, production-ready release expected by August 2025.