u-top-tips.js.map 12 KB

1
  1. {"version":3,"sources":["webpack:///D:/星火篮球维护/代码/小程序销售端/spark-sale/uview-ui/components/u-top-tips/u-top-tips.vue?f52d","webpack:///D:/星火篮球维护/代码/小程序销售端/spark-sale/uview-ui/components/u-top-tips/u-top-tips.vue?baa7","webpack:///D:/星火篮球维护/代码/小程序销售端/spark-sale/uview-ui/components/u-top-tips/u-top-tips.vue?c99f","webpack:///D:/星火篮球维护/代码/小程序销售端/spark-sale/uview-ui/components/u-top-tips/u-top-tips.vue?aa56","uni-app:///uview-ui/components/u-top-tips/u-top-tips.vue","webpack:///D:/星火篮球维护/代码/小程序销售端/spark-sale/uview-ui/components/u-top-tips/u-top-tips.vue?508f","webpack:///D:/星火篮球维护/代码/小程序销售端/spark-sale/uview-ui/components/u-top-tips/u-top-tips.vue?fb26"],"names":[],"mappings":";;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAmI;AACnI;AAC8D;AACL;AACsC;;;AAG/F;AACqK;AACrK,gBAAgB,+KAAU;AAC1B,EAAE,gFAAM;AACR,EAAE,iGAAM;AACR,EAAE,0GAAe;AACjB;AACA;AACA;AACA;AACA;AACA,EAAE,qGAAU;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;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;ACRA;AAAA;AAAA;AAAA;AAAomB,CAAgB,8nBAAG,EAAC,C;;;;;;;;;;;;;;;;;;;;ACQxnB;;;;;;;;AAQA;AACA,oBADA;AAEA;AACA;AACA;AACA,4BADA;;AAGA,gBAHA,EAFA;;;;;;AAWA;AACA;AACA,4BADA;AAEA,iBAFA,EAZA,EAFA;;;AAmBA,MAnBA,kBAmBA;AACA;AACA,iBADA,EACA;AACA,mBAFA,EAEA;AACA,eAHA,EAGA;AACA,qBAJA,EAIA;AACA,oBALA,CAKA;AALA;AAOA,GA3BA;AA4BA;AACA,WADA,qBACA;AACA;AACA,KAHA,EA5BA;;AAiCA;AACA,QADA,kBACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAJA,EAIA,aAJA;AAKA,KAfA,EAjCA,E;;;;;;;;;;;;AChBA;AAAA;AAAA;AAAA;AAA8nC,CAAgB,wmCAAG,EAAC,C;;;;;;;;;;;ACAlpC;AACA,OAAO,KAAU,EAAE,kBAKd","file":"uview-ui/components/u-top-tips/u-top-tips.js","sourcesContent":["import { render, staticRenderFns, recyclableRender, components } from \"./u-top-tips.vue?vue&type=template&id=0a44a200&scoped=true&\"\nvar renderjs\nimport script from \"./u-top-tips.vue?vue&type=script&lang=js&\"\nexport * from \"./u-top-tips.vue?vue&type=script&lang=js&\"\nimport style0 from \"./u-top-tips.vue?vue&type=style&index=0&id=0a44a200&lang=scss&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!E:\\\\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 \"0a44a200\",\n null,\n false,\n components,\n renderjs\n)\n\ncomponent.options.__file = \"uview-ui/components/u-top-tips/u-top-tips.vue\"\nexport default component.exports","export * from \"-!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\loaders\\\\templateLoader.js??vue-loader-options!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--16-0!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\template.js!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-uni-app-loader\\\\page-meta.js!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./u-top-tips.vue?vue&type=template&id=0a44a200&scoped=true&\"","var components\nvar render = function() {\n var _vm = this\n var _h = _vm.$createElement\n var _c = _vm._self._c || _h\n}\nvar recyclableRender = false\nvar staticRenderFns = []\nrender._withStripped = true\n\nexport { render, staticRenderFns, recyclableRender, components }","import mod from \"-!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\babel-loader\\\\lib\\\\index.js!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--12-1!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\script.js!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./u-top-tips.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\babel-loader\\\\lib\\\\index.js!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--12-1!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\script.js!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./u-top-tips.vue?vue&type=script&lang=js&\"","<template>\r\n\t<view class=\"u-tips\" :class=\"['u-' + type, isShow ? 'u-tip-show' : '']\" :style=\"{\r\n\t\ttop: navbarHeight + 'px',\r\n\t\tzIndex: uZIndex\r\n\t}\">{{ title }}</view>\r\n</template>\r\n\r\n<script>\r\n\t/**\r\n\t * topTips 顶部提示\r\n\t * @description 该组件一般用于页面顶部向下滑出一个提示,尔后自动收起的场景。\r\n\t * @tutorial https://www.uviewui.com/components/topTips.html\r\n\t * @property {String Number} navbar-height 导航栏高度(包含状态栏高度在内),单位PX\r\n\t * @property {String Number} z-index z-index值(默认975)\r\n\t * @example <u-top-tips ref=\"uTips\"></u-top-tips>\r\n\t */\r\n\texport default {\r\n\t\tname: \"u-top-tips\",\r\n\t\tprops: {\r\n\t\t\t// 导航栏高度,用于提示的初始化\r\n\t\t\tnavbarHeight: {\r\n\t\t\t\ttype: [Number, String],\r\n\t\t\t\t// #ifndef H5\r\n\t\t\t\tdefault: 0,\r\n\t\t\t\t// #endif\r\n\t\t\t\t// #ifdef H5\r\n\t\t\t\tdefault: 44,\r\n\t\t\t\t// #endif\r\n\t\t\t},\r\n\t\t\t// z-index值\r\n\t\t\tzIndex: {\r\n\t\t\t\ttype: [Number, String],\r\n\t\t\t\tdefault: ''\r\n\t\t\t}\r\n\t\t},\r\n\t\tdata() {\r\n\t\t\treturn {\r\n\t\t\t\ttimer: null, // 定时器\r\n\t\t\t\tisShow: false, // 是否显示消息组件\r\n\t\t\t\ttitle: '', // 组件中显示的消息内容\r\n\t\t\t\ttype: 'primary', // 消息的类型(颜色不同),primary,success,error,warning,info\r\n\t\t\t\tduration: 2000, // 组件显示的时间,单位为毫秒\r\n\t\t\t};\r\n\t\t},\r\n\t\tcomputed: {\r\n\t\t\tuZIndex() {\r\n\t\t\t\treturn this.zIndex ? this.zIndex : this.$u.zIndex.topTips;\r\n\t\t\t}\r\n\t\t},\r\n\t\tmethods: {\r\n\t\t\tshow(config = {}) {\r\n\t\t\t\t// 先清除定时器(可能是上一次定义的,需要清除了再开始新的)\r\n\t\t\t\tclearTimeout(this.timer);\r\n\t\t\t\t// 时间,内容,类型主题(type)等参数\r\n\t\t\t\tif (config.duration) this.duration = config.duration;\r\n\t\t\t\tif (config.type) this.type = config.type;\r\n\t\t\t\tthis.title = config.title;\r\n\t\t\t\tthis.isShow = true;\r\n\t\t\t\t// 倒计时\r\n\t\t\t\tthis.timer = setTimeout(() => {\r\n\t\t\t\t\tthis.isShow = false;\r\n\t\t\t\t\tclearTimeout(this.timer);\r\n\t\t\t\t\tthis.timer = null;\r\n\t\t\t\t}, this.duration);\r\n\t\t\t}\r\n\t\t}\r\n\t};\r\n</script>\r\n\r\n<style lang=\"scss\" scoped>\r\n\t@import \"../../libs/css/style.components.scss\";\r\n\t\r\n\tview {\r\n\t\tbox-sizing: border-box;\r\n\t}\r\n\r\n\t// 顶部弹出类型样式\r\n\t.u-tips {\r\n\t\twidth: 100%;\r\n\t\tposition: fixed;\r\n\t\tz-index: 1;\r\n\t\tpadding: 20rpx 30rpx;\r\n\t\tcolor: #FFFFFF;\r\n\t\tfont-size: 28rpx;\r\n\t\tleft: 0;\r\n\t\tright: 0;\r\n\t\t@include vue-flex;\r\n\t\talign-items: center;\r\n\t\tjustify-content: center;\r\n\t\topacity: 0;\r\n\t\t// 此处为最核心点,translateY(-100%)意味着将其从Y轴隐藏(隐藏到顶部(h5)或者说导航栏(app)下面)\r\n\t\ttransform: translateY(-100%);\r\n\t\ttransition: all 0.35s linear;\r\n\t}\r\n\r\n\t.u-tip-show {\r\n\t\ttransform: translateY(0);\r\n\t\topacity: 1;\r\n\t\tz-index: 99;\r\n\t}\r\n\r\n\t.u-primary {\r\n\t\tbackground: $u-type-primary;\r\n\t}\r\n\r\n\t.u-success {\r\n\t\tbackground: $u-type-success;\r\n\t}\r\n\r\n\t.u-warning {\r\n\t\tbackground: $u-type-warning;\r\n\t}\r\n\r\n\t.u-error {\r\n\t\tbackground: $u-type-error;\r\n\t}\r\n\r\n\t.u-info {\r\n\t\tbackground: $u-type-info;\r\n\t}\r\n</style>\r\n","import mod from \"-!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\mini-css-extract-plugin\\\\dist\\\\loader.js??ref--8-oneOf-1-0!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\css-loader\\\\dist\\\\cjs.js??ref--8-oneOf-1-1!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\loaders\\\\stylePostLoader.js!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--8-oneOf-1-2!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\postcss-loader\\\\src\\\\index.js??ref--8-oneOf-1-3!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\sass-loader\\\\dist\\\\cjs.js??ref--8-oneOf-1-4!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--8-oneOf-1-5!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./u-top-tips.vue?vue&type=style&index=0&id=0a44a200&lang=scss&scoped=true&\"; export default mod; export * from \"-!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\mini-css-extract-plugin\\\\dist\\\\loader.js??ref--8-oneOf-1-0!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\css-loader\\\\dist\\\\cjs.js??ref--8-oneOf-1-1!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\loaders\\\\stylePostLoader.js!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--8-oneOf-1-2!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\postcss-loader\\\\src\\\\index.js??ref--8-oneOf-1-3!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\sass-loader\\\\dist\\\\cjs.js??ref--8-oneOf-1-4!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--8-oneOf-1-5!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./u-top-tips.vue?vue&type=style&index=0&id=0a44a200&lang=scss&scoped=true&\"","// extracted by mini-css-extract-plugin\n if(module.hot) {\n // 1631763038421\n var cssReload = require(\"E:/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":""}