From 1b60bd230c515d6e04221912bed426fd76892a73 Mon Sep 17 00:00:00 2001
From: yurj26 <1816387074@qq.com>
Date: Tue, 12 Sep 2023 17:10:42 +0800
Subject: [PATCH] chore: remove warning
---
pages/API/toast/toast.uvue | 225 +++++++++++++++++-------------------
pages/tabBar/API.uvue | 32 -----
pages/tabBar/CSS.uvue | 32 +----
pages/tabBar/component.uvue | 29 -----
pages/tabBar/template.uvue | 2 +-
5 files changed, 107 insertions(+), 213 deletions(-)
diff --git a/pages/API/toast/toast.uvue b/pages/API/toast/toast.uvue
index 7c01fe90..9e41d537 100644
--- a/pages/API/toast/toast.uvue
+++ b/pages/API/toast/toast.uvue
@@ -1,125 +1,110 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {{exeRet}}
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{exeRet}}
+
\ No newline at end of file
+ }
+
diff --git a/pages/tabBar/API.uvue b/pages/tabBar/API.uvue
index 3bc4ad93..ebf141b6 100644
--- a/pages/tabBar/API.uvue
+++ b/pages/tabBar/API.uvue
@@ -47,7 +47,6 @@
type ListItem = {
id : string
name : string
- open : boolean
pages : Page[]
url ?: string
enable ?: boolean
@@ -59,7 +58,6 @@
{
id: 'global',
name: '全局',
- open: false,
pages: [
{
name: 'getApp',
@@ -74,7 +72,6 @@
{
id: 'base',
name: '基础',
- open: false,
pages: [
{
name: '事件总线event-bus',
@@ -94,7 +91,6 @@
{
id: 'page',
name: '页面和路由',
- open: false,
pages: [
{
name: '页面跳转',
@@ -162,7 +158,6 @@
{
id: 'ui',
name: '界面',
- open: false,
pages: [
/* {
name: "创建动画",
@@ -211,7 +206,6 @@
{
id: 'device',
name: '设备',
- open: false,
pages: [
{
name: '获取系统信息',
@@ -298,7 +292,6 @@
{
id: 'media',
name: '媒体',
- open: false,
pages: [
{
name: "图片",
@@ -399,7 +392,6 @@
id: "rewarded-video-ad",
url: "rewarded-video-ad",
name: "激励视频广告",
- open: false,
enable: false,
pages: [] as Page[]
},
@@ -407,14 +399,12 @@
id: "full-screen-video-ad",
url: "full-screen-video-ad",
name: "全屏视频广告",
- open: false,
enable: false,
pages: [] as Page[]
},
{
id: "login",
name: "登录",
- open: false,
pages: [
{
name: "登录",
@@ -429,7 +419,6 @@
{
id: "share",
name: "分享",
- open: false,
pages: [
{
name: "分享",
@@ -440,7 +429,6 @@
{
id: "payment",
name: "支付",
- open: false,
pages: [
{
name: "发起支付",
@@ -451,7 +439,6 @@
{
id: "speech",
name: "语音",
- open: false,
pages: [
{
name: "语音识别",
@@ -462,7 +449,6 @@
{
id: "push",
name: "推送",
- open: false,
pages: [
{
name: "推送",
@@ -477,24 +463,6 @@
}
},
methods: {
- triggerCollapse(index ?: number, item : ListItem) {
- if (item.pages.length == 0) {
- const page : Page = {
- name: item.name,
- enable: item.enable,
- url: item.url!,
- }
- this.goDetailPage(page)
- return
- }
- for (var i = 0; i < this.list.length; ++i) {
- if (index == i) {
- this.list[i].open = !this.list[i].open
- } else {
- this.list[i].open = false
- }
- }
- },
goDetailPage(e : Page) {
if (e.enable == false) {
uni.showToast({
diff --git a/pages/tabBar/CSS.uvue b/pages/tabBar/CSS.uvue
index 514b50ad..525e9a7f 100644
--- a/pages/tabBar/CSS.uvue
+++ b/pages/tabBar/CSS.uvue
@@ -38,7 +38,6 @@
type ListItem = {
id : string
name : string
- open : boolean
pages : Page[]
url ?: string
enable ?: boolean
@@ -50,7 +49,6 @@
{
id: 'background',
name: 'background',
- open: false,
pages: [
{
name: 'background-color',
@@ -65,7 +63,6 @@
{
id: 'border',
name: 'border',
- open: false,
pages: [
{
name: 'border',
@@ -96,7 +93,6 @@
{
id: 'box-shadow',
name: 'box-shadow',
- open: false,
pages: [
{
name: 'box-shadow',
@@ -107,7 +103,6 @@
{
id: 'display',
name: 'display',
- open: false,
pages: [
{
name: 'flex',
@@ -122,7 +117,6 @@
{
id: 'flex',
name: 'flex',
- open: false,
pages: [
{
name: 'align-content',
@@ -165,7 +159,6 @@
{
id: 'layout',
name: 'layout',
- open: false,
pages: [
{
name: 'height',
@@ -208,7 +201,6 @@
{
id: 'margin',
name: 'margin',
- open: false,
pages: [
{
name: 'margin-bottom',
@@ -235,7 +227,6 @@
{
id: 'padding',
name: 'padding',
- open: false,
pages: [
{
name: 'padding-bottom',
@@ -262,7 +253,6 @@
{
id: 'text',
name: 'text',
- open: false,
pages: [
{
name: 'color',
@@ -309,7 +299,6 @@
{
id: 'transform',
name: 'transform',
- open: false,
pages: [
{
name: 'translate',
@@ -328,7 +317,6 @@
{
id: 'transition',
name: 'transition',
- open: false,
pages: [
{
name: 'transition',
@@ -343,24 +331,6 @@
}
},
methods: {
- triggerCollapse(index ?: number, item : ListItem) {
- if (item.pages.length == 0) {
- const page : Page = {
- name: item.name,
- enable: item.enable,
- url: item.url,
- }
- this.goDetailPage(page)
- return
- }
- for (var i = 0; i < this.list.length; ++i) {
- if (index == i) {
- this.list[i].open = !this.list[i].open
- } else {
- this.list[i].open = false
- }
- }
- },
goDetailPage(e : Page) {
if (e.enable == false) {
uni.showToast({
@@ -384,4 +354,4 @@
.item {
margin-bottom: 12px;
}
-
\ No newline at end of file
+
diff --git a/pages/tabBar/component.uvue b/pages/tabBar/component.uvue
index 1466446c..6e94ad1e 100644
--- a/pages/tabBar/component.uvue
+++ b/pages/tabBar/component.uvue
@@ -54,7 +54,6 @@ type Page = {
type ListItem = {
id : string
name : string
- open : boolean
pages : Page[]
url ?: string
enable ?: boolean
@@ -66,7 +65,6 @@ export default {
{
id: 'view',
name: '视图容器',
- open: false,
pages: [
{
name: 'view',
@@ -95,7 +93,6 @@ export default {
{
id: 'content',
name: '基础内容',
- open: false,
pages: [
{
name: 'text',
@@ -112,7 +109,6 @@ export default {
{
id: 'form',
name: '表单组件',
- open: false,
pages: [
{
name: 'button',
@@ -162,7 +158,6 @@ export default {
{
id: 'nav',
name: '导航',
- open: false,
pages: [{
name: 'navigator',
enable: true
@@ -171,7 +166,6 @@ export default {
{
id: 'media',
name: '媒体组件',
- open: false,
pages: [
{
name: 'image',
@@ -191,7 +185,6 @@ export default {
{
id: 'map',
name: '地图',
- open: false,
pages: [
{
name: 'map',
@@ -202,7 +195,6 @@ export default {
{
id: 'canvas',
name: '画布',
- open: false,
pages: [
{
name: 'canvas'
@@ -213,7 +205,6 @@ export default {
{
id: 'web-view',
name: '网页',
- open: false,
pages: [
{
name: '网络网页',
@@ -233,14 +224,12 @@ export default {
url: 'ad',
name: 'AD组件',
enable: false,
- open: false,
pages: [] as Page[]
}
*/
{
id: 'general-attr-event',
name: '通用属性和事件',
- open: false,
pages: [
{
name: '通用属性',
@@ -261,24 +250,6 @@ export default {
}
},
methods: {
- triggerCollapse(index ?: number, item : ListItem) {
- if (item.pages.length == 0) {
- const page : Page = {
- name: item.name,
- enable: item.enable,
- url: item.url,
- }
- this.goDetailPage(page)
- return
- }
- for (var i = 0; i < this.list.length; ++i) {
- if (index == i) {
- this.list[i].open = !this.list[i].open
- } else {
- this.list[i].open = false
- }
- }
- },
goDetailPage(e : Page) {
if (e.enable == false) {
uni.showToast({
diff --git a/pages/tabBar/template.uvue b/pages/tabBar/template.uvue
index 75eee773..74221cef 100644
--- a/pages/tabBar/template.uvue
+++ b/pages/tabBar/template.uvue
@@ -174,7 +174,7 @@ export default {
}
},
methods: {
- triggerCollapse(index?: number, item: ListItem) {
+ triggerCollapse(index: number, item: ListItem) {
if (item.pages.length == 0) {
const page: Page = {
name: item.name,
--
GitLab