diff --git a/pages/API/toast/toast.uvue b/pages/API/toast/toast.uvue
index 7c01fe90edc2ac7d8464f4babeb800ffa35306fc..9e41d537adea7daa0fa4082ed3fea0b3ff322c51 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 3bc4ad93c3faf6b4f9bcab49aad1121a8cba38b2..ebf141b64bce277ca9490bbe9637e93aabd0131a 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 514b50adbc100911756d6f2a2418783649f0925b..525e9a7fe66d750d25eef6807e5bbe4c0946cd59 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 1466446cf946b24387adc214a28b41ac7d19c60d..6e94ad1e922d92bc4a4ac23d45cc9d19f036029c 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 75eee77393ca9217dc10e5be3d60acf12895b9f2..74221cef6b3a4db924a911ec831bc24af3fb2fce 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,