tplus-portaltouch 3.37.1 → 3.37.2
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.
|
@@ -44,6 +44,11 @@ var Header = _tplusComponentsTouch.Layout.Header; /**
|
|
|
44
44
|
*/
|
|
45
45
|
|
|
46
46
|
function Head(props) {
|
|
47
|
+
//有些页面并不需要加载Header,例如副屏。
|
|
48
|
+
var pathname = window.location.pathname;
|
|
49
|
+
if ((pathname + '').indexOf('vicescreen') > -1) {
|
|
50
|
+
return '';
|
|
51
|
+
}
|
|
47
52
|
var businessName = props.businessName,
|
|
48
53
|
storeName = props.storeName,
|
|
49
54
|
networkStatus = props.networkStatus,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["tplus-portaltouch/components/header/index.js"],"names":["Head","Header","Layout","props","businessName","storeName","networkStatus","time","dateFormat","style","solt","logo","className","isPortal","isLogin","menu","onClick","posCode","
|
|
1
|
+
{"version":3,"sources":["tplus-portaltouch/components/header/index.js"],"names":["Head","Header","Layout","props","pathname","window","location","indexOf","businessName","storeName","networkStatus","time","dateFormat","style","solt","logo","className","isPortal","isLogin","menu","onClick","posCode","history","classes","propTypes","PropTypes","object","string","number","node","array","onSelect","func"],"mappings":";;;;;kBAyBwBA,I;;AAVxB;;;;AACA;;;;AACA;;AACA;;;;AACA;;AACA;;AACA;;;;IAEOC,M,GAAUC,4B,CAAVD,M,EAvBP;;;AAGA;;;;;;;;;;;;;AAsBe,SAASD,IAAT,CAAcG,KAAd,EAAqB;AAClC;AACA,MAAMC,WAAWC,OAAOC,QAAP,CAAgBF,QAAjC;AACA,MAAI,CAACA,WAAW,EAAZ,EAAgBG,OAAhB,CAAwB,YAAxB,IAAwC,CAAC,CAA7C,EAAgD;AAC9C,WAAO,EAAP;AACD;AALiC,MAOhCC,YAPgC,GAS9BL,KAT8B,CAOhCK,YAPgC;AAAA,MAOlBC,SAPkB,GAS9BN,KAT8B,CAOlBM,SAPkB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,oBAAUC,MADF;AAEfV,aAAWS,oBAAUE,MAFN;AAGfnB,gBAAciB,oBAAUE,MAHT;AAIflB,aAAWgB,oBAAUE,MAJN;AAKfjB,iBAAee,oBAAUE,MALV;AAMfhB,QAAM,0BAAU,CACdc,oBAAUE,MADI,EAEdF,oBAAUG,MAFI,CAAV,CANS;AAUfhB,cAAYa,oBAAUE,MAVP;AAWfZ,QAAMU,oBAAUI,IAXD;AAYfV,QAAMM,oBAAUK,KAZD;AAafC,YAAUN,oBAAUO;AAbL,CAAjB","file":"index.js","sourcesContent":["/**\r\n * Created by hzy on 2019/3/25.\r\n */\r\n/**\r\n * @style style\r\n * @logo 商户LOGO\r\n * @businessName 商户名\r\n * @storeName 门店名\r\n * @posCode pos机号\r\n * @networkStatus 网络状态\r\n * @time 时间(时间戳or字符串)\r\n * @dateFormat 格式化时间 'yyyy-MM-dd hh:mm:ss.S'\r\n * @solt render插槽内容\r\n * @infoRender 外层Main容器context上的infoRender方法,传入参数为要渲染的react node内容 // this.context.infoRender(node)\r\n */\r\nimport React from 'react';\r\nimport PropTypes, { oneOfType } from 'prop-types';\r\nimport { Layout } from 'tplus-components-touch';\r\nimport HeadContent from './headContent';\r\nimport { generatorClass } from '../../utils';\r\nimport './style.less';\r\nimport './vertical-touch.less';\r\n\r\nconst {Header} = Layout;\r\n\r\nexport default function Head(props) {\r\n //有些页面并不需要加载Header,例如副屏。\r\n const pathname = window.location.pathname;\r\n if ((pathname + '').indexOf('vicescreen') > -1) {\r\n return '';\r\n }\r\n const {\r\n businessName, storeName, networkStatus, time, dateFormat, style = {}, solt, logo, className = '',\r\n isPortal, isLogin, menu, onClick, posCode, location, history\r\n } = props;\r\n const classes = generatorClass('pos-header', className);\r\n return (<Header className={classes}>\r\n <HeadContent\r\n logo={logo}\r\n businessName={businessName}\r\n storeName={storeName}\r\n networkStatus={networkStatus}\r\n time={time}\r\n posCode={posCode}\r\n dateFormat={dateFormat}\r\n style={style}\r\n solt={solt}\r\n menu={menu}\r\n onClick={onClick}\r\n isPortal={isPortal}\r\n isLogin={isLogin}\r\n location={location}\r\n history={history}\r\n />\r\n </Header>);\r\n}\r\n\r\nHead.propTypes = {\r\n style: PropTypes.object,\r\n className: PropTypes.string,\r\n businessName: PropTypes.string,\r\n storeName: PropTypes.string,\r\n networkStatus: PropTypes.string,\r\n time: oneOfType([\r\n PropTypes.string,\r\n PropTypes.number\r\n ]),\r\n dateFormat: PropTypes.string,\r\n logo: PropTypes.node,\r\n menu: PropTypes.array,\r\n onSelect: PropTypes.func,\r\n};\r\n"]}
|
package/package.json
CHANGED
|
@@ -1,37 +1,37 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "tplus-portaltouch",
|
|
3
|
-
"version": "3.37.
|
|
4
|
-
"description": "touch protal",
|
|
5
|
-
"main": "dist/index.js",
|
|
6
|
-
"scripts": {
|
|
7
|
-
"start": "node node_modules/mutants-devtools/bin/start",
|
|
8
|
-
"build": "rm -rf dist && node node_modules/mutants-devtools/bin/build",
|
|
9
|
-
"dev": "node node_modules/mutants-devtools/bin/dev ../touch",
|
|
10
|
-
"pub": "npm run build && npm publish --registry https://registry.npmjs.org && cnpm sync tplus-portaltouch",
|
|
11
|
-
"test": "set DEBUG=tplus:*,-not_this && mocha"
|
|
12
|
-
},
|
|
13
|
-
"keywords": [
|
|
14
|
-
"tplus",
|
|
15
|
-
"pos"
|
|
16
|
-
],
|
|
17
|
-
"author": "tplus",
|
|
18
|
-
"license": "ISC",
|
|
19
|
-
"dependencies": {
|
|
20
|
-
"antd": "4.10.3",
|
|
21
|
-
"react": "^16.8.6",
|
|
22
|
-
"rxjs": "^6.5.4"
|
|
23
|
-
},
|
|
24
|
-
"devDependencies": {
|
|
25
|
-
"babel-eslint": "^8.0.3",
|
|
26
|
-
"babel-plugin-import-bee": "^1.1.0",
|
|
27
|
-
"eslint": "^4.13.1",
|
|
28
|
-
"eslint-plugin-react": "^7.12.4",
|
|
29
|
-
"mocha": "^5.2.0",
|
|
30
|
-
"mutants-devtools": "^1.0.0",
|
|
31
|
-
"mutants-microfx": "^1.0.0",
|
|
32
|
-
"tplus-api": "~5.0.1",
|
|
33
|
-
"tplus-components": "~3.37.1",
|
|
34
|
-
"tplus-components-touch": "~3.37.1",
|
|
35
|
-
"tplus-poslogin": "~3.37.1"
|
|
36
|
-
}
|
|
37
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "tplus-portaltouch",
|
|
3
|
+
"version": "3.37.2",
|
|
4
|
+
"description": "touch protal",
|
|
5
|
+
"main": "dist/index.js",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"start": "node node_modules/mutants-devtools/bin/start",
|
|
8
|
+
"build": "rm -rf dist && node node_modules/mutants-devtools/bin/build",
|
|
9
|
+
"dev": "node node_modules/mutants-devtools/bin/dev ../touch",
|
|
10
|
+
"pub": "npm run build && npm publish --registry https://registry.npmjs.org && cnpm sync tplus-portaltouch",
|
|
11
|
+
"test": "set DEBUG=tplus:*,-not_this && mocha"
|
|
12
|
+
},
|
|
13
|
+
"keywords": [
|
|
14
|
+
"tplus",
|
|
15
|
+
"pos"
|
|
16
|
+
],
|
|
17
|
+
"author": "tplus",
|
|
18
|
+
"license": "ISC",
|
|
19
|
+
"dependencies": {
|
|
20
|
+
"antd": "4.10.3",
|
|
21
|
+
"react": "^16.8.6",
|
|
22
|
+
"rxjs": "^6.5.4"
|
|
23
|
+
},
|
|
24
|
+
"devDependencies": {
|
|
25
|
+
"babel-eslint": "^8.0.3",
|
|
26
|
+
"babel-plugin-import-bee": "^1.1.0",
|
|
27
|
+
"eslint": "^4.13.1",
|
|
28
|
+
"eslint-plugin-react": "^7.12.4",
|
|
29
|
+
"mocha": "^5.2.0",
|
|
30
|
+
"mutants-devtools": "^1.0.0",
|
|
31
|
+
"mutants-microfx": "^1.0.0",
|
|
32
|
+
"tplus-api": "~5.0.1",
|
|
33
|
+
"tplus-components": "~3.37.1",
|
|
34
|
+
"tplus-components-touch": "~3.37.1",
|
|
35
|
+
"tplus-poslogin": "~3.37.1"
|
|
36
|
+
}
|
|
37
|
+
}
|