111
This commit is contained in:
+1
-1
@@ -1 +1 @@
|
||||
{"version":3,"file":"u-safe-bottom.js","sources":["../../software/HBuilderX.4.23.2024070804/HBuilderX/plugins/uniapp-cli-vite/uniComponent:/RDovR2l0V29ya1BsYWNlL2Nhc2VEYXRhQmFzZS9ub2RlX21vZHVsZXMvdXZpZXctcGx1cy9jb21wb25lbnRzL3Utc2FmZS1ib3R0b20vdS1zYWZlLWJvdHRvbS52dWU"],"sourcesContent":["import Component from 'D:/GitWorkPlace/caseDataBase/node_modules/uview-plus/components/u-safe-bottom/u-safe-bottom.vue'\nwx.createComponent(Component)"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,GAAG,gBAAgB,SAAS;"}
|
||||
{"version":3,"file":"u-safe-bottom.js","sources":["node_modules/uview-plus/components/u-safe-bottom/u-safe-bottom.vue","../../software/HBuilderX.4.23.2024070804/HBuilderX/plugins/uniapp-cli-vite/uniComponent:/RDovR2l0V29ya1BsYWNlL2Nhc2VEYXRhQmFzZS9ub2RlX21vZHVsZXMvdXZpZXctcGx1cy9jb21wb25lbnRzL3Utc2FmZS1ib3R0b20vdS1zYWZlLWJvdHRvbS52dWU"],"sourcesContent":["<template>\r\n\t<view\r\n\t\tclass=\"u-safe-bottom\"\r\n\t\t:style=\"[style]\"\r\n\t\t:class=\"[!isNvue && 'u-safe-area-inset-bottom']\"\r\n\t>\r\n\t</view>\r\n</template>\r\n\r\n<script>\r\n\timport { props } from \"./props.js\";\r\n\timport { mpMixin } from '../../libs/mixin/mpMixin';\r\n\timport { mixin } from '../../libs/mixin/mixin';\r\n\timport { addStyle, deepMerge, addUnit, getWindowInfo } from '../../libs/function/index';\r\n\t/**\r\n\t * SafeBottom 底部安全区\r\n\t * @description 这个适配,主要是针对IPhone X等一些底部带指示条的机型,指示条的操作区域与页面底部存在重合,容易导致用户误操作,因此我们需要针对这些机型进行底部安全区适配。\r\n\t * @tutorial https://ijry.github.io/uview-plus/components/safeAreaInset.html\r\n\t * @property {type}\t\tprop_name\r\n\t * @property {Object}\tcustomStyle\t定义需要用到的外部样式\r\n\t *\r\n\t * @event {Function()}\r\n\t * @example <u-status-bar></u-status-bar>\r\n\t */\r\n\texport default {\r\n\t\tname: \"u-safe-bottom\",\r\n\t\tmixins: [mpMixin, mixin, props],\r\n\t\tdata() {\r\n\t\t\treturn {\r\n\t\t\t\tsafeAreaBottomHeight: 0,\r\n\t\t\t\tisNvue: false,\r\n\t\t\t};\r\n\t\t},\r\n\t\tcomputed: {\r\n\t\t\tstyle() {\r\n\t\t\t\tconst style = {};\r\n\t\t\t\t// #ifdef APP-NVUE || MP-TOUTIAO\r\n\t\t\t\t// nvue下,高度使用js计算填充\r\n\t\t\t\tstyle.height = addUnit(getWindowInfo().safeAreaInsets.bottom, 'px');\r\n\t\t\t\t// #endif\r\n\t\t\t\treturn deepMerge(style, addStyle(this.customStyle));\r\n\t\t\t},\r\n\t\t},\r\n\t\tmounted() {\r\n\t\t\t// #ifdef APP-NVUE\r\n\t\t\t// 标识为是否nvue\r\n\t\t\tthis.isNvue = true;\r\n\t\t\t// #endif\r\n\t\t},\r\n\t};\r\n</script>\r\n\r\n<style lang=\"scss\" scoped>\r\n\t.u-safe-bottom {\r\n\t\t/* #ifndef APP-NVUE */\r\n\t\twidth: 100%;\r\n\t\t/* #endif */\r\n\t}\r\n</style>\r\n","import Component from 'D:/GitWorkPlace/caseDataBase/node_modules/uview-plus/components/u-safe-bottom/u-safe-bottom.vue'\nwx.createComponent(Component)"],"names":["mpMixin","mixin","props","deepMerge","addStyle"],"mappings":";;AAwBC,MAAK,YAAU;AAAA,EACd,MAAM;AAAA,EACN,QAAQ,CAACA,cAAAA,SAASC,cAAK,OAAEC,sBAAK;AAAA,EAC9B,OAAO;AACN,WAAO;AAAA,MACN,sBAAsB;AAAA,MACtB,QAAQ;AAAA;EAET;AAAA,EACD,UAAU;AAAA,IACT,QAAQ;AACP,YAAM,QAAQ,CAAA;AAKd,aAAOC,cAAAA,UAAU,OAAOC,cAAAA,SAAS,KAAK,WAAW,CAAC;AAAA,IAClD;AAAA,EACD;AAAA,EACD,UAAU;AAAA,EAKT;;;;;;;;;AC/CH,GAAG,gBAAgB,SAAS;","x_google_ignoreList":[0]}
|
||||
Reference in New Issue
Block a user