acdr-ui/dist/dev/mp-weixin/sheep/components/s-layout/s-layout.js.map

1 line
7.9 KiB
Plaintext
Raw Normal View History

2024-09-19 07:20:14 +08:00
{"version":3,"file":"s-layout.js","sources":["../../../../../../src/sheep/components/s-layout/s-layout.vue","../../../../../../uniComponent:/RDovQXBwL1dvcmsvYWRkci9hY2RyLXVpL3NyYy9zaGVlcC9jb21wb25lbnRzL3MtbGF5b3V0L3MtbGF5b3V0LnZ1ZQ"],"sourcesContent":["<template>\r\n <view\r\n class=\"page-app\"\r\n :class=\"['theme-' + sys.mode, 'main-' + sys.theme, 'font-' + sys.fontSize]\"\r\n >\r\n <view class=\"page-main\" :style=\"[bgMain]\">\r\n <!-- 顶部导航栏-情况1默认通用顶部导航栏 -->\r\n <su-navbar\r\n v-if=\"navbar === 'normal'\"\r\n :title=\"title\"\r\n statusBar\r\n :color=\"color\"\r\n :tools=\"tools\"\r\n :opacityBgUi=\"opacityBgUi\"\r\n @search=\"(e) => emits('search', e)\"\r\n :defaultSearch=\"defaultSearch\"\r\n />\r\n\r\n <!-- 顶部导航栏-情况2装修组件导航栏-标准 -->\r\n <s-custom-navbar\r\n v-else-if=\"navbar === 'custom' && navbarMode === 'normal'\"\r\n :data=\"navbarStyle\"\r\n :showLeftButton=\"showLeftButton\"\r\n />\r\n <view class=\"page-body\" :style=\"[bgBody]\">\r\n <!-- 顶部导航栏-情况3沉浸式头部 -->\r\n <su-inner-navbar v-if=\"navbar === 'inner'\" :title=\"title\" />\r\n <view\r\n v-if=\"navbar === 'inner'\"\r\n :style=\"[{ paddingTop: sheep.$platform.navbar + 'px' }]\"\r\n ></view>\r\n\r\n <!-- 顶部导航栏-情况4装修组件导航栏-沉浸式 -->\r\n <s-custom-navbar\r\n v-if=\"navbar === 'custom' && navbarMode === 'inner'\"\r\n :data=\"navbarStyle\"\r\n :showLeftButton=\"showLeftButton\"\r\n />\r\n\r\n <!-- 页面内容插槽 -->\r\n <slot />\r\n\r\n <!-- 底部导航 -->\r\n <s-tabbar v-if=\"tabbar !== ''\" :path=\"tabbar\" />\r\n </view>\r\n </view>\r\n\r\n <view class=\"page-modal\">\r\n <!-- 全局授权弹窗 -->\r\n <s-auth-modal />\r\n <!-- 全局分享弹窗 -->\r\n <s-share-modal :shareInfo=\"shareInfo\" />\r\n <!-- 全局快捷入口 -->\r\n <s-menu-tools />\r\n </view>\r\n </view>\r\n</template>\r\n\r\n<script setup>\r\n/**\r\n * 模板组件 - 提供页面公共组件,属性,方法\r\n */\r\nimport { computed, reactive, ref } from 'vue'\r\nimport sheep from '@/sheep'\r\nimport { isEmpty } from 'lodash-es'\r\nimport { onShow } from '@dcloudio/uni-app'\r\n// #ifdef MP-WEIXIN\r\nimport { onShareAppMessage } from '@dcloudio/uni-app'\r\n// #endif\r\n\r\nconst props = defineProps({\r\n title: {\r\n type: String,\r\n default: '',\r\n },\r\n navbar: {\r\n type: String,\r\n default: 'normal',\r\n },\r\n opacityBgUi: {\r\n type: String,\r\n default: 'bg-white',\r\n },\r\n color: {\r\n type: String,\r\n default: '',\r\n },\r\n tools: {\r\n type: String,\r\n default: 'title',\r\n },\r\n keyword: {\r\n type: String,\r\n default: '',\r\n },\r\n navbarStyle: {\r\n type: Object,\r\n default: () => ({\r\n styleType: '',\r\n type: '',\r\n color: '',\r\n src: '',\r\n list: [],\r\n alwaysShow: 0,\r\n }),\r\n },\r\n bgStyle: {\r\n type: Object,\r\n default: () => ({\r\n src: '',\r\n color: 'var(--ui-BG-1)',\r\n }),\r\n },\r\n tabbar: {\r\n type: [String, Boolean],\r\n default: '',\r\n },\r\n onShareAppMessage: {\r\n type: [Boolean, Object],\r\n default: true,\r\n },\r\n leftWidth: {\r\n type: [Number, String],\r\n default: 100,\r\n },\r\n rightWidth: {\r\n type: [Number, String],\r\n default: 100,\r\n },\r\n defaultSearch: {\r\n type: String,\r\n default: '',\r\n },\r\n // 展示返回按钮\r\n showLeftButton: {\r\n type: Boolean,\r\n default: false,\r\n },\r\n})\r\nconst emits = defineEmits(['search'])\r\n\r\nconst sysStore = sheep.$store('sys')\r\nconst userStore = sheep.$store('user')\r\nconst appStore = sheep.$store('app')\r\nconst modalStore = sheep.$store('modal')\r\nconst sys = computed(() => sysSto