auto-marquee
Advanced tools
Comparing version 1.0.3 to 1.0.4
{ | ||
"name": "auto-marquee", | ||
"version": "1.0.3", | ||
"version": "1.0.4", | ||
"description": "displays text for a short time, and auto uses marquee for a long time", | ||
@@ -27,3 +27,4 @@ "author": "MOONCOM", | ||
"vite": "^5.3.1", | ||
"vite-plugin-css-injected-by-js": "^3.5.1" | ||
"vite-plugin-css-injected-by-js": "^3.5.1", | ||
"vite-plugin-dts": "^3.9.1" | ||
}, | ||
@@ -30,0 +31,0 @@ "keywords": [ |
@@ -28,11 +28,6 @@ # AutoMarquee | ||
## 使用 | ||
#### 1. main.js 中注册全局组件 | ||
``` | ||
import AutoMarquee from 'auto-marquee'; | ||
Vue.use(AutoMarquee); | ||
``` | ||
#### 2. 功能组件中使用 | ||
``` | ||
<script setup> | ||
import {reactive} from "vue"; | ||
import AutoMarquee from 'auto-marquee'; | ||
@@ -39,0 +34,0 @@ const state = reactive({ |
import { defineConfig } from 'vite' | ||
import vue from '@vitejs/plugin-vue' | ||
import cssInjectedByJsPlugin from 'vite-plugin-css-injected-by-js' | ||
import dts from 'vite-plugin-dts' | ||
import path from "path"; | ||
@@ -10,2 +11,3 @@ | ||
cssInjectedByJsPlugin(), | ||
dts(), | ||
], | ||
@@ -15,3 +17,3 @@ build: { | ||
lib: { | ||
entry: path.resolve(__dirname, "./src/install.js"), //指定组件编译入口文件 | ||
entry: path.resolve(__dirname, "./src/index.ts"), //指定组件编译入口文件 | ||
name: "auto-marquee", | ||
@@ -18,0 +20,0 @@ fileName: "auto-marquee", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
12744
12
114
4
42