uniapp表格插件

在apge.js中配置了table 但是运行后导航栏不显示 解决方法:page中的第一条path和table的第一条path要相同 { "pages" : [ { "path" : "pages/index/index" , //这个和下面的table path相同 "style" : {

在apge.js中配置了table 但是运行后导航栏不显示
解决方法:page中的第一条path和table的第一条path要相同

{
	"pages": [{
		"path": "pages/index/index",//这个和下面的table path相同
		"style": {
			"navigationBarTitleText": "雪碧"
		}
	}],
	"condition": { //模式配置,仅开发期间生效
		"current": 0, //当前激活的模式(list 的索引项)
		"list": [{
			"name": "test", //模式名称
			"path": "pages/component/view/index" //启动页面,必选
		}]
	},
	"globalStyle": {
		"navigationBarTextStyle": "white", //导航栏标题颜色及状态栏前景颜色,仅支持 black/white
		"navigationBarTitleText": "雪碧", //导航栏标题文字内容
		"navigationBarBackgroundColor": "#41a863", //导航栏背景颜色(同状态栏背景色)
		"backgroundColor": "#000", //
		// "usingComponents": {
		// 	"collapse-tree-item": "/components/collapse-tree-item"
		// },
		"renderingMode": "seperated", // 仅微信小程序,webrtc 无法正常时尝试强制关闭同层渲染
		"pageOrientation": "portrait", //横屏配置,全局屏幕旋转设置(仅 APP/微信/QQ小程序),支持 auto / portrait / landscape
		"rpxCalcMaxDeviceWidth": 960,
		"rpxCalcBaseDeviceWidth": 375,
		"rpxCalcIncludeWidth": 750
	},
	"tabBar": {
		"color": "#7A7E83",
		"selectedColor": "#3cc51f",
		"borderStyle": "black",
		"backgroundColor": "#ffffff",
		"height": "50px",
		"fontSize": "10px",
		"iconWidth": "24px",
		"spacing": "3px",
		"list": [{
			"pagePath": "pages/index/index",
			"iconPath": "static/image/home.png",
			"selectedIconPath": "static/image/home.png",
			"text": "组件"
		}, {
			"pagePath": "pages/profile/profile",
			"iconPath": "static/image/home.png",
			"selectedIconPath": "static/image/home.png",
			"text": "接口"
		}],
		"midButton": {
			"width": "80px",
			"height": "50px",
			"text": "文字",
			"iconPath": "static/image/home.png",
			"iconWidth": "24px",
			"backgroundImage": "static/image/home.png"
		}
	}

}

知秋君
上一篇 2024-07-23 18:48
下一篇 2024-07-23 18:12

相关推荐