diff --git a/.eslintrc b/.eslintrc
index c628d27350..1eddb26afd 100644
--- a/.eslintrc
+++ b/.eslintrc
@@ -2,10 +2,6 @@
"root": true,
"extends": ["@nutui/eslint-config"],
"ignorePatterns": [
- "packages/nutui-playground/dist/**",
- "packages/nutui-taro-demo/**/*",
- "packages/nutui-touch-emulator/dist/**",
- "packages/nutui-vscode-extension/dist/**",
"src/sites/**"
]
}
diff --git a/package.json b/package.json
index c825913e88..b522d834a1 100644
--- a/package.json
+++ b/package.json
@@ -57,7 +57,7 @@
"test": "vitest",
"test:ui": "vitest --ui --coverage",
"test:c": "vitest --coverage",
- "lint": "eslint --ext .vue,.ts,.tsx,.js,.jsx src/",
+ "lint": "eslint ./src ./packages/**/src --ext .vue,.ts,.tsx,.js,.jsx",
"lint:fix": "pnpm lint --fix",
"copydocs": "node ./scripts/copymd.cjs",
"attrs:taro": "node ./scripts/createAttributes.cjs taro",
@@ -116,7 +116,7 @@
},
"lint-staged": {
"*.{ts,tsx,js,jsx,vue,scss,md}": "prettier --write",
- "src/**/*.{ts,tsx,js,jsx,vue}": "eslint --fix"
+ "*.{ts,tsx,js,jsx,vue}": "eslint --fix"
},
"repository": {
"type": "git",
diff --git a/packages/nutui-playground/src/App.vue b/packages/nutui-playground/src/App.vue
index e83411ffe8..30953abb71 100644
--- a/packages/nutui-playground/src/App.vue
+++ b/packages/nutui-playground/src/App.vue
@@ -43,12 +43,12 @@ watchEffect(() => {
diff --git a/packages/nutui-playground/src/Header.vue b/packages/nutui-playground/src/Header.vue
index 03961dc685..bc992cefdf 100644
--- a/packages/nutui-playground/src/Header.vue
+++ b/packages/nutui-playground/src/Header.vue
@@ -44,9 +44,9 @@ function toggleDark() {
diff --git a/packages/nutui-taro-demo/src/business/pages/address/index.vue b/packages/nutui-taro-demo/src/business/pages/address/index.vue
index fa5fd70f93..f1e0f2adcb 100644
--- a/packages/nutui-taro-demo/src/business/pages/address/index.vue
+++ b/packages/nutui-taro-demo/src/business/pages/address/index.vue
@@ -24,9 +24,9 @@
:city="address.city"
:country="address.country"
:town="address.town"
+ :columns-placeholder="placeholder"
@change="(cal) => onChange(cal, 'select')"
@close="close6"
- :columns-placeholder="placeholder"
>
选择自定义地址2
@@ -41,9 +41,9 @@
:country="address.country"
:town="address.town"
height="270px"
+ :columns-placeholder="placeholder"
@change="(cal) => onChange(cal, 'normal2')"
@close="close5"
- :columns-placeholder="placeholder"
>
选择已有地址
@@ -53,9 +53,9 @@
v-model:visible="showPopup.exist"
type="exist"
:exist-address="existAddress"
+ :is-show-custom-address="false"
@change="(cal) => onChange(cal, 'exist')"
@close="close2"
- :is-show-custom-address="false"
@selected="selected"
>
@@ -66,12 +66,12 @@
v-model:visible="showPopup.customImg"
type="exist"
:exist-address="existAddress"
- @close="close3"
:is-show-custom-address="false"
- @selected="selected"
:default-icon="icon.defaultIcon"
:selected-icon="icon.selectedIcon"
:close-btn-icon="icon.closeBtnIcon"
+ @close="close3"
+ @selected="selected"
>
diff --git a/packages/nutui-taro-demo/src/business/pages/addresslist/index.vue b/packages/nutui-taro-demo/src/business/pages/addresslist/index.vue
index dbd5f49d01..45f799fc1b 100644
--- a/packages/nutui-taro-demo/src/business/pages/addresslist/index.vue
+++ b/packages/nutui-taro-demo/src/business/pages/addresslist/index.vue
@@ -4,38 +4,38 @@
基础用法
长按功能
滑动功能
diff --git a/packages/nutui-taro-demo/src/business/pages/barrage/index.vue b/packages/nutui-taro-demo/src/business/pages/barrage/index.vue
index dd4ad89e31..6f9b34d731 100644
--- a/packages/nutui-taro-demo/src/business/pages/barrage/index.vue
+++ b/packages/nutui-taro-demo/src/business/pages/barrage/index.vue
@@ -6,7 +6,7 @@
- 随机添加
+ 随机添加
diff --git a/packages/nutui-taro-demo/src/business/pages/card/index.vue b/packages/nutui-taro-demo/src/business/pages/card/index.vue
index e3a79f252e..48db3896b3 100644
--- a/packages/nutui-taro-demo/src/business/pages/card/index.vue
+++ b/packages/nutui-taro-demo/src/business/pages/card/index.vue
@@ -6,10 +6,10 @@
:img-url="state.imgUrl"
:title="state.title"
:price="state.price"
- :vipPrice="state.vipPrice"
- :shopDesc="state.shopDesc"
+ :vip-price="state.vipPrice"
+ :shop-desc="state.shopDesc"
:delivery="state.delivery"
- :shopName="state.shopName"
+ :shop-name="state.shopName"
>
自定义商品标签
@@ -17,10 +17,10 @@
:img-url="state.imgUrl"
:title="state.title"
:price="state.price"
- :vipPrice="state.vipPrice"
- :shopDesc="state.shopDesc"
+ :vip-price="state.vipPrice"
+ :shop-desc="state.shopDesc"
:delivery="state.delivery"
- :shopName="state.shopName"
+ :shop-name="state.shopName"
>
@@ -35,10 +35,10 @@
:img-url="state.imgUrl"
:title="state.title"
:price="state.price"
- :vipPrice="state.vipPrice"
- :shopDesc="state.shopDesc"
+ :vip-price="state.vipPrice"
+ :shop-desc="state.shopDesc"
:delivery="state.delivery"
- :shopName="state.shopName"
+ :shop-name="state.shopName"
>
@@ -60,10 +60,10 @@
:img-url="state.imgUrl"
:title="state.title"
:price="state.price"
- :vipPrice="state.vipPrice"
- :shopDesc="state.shopDesc"
+ :vip-price="state.vipPrice"
+ :shop-desc="state.shopDesc"
:delivery="state.delivery"
- :shopName="state.shopName"
+ :shop-name="state.shopName"
>
这里是自定义区域
@@ -74,10 +74,10 @@
:img-url="state.imgUrl"
:title="state.title"
:price="state.price"
- :vipPrice="state.vipPrice"
- :shopDesc="state.shopDesc"
+ :vip-price="state.vipPrice"
+ :shop-desc="state.shopDesc"
:delivery="state.delivery"
- :shopName="state.shopName"
+ :shop-name="state.shopName"
>
自定义
diff --git a/packages/nutui-taro-demo/src/business/pages/category/index.vue b/packages/nutui-taro-demo/src/business/pages/category/index.vue
index 1821b7799e..22cc4a5eaf 100644
--- a/packages/nutui-taro-demo/src/business/pages/category/index.vue
+++ b/packages/nutui-taro-demo/src/business/pages/category/index.vue
@@ -3,17 +3,17 @@
经典分类模式
-
+
只显示文字
-
自定义分类
diff --git a/packages/nutui-taro-demo/src/business/pages/comment/index.vue b/packages/nutui-taro-demo/src/business/pages/comment/index.vue
index 8fefb810e0..c2a26d8a42 100644
--- a/packages/nutui-taro-demo/src/business/pages/comment/index.vue
+++ b/packages/nutui-taro-demo/src/business/pages/comment/index.vue
@@ -7,9 +7,9 @@
:images="cmt.images"
:videos="cmt.videos"
:info="cmt.info"
- @click="handleclick"
- @clickImages="clickImages"
:operation="['replay']"
+ @click="handleclick"
+ @click-images="clickImages"
>
评论图片多行展示
追评
diff --git a/packages/nutui-taro-demo/src/business/pages/ecard/index.vue b/packages/nutui-taro-demo/src/business/pages/ecard/index.vue
index 699fb48843..9b26c381b8 100644
--- a/packages/nutui-taro-demo/src/business/pages/ecard/index.vue
+++ b/packages/nutui-taro-demo/src/business/pages/ecard/index.vue
@@ -5,10 +5,10 @@
diff --git a/packages/nutui-taro-demo/src/business/pages/invoice/index.vue b/packages/nutui-taro-demo/src/business/pages/invoice/index.vue
index da948387dc..e639bf5aec 100644
--- a/packages/nutui-taro-demo/src/business/pages/invoice/index.vue
+++ b/packages/nutui-taro-demo/src/business/pages/invoice/index.vue
@@ -2,7 +2,7 @@
默认用法
-
+
diff --git a/packages/nutui-taro-demo/src/business/pages/signature/index.vue b/packages/nutui-taro-demo/src/business/pages/signature/index.vue
index fe0283b893..d89811f734 100644
--- a/packages/nutui-taro-demo/src/business/pages/signature/index.vue
+++ b/packages/nutui-taro-demo/src/business/pages/signature/index.vue
@@ -2,25 +2,25 @@
基础用法
-
-
+
+
修改颜色和签字粗细
-
+
diff --git a/packages/nutui-taro-demo/src/exhibition/pages/list/index.vue b/packages/nutui-taro-demo/src/exhibition/pages/list/index.vue
index 9468d98d57..1ab877c991 100644
--- a/packages/nutui-taro-demo/src/exhibition/pages/list/index.vue
+++ b/packages/nutui-taro-demo/src/exhibition/pages/list/index.vue
@@ -3,8 +3,8 @@
基础用法
-
-
+
+
{{ item }}
diff --git a/packages/nutui-taro-demo/src/exhibition/pages/noticebar/index.vue b/packages/nutui-taro-demo/src/exhibition/pages/noticebar/index.vue
index 8daf7b8407..d24bdffa69 100644
--- a/packages/nutui-taro-demo/src/exhibition/pages/noticebar/index.vue
+++ b/packages/nutui-taro-demo/src/exhibition/pages/noticebar/index.vue
@@ -23,12 +23,12 @@
>
通告栏模式--关闭模式
- NutUI 是京东风格的移动端组件库,使用 Vue 语言来编写可以在
H5,小程序平台上的应用,帮助研发人员提升开发效率,改善开发体验。
- NutUI 是京东风格的移动端组件库,使用 Vue 语言来编写可以在
H5,小程序平台上的应用,帮助研发人员提升开发效率,改善开发体验。
@@ -58,12 +58,12 @@
direction="vertical"
:list="state.horseLamp1"
:speed="10"
- :standTime="1000"
- @click="go"
- :closeMode="true"
+ :stand-time="1000"
+ :close-mode="true"
:background="`rgba(251, 248, 220, 1)`"
:color="`#D9500B`"
:height="50"
+ @click="go"
>
@@ -73,8 +73,8 @@
direction="vertical"
:list="state.horseLamp2"
:speed="10"
- :standTime="2000"
- :complexAm="true"
+ :stand-time="2000"
+ :complex-am="true"
:background="`rgba(251, 248, 220, 1)`"
:color="`#D9500B`"
>
@@ -85,18 +85,18 @@
direction="vertical"
:height="50"
:speed="10"
- :standTime="1000"
+ :stand-time="1000"
:list="[]"
- @close="go"
:background="`rgba(251, 248, 220, 1)`"
:color="`#D9500B`"
+ @close="go"
>
{{ item }}
@@ -108,7 +108,7 @@
direction="vertical"
:list="state.horseLamp1"
:speed="10"
- :standTime="1000"
+ :stand-time="1000"
:background="`rgba(251, 248, 220, 1)`"
:color="`#D9500B`"
>
diff --git a/packages/nutui-taro-demo/src/exhibition/pages/popover/index.vue b/packages/nutui-taro-demo/src/exhibition/pages/popover/index.vue
index 8f1902548b..cbaf6ff5ab 100644
--- a/packages/nutui-taro-demo/src/exhibition/pages/popover/index.vue
+++ b/packages/nutui-taro-demo/src/exhibition/pages/popover/index.vue
@@ -8,8 +8,8 @@
v-model:visible="state.lightTheme"
:list="iconItemList"
location="bottom-start"
- @choose="chooseItem"
custom-class="popover-demo-custom"
+ @choose="chooseItem"
>
明朗风格
@@ -61,7 +61,7 @@
-
+
{{ item.desc }}
@@ -73,18 +73,18 @@
位置自定义
-
+
@@ -92,7 +92,7 @@
自定义目标元素
- 自定义对象
+ 自定义对象
diff --git a/packages/nutui-taro-demo/src/exhibition/pages/swiper/index.vue b/packages/nutui-taro-demo/src/exhibition/pages/swiper/index.vue
index 619b5788c6..d4b1035751 100644
--- a/packages/nutui-taro-demo/src/exhibition/pages/swiper/index.vue
+++ b/packages/nutui-taro-demo/src/exhibition/pages/swiper/index.vue
@@ -46,7 +46,7 @@
自定义指示器(异步加载3s)
-
+
@@ -57,7 +57,7 @@
手动切换
-
+
diff --git a/packages/nutui-taro-demo/src/exhibition/pages/tag/index.vue b/packages/nutui-taro-demo/src/exhibition/pages/tag/index.vue
index 198cf692ad..016b4bf10a 100644
--- a/packages/nutui-taro-demo/src/exhibition/pages/tag/index.vue
+++ b/packages/nutui-taro-demo/src/exhibition/pages/tag/index.vue
@@ -47,7 +47,7 @@
>
- 标签
+ 标签
@@ -60,7 +60,7 @@
>
- 标签
+ 标签
diff --git a/packages/nutui-taro-demo/src/exhibition/pages/tour/index.vue b/packages/nutui-taro-demo/src/exhibition/pages/tour/index.vue
index 4eb0e25ad6..0d704dcedf 100644
--- a/packages/nutui-taro-demo/src/exhibition/pages/tour/index.vue
+++ b/packages/nutui-taro-demo/src/exhibition/pages/tour/index.vue
@@ -9,8 +9,8 @@
设置偏移量
@@ -57,11 +57,11 @@
diff --git a/packages/nutui-taro-demo/src/exhibition/pages/trendarrow/index.vue b/packages/nutui-taro-demo/src/exhibition/pages/trendarrow/index.vue
index ec5a1087cd..399e0fbfba 100644
--- a/packages/nutui-taro-demo/src/exhibition/pages/trendarrow/index.vue
+++ b/packages/nutui-taro-demo/src/exhibition/pages/trendarrow/index.vue
@@ -18,26 +18,26 @@
箭头在前面
-
-
+
+
显示正负号
-
-
+
+
是否展示0
-
-
+
+
自定义颜色
-
+
局部用法
-
+
diff --git a/packages/nutui-taro-demo/src/feedback/pages/actionsheet/index.vue b/packages/nutui-taro-demo/src/feedback/pages/actionsheet/index.vue
index 4f64b0b684..ae0bbcae97 100644
--- a/packages/nutui-taro-demo/src/feedback/pages/actionsheet/index.vue
+++ b/packages/nutui-taro-demo/src/feedback/pages/actionsheet/index.vue
@@ -29,8 +29,8 @@
title="标题"
description="这是一段描述信息"
:menu-items="menuItemsTwo"
- @choose="chooseItemThree"
cancel-txt="取消"
+ @choose="chooseItemThree"
/>
选项状态
@@ -42,8 +42,8 @@
v-model:visible="state.isVisible4"
cancel-txt="取消"
:menu-items="menuItemsThree"
- @choose="chooseItemFour"
choose-tag-value="选中选项"
+ @choose="chooseItemFour"
/>
自定义内容
diff --git a/packages/nutui-taro-demo/src/feedback/pages/dialog/index.vue b/packages/nutui-taro-demo/src/feedback/pages/dialog/index.vue
index e269f642d6..a31df8665c 100644
--- a/packages/nutui-taro-demo/src/feedback/pages/dialog/index.vue
+++ b/packages/nutui-taro-demo/src/feedback/pages/dialog/index.vue
@@ -2,28 +2,28 @@
-
+
-
+
diff --git a/packages/nutui-taro-demo/src/feedback/pages/infiniteloading/index.vue b/packages/nutui-taro-demo/src/feedback/pages/infiniteloading/index.vue
index ad61c6ab48..75df0f176b 100644
--- a/packages/nutui-taro-demo/src/feedback/pages/infiniteloading/index.vue
+++ b/packages/nutui-taro-demo/src/feedback/pages/infiniteloading/index.vue
@@ -2,7 +2,7 @@
基础演示
-
+
- {{ item }}
+ {{ item }}
diff --git a/packages/nutui-taro-demo/src/feedback/pages/notify/index.vue b/packages/nutui-taro-demo/src/feedback/pages/notify/index.vue
index a3000762f3..2269ae4cef 100644
--- a/packages/nutui-taro-demo/src/feedback/pages/notify/index.vue
+++ b/packages/nutui-taro-demo/src/feedback/pages/notify/index.vue
@@ -2,48 +2,48 @@
- {{ baseState.state.desc }}
+ {{ baseState.state.desc }}
- 主要通知
- 成功通知
- 危险通知
- 警告通知
+ 主要通知
+ 成功通知
+ 危险通知
+ 警告通知
-
+
自定义背景色和字体颜色
-
+
自定义时长5s
- 组件调用
+ 组件调用
Content
diff --git a/packages/nutui-taro-demo/src/feedback/pages/switch/index.vue b/packages/nutui-taro-demo/src/feedback/pages/switch/index.vue
index 0aa306d16f..27da6a92b6 100644
--- a/packages/nutui-taro-demo/src/feedback/pages/switch/index.vue
+++ b/packages/nutui-taro-demo/src/feedback/pages/switch/index.vue
@@ -13,7 +13,7 @@
加载状态
-
+
change事件
@@ -23,7 +23,7 @@
异步控制
-
+
自定义颜色
diff --git a/packages/nutui-taro-demo/src/feedback/pages/toast/index.vue b/packages/nutui-taro-demo/src/feedback/pages/toast/index.vue
index 6ac1770101..3fcbd03a87 100644
--- a/packages/nutui-taro-demo/src/feedback/pages/toast/index.vue
+++ b/packages/nutui-taro-demo/src/feedback/pages/toast/index.vue
@@ -3,14 +3,14 @@
基础用法
diff --git a/packages/nutui-taro-demo/src/nav/pages/fixednav/index.vue b/packages/nutui-taro-demo/src/nav/pages/fixednav/index.vue
index f229a56b03..180d6f0fa5 100644
--- a/packages/nutui-taro-demo/src/nav/pages/fixednav/index.vue
+++ b/packages/nutui-taro-demo/src/nav/pages/fixednav/index.vue
@@ -2,30 +2,30 @@
-
+
- 1
diff --git a/packages/nutui-taro-demo/src/nav/pages/indicator/index.vue b/packages/nutui-taro-demo/src/nav/pages/indicator/index.vue
index 7df98565c4..eb434496e4 100644
--- a/packages/nutui-taro-demo/src/nav/pages/indicator/index.vue
+++ b/packages/nutui-taro-demo/src/nav/pages/indicator/index.vue
@@ -27,7 +27,7 @@
不补0
- step1
+ step1
diff --git a/packages/nutui-taro-demo/src/nav/pages/menu/index.vue b/packages/nutui-taro-demo/src/nav/pages/menu/index.vue
index 2d9bc61d9e..e335e51a4d 100644
--- a/packages/nutui-taro-demo/src/nav/pages/menu/index.vue
+++ b/packages/nutui-taro-demo/src/nav/pages/menu/index.vue
@@ -4,12 +4,12 @@
基础用法
-
+
自定义菜单内容
-
+
自定义内容
确认
@@ -23,7 +23,7 @@
自定义选中态颜色
-
+
自定义图标
@@ -31,7 +31,7 @@
-
+
@@ -40,12 +40,12 @@
向上展开
-
+
禁用菜单
-
-
+
+
diff --git a/packages/nutui-taro-demo/src/nav/pages/navbar/index.vue b/packages/nutui-taro-demo/src/nav/pages/navbar/index.vue
index 083e2586a7..b5c5381de2 100644
--- a/packages/nutui-taro-demo/src/nav/pages/navbar/index.vue
+++ b/packages/nutui-taro-demo/src/nav/pages/navbar/index.vue
@@ -3,7 +3,7 @@
基础用法
-
+
返回
@@ -13,22 +13,22 @@
@@ -39,7 +39,7 @@
自定义导航栏中间内容
-
+
diff --git a/packages/nutui-taro-demo/src/nav/pages/sidenavbar/index.vue b/packages/nutui-taro-demo/src/nav/pages/sidenavbar/index.vue
index 464d788c89..1e54baba75 100644
--- a/packages/nutui-taro-demo/src/nav/pages/sidenavbar/index.vue
+++ b/packages/nutui-taro-demo/src/nav/pages/sidenavbar/index.vue
@@ -5,7 +5,7 @@
-
+
@@ -22,7 +22,7 @@
-
+
@@ -39,7 +39,7 @@
-
+
diff --git a/packages/nutui-taro-demo/src/nav/pages/tabbar/index.vue b/packages/nutui-taro-demo/src/nav/pages/tabbar/index.vue
index 937a77e7a1..652abd051d 100644
--- a/packages/nutui-taro-demo/src/nav/pages/tabbar/index.vue
+++ b/packages/nutui-taro-demo/src/nav/pages/tabbar/index.vue
@@ -34,8 +34,8 @@
@@ -90,7 +90,7 @@
固定底部,可自由跳转
-
+
diff --git a/packages/nutui-taro-demo/src/nav/pages/tabs/index.vue b/packages/nutui-taro-demo/src/nav/pages/tabs/index.vue
index 9edee5a372..57ff729e6a 100644
--- a/packages/nutui-taro-demo/src/nav/pages/tabs/index.vue
+++ b/packages/nutui-taro-demo/src/nav/pages/tabs/index.vue
@@ -38,12 +38,12 @@
数据异步渲染 3s
- Tab {{ item }}
+ Tab {{ item }}
数量多,滚动操作(横向)
- Tab {{ item }}
+ Tab {{ item }}
数量多,滚动操作(纵向)
- Tab {{ item }}
+ Tab {{ item }}
左右布局
-
- Tab {{ item }}
+
+
+ Tab {{ item }}
+
左右布局-微笑曲线
-
- Tab {{ item }}
+
+
+ Tab {{ item }}
+
标签栏字体尺寸 large normal small
@@ -83,18 +87,18 @@
{{ item.title }}
-
+
{{ item.title }}
diff --git a/packages/nutui-taro-demo/src/pages/index/index.vue b/packages/nutui-taro-demo/src/pages/index/index.vue
index 0e56b81e65..719abde0ae 100644
--- a/packages/nutui-taro-demo/src/pages/index/index.vue
+++ b/packages/nutui-taro-demo/src/pages/index/index.vue
@@ -43,7 +43,7 @@ export default {
return {
title: '',
path: '/pages/index/index',
- success: function (res) {}
+ success: function () {}
};
},
// onShareTimeline() {
diff --git a/packages/nutui-vscode-extension/.eslintrc.json b/packages/nutui-vscode-extension/.eslintrc.json
deleted file mode 100644
index 5dfecab7e7..0000000000
--- a/packages/nutui-vscode-extension/.eslintrc.json
+++ /dev/null
@@ -1,18 +0,0 @@
-{
- "root": true,
- "parser": "@typescript-eslint/parser",
- "parserOptions": {
- "ecmaVersion": 6,
- "sourceType": "module"
- },
- "plugins": ["@typescript-eslint"],
- "rules": {
- "@typescript-eslint/naming-convention": "warn",
- "@typescript-eslint/semi": "warn",
- "curly": "warn",
- "eqeqeq": "warn",
- "no-throw-literal": "warn",
- "semi": "off"
- },
- "ignorePatterns": ["out", "dist", "**/*.d.ts"]
-}
diff --git a/packages/nutui-vscode-extension/package.json b/packages/nutui-vscode-extension/package.json
index d757b29a2b..a5c162825d 100644
--- a/packages/nutui-vscode-extension/package.json
+++ b/packages/nutui-vscode-extension/package.json
@@ -39,10 +39,7 @@
"@types/glob": "^7.2.0",
"@types/mocha": "^9.0.0",
"@types/vscode": "^1.66.0",
- "@typescript-eslint/eslint-plugin": "^5.9.1",
- "@typescript-eslint/parser": "^5.9.1",
"@vscode/test-electron": "^2.0.3",
- "eslint": "^8.6.0",
"glob": "^7.2.0",
"mocha": "^9.1.3",
"ts-loader": "^9.4.2",
diff --git a/packages/nutui-vscode-extension/src/extension.ts b/packages/nutui-vscode-extension/src/extension.ts
index 92838eb9d5..b9136a71e0 100644
--- a/packages/nutui-vscode-extension/src/extension.ts
+++ b/packages/nutui-vscode-extension/src/extension.ts
@@ -10,7 +10,7 @@ const LINK_REG = /(?<= {
+const provideHover = (document: vscode.TextDocument, position: vscode.Position) => {
const line = document.lineAt(position);
const componentLink = line.text.match(LINK_REG) ?? [];
const componentBigLink = line.text.match(BIG_LINK_REG) ?? [];
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index c9c2a5732e..cce27980a1 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -258,12 +258,6 @@ importers:
'@types/webpack-env':
specifier: ^1.18.2
version: 1.18.2
- '@typescript-eslint/eslint-plugin':
- specifier: ^6.7.5
- version: 6.7.5(@typescript-eslint/parser@6.7.5)(eslint@8.51.0)(typescript@5.2.2)
- '@typescript-eslint/parser':
- specifier: ^6.7.5
- version: 6.7.5(eslint@8.51.0)(typescript@5.2.2)
babel-loader:
specifier: ^9.1.3
version: 9.1.3(@babel/core@7.23.2)(webpack@5.89.0)
@@ -279,9 +273,6 @@ importers:
eslint-config-taro:
specifier: 3.6.14
version: 3.6.14(@babel/core@7.23.2)(eslint@8.51.0)(typescript@5.2.2)
- eslint-plugin-vue:
- specifier: ^9.17.0
- version: 9.17.0(eslint@8.51.0)
style-loader:
specifier: ^3.3.3
version: 3.3.3(webpack@5.89.0)
@@ -311,21 +302,12 @@ importers:
'@types/vscode':
specifier: ^1.66.0
version: 1.66.0
- '@typescript-eslint/eslint-plugin':
- specifier: ^5.9.1
- version: 5.20.0(@typescript-eslint/parser@5.20.0)(eslint@8.12.0)(typescript@5.2.2)
- '@typescript-eslint/parser':
- specifier: ^5.9.1
- version: 5.20.0(eslint@8.12.0)(typescript@5.2.2)
'@vscode/test-electron':
specifier: ^2.0.3
version: 2.0.3
'@vscode/vsce':
specifier: ^2.7.0
version: 2.15.0
- eslint:
- specifier: ^8.6.0
- version: 8.12.0
glob:
specifier: ^7.2.0
version: 7.2.3
@@ -2201,23 +2183,6 @@ packages:
resolution: {integrity: sha512-Y27x+MBLjXa+0JWDhykM3+JE+il3kHKAEqabfEWq3SDhZjLYb6/BHL/JKFnH3fe207JaXkyDo685Oc2Glt6ifA==}
engines: {node: ^12.0.0 || ^14.0.0 || >=16.0.0}
- /@eslint/eslintrc@1.4.1:
- resolution: {integrity: sha512-XXrH9Uarn0stsyldqDYq8r++mROmWRI1xKMXa640Bb//SY1+ECYX6VzT6Lcx5frD0V30XieqJ0oX9I2Xj5aoMA==}
- engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}
- dependencies:
- ajv: 6.12.6
- debug: 4.3.4
- espree: 9.6.1
- globals: 13.20.0
- ignore: 5.2.4
- import-fresh: 3.3.0
- js-yaml: 4.1.0
- minimatch: 3.1.2
- strip-json-comments: 3.1.1
- transitivePeerDependencies:
- - supports-color
- dev: true
-
/@eslint/eslintrc@2.1.2:
resolution: {integrity: sha512-+wvgpDsrB1YqAMdEUCcnTlpfVBH7Vqn6A/NT3D8WVXFIaKMlErPIZT3oCIAVCOtarRpMtelZLqJeU3t7WY6X6g==}
engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}
@@ -2261,17 +2226,6 @@ packages:
transitivePeerDependencies:
- supports-color
- /@humanwhocodes/config-array@0.9.5:
- resolution: {integrity: sha512-ObyMyWxZiCu/yTisA7uzx81s40xR2fD5Cg/2Kq7G02ajkNubJf6BopgDTmDyc3U7sXpNKM8cYOw7s7Tyr+DnCw==}
- engines: {node: '>=10.10.0'}
- dependencies:
- '@humanwhocodes/object-schema': 1.2.1
- debug: 4.3.4
- minimatch: 3.1.2
- transitivePeerDependencies:
- - supports-color
- dev: true
-
/@humanwhocodes/module-importer@1.0.1:
resolution: {integrity: sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA==}
engines: {node: '>=12.22'}
@@ -3705,6 +3659,7 @@ packages:
/@types/semver@7.5.3:
resolution: {integrity: sha512-OxepLK9EuNEIPxWNME+C6WwbRAOOI2o2BaQEGzz5Lu2e4Z5eDnEo+/aVEDMIXywoJitJ7xWd641wrGLZdtwRyw==}
+ dev: false
/@types/send@0.17.2:
resolution: {integrity: sha512-aAG6yRf6r0wQ29bkS+x97BIs64ZLxeE/ARwyS6wrldMm3C1MdKwCcnnEwMC1slI8wuxJOpiUH9MioC0A0i+GJw==}
@@ -3764,33 +3719,6 @@ packages:
'@types/yargs-parser': 21.0.1
dev: true
- /@typescript-eslint/eslint-plugin@5.20.0(@typescript-eslint/parser@5.20.0)(eslint@8.12.0)(typescript@5.2.2):
- resolution: {integrity: sha512-fapGzoxilCn3sBtC6NtXZX6+P/Hef7VDbyfGqTTpzYydwhlkevB+0vE0EnmHPVTVSy68GUncyJ/2PcrFBeCo5Q==}
- engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}
- peerDependencies:
- '@typescript-eslint/parser': ^5.0.0
- eslint: ^6.0.0 || ^7.0.0 || ^8.0.0
- typescript: '*'
- peerDependenciesMeta:
- typescript:
- optional: true
- dependencies:
- '@typescript-eslint/parser': 5.20.0(eslint@8.12.0)(typescript@5.2.2)
- '@typescript-eslint/scope-manager': 5.20.0
- '@typescript-eslint/type-utils': 5.20.0(eslint@8.12.0)(typescript@5.2.2)
- '@typescript-eslint/utils': 5.20.0(eslint@8.12.0)(typescript@5.2.2)
- debug: 4.3.4
- eslint: 8.12.0
- functional-red-black-tree: 1.0.1
- ignore: 5.2.4
- regexpp: 3.2.0
- semver: 7.3.8
- tsutils: 3.21.0(typescript@5.2.2)
- typescript: 5.2.2
- transitivePeerDependencies:
- - supports-color
- dev: true
-
/@typescript-eslint/eslint-plugin@6.7.5(@typescript-eslint/parser@6.7.5)(eslint@8.51.0)(typescript@5.2.2):
resolution: {integrity: sha512-JhtAwTRhOUcP96D0Y6KYnwig/MRQbOoLGXTON2+LlyB/N35SP9j1boai2zzwXb7ypKELXMx3DVk9UTaEq1vHEw==}
engines: {node: ^16.0.0 || >=18.0.0}
@@ -3818,26 +3746,7 @@ packages:
typescript: 5.2.2
transitivePeerDependencies:
- supports-color
-
- /@typescript-eslint/parser@5.20.0(eslint@8.12.0)(typescript@5.2.2):
- resolution: {integrity: sha512-UWKibrCZQCYvobmu3/N8TWbEeo/EPQbS41Ux1F9XqPzGuV7pfg6n50ZrFo6hryynD8qOTTfLHtHjjdQtxJ0h/w==}
- engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}
- peerDependencies:
- eslint: ^6.0.0 || ^7.0.0 || ^8.0.0
- typescript: '*'
- peerDependenciesMeta:
- typescript:
- optional: true
- dependencies:
- '@typescript-eslint/scope-manager': 5.20.0
- '@typescript-eslint/types': 5.20.0
- '@typescript-eslint/typescript-estree': 5.20.0(typescript@5.2.2)
- debug: 4.3.4
- eslint: 8.12.0
- typescript: 5.2.2
- transitivePeerDependencies:
- - supports-color
- dev: true
+ dev: false
/@typescript-eslint/parser@5.62.0(eslint@8.51.0)(typescript@5.2.2):
resolution: {integrity: sha512-VlJEV0fOQ7BExOsHYAGrgbEiZoi8D+Bl2+f6V2RrXerRSylnp+ZBHmPvaIa8cz0Ajx7WO7Z5RqfgYg7ED1nRhA==}
@@ -3878,14 +3787,7 @@ packages:
typescript: 5.2.2
transitivePeerDependencies:
- supports-color
-
- /@typescript-eslint/scope-manager@5.20.0:
- resolution: {integrity: sha512-h9KtuPZ4D/JuX7rpp1iKg3zOH0WNEa+ZIXwpW/KWmEFDxlA/HSfCMhiyF1HS/drTICjIbpA6OqkAhrP/zkCStg==}
- engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}
- dependencies:
- '@typescript-eslint/types': 5.20.0
- '@typescript-eslint/visitor-keys': 5.20.0
- dev: true
+ dev: false
/@typescript-eslint/scope-manager@5.62.0:
resolution: {integrity: sha512-VXuvVvZeQCQb5Zgf4HAxc04q5j+WrNAtNh9OwCsCgpKqESMTu3tF/jhZ3xG6T4NZwWl65Bg8KuS2uEvhSfLl0w==}
@@ -3901,25 +3803,7 @@ packages:
dependencies:
'@typescript-eslint/types': 6.7.5
'@typescript-eslint/visitor-keys': 6.7.5
-
- /@typescript-eslint/type-utils@5.20.0(eslint@8.12.0)(typescript@5.2.2):
- resolution: {integrity: sha512-WxNrCwYB3N/m8ceyoGCgbLmuZwupvzN0rE8NBuwnl7APgjv24ZJIjkNzoFBXPRCGzLNkoU/WfanW0exvp/+3Iw==}
- engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}
- peerDependencies:
- eslint: '*'
- typescript: '*'
- peerDependenciesMeta:
- typescript:
- optional: true
- dependencies:
- '@typescript-eslint/utils': 5.20.0(eslint@8.12.0)(typescript@5.2.2)
- debug: 4.3.4
- eslint: 8.12.0
- tsutils: 3.21.0(typescript@5.2.2)
- typescript: 5.2.2
- transitivePeerDependencies:
- - supports-color
- dev: true
+ dev: false
/@typescript-eslint/type-utils@6.7.5(eslint@8.51.0)(typescript@5.2.2):
resolution: {integrity: sha512-Gs0qos5wqxnQrvpYv+pf3XfcRXW6jiAn9zE/K+DlmYf6FcpxeNYN0AIETaPR7rHO4K2UY+D0CIbDP9Ut0U4m1g==}
@@ -3939,11 +3823,7 @@ packages:
typescript: 5.2.2
transitivePeerDependencies:
- supports-color
-
- /@typescript-eslint/types@5.20.0:
- resolution: {integrity: sha512-+d8wprF9GyvPwtoB4CxBAR/s0rpP25XKgnOvMf/gMXYDvlUC3rPFHupdTQ/ow9vn7UDe5rX02ovGYQbv/IUCbg==}
- engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}
- dev: true
+ dev: false
/@typescript-eslint/types@5.62.0:
resolution: {integrity: sha512-87NVngcbVXUahrRTqIK27gD2t5Cu1yuCXxbLcFtCzZGlfyVWWh8mLHkoxzjsB6DDNnvdL+fW8MiwPEJyGJQDgQ==}
@@ -3953,27 +3833,7 @@ packages:
/@typescript-eslint/types@6.7.5:
resolution: {integrity: sha512-WboQBlOXtdj1tDFPyIthpKrUb+kZf2VroLZhxKa/VlwLlLyqv/PwUNgL30BlTVZV1Wu4Asu2mMYPqarSO4L5ZQ==}
engines: {node: ^16.0.0 || >=18.0.0}
-
- /@typescript-eslint/typescript-estree@5.20.0(typescript@5.2.2):
- resolution: {integrity: sha512-36xLjP/+bXusLMrT9fMMYy1KJAGgHhlER2TqpUVDYUQg4w0q/NW/sg4UGAgVwAqb8V4zYg43KMUpM8vV2lve6w==}
- engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}
- peerDependencies:
- typescript: '*'
- peerDependenciesMeta:
- typescript:
- optional: true
- dependencies:
- '@typescript-eslint/types': 5.20.0
- '@typescript-eslint/visitor-keys': 5.20.0
- debug: 4.3.4
- globby: 11.1.0
- is-glob: 4.0.3
- semver: 7.5.4
- tsutils: 3.21.0(typescript@5.2.2)
- typescript: 5.2.2
- transitivePeerDependencies:
- - supports-color
- dev: true
+ dev: false
/@typescript-eslint/typescript-estree@5.62.0(typescript@5.2.2):
resolution: {integrity: sha512-CmcQ6uY7b9y694lKdRB8FEel7JbU/40iSAPomu++SjLMntB+2Leay2LO6i8VnJk58MtE9/nQSFIH6jpyRWyYzA==}
@@ -4015,24 +3875,7 @@ packages:
typescript: 5.2.2
transitivePeerDependencies:
- supports-color
-
- /@typescript-eslint/utils@5.20.0(eslint@8.12.0)(typescript@5.2.2):
- resolution: {integrity: sha512-lHONGJL1LIO12Ujyx8L8xKbwWSkoUKFSO+0wDAqGXiudWB2EO7WEUT+YZLtVbmOmSllAjLb9tpoIPwpRe5Tn6w==}
- engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}
- peerDependencies:
- eslint: ^6.0.0 || ^7.0.0 || ^8.0.0
- dependencies:
- '@types/json-schema': 7.0.12
- '@typescript-eslint/scope-manager': 5.20.0
- '@typescript-eslint/types': 5.20.0
- '@typescript-eslint/typescript-estree': 5.20.0(typescript@5.2.2)
- eslint: 8.12.0
- eslint-scope: 5.1.1
- eslint-utils: 3.0.0(eslint@8.12.0)
- transitivePeerDependencies:
- - supports-color
- - typescript
- dev: true
+ dev: false
/@typescript-eslint/utils@6.7.5(eslint@8.51.0)(typescript@5.2.2):
resolution: {integrity: sha512-pfRRrH20thJbzPPlPc4j0UNGvH1PjPlhlCMq4Yx7EGjV7lvEeGX0U6MJYe8+SyFutWgSHsdbJ3BXzZccYggezA==}
@@ -4051,14 +3894,7 @@ packages:
transitivePeerDependencies:
- supports-color
- typescript
-
- /@typescript-eslint/visitor-keys@5.20.0:
- resolution: {integrity: sha512-1flRpNF+0CAQkMNlTJ6L/Z5jiODG/e5+7mk6XwtPOUS3UrTz3UOiAg9jG2VtKsWI6rZQfy4C6a232QNRZTRGlg==}
- engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}
- dependencies:
- '@typescript-eslint/types': 5.20.0
- eslint-visitor-keys: 3.4.3
- dev: true
+ dev: false
/@typescript-eslint/visitor-keys@5.62.0:
resolution: {integrity: sha512-07ny+LHRzQXepkGg6w0mFY41fVUNBrL2Roj/++7V1txKugfjm/Ci/qSND03r2RhlJhJYMcTn9AhhSSqQp0Ysyw==}
@@ -4074,6 +3910,7 @@ packages:
dependencies:
'@typescript-eslint/types': 6.7.5
eslint-visitor-keys: 3.4.3
+ dev: false
/@ungap/promise-all-settled@1.1.2:
resolution: {integrity: sha512-sL/cEvJWAnClXw0wHk85/2L0G6Sj8UB0Ctc1TEMbKSsmpRosqhwj9gWgFRZSrBr2f9tiXISwNhCPmlfqUqyb9Q==}
@@ -7671,6 +7508,7 @@ packages:
xml-name-validator: 4.0.0
transitivePeerDependencies:
- supports-color
+ dev: false
/eslint-scope@5.1.1:
resolution: {integrity: sha512-2NxwbF/hZ0KpepYN0cNbo+FN6XoK7GaHlQhgx/hIZl6Va0bF45RQOOwhLIy8lQDbuCiadSLCBnH2CFYquit5bw==}
@@ -7680,14 +7518,6 @@ packages:
estraverse: 4.3.0
dev: true
- /eslint-scope@7.1.1:
- resolution: {integrity: sha512-QKQM/UXpIiHcLqJ5AOyIW7XZmzjkzQXYE54n1++wb0u9V/abW3l9uQnxX8Z5Xd18xyKIMTUAyQ0k1e8pz6LUrw==}
- engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}
- dependencies:
- esrecurse: 4.3.0
- estraverse: 5.3.0
- dev: true
-
/eslint-scope@7.2.2:
resolution: {integrity: sha512-dOt21O7lTMhDM+X9mB4GX+DZrZtCUJPL/wlcTqxyrx5IvO0IYtILdtrQGQp+8n5S0gwSVmOf9NQrjMOgfQZlIg==}
engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}
@@ -7695,74 +7525,15 @@ packages:
esrecurse: 4.3.0
estraverse: 5.3.0
- /eslint-utils@3.0.0(eslint@8.12.0):
- resolution: {integrity: sha512-uuQC43IGctw68pJA1RgbQS8/NP7rch6Cwd4j3ZBtgo4/8Flj4eGE7ZYSZRN3iq5pVUv6GPdW5Z1RFleo84uLDA==}
- engines: {node: ^10.0.0 || ^12.0.0 || >= 14.0.0}
- peerDependencies:
- eslint: '>=5'
- dependencies:
- eslint: 8.12.0
- eslint-visitor-keys: 2.1.0
- dev: true
-
/eslint-visitor-keys@2.1.0:
resolution: {integrity: sha512-0rSmRBzXgDzIsD6mGdJgevzgezI534Cer5L/vyMX0kHzT/jiB43jRhd9YUlMGYLQy2zprNmoT8qasCGtY+QaKw==}
engines: {node: '>=10'}
dev: true
- /eslint-visitor-keys@3.4.0:
- resolution: {integrity: sha512-HPpKPUBQcAsZOsHAFwTtIKcYlCje62XB7SEAcxjtmW6TD1WVpkS6i6/hOVtTZIl4zGj/mBqpFVGvaDneik+VoQ==}
- engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}
- dev: true
-
/eslint-visitor-keys@3.4.3:
resolution: {integrity: sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag==}
engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}
- /eslint@8.12.0:
- resolution: {integrity: sha512-it1oBL9alZg1S8UycLm5YDMAkIhtH6FtAzuZs6YvoGVldWjbS08BkAdb/ymP9LlAyq8koANu32U7Ib/w+UNh8Q==}
- engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}
- hasBin: true
- dependencies:
- '@eslint/eslintrc': 1.4.1
- '@humanwhocodes/config-array': 0.9.5
- ajv: 6.12.6
- chalk: 4.1.2
- cross-spawn: 7.0.3
- debug: 4.3.4
- doctrine: 3.0.0
- escape-string-regexp: 4.0.0
- eslint-scope: 7.1.1
- eslint-utils: 3.0.0(eslint@8.12.0)
- eslint-visitor-keys: 3.4.0
- espree: 9.5.1
- esquery: 1.5.0
- esutils: 2.0.3
- fast-deep-equal: 3.1.3
- file-entry-cache: 6.0.1
- functional-red-black-tree: 1.0.1
- glob-parent: 6.0.2
- globals: 13.20.0
- ignore: 5.2.4
- import-fresh: 3.3.0
- imurmurhash: 0.1.4
- is-glob: 4.0.3
- js-yaml: 4.1.0
- json-stable-stringify-without-jsonify: 1.0.1
- levn: 0.4.1
- lodash.merge: 4.6.2
- minimatch: 3.1.2
- natural-compare: 1.4.0
- optionator: 0.9.1
- regexpp: 3.2.0
- strip-ansi: 6.0.1
- strip-json-comments: 3.1.1
- text-table: 0.2.0
- v8-compile-cache: 2.3.0
- transitivePeerDependencies:
- - supports-color
- dev: true
-
/eslint@8.41.0:
resolution: {integrity: sha512-WQDQpzGBOP5IrXPo4Hc0814r4/v2rrIsB0rhT7jtunIalgg6gYXWhRMOejVO8yH21T/FGaxjmFjBMNqcIlmH1Q==}
engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}
@@ -7856,15 +7627,6 @@ packages:
transitivePeerDependencies:
- supports-color
- /espree@9.5.1:
- resolution: {integrity: sha512-5yxtHSZXRSW5pvv3hAlXM5+/Oswi1AUFqBmbibKb5s6bp3rGIDkyXU6xCoyuuLhijr4SFwPrXRoZjz0AZDN9tg==}
- engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}
- dependencies:
- acorn: 8.10.0
- acorn-jsx: 5.3.2(acorn@8.10.0)
- eslint-visitor-keys: 3.4.3
- dev: true
-
/espree@9.6.1:
resolution: {integrity: sha512-oruZaFkjorTpF32kDSI5/75ViwGeZginGGy2NoOSg3Q9bnwlnmDm4HLnkl0RE3n+njDXR037aY1+x58Z/zFdwQ==}
engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}
@@ -8496,10 +8258,6 @@ packages:
resolution: {integrity: sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==}
dev: true
- /functional-red-black-tree@1.0.1:
- resolution: {integrity: sha512-dsKNQNdj6xA3T+QlADDA7mOSlX0qiMINjn0cgr+eGHGsbSHzTabcIogz2+p/iqP1Xs6EP/sS2SbqH+brGTbq0g==}
- dev: true
-
/genfun@4.0.1:
resolution: {integrity: sha512-48yv1eDS5Qrz6cbSDBBik0u7jCgC/eA9eZrl9MIN1LfKzFTuGt6EHgr31YM8yT9cjb5BplXb4Iz3VtOYmgt8Jg==}
dev: true
@@ -8784,13 +8542,6 @@ packages:
resolution: {integrity: sha512-WOBp/EEGUiIsJSp7wcv/y6MO+lV9UoncWqxuFfm8eBwzWNgyfBd6Gz+IeKQ9jCmyhoH99g15M3T+QaVHFjizVA==}
engines: {node: '>=4'}
- /globals@13.20.0:
- resolution: {integrity: sha512-Qg5QtVkCy/kv3FUSlu4ukeZDVf9ee0iXLAUYX13gbR17bnejFTzr4iS9bY7kwCf1NztRNm1t91fjOiyx4CSwPQ==}
- engines: {node: '>=8'}
- dependencies:
- type-fest: 0.20.2
- dev: true
-
/globals@13.23.0:
resolution: {integrity: sha512-XAmF0RjlrjY23MA51q3HltdlGxUpXPvg0GioKiD9X6HD28iMjo2dKC8Vqwm7lne4GNr78+RHTfliktR6ZH09wA==}
engines: {node: '>=8'}
@@ -11586,18 +11337,6 @@ packages:
is-wsl: 2.2.0
dev: true
- /optionator@0.9.1:
- resolution: {integrity: sha512-74RlY5FCnhq4jRxVUPKDaRwrVNXMqsGsiW6AJw4XK8hmtm10wC0ypZBLw5IIp85NZMr91+qd1RvvENwg7jjRFw==}
- engines: {node: '>= 0.8.0'}
- dependencies:
- deep-is: 0.1.4
- fast-levenshtein: 2.0.6
- levn: 0.4.1
- prelude-ls: 1.2.1
- type-check: 0.4.0
- word-wrap: 1.2.3
- dev: true
-
/optionator@0.9.3:
resolution: {integrity: sha512-JjCoypp+jKn1ttEFExxhetCKeJt9zhAgAve5FXHixTvFDW/5aEktX9bufBKLRRMdU7bNtpLfcGu94B3cdEJgjg==}
engines: {node: '>= 0.8.0'}
@@ -12941,11 +12680,6 @@ packages:
resolution: {integrity: sha512-jbD/FT0+9MBU2XAZluI7w2OBs1RBi6p9M83nkoZayQXXU9e8Robt69FcZc7wU4eJD/YFTjn1JdCk3rbMJajz8Q==}
dev: true
- /regexpp@3.2.0:
- resolution: {integrity: sha512-pq2bWo9mVD43nbts2wGv17XLiNLya+GklZ8kaDLV2Z08gDCsGpnKn9BFMepvWuHCbyVvY7J5o5+BVvoQbmlJLg==}
- engines: {node: '>=8'}
- dev: true
-
/regexpu-core@5.3.2:
resolution: {integrity: sha512-RAM5FlZz+Lhmo7db9L298p2vHP5ZywrVXmVXpmAD9GuL5MPH6t9ROw1iA/wfHkQ76Qe7AaPF0nGuim96/IrQMQ==}
engines: {node: '>=4'}
@@ -14534,6 +14268,7 @@ packages:
typescript: '>=4.2.0'
dependencies:
typescript: 5.2.2
+ dev: false
/ts-loader@9.4.2(typescript@5.2.2)(webpack@5.84.0):
resolution: {integrity: sha512-OmlC4WVmFv5I0PpaxYb+qGeGOdm5giHU7HwDDUjw59emP2UYMHy9fFSDcYgSNoH8sXcj4hGCSEhlDZ9ULeDraA==}
@@ -15017,10 +14752,6 @@ packages:
resolution: {integrity: sha512-wa7YjyUGfNZngI/vtK0UHAN+lgDCxBPCylVXGp0zu59Fz5aiGtNXaq3DhIov063MorB+VfufLh3JlF2KdTK3xg==}
dev: true
- /v8-compile-cache@2.3.0:
- resolution: {integrity: sha512-l8lCEmLcLYZh4nbunNZvQCJc5pv7+RCwa8q/LdUx8u7lsWvPDKmpodJAJNwkAhJC//dFY48KuIEmjtd4RViDrA==}
- dev: true
-
/v8-to-istanbul@9.1.3:
resolution: {integrity: sha512-9lDD+EVI2fjFsMWXc6dy5JJzBsVTcQ2fVkfBvncZ6xJWG9wtBhOldG+mHkSL0+V1K/xgZz0JDO5UT5hFwHUghg==}
engines: {node: '>=10.12.0'}
@@ -15251,6 +14982,7 @@ packages:
semver: 7.5.4
transitivePeerDependencies:
- supports-color
+ dev: false
/vue-hot-reload-api@2.3.4:
resolution: {integrity: sha512-BXq3jwIagosjgNVae6tkHzzIk6a8MHFtzAdwhnV5VlvPTFxDCvIttgSiHWjdGoTJvXtmRu5HacExfdarRcFhog==}
@@ -15761,11 +15493,6 @@ packages:
resolution: {integrity: sha512-CC1bOL87PIWSBhDcTrdeLo6eGT7mCFtrg0uIJtqJUFyK+eJnzl8A1niH56uu7KMa5XFrtiV+AQuHO3n7DsHnLQ==}
dev: true
- /word-wrap@1.2.3:
- resolution: {integrity: sha512-Hz/mrNwitNRh/HUAtM/VT/5VH+ygD6DV7mYKZAtHOrbs8U7lvPS6xf7EJKMF0uW1KJCl0H701g3ZGus+muE5vQ==}
- engines: {node: '>=0.10.0'}
- dev: true
-
/workerpool@6.1.5:
resolution: {integrity: sha512-XdKkCK0Zqc6w3iTxLckiuJ81tiD/o5rBE/m+nXpRCB+/Sq4DqkfXZ/x0jW02DG1tGsfUGXbTJyZDP+eu67haSw==}
dev: true
diff --git a/src/packages/__VUE/calendar/demo.vue b/src/packages/__VUE/calendar/demo.vue
index c9cb542ca2..a83c265e5f 100644
--- a/src/packages/__VUE/calendar/demo.vue
+++ b/src/packages/__VUE/calendar/demo.vue
@@ -182,8 +182,8 @@
-
- {{ date.date.day }}
+
+ {{ d.date.day }}
@@ -212,11 +212,11 @@
@close="closeSwitch('isVisible6')"
@choose="setChooseValue6"
>
-
- {{ renderDate(date) }}
+
+ {{ renderDate(d) }}
-
- {{ date.date ? (date.date.day == 10 ? '十' : '') : '' }}
+
+ {{ d.date ? (d.date.day == 10 ? '十' : '') : '' }}
diff --git a/src/sites/assets/util/helper.ts b/src/sites/assets/util/helper.ts
index 2b1c844790..cac0b50fe6 100644
--- a/src/sites/assets/util/helper.ts
+++ b/src/sites/assets/util/helper.ts
@@ -179,7 +179,7 @@ export const useThemeEditor = function () {
customUrl = 'https://storage.360buyimg.com/nutui-static/source/variables-jddkh.scss_source';
}
if (customUrl) {
- loadScript('https://storage.360buyimg.com/nutui-static/cdn/sass.sync.min.js').then((res) => {
+ loadScript('https://storage.360buyimg.com/nutui-static/cdn/sass.sync.min.js').then(() => {
Promise.all([getSassVariables(customUrl), getRawSassStyle()]);
});
store.init = true;
diff --git a/src/sites/assets/util/ref.ts b/src/sites/assets/util/ref.ts
index e0244cbe3a..b4ab589835 100644
--- a/src/sites/assets/util/ref.ts
+++ b/src/sites/assets/util/ref.ts
@@ -1,9 +1,5 @@
import { Ref, ref } from 'vue';
-const browserBlack = () => {
- return window.matchMedia && window.matchMedia('(prefers-color-scheme: dark)').matches;
-};
-
export class RefData {
private static instance: RefData;
public static getInstance(): RefData {
diff --git a/src/sites/doc/components/DemoPreview.vue b/src/sites/doc/components/DemoPreview.vue
index 7a1f841892..a9e4fc77cd 100644
--- a/src/sites/doc/components/DemoPreview.vue
+++ b/src/sites/doc/components/DemoPreview.vue
@@ -4,7 +4,6 @@