fix: 修复因 docsearch 产生的对等依赖警告

This commit is contained in:
就眠儀式 2022-03-26 05:07:14 +08:00
parent ac21e6cd91
commit ba7be89388
3 changed files with 4 additions and 5 deletions

View File

@ -13,6 +13,7 @@
content="layui,layui-vue,vue,layer,layer-vue,ui,components"
/>
<link rel="icon" href="/favicon.ico" />
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@docsearch/css@3" />
<title>Layui - Vue 开源前端 UI 框架</title>
<!--preload-links-->
</head>
@ -22,5 +23,6 @@
<!--app-html-->
</div>
<script type="module" src="/src/entry-client.ts"></script>
<script type="module" src="https://cdn.jsdelivr.net/npm/@docsearch/js@3"></script>
</body>
</html>

View File

@ -3,12 +3,10 @@
</template>
<script setup name="LaySelect" lang="ts">
// @ts-ignore
import docsearch from "@docsearch/js";
import { onMounted } from "vue";
import "@docsearch/css";
onMounted(() => {
// @ts-ignore
docsearch({
appId: "BIYZTK0F0Q",
apiKey: "de599990b844bc1b325310f61ad19a78",

View File

@ -1,6 +1,6 @@
{
"name": "@layui/layui-vue",
"version": "0.4.1",
"version": "0.4.2-alpha.4",
"author": "就眠儀式",
"license": "MIT",
"description": "a component library for Vue 3 base on layui-vue",
@ -36,7 +36,6 @@
"vue": "^3.2.31"
},
"dependencies": {
"@docsearch/js": "3.0.0",
"@layui/icons-vue": "^1.0.7",
"@layui/layer-vue": "^1.3.11",
"@vueuse/core": "^7.6.2",