@zero-bits/taro-components 1.0.6 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/components/Permission/PermissionProvider.js +35 -1
- package/es/components/Permission/index.js +2 -1
- package/es/components/Permission/store.js +158 -1
- package/es/components/Text/index.js +136 -1
- package/es/components/View/index.d.ts +10 -0
- package/es/components/View/index.js +220 -1
- package/es/components/index.js +3 -1
- package/es/context/index.js +6 -1
- package/es/hooks/index.js +2 -1
- package/es/hooks/usePermission.js +18 -1
- package/es/hooks/useWeappUpdate.js +33 -1
- package/es/index.js +3 -1
- package/es/styles/index.css +1 -120
- package/es/types/index.js +1 -1
- package/lib/components/Permission/PermissionProvider.js +41 -1
- package/lib/components/Permission/index.js +20 -1
- package/lib/components/Permission/store.js +164 -1
- package/lib/components/Text/index.js +145 -1
- package/lib/components/View/index.d.ts +10 -0
- package/lib/components/View/index.js +227 -1
- package/lib/components/index.js +36 -1
- package/lib/context/index.js +12 -1
- package/lib/hooks/index.js +19 -1
- package/lib/hooks/usePermission.js +24 -1
- package/lib/hooks/useWeappUpdate.js +38 -1
- package/lib/index.js +63 -1
- package/lib/styles/index.css +1 -120
- package/lib/types/index.js +5 -1
- package/package.json +24 -1
|
@@ -1 +1,220 @@
|
|
|
1
|
-
var _0x469fe9=_0xd8cc;(function(_0x54f979,_0x52b345){var _0x441b74=_0xd8cc,_0x465150=_0x54f979();while(!![]){try{var _0x4e9ccc=-parseInt(_0x441b74(0xe2))/0x1*(-parseInt(_0x441b74(0xe8))/0x2)+-parseInt(_0x441b74(0xc9))/0x3+-parseInt(_0x441b74(0xc1))/0x4*(parseInt(_0x441b74(0xc6))/0x5)+-parseInt(_0x441b74(0xd9))/0x6*(parseInt(_0x441b74(0xcd))/0x7)+parseInt(_0x441b74(0xdf))/0x8+parseInt(_0x441b74(0xb3))/0x9*(-parseInt(_0x441b74(0xa5))/0xa)+parseInt(_0x441b74(0xbd))/0xb;if(_0x4e9ccc===_0x52b345)break;else _0x465150['push'](_0x465150['shift']());}catch(_0x3dc30d){_0x465150['push'](_0x465150['shift']());}}}(_0x6b67,0xdd02c));var _excluded=[_0x469fe9(0xb7),_0x469fe9(0xdd),_0x469fe9(0xef),_0x469fe9(0xa0),_0x469fe9(0xd5),'around','between','className','justifyItems',_0x469fe9(0xd7),_0x469fe9(0x98),'gap',_0x469fe9(0xe7),_0x469fe9(0xda),'flexShrink','flexGrow',_0x469fe9(0x96),_0x469fe9(0xc8),_0x469fe9(0x9b),_0x469fe9(0xd0),_0x469fe9(0x9a),_0x469fe9(0xa2),'style',_0x469fe9(0xa6),_0x469fe9(0xae),_0x469fe9(0x9e),_0x469fe9(0x9f),'mLeft',_0x469fe9(0xe6),_0x469fe9(0xf2),'mVertical','padding',_0x469fe9(0xb1),'pBottom',_0x469fe9(0xcb),_0x469fe9(0xbb),_0x469fe9(0xaa),_0x469fe9(0xdb),_0x469fe9(0xcc),'hover','skeleton',_0x469fe9(0xea),_0x469fe9(0xce),'left',_0x469fe9(0xaf),_0x469fe9(0xac),_0x469fe9(0xe4),_0x469fe9(0xb8),'radius','border',_0x469fe9(0xbe),_0x469fe9(0xc2),'borderStyle'];function _typeof(_0x4c295a){'@babel/helpers - typeof';var _0x38220c=_0x469fe9;return _typeof=_0x38220c(0xc7)==typeof Symbol&&_0x38220c(0xb4)==typeof Symbol[_0x38220c(0x99)]?function(_0x129e34){return typeof _0x129e34;}:function(_0x25a1df){var _0x15c6af=_0x38220c;return _0x25a1df&&_0x15c6af(0xc7)==typeof Symbol&&_0x25a1df[_0x15c6af(0xe9)]===Symbol&&_0x25a1df!==Symbol[_0x15c6af(0xb6)]?_0x15c6af(0xb4):typeof _0x25a1df;},_typeof(_0x4c295a);}function ownKeys(_0x4848d0,_0x3d443f){var _0x402b9=_0x469fe9,_0x36bd2f=Object[_0x402b9(0xcf)](_0x4848d0);if(Object[_0x402b9(0xf3)]){var _0x413a00=Object['getOwnPropertySymbols'](_0x4848d0);_0x3d443f&&(_0x413a00=_0x413a00[_0x402b9(0xee)](function(_0x5b92f9){var _0x45fee0=_0x402b9;return Object[_0x45fee0(0xb9)](_0x4848d0,_0x5b92f9)[_0x45fee0(0xb5)];})),_0x36bd2f[_0x402b9(0xbc)][_0x402b9(0xf1)](_0x36bd2f,_0x413a00);}return _0x36bd2f;}function _objectSpread(_0x2ad5bd){var _0x4aaca4=_0x469fe9;for(var _0x222f56=0x1;_0x222f56<arguments['length'];_0x222f56++){var _0x55348a=null!=arguments[_0x222f56]?arguments[_0x222f56]:{};_0x222f56%0x2?ownKeys(Object(_0x55348a),!0x0)['forEach'](function(_0x33a5ee){_defineProperty(_0x2ad5bd,_0x33a5ee,_0x55348a[_0x33a5ee]);}):Object[_0x4aaca4(0xed)]?Object[_0x4aaca4(0xc5)](_0x2ad5bd,Object[_0x4aaca4(0xed)](_0x55348a)):ownKeys(Object(_0x55348a))[_0x4aaca4(0xab)](function(_0x57b1e8){var _0x48774d=_0x4aaca4;Object[_0x48774d(0x9d)](_0x2ad5bd,_0x57b1e8,Object[_0x48774d(0xb9)](_0x55348a,_0x57b1e8));});}return _0x2ad5bd;}function _defineProperty(_0x18fbba,_0x4d2a4e,_0x1b10f8){return _0x4d2a4e=_toPropertyKey(_0x4d2a4e),_0x4d2a4e in _0x18fbba?Object['defineProperty'](_0x18fbba,_0x4d2a4e,{'value':_0x1b10f8,'enumerable':!![],'configurable':!![],'writable':!![]}):_0x18fbba[_0x4d2a4e]=_0x1b10f8,_0x18fbba;}function _toPropertyKey(_0x321bf8){var _0x42a85a=_0x469fe9,_0x3468d9=_toPrimitive(_0x321bf8,_0x42a85a(0xde));return'symbol'==_typeof(_0x3468d9)?_0x3468d9:String(_0x3468d9);}function _toPrimitive(_0x39b898,_0x2a58a1){var _0x194ecf=_0x469fe9;if(_0x194ecf(0x94)!=_typeof(_0x39b898)||!_0x39b898)return _0x39b898;var _0x4e2c6a=_0x39b898[Symbol[_0x194ecf(0xbf)]];if(void 0x0!==_0x4e2c6a){var _0x203f48=_0x4e2c6a[_0x194ecf(0xca)](_0x39b898,_0x2a58a1||_0x194ecf(0xa7));if(_0x194ecf(0x94)!=_typeof(_0x203f48))return _0x203f48;throw new TypeError(_0x194ecf(0xd2));}return('string'===_0x2a58a1?String:Number)(_0x39b898);}function _objectWithoutProperties(_0x1412d7,_0x3bd9a6){var _0x31bf82=_0x469fe9;if(_0x1412d7==null)return{};var _0x211bc7=_objectWithoutPropertiesLoose(_0x1412d7,_0x3bd9a6),_0x474516,_0x22a43d;if(Object[_0x31bf82(0xf3)]){var _0x3d97d4=Object[_0x31bf82(0xf3)](_0x1412d7);for(_0x22a43d=0x0;_0x22a43d<_0x3d97d4[_0x31bf82(0xf4)];_0x22a43d++){_0x474516=_0x3d97d4[_0x22a43d];if(_0x3bd9a6['indexOf'](_0x474516)>=0x0)continue;if(!Object[_0x31bf82(0xb6)][_0x31bf82(0xa9)][_0x31bf82(0xca)](_0x1412d7,_0x474516))continue;_0x211bc7[_0x474516]=_0x1412d7[_0x474516];}}return _0x211bc7;}function _objectWithoutPropertiesLoose(_0x1eef39,_0x225913){var _0x26f657=_0x469fe9;if(_0x1eef39==null)return{};var _0x1ddd90={},_0x43b3dc=Object[_0x26f657(0xcf)](_0x1eef39),_0xf4b75b,_0x4d71fb;for(_0x4d71fb=0x0;_0x4d71fb<_0x43b3dc[_0x26f657(0xf4)];_0x4d71fb++){_0xf4b75b=_0x43b3dc[_0x4d71fb];if(_0x225913[_0x26f657(0xdc)](_0xf4b75b)>=0x0)continue;_0x1ddd90[_0xf4b75b]=_0x1eef39[_0xf4b75b];}return _0x1ddd90;}function _0xd8cc(_0x3d3db6,_0xb1d1b6){_0x3d3db6=_0x3d3db6-0x94;var _0x6b67c6=_0x6b67();var _0xd8cc54=_0x6b67c6[_0x3d3db6];return _0xd8cc54;}import{forwardRef}from'react';import{View as _0x4f1b17}from'@tarojs/components';function _0x6b67(){var _0x3828bd=['8944760Ubrmob','justifyItems','calc(env(safe-area-inset-','104831ujIHWg','both','bottom','flex-start','mRight','rowGap','14MObTbD','constructor','position','pBottom','View','getOwnPropertyDescriptors','filter','column','content-around','apply','mHorizontal','getOwnPropertySymbols','length','100%','number','object','env(safe-area-inset-','flexBasis','mVertical','alignSelf','iterator','height','hidden','radius','defineProperty','mTop','mBottom','wrap','hover','bgColor','padding','concat','284250yzIiMm','children','default','none','propertyIsEnumerable','pHorizontal','forEach','top','className','margin','right','flex-end','pTop','skeleton','405DBGaoq','symbol','enumerable','prototype','full','overflow','getOwnPropertyDescriptor','style','pRight','push','47719980YvwXgP','borderColor','toPrimitive','zero:opacity-70','1756iGYShl','borderWidth','borderStyle',')\x20+\x20','defineProperties','15855WTwsZH','function','opacity','4852587cqnkrD','call','pLeft','safeArea','6972763VIqXJR','zIndex','keys','width','center','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','around','left','flex','displayName','alignItems','flexGrow','6QdDPkX','columnGap','pVertical','indexOf','row','string'];_0x6b67=function(){return _0x3828bd;};return _0x6b67();}import _0x34124a from'classnames';import'../../styles/index.css';import{jsx as _0x547f86}from'react/jsx-runtime';var px=function px(_0x543b20){var _0x19f42a=_0x469fe9;if(_0x543b20===undefined||_0x543b20===null||_0x543b20==='')return undefined;return typeof _0x543b20===_0x19f42a(0xf6)||!isNaN(Number(_0x543b20))?''[_0x19f42a(0xa4)](_0x543b20,'px'):String(_0x543b20);},View=forwardRef(function(_0x217b66,_0x8b6f76){var _0x1ee401=_0x469fe9,_0x27e679=_0x217b66[_0x1ee401(0xb7)],_0x5b62ea=_0x217b66[_0x1ee401(0xdd)],_0x2321f6=_0x217b66[_0x1ee401(0xef)],_0x547234=_0x217b66[_0x1ee401(0xa0)],_0x8e9580=_0x217b66[_0x1ee401(0xd5)],_0x966585=_0x217b66[_0x1ee401(0xd3)],_0x5b3abf=_0x217b66['between'],_0x1ddad9=_0x217b66[_0x1ee401(0xad)],_0x5035d3=_0x217b66[_0x1ee401(0xe0)],_0xfdd49a=_0x217b66[_0x1ee401(0xd7)],_0x516d96=_0x217b66[_0x1ee401(0x98)],_0x3e68b6=_0x217b66['gap'],_0x40a8a5=_0x217b66[_0x1ee401(0xe7)],_0x40b1ec=_0x217b66['columnGap'],_0x383b53=_0x217b66['flexShrink'],_0x2cd397=_0x217b66[_0x1ee401(0xd8)],_0x3ad8f6=_0x217b66['flexBasis'],_0x3adc92=_0x217b66[_0x1ee401(0xc8)],_0x532d0b=_0x217b66[_0x1ee401(0x9b)],_0x5468f0=_0x217b66[_0x1ee401(0xd0)],_0x3135f5=_0x217b66[_0x1ee401(0x9a)],_0x3fb451=_0x217b66[_0x1ee401(0xa2)],_0x51fdec=_0x217b66[_0x1ee401(0xba)],_0x1b7cfb=_0x51fdec===void 0x0?{}:_0x51fdec,_0x5c3af9=_0x217b66['children'],_0x150708=_0x217b66[_0x1ee401(0xae)],_0x46ec8f=_0x217b66[_0x1ee401(0x9e)],_0x27a041=_0x217b66[_0x1ee401(0x9f)],_0x30ae1f=_0x217b66['mLeft'],_0x182f77=_0x217b66[_0x1ee401(0xe6)],_0x36fdcd=_0x217b66[_0x1ee401(0xf2)],_0xc12c62=_0x217b66[_0x1ee401(0x97)],_0x102bb3=_0x217b66[_0x1ee401(0xa3)],_0x4b5e5f=_0x217b66[_0x1ee401(0xb1)],_0x4f99eb=_0x217b66[_0x1ee401(0xeb)],_0x38ee3a=_0x217b66[_0x1ee401(0xcb)],_0x335cd9=_0x217b66[_0x1ee401(0xbb)],_0x244f93=_0x217b66[_0x1ee401(0xaa)],_0x12225a=_0x217b66[_0x1ee401(0xdb)],_0x19779d=_0x217b66[_0x1ee401(0xcc)],_0x1c1168=_0x217b66[_0x1ee401(0xa1)],_0xdedd54=_0x217b66[_0x1ee401(0xb2)],_0x4c6b20=_0x217b66[_0x1ee401(0xea)],_0x24219b=_0x217b66[_0x1ee401(0xce)],_0x3352f6=_0x217b66[_0x1ee401(0xd4)],_0x4f6dc1=_0x217b66[_0x1ee401(0xaf)],_0x151b2b=_0x217b66[_0x1ee401(0xac)],_0xe5d070=_0x217b66[_0x1ee401(0xe4)],_0x46cb57=_0x217b66[_0x1ee401(0xb8)],_0x347cbe=_0x217b66[_0x1ee401(0x9c)],_0x2fc9f7=_0x217b66['border'],_0x1d5540=_0x217b66['borderColor'],_0x5a0998=_0x217b66[_0x1ee401(0xc2)],_0x1fca4e=_0x217b66[_0x1ee401(0xc3)],_0x22f498=_objectWithoutProperties(_0x217b66,_excluded),_0x5cfe49=_0x34124a(_0x1ddad9,{'zero-flex':!![],'zero-flex-1':_0x8e9580,'zero-flex-col':_0x2321f6,'zero-flex-row':_0x5b62ea,'zero-flex-wrap':_0x547234,'zero-items-start':_0xfdd49a===_0x1ee401(0xe5),'zero-items-end':_0xfdd49a===_0x1ee401(0xb0),'zero-items-center':_0xfdd49a===_0x1ee401(0xd1),'zero-justify-start':_0x5035d3===_0x1ee401(0xe5),'zero-justify-end':_0x5035d3===_0x1ee401(0xb0),'zero-justify-center':_0x5035d3===_0x1ee401(0xd1),'zero-place-content-around':_0x966585===_0x1ee401(0xf0),'zero-justify-around':_0x966585==='justify-around','zero-justify-between':_0x5b3abf,'zero-hidden':_0x532d0b,'zero-animate-pulse\x20zero-bg-gray-200':_0xdedd54}),_0x29d7b2=function _0x5ce335(_0xe3f9fe,_0xd69ba3,_0x23024b){var _0x54e37c=_0x1ee401,_0x4e98c2=_0xd69ba3===_0xe3f9fe||_0xd69ba3===_0x54e37c(0xe3);if(!_0x4e98c2)return px(_0x23024b);return _0x23024b?_0x54e37c(0xe1)[_0x54e37c(0xa4)](_0xe3f9fe,_0x54e37c(0xc4))['concat'](px(_0x23024b),')'):_0x54e37c(0x95)[_0x54e37c(0xa4)](_0xe3f9fe,')');},_0x1ce503=_0x2fc9f7||_0x1d5540!==undefined||_0x5a0998!==undefined,_0xa7f468=_objectSpread({'width':px(_0x27e679?_0x1ee401(0xf5):_0x5468f0),'height':px(_0x27e679?_0x1ee401(0xf5):_0x3135f5),'backgroundColor':_0x3fb451,'margin':px(_0x150708),'marginTop':px(_0x46ec8f!==null&&_0x46ec8f!==void 0x0?_0x46ec8f:_0xc12c62),'marginBottom':px(_0x27a041!==null&&_0x27a041!==void 0x0?_0x27a041:_0xc12c62),'marginLeft':px(_0x30ae1f!==null&&_0x30ae1f!==void 0x0?_0x30ae1f:_0x36fdcd),'marginRight':px(_0x182f77!==null&&_0x182f77!==void 0x0?_0x182f77:_0x36fdcd),'padding':px(_0x102bb3),'paddingTop':_0x29d7b2('top',_0x19779d,_0x4b5e5f!==null&&_0x4b5e5f!==void 0x0?_0x4b5e5f:_0x12225a),'paddingBottom':_0x29d7b2(_0x1ee401(0xe4),_0x19779d,_0x4f99eb!==null&&_0x4f99eb!==void 0x0?_0x4f99eb:_0x12225a),'paddingLeft':px(_0x38ee3a!==null&&_0x38ee3a!==void 0x0?_0x38ee3a:_0x244f93),'paddingRight':px(_0x335cd9!==null&&_0x335cd9!==void 0x0?_0x335cd9:_0x244f93),'position':_0x4c6b20,'zIndex':_0x24219b,'left':px(_0x3352f6),'right':px(_0x4f6dc1),'top':px(_0x151b2b),'bottom':px(_0xe5d070),'overflow':_0x46cb57,'borderRadius':px(_0x347cbe),'borderWidth':_0x1ce503?px(_0x5a0998!==null&&_0x5a0998!==void 0x0?_0x5a0998:0x1):undefined,'borderStyle':_0x1ce503?_0x1fca4e!==null&&_0x1fca4e!==void 0x0?_0x1fca4e:'solid':undefined,'borderColor':_0x1d5540,'gap':px(_0x3e68b6),'rowGap':px(_0x40a8a5),'columnGap':px(_0x40b1ec),'alignSelf':_0x516d96,'flexShrink':_0x383b53,'flexGrow':_0x2cd397,'flexBasis':px(_0x3ad8f6),'opacity':_0x3adc92,'display':_0x532d0b?_0x1ee401(0xa8):undefined,'color':_0xdedd54?'transparent':undefined},_typeof(_0x1b7cfb)===_0x1ee401(0x94)?_0x1b7cfb:{}),_0x2d7af3={};for(var _0x11d826 in _0xa7f468){_0xa7f468[_0x11d826]!==undefined&&_0xa7f468[_0x11d826]!==null&&(_0x2d7af3[_0x11d826]=_0xa7f468[_0x11d826]);}return _0x547f86(_0x4f1b17,_objectSpread(_objectSpread({'ref':_0x8b6f76,'className':_0x5cfe49,'style':_0x2d7af3,'hoverClass':_0x1c1168?_0x1ee401(0xc0):'none','hoverStayTime':0xc8},_0x22f498),{},{'children':_0x5c3af9}));});View[_0x469fe9(0xd6)]=_0x469fe9(0xec);export default View;
|
|
1
|
+
var _excluded = ["full", "row", "column", "wrap", "flex", "around", "between", "className", "justifyItems", "alignItems", "alignSelf", "gap", "rowGap", "columnGap", "flexShrink", "flexGrow", "flexBasis", "opacity", "hidden", "width", "height", "bgColor", "background", "style", "children", "margin", "mTop", "mBottom", "mLeft", "mRight", "mHorizontal", "mVertical", "padding", "pTop", "pBottom", "pLeft", "pRight", "pHorizontal", "pVertical", "safeArea", "hover", "skeleton", "position", "zIndex", "left", "right", "top", "bottom", "overflow", "radius", "border", "borderColor", "borderWidth", "borderStyle"];
|
|
2
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
3
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
4
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
5
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
6
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
7
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
8
|
+
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
9
|
+
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
10
|
+
import { forwardRef } from 'react';
|
|
11
|
+
import { View as OrigView } from '@tarojs/components';
|
|
12
|
+
import classNames from 'classnames';
|
|
13
|
+
import "../../styles/index.css";
|
|
14
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
15
|
+
/**
|
|
16
|
+
* 处理 px 转换
|
|
17
|
+
* @param val px|string|undefined
|
|
18
|
+
* @returns px|string|undefined
|
|
19
|
+
*/
|
|
20
|
+
var px = function px(val) {
|
|
21
|
+
if (val === undefined || val === null || val === '') return undefined;
|
|
22
|
+
return typeof val === 'number' || !isNaN(Number(val)) ? "".concat(val, "px") : String(val);
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* taro weapp View Component (Tailwind 版)
|
|
27
|
+
* - full: 100% 100% 宽度、高度100%
|
|
28
|
+
* - flex: flex: 1 自动适应
|
|
29
|
+
* - row: flex-direction: row 主轴水平
|
|
30
|
+
* - column: flex-direction: column 主轴垂直
|
|
31
|
+
* - wrap: flex-wrap: wrap 换行
|
|
32
|
+
* - around: flex-direction: row justify-content: space-around 主轴平均分布
|
|
33
|
+
* - between: flex-direction: row justify-content: space-between 主轴两端对齐
|
|
34
|
+
* - justifyItems: justify-content 主轴对齐方式
|
|
35
|
+
* - alignItems: align-items 交叉轴对齐方式
|
|
36
|
+
* - alignSelf: align-self 自身对齐方式
|
|
37
|
+
* - gap: gap 间距
|
|
38
|
+
* - rowGap: row-gap 行间距
|
|
39
|
+
* - columnGap: column-gap 列间距
|
|
40
|
+
* - flexShrink: flex-shrink 剩余空间不足时
|
|
41
|
+
* - flexGrow: flex-grow 剩余空间
|
|
42
|
+
* - flexBasis: flex-basis 初始大小
|
|
43
|
+
* - opacity: opacity 透明度
|
|
44
|
+
* - hidden: hidden 隐藏
|
|
45
|
+
* - width: width 宽度
|
|
46
|
+
* - height: height 高度
|
|
47
|
+
* - bgColor: background-color 背景颜色
|
|
48
|
+
* - background: background 背景图片等复杂背景
|
|
49
|
+
* - safeArea: safe-area-inset 安全区域
|
|
50
|
+
* - hover: hover 悬停状态
|
|
51
|
+
* - skeleton: skeleton 骨架屏
|
|
52
|
+
* - position: position 定位
|
|
53
|
+
* - zIndex: z-index 层级
|
|
54
|
+
* - left: left 定位左侧
|
|
55
|
+
* - right: right 定位右侧
|
|
56
|
+
* - top: top 定位上侧
|
|
57
|
+
* - bottom: bottom 定位下侧
|
|
58
|
+
* - overflow: overflow 显示
|
|
59
|
+
* - overflowX: overflow-x 显示
|
|
60
|
+
* - overflowY: overflow-y 显示
|
|
61
|
+
* - radius: border-radius 圆角
|
|
62
|
+
* - border: boolean 边框
|
|
63
|
+
* - borderColor: border-color 边框颜色
|
|
64
|
+
* - borderWidth: border-width 边框宽度
|
|
65
|
+
* - borderStyle: border-style 边框样式
|
|
66
|
+
* - style: style 自定义样式
|
|
67
|
+
* - children: children 子元素
|
|
68
|
+
* - margin: margin 外边距
|
|
69
|
+
* - mTop: margin-top 上外边距
|
|
70
|
+
* - mBottom: margin-bottom 下外边距
|
|
71
|
+
* - mLeft: margin-left 左外边距
|
|
72
|
+
* - mRight: margin-right 右外边距
|
|
73
|
+
* - mHorizontal: margin-horizontal 水平外边距
|
|
74
|
+
* - mVertical: margin-vertical 垂直外边距
|
|
75
|
+
* - padding: padding 内边距
|
|
76
|
+
* - pTop: padding-top 上内边距
|
|
77
|
+
* - pBottom: padding-bottom 下内边距
|
|
78
|
+
* - pLeft: padding-left 左内边距
|
|
79
|
+
* - pRight: padding-right 右内边距
|
|
80
|
+
* - pHorizontal: padding-horizontal 水平内边距
|
|
81
|
+
* - pVertical: padding-vertical 垂直内边距
|
|
82
|
+
* - rest: View组件其他属性
|
|
83
|
+
*/
|
|
84
|
+
var View = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
85
|
+
var full = props.full,
|
|
86
|
+
row = props.row,
|
|
87
|
+
column = props.column,
|
|
88
|
+
wrap = props.wrap,
|
|
89
|
+
flex = props.flex,
|
|
90
|
+
around = props.around,
|
|
91
|
+
between = props.between,
|
|
92
|
+
className = props.className,
|
|
93
|
+
justifyItems = props.justifyItems,
|
|
94
|
+
alignItems = props.alignItems,
|
|
95
|
+
alignSelf = props.alignSelf,
|
|
96
|
+
gap = props.gap,
|
|
97
|
+
rowGap = props.rowGap,
|
|
98
|
+
columnGap = props.columnGap,
|
|
99
|
+
flexShrink = props.flexShrink,
|
|
100
|
+
flexGrow = props.flexGrow,
|
|
101
|
+
flexBasis = props.flexBasis,
|
|
102
|
+
opacity = props.opacity,
|
|
103
|
+
hidden = props.hidden,
|
|
104
|
+
width = props.width,
|
|
105
|
+
height = props.height,
|
|
106
|
+
bgColor = props.bgColor,
|
|
107
|
+
background = props.background,
|
|
108
|
+
_props$style = props.style,
|
|
109
|
+
style = _props$style === void 0 ? {} : _props$style,
|
|
110
|
+
children = props.children,
|
|
111
|
+
margin = props.margin,
|
|
112
|
+
mTop = props.mTop,
|
|
113
|
+
mBottom = props.mBottom,
|
|
114
|
+
mLeft = props.mLeft,
|
|
115
|
+
mRight = props.mRight,
|
|
116
|
+
mHorizontal = props.mHorizontal,
|
|
117
|
+
mVertical = props.mVertical,
|
|
118
|
+
padding = props.padding,
|
|
119
|
+
pTop = props.pTop,
|
|
120
|
+
pBottom = props.pBottom,
|
|
121
|
+
pLeft = props.pLeft,
|
|
122
|
+
pRight = props.pRight,
|
|
123
|
+
pHorizontal = props.pHorizontal,
|
|
124
|
+
pVertical = props.pVertical,
|
|
125
|
+
safeArea = props.safeArea,
|
|
126
|
+
hover = props.hover,
|
|
127
|
+
skeleton = props.skeleton,
|
|
128
|
+
position = props.position,
|
|
129
|
+
zIndex = props.zIndex,
|
|
130
|
+
left = props.left,
|
|
131
|
+
right = props.right,
|
|
132
|
+
top = props.top,
|
|
133
|
+
bottom = props.bottom,
|
|
134
|
+
overflow = props.overflow,
|
|
135
|
+
radius = props.radius,
|
|
136
|
+
border = props.border,
|
|
137
|
+
borderColor = props.borderColor,
|
|
138
|
+
borderWidth = props.borderWidth,
|
|
139
|
+
borderStyle = props.borderStyle,
|
|
140
|
+
rest = _objectWithoutProperties(props, _excluded);
|
|
141
|
+
var viewClass = classNames(className, {
|
|
142
|
+
'zero-flex': true,
|
|
143
|
+
'zero-flex-1': flex,
|
|
144
|
+
'zero-flex-col': column,
|
|
145
|
+
'zero-flex-row': row,
|
|
146
|
+
'zero-flex-wrap': wrap,
|
|
147
|
+
'zero-items-start': alignItems === 'flex-start',
|
|
148
|
+
'zero-items-end': alignItems === 'flex-end',
|
|
149
|
+
'zero-items-center': alignItems === 'center',
|
|
150
|
+
'zero-justify-start': justifyItems === 'flex-start',
|
|
151
|
+
'zero-justify-end': justifyItems === 'flex-end',
|
|
152
|
+
'zero-justify-center': justifyItems === 'center',
|
|
153
|
+
'zero-place-content-around': around === 'content-around',
|
|
154
|
+
'zero-justify-around': around === 'justify-around',
|
|
155
|
+
'zero-justify-between': between,
|
|
156
|
+
'zero-hidden': hidden,
|
|
157
|
+
'zero-animate-pulse zero-bg-gray-200': skeleton
|
|
158
|
+
});
|
|
159
|
+
var getSafeAreaPadding = function getSafeAreaPadding(type, safeAreaVal, userPadding) {
|
|
160
|
+
var isSafe = safeAreaVal === type || safeAreaVal === 'both';
|
|
161
|
+
if (!isSafe) return px(userPadding);
|
|
162
|
+
return userPadding ? "calc(env(safe-area-inset-".concat(type, ") + ").concat(px(userPadding), ")") : "env(safe-area-inset-".concat(type, ")");
|
|
163
|
+
};
|
|
164
|
+
var hasBorder = border || borderColor !== undefined || borderWidth !== undefined;
|
|
165
|
+
var customStyle = _objectSpread({
|
|
166
|
+
width: px(full ? '100%' : width),
|
|
167
|
+
height: px(full ? '100%' : height),
|
|
168
|
+
backgroundColor: bgColor,
|
|
169
|
+
background: background,
|
|
170
|
+
margin: px(margin),
|
|
171
|
+
marginTop: px(mTop !== null && mTop !== void 0 ? mTop : mVertical),
|
|
172
|
+
marginBottom: px(mBottom !== null && mBottom !== void 0 ? mBottom : mVertical),
|
|
173
|
+
marginLeft: px(mLeft !== null && mLeft !== void 0 ? mLeft : mHorizontal),
|
|
174
|
+
marginRight: px(mRight !== null && mRight !== void 0 ? mRight : mHorizontal),
|
|
175
|
+
padding: px(padding),
|
|
176
|
+
paddingTop: getSafeAreaPadding('top', safeArea, pTop !== null && pTop !== void 0 ? pTop : pVertical),
|
|
177
|
+
paddingBottom: getSafeAreaPadding('bottom', safeArea, pBottom !== null && pBottom !== void 0 ? pBottom : pVertical),
|
|
178
|
+
paddingLeft: px(pLeft !== null && pLeft !== void 0 ? pLeft : pHorizontal),
|
|
179
|
+
paddingRight: px(pRight !== null && pRight !== void 0 ? pRight : pHorizontal),
|
|
180
|
+
position: position,
|
|
181
|
+
zIndex: zIndex,
|
|
182
|
+
left: px(left),
|
|
183
|
+
right: px(right),
|
|
184
|
+
top: px(top),
|
|
185
|
+
bottom: px(bottom),
|
|
186
|
+
overflow: overflow,
|
|
187
|
+
borderRadius: px(radius),
|
|
188
|
+
borderWidth: hasBorder ? px(borderWidth !== null && borderWidth !== void 0 ? borderWidth : 1) : undefined,
|
|
189
|
+
borderStyle: hasBorder ? borderStyle !== null && borderStyle !== void 0 ? borderStyle : 'solid' : undefined,
|
|
190
|
+
borderColor: borderColor,
|
|
191
|
+
gap: px(gap),
|
|
192
|
+
rowGap: px(rowGap),
|
|
193
|
+
columnGap: px(columnGap),
|
|
194
|
+
alignSelf: alignSelf,
|
|
195
|
+
flexShrink: flexShrink,
|
|
196
|
+
flexGrow: flexGrow,
|
|
197
|
+
flexBasis: px(flexBasis),
|
|
198
|
+
opacity: opacity,
|
|
199
|
+
display: hidden ? 'none' : undefined,
|
|
200
|
+
color: skeleton ? 'transparent' : undefined
|
|
201
|
+
}, _typeof(style) === 'object' ? style : {});
|
|
202
|
+
var cleanStyle = {};
|
|
203
|
+
for (var key in customStyle) {
|
|
204
|
+
if (customStyle[key] !== undefined && customStyle[key] !== null) {
|
|
205
|
+
// @ts-ignore
|
|
206
|
+
cleanStyle[key] = customStyle[key];
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
return /*#__PURE__*/_jsx(OrigView, _objectSpread(_objectSpread({
|
|
210
|
+
ref: ref,
|
|
211
|
+
className: viewClass,
|
|
212
|
+
style: cleanStyle,
|
|
213
|
+
hoverClass: hover ? 'zero:opacity-70' : 'none',
|
|
214
|
+
hoverStayTime: 200
|
|
215
|
+
}, rest), {}, {
|
|
216
|
+
children: children
|
|
217
|
+
}));
|
|
218
|
+
});
|
|
219
|
+
View.displayName = 'View';
|
|
220
|
+
export default View;
|
package/es/components/index.js
CHANGED
|
@@ -1 +1,3 @@
|
|
|
1
|
-
|
|
1
|
+
export * from "./Permission";
|
|
2
|
+
export { default as View } from "./View";
|
|
3
|
+
export { default as Text } from "./Text";
|
package/es/context/index.js
CHANGED
|
@@ -1 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
import { createContext } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* PermissionContext 使用 object 作为基础泛型约束
|
|
4
|
+
* 消费侧通过 usePermission<P, U>() 收窄为具体的业务类型
|
|
5
|
+
*/
|
|
6
|
+
export var PermissionContext = /*#__PURE__*/createContext({});
|
package/es/hooks/index.js
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
export { usePermission } from "./usePermission";
|
|
2
|
+
export { useWeappUpdate } from "./useWeappUpdate";
|
|
@@ -1 +1,18 @@
|
|
|
1
|
-
|
|
1
|
+
import { useContext } from 'react';
|
|
2
|
+
import { PermissionContext } from "../context";
|
|
3
|
+
/**
|
|
4
|
+
* 在任意子孙组件中获取权限状态与操作方法
|
|
5
|
+
* 必须在 PermissionProvider 内部使用
|
|
6
|
+
*
|
|
7
|
+
* @template P - 权限对象类型
|
|
8
|
+
* @template U - 用户对象类型
|
|
9
|
+
* @returns {PermissionContextValue<P, U>} 权限上下文值
|
|
10
|
+
* @throws {Error} 未包裹 PermissionProvider 时抛出异常
|
|
11
|
+
*/
|
|
12
|
+
export function usePermission() {
|
|
13
|
+
var ctx = useContext(PermissionContext);
|
|
14
|
+
if (typeof ctx.granted !== 'function') {
|
|
15
|
+
throw new Error('[zero-bits/taro] usePermission must be used within a <PermissionProvider>.\n' + '请确保在 App 根节点包裹了 <PermissionProvider store={...}>');
|
|
16
|
+
}
|
|
17
|
+
return ctx;
|
|
18
|
+
}
|
|
@@ -1 +1,33 @@
|
|
|
1
|
-
|
|
1
|
+
import { getUpdateManager, showModal } from '@tarojs/taro';
|
|
2
|
+
import { useEffect } from 'react';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* 微信小程序自动更新钩子
|
|
6
|
+
*/
|
|
7
|
+
export var useWeappUpdate = function useWeappUpdate() {
|
|
8
|
+
useEffect(function () {
|
|
9
|
+
if (process.env.TARO_ENV !== 'weapp') return;
|
|
10
|
+
var updateManager = getUpdateManager();
|
|
11
|
+
updateManager.onCheckForUpdate(function (res) {
|
|
12
|
+
if (res.hasUpdate) {
|
|
13
|
+
updateManager.onUpdateReady(function () {
|
|
14
|
+
showModal({
|
|
15
|
+
title: '更新提示',
|
|
16
|
+
content: '新版本已经准备好,是否重启应用?',
|
|
17
|
+
showCancel: false,
|
|
18
|
+
success: function success(result) {
|
|
19
|
+
if (result.confirm) updateManager.applyUpdate();
|
|
20
|
+
}
|
|
21
|
+
});
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
});
|
|
25
|
+
updateManager.onUpdateFailed(function () {
|
|
26
|
+
showModal({
|
|
27
|
+
title: '更新提示',
|
|
28
|
+
content: '新版本下载失败,请删除当前小程序,重新搜索打开',
|
|
29
|
+
showCancel: false
|
|
30
|
+
});
|
|
31
|
+
});
|
|
32
|
+
}, []);
|
|
33
|
+
};
|
package/es/index.js
CHANGED
|
@@ -1 +1,3 @@
|
|
|
1
|
-
|
|
1
|
+
export { View, Text, PermissionProvider, createPermissionStore } from "./components";
|
|
2
|
+
export { usePermission, useWeappUpdate } from "./hooks";
|
|
3
|
+
export * from "./types";
|
package/es/styles/index.css
CHANGED
|
@@ -1,120 +1 @@
|
|
|
1
|
-
|
|
2
|
-
overflow: hidden;
|
|
3
|
-
display: -webkit-box;
|
|
4
|
-
-webkit-box-orient: vertical;
|
|
5
|
-
-webkit-line-clamp: 1
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
.zero-line-clamp-2 {
|
|
9
|
-
overflow: hidden;
|
|
10
|
-
display: -webkit-box;
|
|
11
|
-
-webkit-box-orient: vertical;
|
|
12
|
-
-webkit-line-clamp: 2
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
.zero-line-clamp-3 {
|
|
16
|
-
overflow: hidden;
|
|
17
|
-
display: -webkit-box;
|
|
18
|
-
-webkit-box-orient: vertical;
|
|
19
|
-
-webkit-line-clamp: 3
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
.zero-line-clamp-4 {
|
|
23
|
-
overflow: hidden;
|
|
24
|
-
display: -webkit-box;
|
|
25
|
-
-webkit-box-orient: vertical;
|
|
26
|
-
-webkit-line-clamp: 4
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
.zero-line-clamp-5 {
|
|
30
|
-
overflow: hidden;
|
|
31
|
-
display: -webkit-box;
|
|
32
|
-
-webkit-box-orient: vertical;
|
|
33
|
-
-webkit-line-clamp: 5
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
.zero-line-clamp-6 {
|
|
37
|
-
overflow: hidden;
|
|
38
|
-
display: -webkit-box;
|
|
39
|
-
-webkit-box-orient: vertical;
|
|
40
|
-
-webkit-line-clamp: 6
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
.zero-flex {
|
|
44
|
-
display: flex
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
.zero-hidden {
|
|
48
|
-
display: none
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
.zero-flex-1 {
|
|
52
|
-
flex: 1 1 0%
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
@keyframes zero-pulse {
|
|
56
|
-
50% {
|
|
57
|
-
opacity: .5
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
.zero-animate-pulse {
|
|
62
|
-
animation: zero-pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
.zero-flex-row {
|
|
66
|
-
flex-direction: row
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
.zero-flex-col {
|
|
70
|
-
flex-direction: column
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
.zero-flex-wrap {
|
|
74
|
-
flex-wrap: wrap
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
.zero-place-content-around {
|
|
78
|
-
place-content: space-around
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
.zero-items-start {
|
|
82
|
-
align-items: flex-start
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
.zero-items-end {
|
|
86
|
-
align-items: flex-end
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
.zero-items-center {
|
|
90
|
-
align-items: center
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
.zero-justify-start {
|
|
94
|
-
justify-content: flex-start
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
.zero-justify-end {
|
|
98
|
-
justify-content: flex-end
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
.zero-justify-center {
|
|
102
|
-
justify-content: center
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
.zero-justify-between {
|
|
106
|
-
justify-content: space-between
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
.zero-justify-around {
|
|
110
|
-
justify-content: space-around
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
.zero-bg-gray-200 {
|
|
114
|
-
--tw-bg-opacity: 1;
|
|
115
|
-
background-color: rgb(229 231 235 / var(--tw-bg-opacity, 1))
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
.zero-text-transparent {
|
|
119
|
-
color: transparent
|
|
120
|
-
}
|
|
1
|
+
@tailwind utilities;
|
package/es/types/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{};
|
|
1
|
+
export {};
|
|
@@ -1 +1,41 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var _react = require("react");
|
|
8
|
+
var _context = require("../../context");
|
|
9
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
10
|
+
/**
|
|
11
|
+
* 权限组件 Provider 的属性
|
|
12
|
+
*
|
|
13
|
+
* @template P - 权限对象类型
|
|
14
|
+
* @template U - 用户对象类型
|
|
15
|
+
*/
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* 权限组件的入口 Provider,通常包裹在 App 根节点
|
|
19
|
+
*
|
|
20
|
+
* @template P - 权限对象类型
|
|
21
|
+
* @template U - 用户对象类型
|
|
22
|
+
* @param {PermissionProviderProps<P, U>} props - 组件属性
|
|
23
|
+
* @returns {JSX.Element}
|
|
24
|
+
*/
|
|
25
|
+
function PermissionProvider(_ref) {
|
|
26
|
+
var children = _ref.children,
|
|
27
|
+
store = _ref.store,
|
|
28
|
+
onDenied = _ref.onDenied;
|
|
29
|
+
var state = (0, _react.useSyncExternalStore)(store.subscribe, store.getSnapshot);
|
|
30
|
+
var prevGrantedRef = (0, _react.useRef)(state.isGranted);
|
|
31
|
+
(0, _react.useEffect)(function () {
|
|
32
|
+
if (prevGrantedRef.current && !state.isGranted) onDenied === null || onDenied === void 0 || onDenied();
|
|
33
|
+
prevGrantedRef.current = state.isGranted;
|
|
34
|
+
}, [state.isGranted, onDenied]);
|
|
35
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_context.PermissionContext.Provider, {
|
|
36
|
+
value: state,
|
|
37
|
+
children: children
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
PermissionProvider.displayName = 'PermissionProvider';
|
|
41
|
+
var _default = exports.default = PermissionProvider;
|
|
@@ -1 +1,20 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
Object.defineProperty(exports, "PermissionProvider", {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: function get() {
|
|
9
|
+
return _PermissionProvider.default;
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
Object.defineProperty(exports, "createPermissionStore", {
|
|
13
|
+
enumerable: true,
|
|
14
|
+
get: function get() {
|
|
15
|
+
return _store.createPermissionStore;
|
|
16
|
+
}
|
|
17
|
+
});
|
|
18
|
+
var _PermissionProvider = _interopRequireDefault(require("./PermissionProvider"));
|
|
19
|
+
var _store = require("./store");
|
|
20
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|