u-navbar.js.map 16.1 KB
{"version":3,"sources":["webpack:///D:/vue/kaoshi3-fangweishangcheng/node_modules/uview-ui/components/u-navbar/u-navbar.vue?d510","webpack:///D:/vue/kaoshi3-fangweishangcheng/node_modules/uview-ui/components/u-navbar/u-navbar.vue?0818","webpack:///D:/vue/kaoshi3-fangweishangcheng/node_modules/uview-ui/components/u-navbar/u-navbar.vue?1ec9","webpack:///D:/vue/kaoshi3-fangweishangcheng/node_modules/uview-ui/components/u-navbar/u-navbar.vue?46ac","uni-app:///node_modules/uview-ui/components/u-navbar/u-navbar.vue","webpack:///D:/vue/kaoshi3-fangweishangcheng/node_modules/uview-ui/components/u-navbar/u-navbar.vue?ead5","webpack:///D:/vue/kaoshi3-fangweishangcheng/node_modules/uview-ui/components/u-navbar/u-navbar.vue?b44e"],"names":[],"mappings":";;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAiI;AACjI;AAC4D;AACL;AACsC;;;AAG7F;AACgL;AAChL,gBAAgB,6KAAU;AAC1B,EAAE,8EAAM;AACR,EAAE,+FAAM;AACR,EAAE,wGAAe;AACjB;AACA;AACA;AACA;AACA;AACA,EAAE,mGAAU;AACZ;AACA;;AAEA;AACe,gF;;;;;;;;;;;;ACvBf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;;;;;;;;;;;ACAA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA;AACA;AACA;AACA,aAAa,yTAEN;AACP,KAAK;AACL;AACA,aAAa,qRAEN;AACP;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,KAAK;AACL;AACA;;AAEA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;AChEA;AAAA;AAAA;AAAA;AAAsqB,CAAgB,knBAAG,EAAC,C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AC2E1rB,gF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA;;;;;;;;;;;;;;;;;;;;;;;kBAwBA,EACA,gBADA,EAEA,sDAFA,EAGA,IAHA,kBAGA,CACA,UAGA,CAPA,EAQA,WACA;AACA,aAFA,uBAEA,CACA;AACA,8BACA,oBACA,mBACA,CACA,CARA,EASA;AACA,cAVA,wBAUA,CACA,yBACA,CAZA,EARA,E;;;;;;;;;;;;;ACpGA;AAAA;AAAA;AAAA;AAA6xC,CAAgB,ynCAAG,EAAC,C;;;;;;;;;;;ACAjzC;AACA,OAAO,KAAU,EAAE,kBAKd","file":"node-modules/uview-ui/components/u-navbar/u-navbar.js","sourcesContent":["import { render, staticRenderFns, recyclableRender, components } from \"./u-navbar.vue?vue&type=template&id=75dad532&scoped=true&\"\nvar renderjs\nimport script from \"./u-navbar.vue?vue&type=script&lang=js&\"\nexport * from \"./u-navbar.vue?vue&type=script&lang=js&\"\nimport style0 from \"./u-navbar.vue?vue&type=style&index=0&id=75dad532&lang=scss&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n  script,\n  render,\n  staticRenderFns,\n  false,\n  null,\n  \"75dad532\",\n  null,\n  false,\n  components,\n  renderjs\n)\n\ncomponent.options.__file = \"node_modules/uview-ui/components/u-navbar/u-navbar.vue\"\nexport default component.exports","export * from \"-!../../../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--16-0!../../../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/template.js!../../../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/page-meta.js!../../../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./u-navbar.vue?vue&type=template&id=75dad532&scoped=true&\"","var components\ntry {\n  components = {\n    uStatusBar: function() {\n      return import(\n        /* webpackChunkName: \"node-modules/uview-ui/components/u-status-bar/u-status-bar\" */ \"uview-ui/components/u-status-bar/u-status-bar.vue\"\n      )\n    },\n    uIcon: function() {\n      return import(\n        /* webpackChunkName: \"node-modules/uview-ui/components/u-icon/u-icon\" */ \"uview-ui/components/u-icon/u-icon.vue\"\n      )\n    }\n  }\n} catch (e) {\n  if (\n    e.message.indexOf(\"Cannot find module\") !== -1 &&\n    e.message.indexOf(\".vue\") !== -1\n  ) {\n    console.error(e.message)\n    console.error(\"1. 排查组件名称拼写是否正确\")\n    console.error(\n      \"2. 排查组件是否符合 easycom 规范,文档:https://uniapp.dcloud.net.cn/collocation/pages?id=easycom\"\n    )\n    console.error(\n      \"3. 若组件不符合 easycom 规范,需手动引入,并在 components 中注册该组件\"\n    )\n  } else {\n    throw e\n  }\n}\nvar render = function() {\n  var _vm = this\n  var _h = _vm.$createElement\n  var _c = _vm._self._c || _h\n  var g0 =\n    _vm.fixed && _vm.placeholder\n      ? _vm.$u.addUnit(\n          _vm.$u.getPx(_vm.height) + _vm.$u.sys().statusBarHeight,\n          \"px\"\n        )\n      : null\n  var g1 = _vm.$u.addUnit(_vm.height)\n\n  var s0 = _vm.__get_style([\n    {\n      width: _vm.$u.addUnit(_vm.titleWidth)\n    },\n    _vm.$u.addStyle(_vm.titleStyle)\n  ])\n\n  _vm.$mp.data = Object.assign(\n    {},\n    {\n      $root: {\n        g0: g0,\n        g1: g1,\n        s0: s0\n      }\n    }\n  )\n}\nvar recyclableRender = false\nvar staticRenderFns = []\nrender._withStripped = true\n\nexport { render, staticRenderFns, recyclableRender, components }","import mod from \"-!../../../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--12-1!../../../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./u-navbar.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--12-1!../../../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./u-navbar.vue?vue&type=script&lang=js&\"","<template>\n\t<view class=\"u-navbar\">\n\t\t<view\n\t\t\tclass=\"u-navbar__placeholder\"\n\t\t\tv-if=\"fixed && placeholder\"\n\t\t\t:style=\"{\n\t\t\t\theight: $u.addUnit($u.getPx(height) + $u.sys().statusBarHeight,'px'),\n\t\t\t}\"\n\t\t></view>\n\t\t<view :class=\"[fixed && 'u-navbar--fixed']\">\n\t\t\t<u-status-bar\n\t\t\t\tv-if=\"safeAreaInsetTop\"\n\t\t\t\t:bgColor=\"bgColor\"\n\t\t\t></u-status-bar>\n\t\t\t<view\n\t\t\t\tclass=\"u-navbar__content\"\n\t\t\t\t:class=\"[border && 'u-border-bottom']\"\n\t\t\t\t:style=\"{\n\t\t\t\t\theight: $u.addUnit(height),\n\t\t\t\t\tbackgroundColor: bgColor,\n\t\t\t\t}\"\n\t\t\t>\n\t\t\t\t<view\n\t\t\t\t\tclass=\"u-navbar__content__left\"\n\t\t\t\t\thover-class=\"u-navbar__content__left--hover\"\n\t\t\t\t\thover-start-time=\"150\"\n\t\t\t\t\t@tap=\"leftClick\"\n\t\t\t\t>\n\t\t\t\t\t<slot name=\"left\">\n\t\t\t\t\t\t<u-icon\n\t\t\t\t\t\t\tv-if=\"leftIcon\"\n\t\t\t\t\t\t\t:name=\"leftIcon\"\n\t\t\t\t\t\t\t:size=\"leftIconSize\"\n\t\t\t\t\t\t\t:color=\"leftIconColor\"\n\t\t\t\t\t\t></u-icon>\n\t\t\t\t\t\t<text\n\t\t\t\t\t\t\tv-if=\"leftText\"\n\t\t\t\t\t\t\t:style=\"{\n\t\t\t\t\t\t\t\tcolor: leftIconColor\n\t\t\t\t\t\t\t}\"\n\t\t\t\t\t\t\tclass=\"u-navbar__content__left__text\"\n\t\t\t\t\t\t>{{ leftText }}</text>\n\t\t\t\t\t</slot>\n\t\t\t\t</view>\n\t\t\t\t<slot name=\"center\">\n\t\t\t\t\t<text\n\t\t\t\t\t\tclass=\"u-line-1 u-navbar__content__title\"\n\t\t\t\t\t\t:style=\"[{\n\t\t\t\t\t\t\twidth: $u.addUnit(titleWidth),\n\t\t\t\t\t\t}, $u.addStyle(titleStyle)]\"\n\t\t\t\t\t>{{ title }}</text>\n\t\t\t\t</slot>\n\t\t\t\t<view\n\t\t\t\t\tclass=\"u-navbar__content__right\"\n\t\t\t\t\tv-if=\"$slots.right || rightIcon || rightText\"\n\t\t\t\t\t@tap=\"rightClick\"\n\t\t\t\t>\n\t\t\t\t\t<slot name=\"right\">\n\t\t\t\t\t\t<u-icon\n\t\t\t\t\t\t\tv-if=\"rightIcon\"\n\t\t\t\t\t\t\t:name=\"rightIcon\"\n\t\t\t\t\t\t\tsize=\"20\"\n\t\t\t\t\t\t></u-icon>\n\t\t\t\t\t\t<text\n\t\t\t\t\t\t\tv-if=\"rightText\"\n\t\t\t\t\t\t\tclass=\"u-navbar__content__right__text\"\n\t\t\t\t\t\t>{{ rightText }}</text>\n\t\t\t\t\t</slot>\n\t\t\t\t</view>\n\t\t\t</view>\n\t\t</view>\n\t</view>\n</template>\n\n<script>\n\timport props from './props.js';\n\t/**\n\t * Navbar 自定义导航栏\n\t * @description 此组件一般用于在特殊情况下,需要自定义导航栏的时候用到,一般建议使用uni-app带的导航栏。\n\t * @tutorial https://www.uviewui.com/components/navbar.html\n\t * @property {Boolean}\t\t\tsafeAreaInsetTop\t是否开启顶部安全区适配  (默认 true )\n\t * @property {Boolean}\t\t\tplaceholder\t\t\t固定在顶部时,是否生成一个等高元素,以防止塌陷 (默认 false )\n\t * @property {Boolean}\t\t\tfixed\t\t\t\t导航栏是否固定在顶部 (默认 false )\n\t * @property {Boolean}\t\t\tborder\t\t\t\t导航栏底部是否显示下边框 (默认 false )\n\t * @property {String}\t\t\tleftIcon\t\t\t左边返回图标的名称,只能为uView自带的图标 (默认 'arrow-left' )\n\t * @property {String}\t\t\tleftText\t\t\t左边的提示文字\n\t * @property {String}\t\t\trightText\t\t\t右边的提示文字\n\t * @property {String}\t\t\trightIcon\t\t\t右边返回图标的名称,只能为uView自带的图标\n\t * @property {String}\t\t\ttitle\t\t\t\t导航栏标题,如设置为空字符,将会隐藏标题占位区域\n\t * @property {String}\t\t\tbgColor\t\t\t\t导航栏背景设置 (默认 '#ffffff' )\n\t * @property {String | Number}\ttitleWidth\t\t\t导航栏标题的最大宽度,内容超出会以省略号隐藏 (默认 '400rpx' )\n\t * @property {String | Number}\theight\t\t\t\t导航栏高度(不包括状态栏高度在内,内部自动加上)(默认 '44px' )\n\t * @property {String | Number}\tleftIconSize\t\t左侧返回图标的大小(默认 20px )\n\t * @property {String | Number}\tleftIconColor\t\t左侧返回图标的颜色(默认 #303133 )\n\t * @property {Boolean}\t        autoBack\t\t\t点击左侧区域(返回图标),是否自动返回上一页(默认 false )\n\t * @property {Object | String}\ttitleStyle\t\t\t标题的样式,对象或字符串\n\t * @event {Function} leftClick\t\t点击左侧区域\n\t * @event {Function} rightClick\t\t点击右侧区域\n\t * @example <u-navbar title=\"剑未配妥,出门已是江湖\" left-text=\"返回\" right-text=\"帮助\" @click-left=\"onClickBack\" @click-right=\"onClickRight\"></u-navbar>\n\t */\n\texport default {\n\t\tname: 'u-navbar',\n\t\tmixins: [uni.$u.mpMixin, uni.$u.mixin, props],\n\t\tdata() {\n\t\t\treturn {\n\n\t\t\t}\n\t\t},\n\t\tmethods: {\n\t\t\t// 点击左侧区域\n\t\t\tleftClick() {\n\t\t\t\t// 如果配置了autoBack,自动返回上一页\n\t\t\t\tthis.$emit('leftClick')\n\t\t\t\tif(this.autoBack) {\n\t\t\t\t\tuni.navigateBack()\n\t\t\t\t}\n\t\t\t},\n\t\t\t// 点击右侧区域\n\t\t\trightClick() {\n\t\t\t\tthis.$emit('rightClick')\n\t\t\t},\n\t\t}\n\t}\n</script>\n\n<style lang=\"scss\" scoped>\n\t@import \"../../libs/css/components.scss\";\n\n\t.u-navbar {\n\n\t\t&--fixed {\n\t\t\tposition: fixed;\n\t\t\tleft: 0;\n\t\t\tright: 0;\n\t\t\ttop: 0;\n\t\t\tz-index: 11;\n\t\t}\n\n\t\t&__content {\n\t\t\t@include flex(row);\n\t\t\talign-items: center;\n\t\t\theight: 44px;\n\t\t\tbackground-color: #9acafc;\n\t\t\tposition: relative;\n\t\t\tjustify-content: center;\n\n\t\t\t&__left,\n\t\t\t&__right {\n\t\t\t\tpadding: 0 13px;\n\t\t\t\tposition: absolute;\n\t\t\t\ttop: 0;\n\t\t\t\tbottom: 0;\n\t\t\t\t@include flex(row);\n\t\t\t\talign-items: center;\n\t\t\t}\n\n\t\t\t&__left {\n\t\t\t\tleft: 0;\n\t\t\t\t\n\t\t\t\t&--hover {\n\t\t\t\t\topacity: 0.7;\n\t\t\t\t}\n\n\t\t\t\t&__text {\n\t\t\t\t\tfont-size: 15px;\n\t\t\t\t\tmargin-left: 3px;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t&__title {\n\t\t\t\ttext-align: center;\n\t\t\t\tfont-size: 16px;\n\t\t\t\tcolor: $u-main-color;\n\t\t\t}\n\n\t\t\t&__right {\n\t\t\t\tright: 0;\n\n\t\t\t\t&__text {\n\t\t\t\t\tfont-size: 15px;\n\t\t\t\t\tmargin-left: 3px;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n</style>\n","import mod from \"-!../../../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-2!../../../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-3!../../../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/sass-loader/dist/cjs.js??ref--8-oneOf-1-4!../../../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-5!../../../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./u-navbar.vue?vue&type=style&index=0&id=75dad532&lang=scss&scoped=true&\"; export default mod; export * from \"-!../../../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-2!../../../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-3!../../../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/sass-loader/dist/cjs.js??ref--8-oneOf-1-4!../../../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-5!../../../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./u-navbar.vue?vue&type=style&index=0&id=75dad532&lang=scss&scoped=true&\"","// extracted by mini-css-extract-plugin\n    if(module.hot) {\n      // 1670378477623\n      var cssReload = require(\"D:/高级前台制作/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/hmr/hotModuleReplacement.js\")(module.id, {\"hmr\":true,\"publicPath\":\"../../\",\"locals\":false});\n      module.hot.dispose(cssReload);\n      module.hot.accept(undefined, cssReload);\n    }\n  "],"sourceRoot":""}