@cniot/android-pda-components 0.1.6 → 0.1.7
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/build/assets/index.bf651e56.js +455 -0
- package/change.md +1 -1
- package/es/index.cjs.js +2 -4
- package/es/index.es.js +65 -252
- package/es/style.css +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,455 @@
|
|
|
1
|
+
var ae=Object.defineProperty,re=Object.defineProperties;var ce=Object.getOwnPropertyDescriptors;var D=Object.getOwnPropertySymbols;var H=Object.prototype.hasOwnProperty,X=Object.prototype.propertyIsEnumerable;var _=(u,t,n)=>t in u?ae(u,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):u[t]=n,g=(u,t)=>{for(var n in t||(t={}))H.call(t,n)&&_(u,n,t[n]);if(D)for(var n of D(t))X.call(t,n)&&_(u,n,t[n]);return u},G=(u,t)=>re(u,ce(t));var N=(u,t)=>{var n={};for(var l in u)H.call(u,l)&&t.indexOf(l)<0&&(n[l]=u[l]);if(u!=null&&D)for(var l of D(u))t.indexOf(l)<0&&X.call(u,l)&&(n[l]=u[l]);return n};var x=(u,t,n)=>(_(u,typeof t!="symbol"?t+"":t,n),n);import{R as e,_ as p,k as oe,c as E,a as M,u as ie,b as se}from"./vendor.116036fc.js";const me=function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const a of document.querySelectorAll('link[rel="modulepreload"]'))l(a);new MutationObserver(a=>{for(const r of a)if(r.type==="childList")for(const c of r.addedNodes)c.tagName==="LINK"&&c.rel==="modulepreload"&&l(c)}).observe(document,{childList:!0,subtree:!0});function n(a){const r={};return a.integrity&&(r.integrity=a.integrity),a.referrerpolicy&&(r.referrerPolicy=a.referrerpolicy),a.crossorigin==="use-credentials"?r.credentials="include":a.crossorigin==="anonymous"?r.credentials="omit":r.credentials="same-origin",r}function l(a){if(a.ep)return;a.ep=!0;const r=n(a);fetch(a.href,r)}};me();function Ee(){return e.createElement("div",null,e.createElement("h1",null,"\u5FEB\u901F\u5F00\u59CB"),e.createElement("code",{className:"code"},`
|
|
2
|
+
|
|
3
|
+
tnpm install @cniot/android-pda-components --save
|
|
4
|
+
|
|
5
|
+
import { Button } from '@cniot/android-pda-components';
|
|
6
|
+
|
|
7
|
+
import '@cniot/android-pda-components/es/style.css';
|
|
8
|
+
|
|
9
|
+
<<<<<<< HEAD:build/assets/index.bf651e56.js
|
|
10
|
+
`))}function E(u){const{type:t="default",onClick:n,className:l=""}=u;return e.createElement("button",{className:`pda-button pda-button-${t} ${l}`,onClick:n},u.children)}function se(u){return e.createElement("div",{className:"button-group"},u.children)}E.Group=se;function me(u){return{center:"op-overlay center",top:"op-overlay top",bottom:"op-overlay bottom"}[u]||"op-overlay"}function f(u){const{verticalPosition:t="center",visible:n=!0,closable:l=!1,onClosed:a=()=>{}}=u,[r,c]=h.exports.useState(!n),o={};return l&&(o.onClick=i=>{c(!0),a()}),h.exports.useEffect(()=>{c(!n)},[n]),r?null:e.createElement("div",g({className:me(t)},o),u.children)}const Ee=()=>{};function P(u){const{onBack:t,icon:n,title:l,menus:a=[],onClickMenuItem:r=Ee,cancelMenuText:c}=u,[o,i]=e.useState(!1);return e.createElement("div",{className:"pda-header"},e.createElement("div",{className:"header-click-area"},t?e.createElement("div",{className:"pda-goback",onClick:()=>t("back")}):null,n&&e.createElement("div",{className:`pda-header-icon pda-header-icon-${n}`})),e.createElement("div",{className:"pda-title-text"},l),a&&a.length?e.createElement("div",{className:"pda-header-more",onClick:()=>i(!0)}):null,e.createElement(f,{visible:o,verticalPosition:"bottom",closable:!1,onClosed:()=>i(!1)},e.createElement("div",{className:"pda-menus"},a.map((s,d)=>e.createElement(E,{onClick:()=>{i(!1),r(s)},key:s.key||d},s.label)),c?e.createElement("div",{style:{marginTop:20}},e.createElement(E,{onClick:()=>i(!1)},c)):null)))}function de(){return e.createElement("div",null,e.createElement("h1",null,"Header"),e.createElement("p",null,"\u5934\u90E8\u6307\u5F15"),e.createElement("h2",null,"\u793A\u4F8B"),e.createElement("div",{className:"dark-block"},e.createElement(P,{title:"hello world",onBack:console.log}),e.createElement(P,{icon:"read",title:"hello world"}),e.createElement(P,{icon:"select",title:"hello world",menus:[{label:"menus1"},{label:"menus2"},{label:"menus3"}],onClickMenuItem:console.log,cancelMenuText:"\u53D6\u6D88"})),e.createElement("code",{className:"code"},`
|
|
11
|
+
=======
|
|
12
|
+
`))}function d(u){const{type:t="default",onClick:n,className:l=""}=u;return e.createElement("button",{className:`pda-button pda-button-${t} ${l}`,onClick:n},u.children)}function de(u){return e.createElement("div",{className:"button-group"},u.children)}d.Group=de;function he(u){return{center:"op-overlay center",top:"op-overlay top",bottom:"op-overlay bottom"}[u]||"op-overlay"}function B(u){const{verticalPosition:t="center",visible:n=!0,closable:l=!1,onClosed:a=()=>{}}=u,[r,c]=p.exports.useState(!n),o={};return l&&(o.onClick=i=>{c(!0),a()}),p.exports.useEffect(()=>{c(!n)},[n]),r?null:e.createElement("div",g({className:he(t)},o),u.children)}const pe=()=>{};function P(u){const{onBack:t,icon:n,title:l,menus:a=[],onClickMenuItem:r=pe,cancelMenuText:c,menuShortcutKey:o,backShortcutKey:i}=u,[s,m]=e.useState(!1);return e.useEffect(function(){if(o)return j(U(o),function(){m(!0)})},[o]),e.useEffect(function(){if(i&&t)return j(U(i),function(){t("back")})},[i,t]),e.createElement("div",{className:"pda-header"},e.createElement("div",{className:"header-click-area"},t?e.createElement("div",{className:"pda-goback",onClick:()=>t("back")}):null,n&&e.createElement("div",{className:`pda-header-icon pda-header-icon-${n}`})),e.createElement("div",{className:"pda-title-text"},l),a&&a.length?e.createElement("div",{className:"pda-header-more",onClick:()=>m(!0)}):null,e.createElement(B,{visible:s,verticalPosition:"bottom",closable:!1,onClosed:()=>m(!1)},e.createElement("div",{className:"pda-menus"},a.map((h,f)=>e.createElement(d,{onClick:()=>{m(!1),r(h)},key:h.key||f},h.label)),c?e.createElement("div",{style:{marginTop:20}},e.createElement(d,{onClick:()=>m(!1)},c)):null)))}function U(u){return(u.indexOf(",")>-1?u.split(","):[u]).map(n=>{const l=oe(n);return l===void 0&&console.warn("OPButton.shortcutKey error key value by:",n),l}).filter(n=>!!n)}function j(u,t){function n(l){u.indexOf(l.keyCode)>-1&&t&&t(l)}return document.addEventListener("keyup",n),function(){document.removeEventListener("keyup",n)}}function Fe(){return e.createElement("div",null,e.createElement("h1",null,"Header"),e.createElement("p",null,"\u5934\u90E8\u6307\u5F15"),e.createElement("h2",null,"\u793A\u4F8B"),e.createElement("div",{className:"dark-block"},e.createElement(P,{title:"hello world",onBack:console.log,backShortcutKey:"a"}),e.createElement(P,{icon:"read",title:"hello world"}),e.createElement(P,{icon:"select",title:"hello world",menus:[{label:"menus1"},{label:"menus2"},{label:"menus3"}],onClickMenuItem:console.log,cancelMenuText:"\u53D6\u6D88",menuShortcutKey:"f1,f2"})),e.createElement("code",{className:"code"},`
|
|
13
|
+
// backShortcutKey \u7ED1\u5B9A\u4E86 a \u952E\u5FEB\u6377\u89E6\u53D1 onBack
|
|
14
|
+
>>>>>>> 4950ea9c56814a53676090cbc575b46125474ac4:build/assets/index.87a9df58.js
|
|
15
|
+
<Header
|
|
16
|
+
title='hello world'
|
|
17
|
+
onBack={console.log}
|
|
18
|
+
backShortcutKey="a"
|
|
19
|
+
/>
|
|
20
|
+
<Header
|
|
21
|
+
icon='read'
|
|
22
|
+
title='hello world'
|
|
23
|
+
></Header>
|
|
24
|
+
<Header
|
|
25
|
+
icon='select'
|
|
26
|
+
title='hello world'
|
|
27
|
+
menus={[
|
|
28
|
+
{
|
|
29
|
+
label:"menus1"
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
label:"menus2"
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
label:"menus3"
|
|
36
|
+
}
|
|
37
|
+
]}
|
|
38
|
+
onClickMenuItem={console.log}
|
|
39
|
+
cancelMenuText="\u53D6\u6D88"
|
|
40
|
+
menuShortcutKey="f1,f2"
|
|
41
|
+
></Header>
|
|
42
|
+
`),e.createElement("h2",null,"\u53C2\u6570"),e.createElement("table",{className:"pure-table pure-table-bordered"},e.createElement("thead",null,e.createElement("tr",null,e.createElement("th",null,"\u5C5E\u6027"),e.createElement("th",null,"\u8BF4\u660E"),e.createElement("th",null,"\u7C7B\u578B"),e.createElement("th",null,"\u9ED8\u8BA4\u503C"))),e.createElement("tbody",null,e.createElement("tr",null,e.createElement("td",null,"onBack"),e.createElement("td",null,"\u8FD4\u56DE\u6309\u94AE\u70B9\u51FB"),e.createElement("td",null,'Function("back")'),e.createElement("td",null)),e.createElement("tr",null,e.createElement("td",null,"onClickMenuItem"),e.createElement("td",null,"menu item \u70B9\u51FB"),e.createElement("td",null,"function(item)"),e.createElement("td",null)),e.createElement("tr",null,e.createElement("td",null,"icon"),e.createElement("td",null,"title \u56FE\u6807"),e.createElement("td",null,"string: scan | select | read"),e.createElement("td",null,"scan")),e.createElement("tr",null,e.createElement("td",null,"title"),e.createElement("td",null,"\u6807\u9898"),e.createElement("td",null,"string"),e.createElement("td",null)),e.createElement("tr",null,e.createElement("td",null,"menus"),e.createElement("td",null,"\u5F39\u51FA\u83DC\u5355\u5217\u8868\uFF0Cmenus item \u7684\u6240\u6709\u53C2\u6570\u4F1A\u76F4\u63A5\u7ED9 Button"),e.createElement("td",null,"Array-Object"),e.createElement("td",null)),e.createElement("tr",null,e.createElement("td",null,"cancelMenuText"),e.createElement("td",null,"\u53D6\u6D88\u5F39\u51FA\u83DC\u5355\u7684\u6309\u94AE\u6587\u6848\uFF0C\u6CA1\u6709\u7684\u8BDD\u4E0D\u663E\u793A\u53D6\u6D88\u5F39\u51FA\u83DC\u5355"),e.createElement("td",null,"String"),e.createElement("td",null)),e.createElement("tr",null,e.createElement("td",null,"menuShortcutKey"),e.createElement("td",null,"\u81EA\u5DF1\u5B9A\u4E49\u7ED1\u5B9A menu \u83DC\u5355\u7684\u5FEB\u6377\u952E\u5F39\u51FA\uFF0C\u6BD4\u5982 `f1`, `f1,f2` (\u652F\u6301,\u53F7\u5206\u5272\u7ED1\u5B9A\u591A\u4E2A\u952E)"),e.createElement("td",null,"String"),e.createElement("td",null)),e.createElement("tr",null,e.createElement("td",null,"backShortcutKey"),e.createElement("td",null,"\u8FD4\u56DE\uFF0C\u7ED1\u5B9A\u5FEB\u6377\u952E, \u5FC5\u987B\u58F0\u660E\u8FC7 onBack \u53C2\u6570\u624D\u6709\u6548"),e.createElement("td",null,"String"),e.createElement("td",null)))))}function Ce(){return e.createElement("div",null,e.createElement("h1",null,"Button"),e.createElement("p",null,"\u626B\u7801\u7EC4\u4EF6"),e.createElement("h2",null,"\u793A\u4F8B"),e.createElement("div",{className:"light-block"},e.createElement(d,null,"\u6309\u94AE"),e.createElement(d,{type:"primary",onClick:u=>console.log(u)},"\u786E\u8BA4"),e.createElement(d,{type:"dark"},"\u6DF1\u8272"),e.createElement(d.Group,null,e.createElement(d,{type:"cutout"},"\u9542\u7A7A"),e.createElement(d,null,"\u6309\u94AE"))),e.createElement("code",{className:"code"},`
|
|
43
|
+
<Button>\u6309\u94AE</Button>
|
|
44
|
+
<Button type='primary' onClick={e => console.log(e) }>\u786E\u8BA4</Button>
|
|
45
|
+
<Button type='dark'>\u6DF1\u8272</Button>
|
|
46
|
+
<Button.Group>
|
|
47
|
+
<Button type="cutout">\u9542\u7A7A</Button>
|
|
48
|
+
<Button>\u6309\u94AE</Button>
|
|
49
|
+
</Button.Group>
|
|
50
|
+
`),e.createElement("h2",null,"\u53C2\u6570"),e.createElement("table",{className:"pure-table pure-table-bordered"},e.createElement("thead",null,e.createElement("tr",null,e.createElement("th",null,"\u5C5E\u6027"),e.createElement("th",null,"\u8BF4\u660E"),e.createElement("th",null,"\u7C7B\u578B"),e.createElement("th",null,"\u9ED8\u8BA4\u503C"))),e.createElement("tbody",null,e.createElement("tr",null,e.createElement("td",null,"type"),e.createElement("td",null,"\u7C7B\u578B"),e.createElement("td",null,"string: primary | dark | cutout"),e.createElement("td",null,"default")),e.createElement("tr",null,e.createElement("td",null,"onClick"),e.createElement("td",null,"\u70B9\u51FB\u4E8B\u4EF6"),e.createElement("td",null,"function"),e.createElement("td",null)))))}class y extends e.Component{constructor(t){super(t)}render(){const{className:t="",title:n,highlightInfo:l,subTitle:a,subHighlightInfo:r,subHighlightSubInfo:c,infoImage:o,tagText:i,highlightInfoCN:s,highlightSubInfo:m,percentage:h,highlightSubInfoCN:f,boldInfo:C,infoList:k=[],style:L={},theme:ne="light"}=this.props;return e.createElement("div",{className:E({[t]:!0,"pda-info-card":!0,"pda-info-card-dark":ne==="dark"}),style:L},e.createElement("div",{className:"pda-info-card-title-section"},e.createElement("div",{className:"pda-info-card-title"},n),i?e.createElement("div",{className:"pda-info-card-tag"},e.createElement("div",{className:"pda-info-card-tag-text"},i)):null),e.createElement("div",{className:"pda-info-card-highlight-section"},e.createElement("div",null,e.createElement("div",{className:"pda-info-card-highlight"},e.createElement("span",{className:"pda-info-card-highlight1"},l),e.createElement("span",{className:"pda-info-card-highlight1CN"},s),e.createElement("span",{className:"pda-info-card-highlight2"},m),e.createElement("span",{className:"pda-info-card-highlight2CN"},f)),a?e.createElement("div",{className:"pda-info-card-title"},a):null,r?e.createElement("div",{className:"pda-info-card-highlight"},e.createElement("span",{className:"pda-info-card-highlight1"},r),e.createElement("span",{className:"pda-info-card-highlight2"},c)):null),o?e.createElement("img",{src:o,width:150,height:150}):null),h!==void 0?e.createElement("div",{className:"pda-info-card-progress"},e.createElement("div",{className:"pda-info-card-progress-inside",style:{width:`${h*100}%`}})):null,e.createElement("div",{className:"pda-info-card-bold"},C),k.map((K,ue)=>e.createElement("div",{key:ue,className:"pda-info-card-list"},e.createElement("span",null,K.label||""),"\xA0\xA0",e.createElement("span",null,K.content||""))))}}y.IMAGE_1="https://img.alicdn.com/imgextra/i2/O1CN01qYuxip1ME9zhdL9XG_!!6000000001402-2-tps-150-150.png";function ge(){return e.createElement("div",null,e.createElement("h1",null,"InfoCard"),e.createElement("p",null,"InfoCard"),e.createElement("h2",null,"\u793A\u4F8B"),e.createElement("div",{className:"light-block",style:{width:480,display:"block"}},e.createElement(y,{title:"\u5F85\u62E3\u4EF6\u6570",highlightInfo:"800",highlightInfoCN:"\u4EF6",highlightSubInfo:"/800",highlightSubInfoCN:"\u4EF6",percentage:.64,boldInfo:"\u52A0\u7C97\u663E\u793A\uFF1A512/\u4E94\u5382\u7EFC\u5305\u4E00\u697C,\u8FD9\u662F\u52A0\u7C97\u663E\u793A\u7684\u8D27\u54C1\u540D\u79F0\u53EF\u80FD\u6709\u591A\u884C",infoList:[{label:"\u5546\u54C1\u6761\u7801",content:"623126388798"},{label:"\u622A\u6B62\u65E5\u671F",content:"2022-07-25"},{label:"\u4EA7\u54C1\u540D\u79F0",content:"\u5546\u54C1\u7684\u540D\u79F0"},{label:"\u54C1\u53F7",content:"12398765423"}]})),e.createElement("code",{className:"code"},`
|
|
51
|
+
<InfoCard
|
|
52
|
+
title="\u5F85\u62E3\u4EF6\u6570"
|
|
53
|
+
highlightInfo="800"
|
|
54
|
+
highlightInfoCN = "\u4EF6"
|
|
55
|
+
highlightSubInfo="/800"
|
|
56
|
+
highlightSubInfoCN="\u4EF6"
|
|
57
|
+
percentage={0.64}
|
|
58
|
+
boldInfo="\u52A0\u7C97\u663E\u793A\uFF1A512/\u4E94\u5382\u7EFC\u5305\u4E00\u697C,\u8FD9\u662F\u52A0\u7C97\u663E\u793A\u7684\u8D27\u54C1\u540D\u79F0\u53EF\u80FD\u6709\u591A\u884C"
|
|
59
|
+
infoList={
|
|
60
|
+
[
|
|
61
|
+
{label: '\u5546\u54C1\u6761\u7801', content: '623126388798'},
|
|
62
|
+
{label: '\u622A\u6B62\u65E5\u671F', content: '2022-07-25'},
|
|
63
|
+
{label: '\u4EA7\u54C1\u540D\u79F0', content: '\u5546\u54C1\u7684\u540D\u79F0'},
|
|
64
|
+
{label: '\u54C1\u53F7', content: '12398765423'},
|
|
65
|
+
]
|
|
66
|
+
}
|
|
67
|
+
/>`),e.createElement("div",{className:"light-block",style:{width:480,display:"block"}},e.createElement(y,{title:"\u5F85\u62E3\u4EF6\u6570",highlightInfo:"800",highlightInfoCN:"\u4EF6",highlightSubInfo:"/800",highlightSubInfoCN:"\u4EF6",tagText:"\u5C11\u8D272",boldInfo:"\u52A0\u7C97\u663E\u793A\uFF1A512/\u4E94\u5382\u7EFC\u5305\u4E00\u697C,\u8FD9\u662F\u52A0\u7C97\u663E\u793A\u7684\u8D27\u54C1\u540D\u79F0\u53EF\u80FD\u6709\u591A\u884C",theme:"dark",infoList:[{label:"\u5546\u54C1\u6761\u7801",content:"623126388798"},{label:"\u622A\u6B62\u65E5\u671F",content:"2022-07-25"},{label:"\u4EA7\u54C1\u540D\u79F0",content:"\u5546\u54C1\u7684\u540D\u79F0"},{label:"\u54C1\u53F7",content:"12398765423"}]})),e.createElement("code",{className:"code"},`
|
|
68
|
+
<InfoCard
|
|
69
|
+
title="\u5F85\u62E3\u4EF6\u6570"
|
|
70
|
+
highlightInfo="800"
|
|
71
|
+
highlightInfoCN = "\u4EF6"
|
|
72
|
+
highlightSubInfo="/800"
|
|
73
|
+
highlightSubInfoCN="\u4EF6"
|
|
74
|
+
tagText="\u5C11\u8D272"
|
|
75
|
+
boldInfo="\u52A0\u7C97\u663E\u793A\uFF1A512/\u4E94\u5382\u7EFC\u5305\u4E00\u697C,\u8FD9\u662F\u52A0\u7C97\u663E\u793A\u7684\u8D27\u54C1\u540D\u79F0\u53EF\u80FD\u6709\u591A\u884C"
|
|
76
|
+
theme='dark'
|
|
77
|
+
infoList={
|
|
78
|
+
[
|
|
79
|
+
{label: '\u5546\u54C1\u6761\u7801', content: '623126388798'},
|
|
80
|
+
{label: '\u622A\u6B62\u65E5\u671F', content: '2022-07-25'},
|
|
81
|
+
{label: '\u4EA7\u54C1\u540D\u79F0', content: '\u5546\u54C1\u7684\u540D\u79F0'},
|
|
82
|
+
{label: '\u54C1\u53F7', content: '12398765423'},
|
|
83
|
+
]
|
|
84
|
+
}
|
|
85
|
+
/>`),e.createElement("div",{className:"light-block",style:{width:480,display:"block"}},e.createElement(y,{title:"\u6F0F\u626B\u7BB1\u6570/\u8BC6\u522B\u603B\u7BB1\u6570",highlightInfo:"0",highlightSubInfo:"/40",infoImage:y.IMAGE_1})),e.createElement("code",{className:"code"},`
|
|
86
|
+
<InfoCard
|
|
87
|
+
title="\u6F0F\u626B\u7BB1\u6570/\u8BC6\u522B\u603B\u7BB1\u6570"
|
|
88
|
+
highlightInfo="0"
|
|
89
|
+
highlightSubInfo="/40"
|
|
90
|
+
infoImage={InfoCard.IMAGE_1}
|
|
91
|
+
/>`),e.createElement("div",{className:"light-block",style:{width:480,display:"block"}},e.createElement(y,{title:"\u8BC6\u522B\u7BB1\u6570(CS)",highlightInfo:"0",highlightSubInfo:"/50",subTitle:"\u8BC6\u522B\u4E2A\u6570(EA)",subHighlightInfo:"40",subHighlightSubInfo:"/50",infoImage:y.IMAGE_1})),e.createElement("code",{className:"code"},`
|
|
92
|
+
<InfoCard
|
|
93
|
+
title="\u8BC6\u522B\u7BB1\u6570(CS)"
|
|
94
|
+
highlightInfo="0"
|
|
95
|
+
highlightSubInfo="/50"
|
|
96
|
+
subTitle="\u8BC6\u522B\u4E2A\u6570(EA)"
|
|
97
|
+
subHighlightInfo="40"
|
|
98
|
+
subHighlightSubInfo="/50"
|
|
99
|
+
infoImage={InfoCard.IMAGE_1}
|
|
100
|
+
/>`),e.createElement("h2",null,"\u53C2\u6570"),e.createElement("table",{className:"pure-table pure-table-bordered"},e.createElement("thead",null,e.createElement("tr",null,e.createElement("th",null,"\u5C5E\u6027"),e.createElement("th",null,"\u8BF4\u660E"),e.createElement("th",null,"\u7C7B\u578B"),e.createElement("th",null,"\u9ED8\u8BA4\u503C"))),e.createElement("tbody",null,e.createElement("tr",null,e.createElement("td",null,"title"),e.createElement("td",null,"\u6807\u9898"),e.createElement("td",null,"string"),e.createElement("td",null)),e.createElement("tr",null,e.createElement("td",null,"highlightInfo"),e.createElement("td",null,"\u9AD8\u4EAE\u6587\u672C"),e.createElement("td",null,"string"),e.createElement("td",null)),e.createElement("tr",null,e.createElement("td",null,"highlightInfoCN"),e.createElement("td",null,"\u9AD8\u4EAE\u6587\u672C(\u4E2D\u6587)"),e.createElement("td",null,"string"),e.createElement("td",null)),e.createElement("tr",null,e.createElement("td",null,"highlightSubInfo"),e.createElement("td",null,"\u9AD8\u4EAE\u526F\u6587\u672C"),e.createElement("td",null,"string"),e.createElement("td",null)),e.createElement("tr",null,e.createElement("td",null,"highlightSubInfoCN"),e.createElement("td",null,"\u9AD8\u4EAE\u526F\u6587\u672C(\u4E2D\u6587)"),e.createElement("td",null,"string"),e.createElement("td",null)),e.createElement("tr",null,e.createElement("td",null,"subTitle"),e.createElement("td",null,"\u526F\u6807\u9898"),e.createElement("td",null,"string"),e.createElement("td",null)),e.createElement("tr",null,e.createElement("td",null,"subHighlightInfo"),e.createElement("td",null,"\u526F\u9AD8\u4EAE\u6587\u672C"),e.createElement("td",null,"string"),e.createElement("td",null)),e.createElement("tr",null,e.createElement("td",null,"subHighlightSubInfo"),e.createElement("td",null,"\u526F\u9AD8\u4EAE\u526F\u6587\u672C"),e.createElement("td",null,"string"),e.createElement("td",null)),e.createElement("tr",null,e.createElement("td",null,"boldInfo"),e.createElement("td",null,"\u52A0\u7C97\u6587\u672C"),e.createElement("td",null,"string"),e.createElement("td",null)),e.createElement("tr",null,e.createElement("td",null,"theme"),e.createElement("td",null,"\u4E3B\u9898"),e.createElement("td",null,"string: light | dark"),e.createElement("td",null,"light")),e.createElement("tr",null,e.createElement("td",null,"infoList"),e.createElement("td",null,"\u66F4\u591A\u4FE1\u606F"),e.createElement("td",null,"object[]"),e.createElement("td",null)),e.createElement("tr",null,e.createElement("td",null,"percentage"),e.createElement("td",null,"\u8FDB\u5EA6\u6761\u767E\u5206\u6BD4\uFF0C\u4F20\u503C\u65F6\u663E\u793A\u8FDB\u5EA6\u6761"),e.createElement("td",null,"number"),e.createElement("td",null)),e.createElement("tr",null,e.createElement("td",null,"tagText"),e.createElement("td",null," \u53F3\u4E0A\u89D2 tag \u6587\u672C\uFF0C\u4F20\u503C\u65F6\u663E\u793A tag"),e.createElement("td",null,"string"),e.createElement("td",null)),e.createElement("tr",null,e.createElement("td",null,"infoImage"),e.createElement("td",null,"\u5DE6\u4FA7\u56FE\u7247\u5730\u5740"),e.createElement("td",null,"string"),e.createElement("td",null,"\u53EF\u4EE5\u4F7F\u7528 InfoCard.IMAGE_1 1\u5F20\u5185\u7F6E\u56FE\u7247")))))}class be extends e.Component{constructor(t){super(t)}render(){const{className:t,title:n,isActive:l,infoList:a=[],style:r={},index:c,isLast:o}=this.props;return e.createElement("div",{className:E({[t]:!0,"pda-step-card":!0}),style:r},e.createElement("div",{className:"pda-step-indictor"},e.createElement("div",{className:E({"pda-step-indictor-top":!0,"pda-step-indictor-top-hidden":c===0})}),e.createElement("div",{className:E({"pda-step-indictor-center":!0,"pda-step-indictor-center-active":l})}),e.createElement("div",{className:E({"pda-step-indictor-bottom":!0,"pda-step-indictor-bottom-hidden":o})})),e.createElement("div",{className:E({"pda-step":!0,"pda-step-dark":!l})},e.createElement("div",{className:"pda-step-title"},n),a.map((i,s)=>e.createElement("div",{key:s,className:"pda-step-list"},e.createElement("span",null,i.label||""),"\xA0\xA0",e.createElement("span",null,i.content||"")))))}}class S extends e.Component{constructor(t){super(t)}render(){const{className:t,style:n={},theme:l="light",current:a=0,children:r}=this.props;return e.createElement("div",{className:E({[t]:!0}),style:n},(r||[]).map((c,o)=>{const i=g({index:o,isLast:o===(r||[]).length-1},c.props);return o===a?i.isActive=!0:i.isActive=!1,p.exports.cloneElement(c,i)}))}}x(S,"Step",be);const{Step:A}=S;function fe(){return e.createElement("div",null,e.createElement("h1",null,"Steps"),e.createElement("p",null,"\u6B65\u9AA4\u6761\u7EC4\u4EF6"),e.createElement("h2",null,"\u793A\u4F8B"),e.createElement("div",{className:"light-block",style:{display:"flex",flexDirection:"row"}},e.createElement(S,{current:0,style:{marginRight:"32px"}},e.createElement(A,{title:"\u626B\u63CF\u4E2D",infoList:[{label:"\u5546\u54C1\u6761\u7801",content:"623126388798"},{label:"\u622A\u6B62\u65E5\u671F",content:"2022-07-25"},{label:"\u4EA7\u54C1\u540D\u79F0",content:"\u5546\u54C1\u7684\u540D\u79F0"},{label:"\u54C1\u53F7",content:"12398765423"}]}),e.createElement(A,{title:"\u5DF2\u751F\u4EA7",infoList:[{label:"\u5546\u54C1\u6761\u7801",content:"623126388798"},{label:"\u622A\u6B62\u65E5\u671F",content:"2022-07-25"},{label:"\u4EA7\u54C1\u540D\u79F0",content:"\u5546\u54C1\u7684\u540D\u79F0"},{label:"\u54C1\u53F7",content:"12398765423"}]})),e.createElement(S,{current:1},e.createElement(A,{title:"\u626B\u63CF\u4E2D",infoList:[{label:"\u5546\u54C1\u6761\u7801",content:"623126388798"},{label:"\u622A\u6B62\u65E5\u671F",content:"2022-07-25"},{label:"\u4EA7\u54C1\u540D\u79F0",content:"\u5546\u54C1\u7684\u540D\u79F0"},{label:"\u54C1\u53F7",content:"12398765423"}]}),e.createElement(A,{title:"\u5DF2\u751F\u4EA7",infoList:[{label:"\u5546\u54C1\u6761\u7801",content:"623126388798"},{label:"\u622A\u6B62\u65E5\u671F",content:"2022-07-25"},{label:"\u4EA7\u54C1\u540D\u79F0",content:"\u5546\u54C1\u7684\u540D\u79F0"},{label:"\u54C1\u53F7",content:"12398765423"}]}),e.createElement(A,{title:"\u5F85\u626B\u63CF",infoList:[{label:"\u5546\u54C1\u6761\u7801",content:"623126388798"},{label:"\u622A\u6B62\u65E5\u671F",content:"2022-07-25"},{label:"\u4EA7\u54C1\u540D\u79F0",content:"\u5546\u54C1\u7684\u540D\u79F0"},{label:"\u54C1\u53F7",content:"12398765423"}]}))),e.createElement("code",{className:"code"},`
|
|
101
|
+
<Steps current={0} style={{
|
|
102
|
+
marginRight: '32px',
|
|
103
|
+
}}>
|
|
104
|
+
<Step title="\u626B\u63CF\u4E2D" infoList={
|
|
105
|
+
[
|
|
106
|
+
{label: '\u5546\u54C1\u6761\u7801', content: '623126388798'},
|
|
107
|
+
{label: '\u622A\u6B62\u65E5\u671F', content: '2022-07-25'},
|
|
108
|
+
{label: '\u4EA7\u54C1\u540D\u79F0', content: '\u5546\u54C1\u7684\u540D\u79F0'},
|
|
109
|
+
{label: '\u54C1\u53F7', content: '12398765423'},
|
|
110
|
+
]
|
|
111
|
+
} />
|
|
112
|
+
<Step title="\u5DF2\u751F\u4EA7" infoList={
|
|
113
|
+
[
|
|
114
|
+
{label: '\u5546\u54C1\u6761\u7801', content: '623126388798'},
|
|
115
|
+
{label: '\u622A\u6B62\u65E5\u671F', content: '2022-07-25'},
|
|
116
|
+
{label: '\u4EA7\u54C1\u540D\u79F0', content: '\u5546\u54C1\u7684\u540D\u79F0'},
|
|
117
|
+
{label: '\u54C1\u53F7', content: '12398765423'},
|
|
118
|
+
]
|
|
119
|
+
} />
|
|
120
|
+
</Steps>
|
|
121
|
+
`),e.createElement("h2",null,"Steps \u53C2\u6570"),e.createElement("table",{className:"pure-table pure-table-bordered"},e.createElement("thead",null,e.createElement("tr",null,e.createElement("th",null,"\u5C5E\u6027"),e.createElement("th",null,"\u8BF4\u660E"),e.createElement("th",null,"\u7C7B\u578B"),e.createElement("th",null,"\u9ED8\u8BA4\u503C"))),e.createElement("tbody",null,e.createElement("tr",null,e.createElement("td",null,"current"),e.createElement("td",null,"\u5F53\u524D\u8282\u70B9"),e.createElement("td",null,"number"),e.createElement("td",null,"0")))),e.createElement("h2",null,"Steps.Step \u53C2\u6570"),e.createElement("table",{className:"pure-table pure-table-bordered"},e.createElement("thead",null,e.createElement("tr",null,e.createElement("th",null,"\u5C5E\u6027"),e.createElement("th",null,"\u8BF4\u660E"),e.createElement("th",null,"\u7C7B\u578B"),e.createElement("th",null,"\u9ED8\u8BA4\u503C"))),e.createElement("tbody",null,e.createElement("tr",null,e.createElement("td",null,"title"),e.createElement("td",null,"\u6807\u9898"),e.createElement("td",null,"string"),e.createElement("td",null)),e.createElement("tr",null,e.createElement("td",null,"infoList"),e.createElement("td",null,"\u66F4\u591A\u4FE1\u606F"),e.createElement("td",null,"object[]"),e.createElement("td",null)))))}class Be extends e.Component{constructor(t){super(t)}render(){const{className:t,header:n,onClick:l=()=>{},onHeightLightClick:a=()=>{},onIconClick:r=()=>{},highlightText:c,highlightSubText:o,stateTextList:i=[],stateList:s=[],subInfoList:m=[],style:h={},icon:f}=this.props;return e.createElement("div",{className:E({[t]:!0,"pda-list-item":!0}),style:h,onClick:l},e.createElement("div",{className:"pda-listitem-header"},n),e.createElement("div",{onClick:a,className:"pda-listitem-highlight"},e.createElement("div",null,c),e.createElement("div",null,o)),e.createElement("div",{className:"pda-listitem-state-text"},i.map((C,k)=>e.createElement("span",{key:k},C.label||"","\uFF5C"))),e.createElement("div",{className:"pda-listitem-state-block"},s.map((C,k)=>{const L=C&&C.type?C.type:"default";return e.createElement("div",{key:k,className:L},C.label||"")})),m.map((C,k)=>e.createElement("div",{key:k,className:"pda-listitem-subinfo"},e.createElement("span",null,C.label||""),"\xA0\xA0",e.createElement("span",null,C.content||""))),f?e.createElement("div",{onClick:r,className:"pda-listitem-icon"},e.createElement("div",{className:E({"listitem-icon-container":!0,["listitem-icon-"+f]:!0})})):null)}}function ye(){return e.createElement("div",null,e.createElement("h1",null,"ListItem"),e.createElement("p",null,"\u626B\u7801\u7EC4\u4EF6"),e.createElement("h2",null,"\u793A\u4F8B"),e.createElement("div",{className:"light-block",style:{display:"flex",flexDirection:"row"}},e.createElement(Be,{onClick:u=>{console.log(123)},header:"\u4EFB\u52A1\u5355",highlightText:"c5058f90218443bf857bc1e6c0b72aef",highlightSubText:"30%",icon:"next",stateTextList:[{label:"\u72B6\u60011"},{label:"\u72B6\u60012"},{label:"\u72B6\u60012"}],stateList:[{label:"success",type:"success"},{label:"default"},{label:"warning",type:"warning"},{label:"error",type:"error"}],subInfoList:[{label:"\u5546\u54C1\u6761\u7801",content:"623126388798"},{label:"\u622A\u6B62\u65E5\u671F",content:"2022-07-25"},{label:"\u4EA7\u54C1\u540D\u79F0",content:"\u5546\u54C1\u7684\u540D\u79F0"},{label:"\u54C1\u53F7",content:"12398765423"},{label:"\u4ED3\u5E93",content:"12398000032432432423400000765423"}],onHeightLightClick:()=>{console.log("heightlight click!")},onIconClick:()=>{console.log("icon click!")},style:{width:"432px",marginRight:"32px",backgroundColor:"black"}})),e.createElement("code",{className:"code"},`
|
|
122
|
+
<ListItem
|
|
123
|
+
header="\u4EFB\u52A1\u5355"
|
|
124
|
+
highlightText="XXXX-XX-XXX"
|
|
125
|
+
highlightSubText="30%"
|
|
126
|
+
icon="next"
|
|
127
|
+
stateTextList={[
|
|
128
|
+
{label: '\u72B6\u60011'},
|
|
129
|
+
{label: '\u72B6\u60012'},
|
|
130
|
+
{label: '\u72B6\u60012'},
|
|
131
|
+
]}
|
|
132
|
+
stateList={[
|
|
133
|
+
{label: 'success', type: 'success'},
|
|
134
|
+
{label: 'default', },
|
|
135
|
+
{label: 'warning', type: 'warning'},
|
|
136
|
+
{label: 'error', type: 'error'},
|
|
137
|
+
]}
|
|
138
|
+
onIconClick={()=> {
|
|
139
|
+
console.log('icon click!')
|
|
140
|
+
}}
|
|
141
|
+
onHeightLightClick={()=> {
|
|
142
|
+
console.log('heightlight click!')
|
|
143
|
+
}}
|
|
144
|
+
subInfoList={
|
|
145
|
+
[
|
|
146
|
+
{label: '\u5546\u54C1\u6761\u7801', content: '623126388798'},
|
|
147
|
+
{label: '\u622A\u6B62\u65E5\u671F', content: '2022-07-25'},
|
|
148
|
+
{label: '\u4EA7\u54C1\u540D\u79F0', content: '\u5546\u54C1\u7684\u540D\u79F0'},
|
|
149
|
+
{label: '\u54C1\u53F7', content: '12398765423'},
|
|
150
|
+
{label: '\u4ED3\u5E93', content: '12398000000000765423'},
|
|
151
|
+
]
|
|
152
|
+
}
|
|
153
|
+
/>
|
|
154
|
+
`),e.createElement("h2",null,"\u53C2\u6570"),e.createElement("table",{className:"pure-table pure-table-bordered"},e.createElement("thead",null,e.createElement("tr",null,e.createElement("th",null,"\u5C5E\u6027"),e.createElement("th",null,"\u8BF4\u660E"),e.createElement("th",null,"\u7C7B\u578B"),e.createElement("th",null,"\u9ED8\u8BA4\u503C"))),e.createElement("tbody",null,e.createElement("tr",null,e.createElement("td",null,"header"),e.createElement("td",null,"\u6807\u9898"),e.createElement("td",null,"string"),e.createElement("td",null)),e.createElement("tr",null,e.createElement("td",null,"icon"),e.createElement("td",null,"\u53F3\u4E0A\u65B9icon"),e.createElement("td",null,"string: next"),e.createElement("td",null,"\u6682\u65F6\u53EA\u652F\u6301 next")),e.createElement("tr",null,e.createElement("td",null,"onHeightLightClick"),e.createElement("td",null,"HeightLight\u6587\u672C\u70B9\u51FB\u4E8B\u4EF6"),e.createElement("td",null,"()=>"),e.createElement("td",null)),e.createElement("tr",null,e.createElement("td",null,"onIconClick"),e.createElement("td",null,"\u53F3\u4E0A\u65B9icon\u70B9\u51FB\u4E8B\u4EF6"),e.createElement("td",null,"()=>"),e.createElement("td",null)),e.createElement("tr",null,e.createElement("td",null,"highlightText"),e.createElement("td",null,"\u9AD8\u4EAE\u6587\u672C"),e.createElement("td",null,"string"),e.createElement("td",null)),e.createElement("tr",null,e.createElement("td",null,"highlightSubText"),e.createElement("td",null,"\u9AD8\u4EAE\u526F\u6587\u672C"),e.createElement("td",null,"string"),e.createElement("td",null)),e.createElement("tr",null,e.createElement("td",null,"stateTextList"),e.createElement("td",null,"\u72B6\u6001\u5217\u8868"),e.createElement("td",null,"object[]"),e.createElement("td",null)),e.createElement("tr",null,e.createElement("td",null,"subInfoList"),e.createElement("td",null,"\u66F4\u591A\u5546\u54C1\u4FE1\u606F"),e.createElement("td",null,"object[]"),e.createElement("td",null)))))}function ke(){}function I(u){const{title:t="title",message:n=null,subMessage:l=[],okText:a="okText",cancelText:r=null,onClick:c=ke,type:o="primary"}=u;return e.createElement("div",{className:E({"confirm-wrap":!0,["confirm-"+o]:!0})},e.createElement("div",{className:"confirm-title"},t),n?e.createElement("div",{className:"confirm-message"},n):null,l.length?e.createElement("div",{className:"confirm-sub-message"},l.map((i,s)=>e.createElement("p",{key:s,className:"pda-listitem-subinfo"},e.createElement("span",null,i.label||""),":\xA0",e.createElement("span",null,i.content||"")))):null,e.createElement("div",{className:"confirm-btns"},r?e.createElement(d,{className:"confirm-cancel-button",onClick:()=>c(!1)},r):null,e.createElement(d,{type:"primary",onClick:()=>c(!0)},a)))}function ve(){return e.createElement("div",null,e.createElement("h1",null,"Confirm"),e.createElement("p",null,"\u786E\u8BA4\u7EC4\u4EF6, \u5982\u679C\u8981\u60AC\u6D6E\u5728\u9875\u9762\u4E0A\uFF0C\u8BF7\u914D\u5408 Overlay \u4F7F\u7528"),e.createElement("h2",null,"\u793A\u4F8B"),e.createElement("div",{className:"light-block"},e.createElement(I,{title:"111111",message:"22222",okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",onClick:u=>{console.log("isConfirm",u)}})),e.createElement("code",{className:"code"},`
|
|
155
|
+
<Confirm
|
|
156
|
+
// type="warning"
|
|
157
|
+
title="111111"
|
|
158
|
+
message="22222"
|
|
159
|
+
okText="\u786E\u8BA4"
|
|
160
|
+
cancelText="\u53D6\u6D88"
|
|
161
|
+
onClick={(isConfirm)=>{
|
|
162
|
+
console.log("isConfirm", isConfirm);
|
|
163
|
+
}}
|
|
164
|
+
></Confirm>
|
|
165
|
+
`),e.createElement("h2",null,"\u53C2\u6570"),e.createElement("table",{className:"pure-table pure-table-bordered"},e.createElement("thead",null,e.createElement("tr",null,e.createElement("th",null,"\u5C5E\u6027"),e.createElement("th",null,"\u8BF4\u660E"),e.createElement("th",null,"\u7C7B\u578B"),e.createElement("th",null,"\u9ED8\u8BA4\u503C"))),e.createElement("tbody",null,e.createElement("tr",null,e.createElement("td",null,"title"),e.createElement("td",null,"\u6807\u9898"),e.createElement("td",null,"string"),e.createElement("td",null,"\u6807\u9898\u6587\u6848")),e.createElement("tr",null,e.createElement("td",null,"message"),e.createElement("td",null,"\u6D88\u606F\u5185\u5BB9"),e.createElement("td",null,"string"),e.createElement("td",null,"\u6D88\u606F\u5185\u5BB9")),e.createElement("tr",null,e.createElement("td",null,"okText"),e.createElement("td",null,"\u786E\u8BA4\u6309\u94AE\u6587\u672C"),e.createElement("td",null,"string"),e.createElement("td",null)),e.createElement("tr",null,e.createElement("td",null,"cancelText"),e.createElement("td",null,"\u53D6\u6D88\u6309\u94AE\u6587\u672C"),e.createElement("td",null,"string"),e.createElement("td",null)),e.createElement("tr",null,e.createElement("td",null,"onClick"),e.createElement("td",null,"\u6309\u94AE\u70B9\u51FB\u56DE\u8C03"),e.createElement("td",null,"(isConfirm)=>"),e.createElement("td",null)),e.createElement("tr",null,e.createElement("td",null,"type"),e.createElement("td",null,"\u7C7B\u578B"),e.createElement("td",null,"string: primary | warning"),e.createElement("td",null,"primary")))))}function Ae(u){return(typeof u=="function"?u():u)||document.body}function De(u){return u===void 0}function V(...u){function t(l,a){return De(a)?l:a}let n=Object.assign({},u[0]);for(let l=1;l<u.length;l++)n=Object.assign(n,u[l],t);return n}function Ne(u){return{success:"toast-wrap success",warning:"toast-wrap warning",error:"toast-wrap error"}[u]||"toast-wrap"}function b(u){const{title:t="title",message:n="message",type:l="success",duration:a=null}=u,[r,c]=p.exports.useState(!1);return a&&setTimeout(()=>{c(!0)},a),r?null:e.createElement("div",{className:Ne(l)},e.createElement("div",{className:"toast-title"},t),e.createElement("div",{className:"toast-message"},n))}const xe={maskClickable:!0,stopPropagation:["click"]},Se=u=>(V(xe,u),e.createElement(B,{verticalPosition:"bottom",closable:!0},e.createElement(b,{title:"111111",message:"22222",type:"success"}))),Y=[];function q(u){M.unmountComponentAtNode(u)&&u.parentNode&&u.parentNode.removeChild(u)}const Ie={duration:2e3};function we(u){const t=V(Ie,u);let n=0;const{getContainer:l=()=>document.body}=t,a=document.createElement("div");Ae(l).appendChild(a),console.log("container: ",a),z(),Y.push(a);function c(){const[o,i]=p.exports.useState(!0);return p.exports.useEffect(()=>()=>{var s;(s=t.afterClose)==null||s.call(t)},[]),p.exports.useEffect(()=>{if(t.duration!==0)return n=window.setTimeout(()=>{i(!1)},t.duration),()=>{window.clearTimeout(n)}},[]),e.createElement(Se,G(g({},t),{getContainer:()=>a,visible:o,afterClose:()=>{q(a)}}))}M.render(e.createElement(c,null),a)}function z(){for(;;){const u=Y.pop();if(!u)break;q(u)}}b.show=we;b.clear=z;function Te(){return e.createElement("div",null,e.createElement("h1",null,"Toast"),e.createElement("p",null,"\u5F39\u7A97\u7EC4\u4EF6\uFF0C\u5982\u679C\u8981\u60AC\u6D6E\u5728\u9875\u9762\u4E0A\uFF0C\u8BF7\u914D\u5408 Overlay \u4F7F\u7528"),e.createElement("h2",null,"\u793A\u4F8B"),e.createElement("div",{className:"light-block"},e.createElement("button",{onClick:u=>{b.show({type:"success",title:"hello title",message:"hello message"})}},"\u70B9\u51FB toast"),e.createElement(b,{title:"111111",message:"22222",type:"success"}),e.createElement("br",null),e.createElement(b,{title:"111111",message:"22222",type:"warning"}),e.createElement("br",null),e.createElement(b,{title:"\u5EF6\u65F6\u5173\u95ED",message:"duration={3000}",type:"error",duration:3e3}),e.createElement("br",null)),e.createElement("code",{className:"code"},`
|
|
166
|
+
Toast.show({
|
|
167
|
+
type: 'success',
|
|
168
|
+
title: 'hello title',
|
|
169
|
+
message: 'hello message',
|
|
170
|
+
})
|
|
171
|
+
<Toast
|
|
172
|
+
title="111111"
|
|
173
|
+
message="22222"
|
|
174
|
+
type="success"
|
|
175
|
+
></Toast>
|
|
176
|
+
<br />
|
|
177
|
+
<Toast
|
|
178
|
+
title="111111"
|
|
179
|
+
message="22222"
|
|
180
|
+
type="warning"
|
|
181
|
+
></Toast>
|
|
182
|
+
|
|
183
|
+
<br />
|
|
184
|
+
<Toast
|
|
185
|
+
title="\u5EF6\u65F6\u5173\u95ED"
|
|
186
|
+
message="duration={3000}"
|
|
187
|
+
type="error"
|
|
188
|
+
duration={3000}
|
|
189
|
+
></Toast>
|
|
190
|
+
`),e.createElement("h2",null,"\u53C2\u6570"),e.createElement("table",{className:"pure-table pure-table-bordered"},e.createElement("thead",null,e.createElement("tr",null,e.createElement("th",null,"\u5C5E\u6027"),e.createElement("th",null,"\u8BF4\u660E"),e.createElement("th",null,"\u7C7B\u578B"),e.createElement("th",null,"\u9ED8\u8BA4\u503C"))),e.createElement("tbody",null,e.createElement("tr",null,e.createElement("td",null,"title"),e.createElement("td",null,"\u6807\u9898"),e.createElement("td",null,"string"),e.createElement("td",null,"\u6807\u9898\u6587\u6848")),e.createElement("tr",null,e.createElement("td",null,"message"),e.createElement("td",null,"\u6D88\u606F\u5185\u5BB9"),e.createElement("td",null,"string"),e.createElement("td",null,"\u6D88\u606F\u5185\u5BB9")),e.createElement("tr",null,e.createElement("td",null,"type"),e.createElement("td",null,"\u6D88\u606F\u7C7B\u578B"),e.createElement("td",null,"string"),e.createElement("td",null,"success|warning|error")),e.createElement("tr",null,e.createElement("td",null,"duration"),e.createElement("td",null,"\u5EF6\u8FDF\u65F6\u95F4"),e.createElement("td",null,"number"),e.createElement("td",null,"\u5355\u4F4D ms")))))}function Le(){return e.createElement("div",null,e.createElement("h1",null,"Overlay"),e.createElement("p",null,"\u7EDF\u4E00\u5904\u7406\u6A21\u6001\u906E\u7F69\u6837\u5F0F"),e.createElement("h2",null,"\u793A\u4F8B"),e.createElement("div",{className:"light-block light-block-overlay"},e.createElement(B,{verticalPosition:"top"},e.createElement(b,{title:"111111",message:"22222",type:"success"}))),e.createElement("br",null),e.createElement("div",{className:"light-block light-block-overlay"},e.createElement(B,{verticalPosition:"center"},e.createElement(b,{title:"111111",message:"22222",type:"warning"}))),e.createElement("br",null),e.createElement("div",{className:"light-block light-block-overlay"},e.createElement(B,{verticalPosition:"bottom",closable:!0},e.createElement(I,{title:"111111",message:"22222",type:"error"}))),e.createElement("code",{className:"code"},`
|
|
191
|
+
<Overlay verticalPosition="top" >
|
|
192
|
+
<Toast
|
|
193
|
+
title="111111"
|
|
194
|
+
message="22222"
|
|
195
|
+
type="success"
|
|
196
|
+
></Toast>
|
|
197
|
+
</Overlay>
|
|
198
|
+
|
|
199
|
+
<Overlay verticalPosition="center" >
|
|
200
|
+
<Toast
|
|
201
|
+
title="111111"
|
|
202
|
+
message="22222"
|
|
203
|
+
type="success"
|
|
204
|
+
></Toast>
|
|
205
|
+
</Overlay>
|
|
206
|
+
|
|
207
|
+
<Overlay verticalPosition="bottom" >
|
|
208
|
+
<Toast
|
|
209
|
+
title="111111"
|
|
210
|
+
message="22222"
|
|
211
|
+
type="success"
|
|
212
|
+
></Toast>
|
|
213
|
+
</Overlay>
|
|
214
|
+
|
|
215
|
+
`),e.createElement("h2",null,"\u53C2\u6570"),e.createElement("table",{className:"pure-table pure-table-bordered"},e.createElement("thead",null,e.createElement("tr",null,e.createElement("th",null,"\u5C5E\u6027"),e.createElement("th",null,"\u8BF4\u660E"),e.createElement("th",null,"\u7C7B\u578B"),e.createElement("th",null,"\u9ED8\u8BA4\u503C"))),e.createElement("tbody",null,e.createElement("tr",null,e.createElement("td",null,"verticalPosition"),e.createElement("td",null,"\u5782\u76F4\u65B9\u5411\u4F4D\u7F6E"),e.createElement("td",null,"string"),e.createElement("td",null,"top|center|bottom")),e.createElement("tr",null,e.createElement("td",null,"closable"),e.createElement("td",null,"\u70B9\u51FB\u7A7A\u767D\u5173\u95ED"),e.createElement("td",null,"boolean"),e.createElement("td",null,"false")),e.createElement("tr",null,e.createElement("td",null,"visible"),e.createElement("td",null,"\u53EF\u89C1"),e.createElement("td",null,"boolean"),e.createElement("td",null,"true")))))}function F(u){const{image:t=F.IMAGE_1,text:n="",subText:l="",transparent:a}=u;return e.createElement("div",{className:a?"presentation-card transparent":"presentation-card"},e.createElement("img",{src:t}),n?e.createElement("div",{className:"text"},n):null,l?e.createElement("div",{className:"sub-text"},l):null)}F.IMAGE_1="https://img.alicdn.com/imgextra/i3/O1CN019Ivkor1ksy3pMGDsz_!!6000000004740-2-tps-280-322.png";F.IMAGE_2="https://img.alicdn.com/imgextra/i1/O1CN01lhSunu1X4VPw1Mlas_!!6000000002870-2-tps-352-158.png";F.IMAGE_3="https://img.alicdn.com/imgextra/i1/O1CN01mreYXo1XfbUsQ7hip_!!6000000002951-2-tps-322-144.png";F.IMAGE_4="https://img.alicdn.com/imgextra/i3/O1CN017gNM8F1Fmmcfti7Dg_!!6000000000530-1-tps-414-286.gif";function _e(){return e.createElement("div",null,e.createElement("h1",null,"Presentation"),e.createElement("p",null,"\u56FE\u793A\u7EC4\u4EF6\uFF0C\u901A\u5E38\u5305\u542B\u4E00\u4E2A\u56FE\u7247+\u4E00\u884C\u6587\u5B57"),e.createElement("h2",null,"\u793A\u4F8B"),e.createElement("div",{className:"light-block pda"},e.createElement(F,{text:"\u8BF7\u9760\u8FD1\u62A5\u5E9F\u7EB8\u7BB1",subText:"\u5F00\u59CB\u8BC6\u522B"})),e.createElement("br",null),e.createElement("div",{className:"light-block pda",style:{backgroundColor:"#000000"}},e.createElement(F,{image:F.IMAGE_4,text:"\u8BF7\u9760\u8FD1\u7EB8\u7BB1",subText:"\u5F00\u59CB\u8BC6\u522B",transparent:!0})),e.createElement("br",null),e.createElement("div",{className:"light-block pda",imageWidth:300,imageHeight:500,style:{backgroundColor:"#000000"}},e.createElement(F,{image:F.IMAGE_2,imageStyle:{width:"500px"},text:"\u8BF7\u9760\u8FD1\u62A5\u5E9F\u7EB8\u7BB1",subText:"\u5F00\u59CB\u8BC6\u522B",transparent:!0})),e.createElement("br",null),e.createElement("div",{className:"light-block pda",style:{backgroundColor:"#000000"}},e.createElement(F,{image:F.IMAGE_3,text:"\u8BF7\u9760\u8FD1\u7BB1\u7801\u8FDB\u884C\u8BC6\u522B"})),e.createElement("br",null),e.createElement("code",{className:"code"},`
|
|
216
|
+
<Presentation text="\u8BF7\u9760\u8FD1\u62A5\u5E9F\u7EB8\u7BB1" subText="\u5F00\u59CB\u8BC6\u522B"></Presentation>
|
|
217
|
+
<Presentation image={Presentation.IMAGE_4} text="\u8BF7\u9760\u8FD1\u7EB8\u7BB1" subText="\u5F00\u59CB\u8BC6\u522B" transparent={true}></Presentation>
|
|
218
|
+
<Presentation image={Presentation.IMAGE_2} imageStyle={{width: "500px"}} text="\u8BF7\u9760\u8FD1\u62A5\u5E9F\u7EB8\u7BB1" subText="\u5F00\u59CB\u8BC6\u522B" transparent={true} ></Presentation>
|
|
219
|
+
<Presentation image={Presentation.IMAGE_3} text="\u8BF7\u9760\u8FD1\u7BB1\u7801\u8FDB\u884C\u8BC6\u522B" ></Presentation>
|
|
220
|
+
<<<<<<< HEAD:build/assets/index.bf651e56.js
|
|
221
|
+
`),e.createElement("h2",null,"\u53C2\u6570"),e.createElement("table",{className:"pure-table pure-table-bordered"},e.createElement("thead",null,e.createElement("tr",null,e.createElement("th",null,"\u5C5E\u6027"),e.createElement("th",null,"\u8BF4\u660E"),e.createElement("th",null,"\u7C7B\u578B"),e.createElement("th",null,"\u9ED8\u8BA4\u503C"))),e.createElement("tbody",null,e.createElement("tr",null,e.createElement("td",null,"image"),e.createElement("td",null,"\u56FE\u7247\u5730\u5740"),e.createElement("td",null,"string"),e.createElement("td",null,"\u53EF\u4EE5\u4F7F\u7528 Presentation.IMAGE_1, Presentation.IMAGE_2, Presentation.IMAGE_3, Presentation.IMAGE_4 4\u5F20\u5185\u7F6E\u56FE\u7247")),e.createElement("tr",null,e.createElement("td",null,"text"),e.createElement("td",null,"\u6587\u672C"),e.createElement("td",null,"string"),e.createElement("td",null)),e.createElement("tr",null,e.createElement("td",null,"transparent"),e.createElement("td",null,"\u662F\u5426\u900F\u660E\uFF0C\u4E0D\u663E\u793A\u88AB\u8272\u80CC\u666F"),e.createElement("td",null,"boolean"),e.createElement("td",null,"\u9ED8\u8BA4false")),e.createElement("tr",null,e.createElement("td",null,"subText"),e.createElement("td",null,"\u526F\u6587\u672C"),e.createElement("td",null,"string"),e.createElement("td",null)))))}function Te(){}function R(u){const{dataSource:t=[],onClickItem:n,onItemClick:l=Te}=u;return e.createElement("div",{className:"android-pda-list"},t.map((a,r)=>e.createElement(q,{key:a.key||r,dataSource:a,onClick:n||l})),u.children)}function q(u){const t=u.dataSource||{title:u.title,subTitle:u.subTitle,extra:u.extra,tags:u.tags},{title:n,subTitle:l,extra:a,tags:r=[],tabIndex:c}=t,{onClick:o}=u;return e.createElement("div",{className:"default-item",onClick:()=>{o(u.dataSource)},tabIndex:c},e.createElement("div",{className:"text"},e.createElement("div",null,n),e.createElement("div",{className:"sub-text"},l),e.createElement("div",{className:"sub-tags"},r.map(i=>e.createElement("div",{className:"sub-tag-item",key:i},i)))),e.createElement("div",{className:"extra"},a))}R.Item=q;const Le=[{title:"hello world",subTitle:"sub title",extra:"11111",tags:[1,2,3,4]},{title:"hello world",subTitle:"sub title",extra:"",tags:[1,2,3,4]},{title:"hello world",subTitle:"sub title"},{title:"hello world",subTitle:"sub title",extra:"11111"}];function _e(){return e.createElement("div",null,e.createElement("h1",null,"List"),e.createElement("p",null,"\u5217\u8868\u7EC4\u4EF6\uFF0C\u901A\u5E38\u8981\u914D\u5408\u4E0D\u540C\u7684 List Item \u6765\u4F7F\u7528"),e.createElement("h2",null,"\u793A\u4F8B"),e.createElement("div",{className:"light-block"},e.createElement(R,{onClickItem:console.log,dataSource:Le})),e.createElement("code",{className:"code"},`
|
|
222
|
+
=======
|
|
223
|
+
`),e.createElement("h2",null,"\u53C2\u6570"),e.createElement("table",{className:"pure-table pure-table-bordered"},e.createElement("thead",null,e.createElement("tr",null,e.createElement("th",null,"\u5C5E\u6027"),e.createElement("th",null,"\u8BF4\u660E"),e.createElement("th",null,"\u7C7B\u578B"),e.createElement("th",null,"\u9ED8\u8BA4\u503C"))),e.createElement("tbody",null,e.createElement("tr",null,e.createElement("td",null,"image"),e.createElement("td",null,"\u56FE\u7247\u5730\u5740"),e.createElement("td",null,"string"),e.createElement("td",null,"\u53EF\u4EE5\u4F7F\u7528 Presentation.IMAGE_1, Presentation.IMAGE_2, Presentation.IMAGE_3, Presentation.IMAGE_4 4\u5F20\u5185\u7F6E\u56FE\u7247")),e.createElement("tr",null,e.createElement("td",null,"text"),e.createElement("td",null,"\u6587\u672C"),e.createElement("td",null,"string"),e.createElement("td",null)),e.createElement("tr",null,e.createElement("td",null,"transparent"),e.createElement("td",null,"\u662F\u5426\u900F\u660E\uFF0C\u4E0D\u663E\u793A\u88AB\u8272\u80CC\u666F"),e.createElement("td",null,"boolean"),e.createElement("td",null,"\u9ED8\u8BA4false")),e.createElement("tr",null,e.createElement("td",null,"subText"),e.createElement("td",null,"\u526F\u6587\u672C"),e.createElement("td",null,"string"),e.createElement("td",null)))))}function Me(){}function R(u){const{dataSource:t=[],onClickItem:n,onItemClick:l=Me}=u;return e.createElement("div",{className:"android-pda-list"},t.map((a,r)=>e.createElement(Q,{key:a.key||r,dataSource:a,onClick:n||l})),u.children)}function Q(u){const t=u.dataSource||{title:u.title,subTitle:u.subTitle,extra:u.extra,tags:u.tags},{title:n,subTitle:l,extra:a,tags:r=[],tabIndex:c}=t,{onClick:o}=u;return e.createElement("div",{className:"default-item",onClick:()=>{o(u.dataSource)},tabIndex:c},e.createElement("div",{className:"text"},e.createElement("div",null,n),e.createElement("div",{className:"sub-text"},l),e.createElement("div",{className:"sub-tags"},r.map(i=>e.createElement("div",{className:"sub-tag-item",key:i},i)))),e.createElement("div",{className:"extra"},a))}R.Item=Q;const Pe=[{title:"hello world",subTitle:"sub title",extra:"11111",tags:[1,2,3,4]},{title:"hello world",subTitle:"sub title",extra:"",tags:[1,2,3,4]},{title:"hello world",subTitle:"sub title"},{title:"hello world",subTitle:"sub title",extra:"11111"}];function Re(){return e.createElement("div",null,e.createElement("h1",null,"List"),e.createElement("p",null,"\u5217\u8868\u7EC4\u4EF6\uFF0C\u901A\u5E38\u8981\u914D\u5408\u4E0D\u540C\u7684 List Item \u6765\u4F7F\u7528"),e.createElement("h2",null,"\u793A\u4F8B"),e.createElement("div",{className:"light-block"},e.createElement(R,{onClickItem:console.log,dataSource:Pe})),e.createElement("code",{className:"code"},`
|
|
224
|
+
>>>>>>> 4950ea9c56814a53676090cbc575b46125474ac4:build/assets/index.87a9df58.js
|
|
225
|
+
const dataSource = [{
|
|
226
|
+
title: "hello world",
|
|
227
|
+
subTitle:"sub title",
|
|
228
|
+
extra:"11111",
|
|
229
|
+
tags:[1,2,3,4]
|
|
230
|
+
},{
|
|
231
|
+
title: "hello world",
|
|
232
|
+
subTitle:"sub title",
|
|
233
|
+
extra:"",
|
|
234
|
+
tags:[1,2,3,4]
|
|
235
|
+
},{
|
|
236
|
+
title: "hello world",
|
|
237
|
+
subTitle:"sub title",
|
|
238
|
+
},{
|
|
239
|
+
title: "hello world",
|
|
240
|
+
subTitle:"sub title",
|
|
241
|
+
extra:"11111",
|
|
242
|
+
}];
|
|
243
|
+
<List
|
|
244
|
+
onClickItem={console.log}
|
|
245
|
+
tabIndex={0}
|
|
246
|
+
dataSource={dataSource}
|
|
247
|
+
>
|
|
248
|
+
</List>
|
|
249
|
+
<<<<<<< HEAD:build/assets/index.bf651e56.js
|
|
250
|
+
`),e.createElement("h2",null,"List"),e.createElement("table",{className:"pure-table pure-table-bordered"},e.createElement("thead",null,e.createElement("tr",null,e.createElement("th",null,"\u5C5E\u6027"),e.createElement("th",null,"\u8BF4\u660E"),e.createElement("th",null,"\u7C7B\u578B"),e.createElement("th",null,"\u9ED8\u8BA4\u503C"))),e.createElement("tbody",null,e.createElement("tr",null,e.createElement("td",null,"onClickItem"),e.createElement("td",null,"Item \u70B9\u51FB\u56DE\u8C03\uFF0C\u53C2\u6570 dataSource[i]"),e.createElement("td",null,"Function"),e.createElement("td",null,"-")),e.createElement("tr",null,e.createElement("td",null,"dataSource"),e.createElement("td",null,"Array({title, subTitle, extra, tags})"),e.createElement("td",null,"Array"),e.createElement("td",null,"-")))))}const z=()=>{};function Me(u){const[t,n]=h.exports.useState(!1),l=h.exports.useRef(null),{onWakeKeyboard:a=z,onClick:r=z}=u;return h.exports.useEffect(()=>{const c=o=>{o.preventDefault();const{code:i,keyCode:s,key:d}=o;if(i==="Enter"){r(l.current.value),n(!1);return}};return document.addEventListener("keyup",c),()=>{document.removeEventListener("keyup",c)}},[]),e.createElement("div",{className:"wakekeyborard"},t?e.createElement("div",{className:"wakekeyborard-overlay"},e.createElement("div",{className:"wakekeyborard-inputbox"},e.createElement("input",{ref:l,type:"tel"}),e.createElement(E,{type:"primary",onClick:c=>{r(l.current.value),n(!t)}},"\u67E5\u8BE2"))):null,t?null:e.createElement("div",{className:"wakekeyborard-icon",onClick:c=>{n(!t),requestAnimationFrame(()=>{l.current.focus(),a()})}}))}function Pe(){return e.createElement("div",null,e.createElement("h1",null,"WakeKeyborard"),e.createElement("p",null,"WakeKeyborard"),e.createElement("h2",null,"\u793A\u4F8B"),e.createElement("div",{className:"light-block"},e.createElement("p",null,"\u70B9\u51FB\u53F3\u4E0B\u89D2\u952E\u76D8"),e.createElement(Me,{onWakeKeyboard:()=>{console.log("wake keyboard")},onClick:u=>{console.log("v is ",u)}})),e.createElement("code",{className:"code"},`
|
|
251
|
+
=======
|
|
252
|
+
`),e.createElement("h2",null,"List"),e.createElement("table",{className:"pure-table pure-table-bordered"},e.createElement("thead",null,e.createElement("tr",null,e.createElement("th",null,"\u5C5E\u6027"),e.createElement("th",null,"\u8BF4\u660E"),e.createElement("th",null,"\u7C7B\u578B"),e.createElement("th",null,"\u9ED8\u8BA4\u503C"))),e.createElement("tbody",null,e.createElement("tr",null,e.createElement("td",null,"onClickItem"),e.createElement("td",null,"Item \u70B9\u51FB\u56DE\u8C03\uFF0C\u53C2\u6570 dataSource[i]"),e.createElement("td",null,"Function"),e.createElement("td",null,"-")),e.createElement("tr",null,e.createElement("td",null,"dataSource"),e.createElement("td",null,"Array({title, subTitle, extra, tags})"),e.createElement("td",null,"Array"),e.createElement("td",null,"-")))))}const Z=()=>{};function We(u){const[t,n]=p.exports.useState(!1),l=p.exports.useRef(null),{onWakeKeyboard:a=Z,onClick:r=Z}=u;return p.exports.useEffect(()=>{const c=o=>{o.preventDefault();const{code:i,keyCode:s,key:m}=o;if(i==="Enter"){r(l.current.value),n(!1);return}};return document.addEventListener("keyup",c),()=>{document.removeEventListener("keyup",c)}},[]),e.createElement("div",{className:"wakekeyborard"},t?e.createElement("div",{className:"wakekeyborard-overlay"},e.createElement("div",{className:"wakekeyborard-inputbox"},e.createElement("input",{ref:l,type:"tel"}),e.createElement(d,{type:"primary",onClick:c=>{r(l.current.value),n(!t)}},"\u67E5\u8BE2"))):null,t?null:e.createElement("div",{className:"wakekeyborard-icon",onClick:c=>{n(!t),requestAnimationFrame(()=>{l.current.focus(),a()})}}))}function $e(){return e.createElement("div",null,e.createElement("h1",null,"WakeKeyborard"),e.createElement("p",null,"WakeKeyborard"),e.createElement("h2",null,"\u793A\u4F8B"),e.createElement("div",{className:"light-block"},e.createElement("p",null,"\u70B9\u51FB\u53F3\u4E0B\u89D2\u952E\u76D8"),e.createElement(We,{onWakeKeyboard:()=>{console.log("wake keyboard")},onClick:u=>{console.log("v is ",u)}})),e.createElement("code",{className:"code"},`
|
|
253
|
+
>>>>>>> 4950ea9c56814a53676090cbc575b46125474ac4:build/assets/index.87a9df58.js
|
|
254
|
+
<WakeKeyborard
|
|
255
|
+
onWakeKeyboard={ () => {console.log('wake keyboard')}}
|
|
256
|
+
onClick={v => {console.log('v is ', v);}}
|
|
257
|
+
/>
|
|
258
|
+
<<<<<<< HEAD:build/assets/index.bf651e56.js
|
|
259
|
+
`),e.createElement("h2",null,"\u53C2\u6570"),e.createElement("table",{className:"pure-table pure-table-bordered"},e.createElement("thead",null,e.createElement("tr",null,e.createElement("th",null,"\u5C5E\u6027"),e.createElement("th",null,"\u8BF4\u660E"),e.createElement("th",null,"\u7C7B\u578B"),e.createElement("th",null,"\u9ED8\u8BA4\u503C"))),e.createElement("tbody",null,e.createElement("tr",null,e.createElement("td",null,"onWakeKeyboard"),e.createElement("td",null,"\u5524\u8D77\u952E\u76D8\u56DE\u8C03"),e.createElement("td",null,"function"),e.createElement("td",null)),e.createElement("tr",null,e.createElement("td",null,"onClick"),e.createElement("td",null,"\u70B9\u51FB\u67E5\u8BE2\u56DE\u8C03"),e.createElement("td",null,"function: (value) => "),e.createElement("td",null,"(value) => ")))))}function Q(u){const{title:t,context:n,name:l,tag:a,attrs:r=[],style:c}=u;return e.createElement("div",{className:"android-sub-card",style:c},e.createElement("div",{className:"android-sub-card-title-section"},e.createElement("div",{className:"android-sub-card-title"},t),a?e.createElement("div",{className:"android-sub-card-tag"},e.createElement("div",{className:a.type},a.label||"")):null),e.createElement("div",{className:"android-sub-card-context"},n),l?e.createElement("div",{className:"android-sub-card-name"},l):null,e.createElement("div",{className:"android-sub-card-attrs"},r.map(o=>e.createElement("div",{key:o},o))))}function Re(){return e.createElement("div",null,e.createElement("h1",null,"SubCard"),e.createElement("p",null,"\u9644\u5361\u7247"),e.createElement("h2",null,"\u793A\u4F8B"),e.createElement("div",{className:"dark-block",style:{display:"flex"}},e.createElement(Q,{style:{marginRight:"20px"},tag:{label:"\u6563\u7BB1",type:"default"},title:"\u54C1\u53F7",context:"5082 7834",attrs:["\u6279\u6B21\uFF1A23842839","\u6570\u91CF\uFF1A234"]}),e.createElement(Q,{title:"\u54C1\u53F7",tag:{label:"\u5C11\u8D27",type:"warning"},context:"5082 7834",name:"\u5F90\u798F\u8BB0\u62B9\u8336\u51E4\u68A8\u916517g",attrs:["\u6279\u6B21\uFF1A23842839","\u6570\u91CF\uFF1A234"]})),e.createElement("code",{className:"code"},`
|
|
260
|
+
<SubCard style={{marginRight: "20px"}} tag={{label: "\u6563\u7BB1", type: "default"}} title="\u54C1\u53F7" context="5082 7834" attrs={["\u6279\u6B21\uFF1A23842839", "\u6570\u91CF\uFF1A234"]} ></SubCard>
|
|
261
|
+
<SubCard title="\u54C1\u53F7" tag={{label: "\u5C11\u8D27", type: "warning"}} context="5082 7834" name="\u5F90\u798F\u8BB0\u62B9\u8336\u51E4\u68A8\u916517g" attrs={["\u6279\u6B21\uFF1A23842839", "\u6570\u91CF\uFF1A234"]} ></SubCard>
|
|
262
|
+
`),e.createElement("h2",null,"\u53C2\u6570"),e.createElement("table",{className:"pure-table pure-table-bordered"},e.createElement("thead",null,e.createElement("tr",null,e.createElement("th",null,"\u5C5E\u6027"),e.createElement("th",null,"\u8BF4\u660E"),e.createElement("th",null,"\u7C7B\u578B"),e.createElement("th",null,"\u9ED8\u8BA4\u503C"))),e.createElement("tbody",null,e.createElement("tr",null,e.createElement("td",null,"title"),e.createElement("td",null,"\u6807\u9898"),e.createElement("td",null,"string"),e.createElement("td",null)),e.createElement("tr",null,e.createElement("td",null,"context"),e.createElement("td",null,"\u5185\u5BB9"),e.createElement("td",null,"string"),e.createElement("td",null)),e.createElement("tr",null,e.createElement("td",null,"name"),e.createElement("td",null,"\u54C1\u540D"),e.createElement("td",null,"string"),e.createElement("td",null)),e.createElement("tr",null,e.createElement("td",null,"tag"),e.createElement("td",null,"\u6807\u7B7E\u540D"),e.createElement("td",null,"object"),e.createElement("td",null)),e.createElement("tr",null,e.createElement("td",null,"attrs"),e.createElement("td",null,"Array"),e.createElement("td",null),e.createElement("td",null)))))}const w=()=>{};class T extends e.Component{constructor(t){super(t);this.state={},this._handleKeyUp=n=>{const{onScan:l=w,onEnter:a=w,onEsc:r=w,onDelete:c=w,scanMode:o=null}=this.props;n.preventDefault();const{code:i,keyCode:s,key:d}=n;if(i==="Enter"){a(n);return}if(i==="Delete"){c(n);return}if(i==="Esc"){r(n);return}},this._handleBeforeUnload=n=>(n.returnValue="\u786E\u5B9A\u79BB\u5F00\u5F53\u524D\u9875\u9762\u5417\uFF1F",!0),this._handleUnload=n=>{WindVane.call("WindvanePlugin","invoke","{'domain': 'rfid', 'method': 'stopRfidScan', 'params':null}",function(a){},function(a){});const l={tag:"stopRfid",level:"d",message:"stop rfid scan!!!"};WindVaneLog(l),WindVaneLog(l)}}componentDidMount(){window.onunload=this._handleUnload,document.addEventListener("keyup",this._handleKeyUp)}componentWillUnmount(){window.onbeforeunload=null,window.onunload=null,document.removeEventListener("keyup",this._handleKeyUp)}render(){const t=this.props,{style:n={},header:l,footer:a}=this.props;return e.createElement("div",{className:m({"baselayout-wrapper":!0}),style:n},l&&e.createElement("div",{className:m({"baselayout-header":!0})},l),e.createElement("div",{className:m({"baselayout-container":!0})},t.children),a&&e.createElement("div",{className:m({"baselayout-footer":!0})},a))}}const We=()=>{};class $e extends e.Component{constructor(t){super(t);this._rfidBeginScan=!1,this._handleRfidScan=n=>{const{onRfidOnce:l,onRfidBoxOnce:a,onRfidPalletOnce:r}=this.props,c=n.param,o=c.rfidData.startsWith("0F006"),i=c.rfidData.startsWith("0F011");if(i){let s=c.rfidData;c.originData=s,c.rfidData=s.substr(5,12)}a&&o?(this._stopWork(),a(c)):r&&i&&(this._stopWork(),r(c)),l&&(this._stopWork(),l(c))},this._startWork=n=>{document.addEventListener("ContinuousRfidScan",this._handleRfidScan),WindVane.call("WindvanePlugin","invoke","{'domain': 'rfid', 'method': 'startScan', 'params': null}",function(l){},function(l){}),this._rfidBeginScan=!0},this._stopWork=n=>{document.removeEventListener("ContinuousRfidScan",this._handleRfidScan),WindVane.call("WindvanePlugin","invoke","{'domain': 'rfid', 'method': 'stopScan', 'params':null}",function(l){},function(l){})},this._handleKeyDown=n=>{const{code:l,keyCode:a,key:r}=n;(l==="F22"||l==="F23"||l==="F24"||l==="F9"||l==="F16")&&(this._rfidBeginScan||this._startWork())},this._handleKeyUp=n=>{const{code:l,keyCode:a,key:r}=n;(l==="F22"||l==="F23"||l==="F24"||l==="F9"||l==="F16")&&(this._stopWork(),this._rfidBeginScan=!1)}}componentDidMount(){document.addEventListener("keydown",this._handleKeyDown),document.addEventListener("keyup",this._handleKeyUp),WindVane.call("WindvanePlugin","invoke","{'domain': 'keyboard', 'method': 'changeScanMode', 'params': {'scanMode': 'RFID'}}",function(t){},function(t){})}componentWillUnmount(){document.removeEventListener("keydown",this._handleKeyDown),document.removeEventListener("keyup",this._handleKeyUp)}render(){const a=this.props,{onRfidOnce:n=We}=a,l=x(a,["onRfidOnce"]);return e.createElement(T,g({},l))}}const Oe=()=>{};class Z extends e.Component{constructor(t){super(t);this._rfidBeginScan=!1,this._handleRfidScan=n=>{const{onRfidScan:l,onRfidBoxScan:a,onRfidPalletScan:r}=this.props,c=n.param,o=c.rfidData.startsWith("0F006"),i=c.rfidData.startsWith("0F011");if(i){let s=c.rfidData;c.originData=s,c.rfidData=s.substr(5,12)}o&&a?a(c):i&&r&&r(c),l&&l(c)},this._startWork=n=>{document.addEventListener("ContinuousRfidScan",this._handleRfidScan),WindVane.call("WindvanePlugin","invoke","{'domain': 'rfid', 'method': 'startScan', 'params': null}",function(l){},function(l){}),this._rfidBeginScan=!0},this._stopWork=n=>{document.removeEventListener("ContinuousRfidScan",this._handleRfidScan),WindVane.call("WindvanePlugin","invoke","{'domain': 'rfid', 'method': 'stopScan', 'params':null}",function(l){},function(l){})},this._handleKeyDown=n=>{const{code:l,keyCode:a,key:r}=n;(l==="F22"||l==="F23"||l==="F24"||l==="F9"||l==="F16")&&(this._rfidBeginScan||this._startWork())},this._handleKeyUp=n=>{const{code:l,keyCode:a,key:r}=n;(l==="F22"||l==="F23"||l==="F24"||l==="F9"||l==="F16")&&(this._stopWork(),this._rfidBeginScan=!1)}}componentDidMount(){const{autoRfidScan:t=!1,rfidReaderSleep:n}=this.props;WindVane.call("WindvanePlugin","invoke","{'domain': 'keyboard', 'method': 'changeScanMode', 'params': {'scanMode': 'RFID'}}",function(l){},function(l){}),t?n||this._startWork():(document.addEventListener("keydown",this._handleKeyDown),document.addEventListener("keyup",this._handleKeyUp))}componentWillUnmount(){document.removeEventListener("keydown",this._handleKeyDown),document.removeEventListener("keyup",this._handleKeyUp),this._stopWork()}shouldComponentUpdate(t,n){return this.props.autoRfidScan&&this.props.rfidReaderSleep!==t.rfidReaderSleep&&(t.rfidReaderSleep?this._stopWork():this._startWork()),!0}render(){const r=this.props,{onRfidScan:n=Oe,autoRfidScan:l}=r,a=x(r,["onRfidScan","autoRfidScan"]);return e.createElement(T,g({},a))}}N(Z,"defaultProps",{rfidReaderSleep:!1});const He=()=>{};class Ke extends e.Component{constructor(t){super(t);this._barcodeBeginScan=!1,this._handleBarcodeScan=n=>{const{onBarcodeScan:l}=this.props;this._stopWork(),l(n.param)},this._startWork=n=>{document.addEventListener("BarcodeScan",this._handleBarcodeScan),this._barcodeBeginScan=!0},this._stopWork=n=>{document.removeEventListener("BarcodeScan",this._handleBarcodeScan)},this._handleKeyDown=n=>{const{code:l,keyCode:a,key:r}=n;(l==="F22"||l==="F23"||l==="F24"||l==="F9"||l==="F16")&&(this._barcodeBeginScan||this._startWork())},this._handleKeyUp=n=>{const{code:l,keyCode:a,key:r}=n;(l==="F22"||l==="F23"||l==="F24"||l==="F9"||l==="F16")&&(this._stopWork(),this._barcodeBeginScan=!1)}}componentDidMount(){document.addEventListener("keydown",this._handleKeyDown),document.addEventListener("keyup",this._handleKeyUp),WindVane.call("WindvanePlugin","invoke","{'domain': 'keyboard', 'method': 'changeScanMode', 'params': {'scanMode': 'barcode'}}",function(t){},function(t){})}componentWillUnmount(){document.removeEventListener("keydown",this._handleKeyDown),document.removeEventListener("keyup",this._handleKeyUp)}render(){const a=this.props,{onBarcodeScan:n=He}=a,l=x(a,["onBarcodeScan"]);return e.createElement(T,g({},l))}}class W extends e.Component{constructor(t){super(t)}render(){const t=this.props,{onBarcodeScan:n,onRfidOnce:l,onRfidBoxOnce:a,onRfidPalletOnce:r,onRfidScan:c,onRfidBoxScan:o,onRfidPalletScan:i}=t;return l||a||r?e.createElement($e,g({},t)):c||o||i?e.createElement(Z,g({},t)):n?e.createElement(Ke,g({},t)):e.createElement(T,g({},t))}}class v extends e.Component{constructor(t){super(t)}render(){const{className:t,title:n,infoList:l=[],isError:a=!1,buttonMultiLines:r=!1,style:c={},onClick:o=()=>{},okText:i="\u8FD4\u56DE\u9996\u9875",cancelText:s=null}=this.props,d=e.createElement(E.Group,null,s?e.createElement(E,{style:r?{height:"auto",lineHeight:"50px"}:{},type:"dark",onClick:()=>o(!1)},s):null,e.createElement(E,{type:"primary",style:r?{height:"auto",lineHeight:"normal"}:{},onClick:()=>o(!0)},i));return e.createElement(W,{footer:d},e.createElement("div",{className:"pda-finish-card-top"},e.createElement("img",{className:"pda-finish-card-img",src:a?v.ERROR_SUCCESS:v.SUCCESS}),e.createElement("p",{className:"pda-finish-card-title"},n),l.map((F,y)=>e.createElement("p",{key:y,className:"pda-finish-card-list"},e.createElement("span",null,F.label||""),e.createElement("span",null,F.content||"")))))}}v.SUCCESS="https://img.alicdn.com/imgextra/i2/O1CN01yYwwSx1uNV0M1gHlQ_!!6000000006025-1-tps-630-436.gif";v.ERROR_SUCCESS="https://img.alicdn.com/imgextra/i3/O1CN01p5Oc5t1VMFWtBomQc_!!6000000002638-1-tps-600-456.gif";function Ge(){return e.createElement("div",null,e.createElement("h1",null,"FinishCard"),e.createElement("p",null," \u5B8C\u6210\u7EC4\u4EF6"),e.createElement("h2",null,"\u793A\u4F8B"),e.createElement("div",{className:"dark-block",style:{display:"flex",flexDirection:"row",position:"relative",width:480,height:800}},e.createElement(v,{title:"\u66F4\u6362\u6808\u677F\u7801\u5B8C\u6210",isError:!0,infoList:[{label:"\u65B0\u6808\u677F\u7801\uFF1A",content:"234982093"},{label:"\u539F\u6808\u677F\u7801\uFF1A",content:"234982093"}],okText:"\u8FD4\u56DE\u9996\u9875",onClick:u=>{console.log("isConfirm",u)}})),e.createElement("div",{className:"dark-block",style:{display:"flex",flexDirection:"row",position:"relative",width:480,height:800}},e.createElement(v,{title:"\u66F4\u6362\u6808\u677F\u7801\u5B8C\u6210",infoList:[{label:"\u65B0\u6808\u677F\u7801\uFF1A",content:"234982093"},{label:"\u539F\u6808\u677F\u7801\uFF1A",content:"234982093"}],buttonMultiLines:!0,okText:"\u8FD4\u56DE\u9996\u9875",cancelText:e.createElement("span",null,"\u8FD4\u56DE",e.createElement("br",null),"\u6682\u5B58\u4EFB\u52A1"),onClick:u=>{console.log("isConfirm",u)}})),e.createElement("code",{className:"code"},`
|
|
263
|
+
=======
|
|
264
|
+
`),e.createElement("h2",null,"\u53C2\u6570"),e.createElement("table",{className:"pure-table pure-table-bordered"},e.createElement("thead",null,e.createElement("tr",null,e.createElement("th",null,"\u5C5E\u6027"),e.createElement("th",null,"\u8BF4\u660E"),e.createElement("th",null,"\u7C7B\u578B"),e.createElement("th",null,"\u9ED8\u8BA4\u503C"))),e.createElement("tbody",null,e.createElement("tr",null,e.createElement("td",null,"onWakeKeyboard"),e.createElement("td",null,"\u5524\u8D77\u952E\u76D8\u56DE\u8C03"),e.createElement("td",null,"function"),e.createElement("td",null)),e.createElement("tr",null,e.createElement("td",null,"onClick"),e.createElement("td",null,"\u70B9\u51FB\u67E5\u8BE2\u56DE\u8C03"),e.createElement("td",null,"function: (value) => "),e.createElement("td",null,"(value) => ")))))}function J(u){const{title:t,context:n,name:l,tag:a,attrs:r=[],style:c}=u;return e.createElement("div",{className:"android-sub-card",style:c},e.createElement("div",{className:"android-sub-card-title-section"},e.createElement("div",{className:"android-sub-card-title"},t),a?e.createElement("div",{className:"android-sub-card-tag"},e.createElement("div",{className:a.type},a.label||"")):null),e.createElement("div",{className:"android-sub-card-context"},n),l?e.createElement("div",{className:"android-sub-card-name"},l):null,e.createElement("div",{className:"android-sub-card-attrs"},r.map(o=>e.createElement("div",{key:o},o))))}function Oe(){return e.createElement("div",null,e.createElement("h1",null,"SubCard"),e.createElement("p",null,"\u9644\u5361\u7247"),e.createElement("h2",null,"\u793A\u4F8B"),e.createElement("div",{className:"dark-block",style:{display:"flex"}},e.createElement(J,{style:{marginRight:"20px"},tag:{label:"\u6563\u7BB1",type:"default"},title:"\u54C1\u53F7",context:"5082 7834",attrs:["\u6279\u6B21\uFF1A23842839","\u6570\u91CF\uFF1A234"]}),e.createElement(J,{title:"\u54C1\u53F7",tag:{label:"\u5C11\u8D27",type:"warning"},context:"5082 7834",name:"\u5F90\u798F\u8BB0\u62B9\u8336\u51E4\u68A8\u916517g",attrs:["\u6279\u6B21\uFF1A23842839","\u6570\u91CF\uFF1A234"]})),e.createElement("code",{className:"code"},`
|
|
265
|
+
<SubCard style={{marginRight: "20px"}} tag={{label: "\u6563\u7BB1", type: "default"}} title="\u54C1\u53F7" context="5082 7834" attrs={["\u6279\u6B21\uFF1A23842839", "\u6570\u91CF\uFF1A234"]} ></SubCard>
|
|
266
|
+
<SubCard title="\u54C1\u53F7" tag={{label: "\u5C11\u8D27", type: "warning"}} context="5082 7834" name="\u5F90\u798F\u8BB0\u62B9\u8336\u51E4\u68A8\u916517g" attrs={["\u6279\u6B21\uFF1A23842839", "\u6570\u91CF\uFF1A234"]} ></SubCard>
|
|
267
|
+
`),e.createElement("h2",null,"\u53C2\u6570"),e.createElement("table",{className:"pure-table pure-table-bordered"},e.createElement("thead",null,e.createElement("tr",null,e.createElement("th",null,"\u5C5E\u6027"),e.createElement("th",null,"\u8BF4\u660E"),e.createElement("th",null,"\u7C7B\u578B"),e.createElement("th",null,"\u9ED8\u8BA4\u503C"))),e.createElement("tbody",null,e.createElement("tr",null,e.createElement("td",null,"title"),e.createElement("td",null,"\u6807\u9898"),e.createElement("td",null,"string"),e.createElement("td",null)),e.createElement("tr",null,e.createElement("td",null,"context"),e.createElement("td",null,"\u5185\u5BB9"),e.createElement("td",null,"string"),e.createElement("td",null)),e.createElement("tr",null,e.createElement("td",null,"name"),e.createElement("td",null,"\u54C1\u540D"),e.createElement("td",null,"string"),e.createElement("td",null)),e.createElement("tr",null,e.createElement("td",null,"tag"),e.createElement("td",null,"\u6807\u7B7E\u540D"),e.createElement("td",null,"object"),e.createElement("td",null)),e.createElement("tr",null,e.createElement("td",null,"attrs"),e.createElement("td",null,"Array"),e.createElement("td",null),e.createElement("td",null)))))}const w=()=>{};class T extends e.Component{constructor(t){super(t);this.state={},this._handleKeyUp=n=>{const{onScan:l=w,onEnter:a=w,onEsc:r=w,onDelete:c=w,scanMode:o=null}=this.props;n.preventDefault();const{code:i,keyCode:s,key:m}=n;if(i==="Enter"){a(n);return}if(i==="Delete"){c(n);return}if(i==="Esc"){r(n);return}},this._handleBeforeUnload=n=>(n.returnValue="\u786E\u5B9A\u79BB\u5F00\u5F53\u524D\u9875\u9762\u5417\uFF1F",!0),this._handleUnload=n=>{WindVane.call("WindvanePlugin","invoke","{'domain': 'rfid', 'method': 'stopRfidScan', 'params':null}",function(a){},function(a){});const l={tag:"stopRfid",level:"d",message:"stop rfid scan!!!"};WindVaneLog(l),WindVaneLog(l)}}componentDidMount(){window.onunload=this._handleUnload,document.addEventListener("keyup",this._handleKeyUp)}componentWillUnmount(){window.onbeforeunload=null,window.onunload=null,document.removeEventListener("keyup",this._handleKeyUp)}render(){const t=this.props,{style:n={},header:l,footer:a}=this.props;return e.createElement("div",{className:E({"baselayout-wrapper":!0}),style:n},l&&e.createElement("div",{className:E({"baselayout-header":!0})},l),e.createElement("div",{className:E({"baselayout-container":!0})},t.children),a&&e.createElement("div",{className:E({"baselayout-footer":!0})},a))}}const Ke=()=>{};class He extends e.Component{constructor(t){super(t);this._rfidBeginScan=!1,this._handleRfidScan=n=>{const{onRfidOnce:l,onRfidBoxOnce:a,onRfidPalletOnce:r}=this.props,o=!n.param.rfidData.startsWith("0F011");a?o&&(this._stopWork(),a(n.param)):r&&(o||(this._stopWork(),r(n.param))),l&&(this._stopWork(),l(n.param))},this._startWork=n=>{document.addEventListener("ContinuousRfidScan",this._handleRfidScan),WindVane.call("WindvanePlugin","invoke","{'domain': 'rfid', 'method': 'startScan', 'params': null}",function(l){},function(l){}),this._rfidBeginScan=!0},this._stopWork=n=>{document.removeEventListener("ContinuousRfidScan",this._handleRfidScan),WindVane.call("WindvanePlugin","invoke","{'domain': 'rfid', 'method': 'stopScan', 'params':null}",function(l){},function(l){})},this._handleKeyDown=n=>{const{code:l,keyCode:a,key:r}=n;(l==="F22"||l==="F23"||l==="F24"||l==="F9"||l==="F16")&&(this._rfidBeginScan||this._startWork())},this._handleKeyUp=n=>{const{code:l,keyCode:a,key:r}=n;(l==="F22"||l==="F23"||l==="F24"||l==="F9"||l==="F16")&&(this._stopWork(),this._rfidBeginScan=!1)}}componentDidMount(){document.addEventListener("keydown",this._handleKeyDown),document.addEventListener("keyup",this._handleKeyUp),WindVane.call("WindvanePlugin","invoke","{'domain': 'keyboard', 'method': 'changeScanMode', 'params': {'scanMode': 'RFID'}}",function(t){},function(t){})}componentWillUnmount(){document.removeEventListener("keydown",this._handleKeyDown),document.removeEventListener("keyup",this._handleKeyUp)}render(){const a=this.props,{onRfidOnce:n=Ke}=a,l=N(a,["onRfidOnce"]);return e.createElement(T,g({},l))}}const Xe=()=>{};class ee extends e.Component{constructor(t){super(t);this._rfidBeginScan=!1,this._handleRfidScan=n=>{const{onRfidScan:l,onRfidBoxScan:a,onRfidPalletScan:r}=this.props,c=n.param,o=!c.rfidData.startsWith("0F011");o&&a?a(c):!o&&r&&r(c),l(c)},this._startWork=n=>{document.addEventListener("ContinuousRfidScan",this._handleRfidScan),WindVane.call("WindvanePlugin","invoke","{'domain': 'rfid', 'method': 'startScan', 'params': null}",function(l){},function(l){}),this._rfidBeginScan=!0},this._stopWork=n=>{document.removeEventListener("ContinuousRfidScan",this._handleRfidScan),WindVane.call("WindvanePlugin","invoke","{'domain': 'rfid', 'method': 'stopScan', 'params':null}",function(l){},function(l){})},this._handleKeyDown=n=>{const{code:l,keyCode:a,key:r}=n;(l==="F22"||l==="F23"||l==="F24"||l==="F9"||l==="F16")&&(this._rfidBeginScan||this._startWork())},this._handleKeyUp=n=>{const{code:l,keyCode:a,key:r}=n;(l==="F22"||l==="F23"||l==="F24"||l==="F9"||l==="F16")&&(this._stopWork(),this._rfidBeginScan=!1)}}componentDidMount(){const{autoRfidScan:t=!1,rfidReaderSleep:n}=this.props;WindVane.call("WindvanePlugin","invoke","{'domain': 'keyboard', 'method': 'changeScanMode', 'params': {'scanMode': 'RFID'}}",function(l){},function(l){}),t?n||this._startWork():(document.addEventListener("keydown",this._handleKeyDown),document.addEventListener("keyup",this._handleKeyUp))}componentWillUnmount(){document.removeEventListener("keydown",this._handleKeyDown),document.removeEventListener("keyup",this._handleKeyUp),this._stopWork()}shouldComponentUpdate(t,n){return this.props.autoRfidScan&&this.props.rfidReaderSleep!==t.rfidReaderSleep&&(t.rfidReaderSleep?this._stopWork():this._startWork()),!0}render(){const r=this.props,{onRfidScan:n=Xe,autoRfidScan:l}=r,a=N(r,["onRfidScan","autoRfidScan"]);return e.createElement(T,g({},a))}}x(ee,"defaultProps",{rfidReaderSleep:!1});const Ge=()=>{};class Ue extends e.Component{constructor(t){super(t);this._barcodeBeginScan=!1,this._handleBarcodeScan=n=>{const{onBarcodeScan:l}=this.props;this._stopWork(),l(n.param)},this._startWork=n=>{document.addEventListener("BarcodeScan",this._handleBarcodeScan),this._barcodeBeginScan=!0},this._stopWork=n=>{document.removeEventListener("BarcodeScan",this._handleBarcodeScan)},this._handleKeyDown=n=>{const{code:l,keyCode:a,key:r}=n;(l==="F22"||l==="F23"||l==="F24"||l==="F9"||l==="F16")&&(this._barcodeBeginScan||this._startWork())},this._handleKeyUp=n=>{const{code:l,keyCode:a,key:r}=n;(l==="F22"||l==="F23"||l==="F24"||l==="F9"||l==="F16")&&(this._stopWork(),this._barcodeBeginScan=!1)}}componentDidMount(){document.addEventListener("keydown",this._handleKeyDown),document.addEventListener("keyup",this._handleKeyUp),WindVane.call("WindvanePlugin","invoke","{'domain': 'keyboard', 'method': 'changeScanMode', 'params': {'scanMode': 'barcode'}}",function(t){},function(t){})}componentWillUnmount(){document.removeEventListener("keydown",this._handleKeyDown),document.removeEventListener("keyup",this._handleKeyUp)}render(){const a=this.props,{onBarcodeScan:n=Ge}=a,l=N(a,["onBarcodeScan"]);return e.createElement(T,g({},l))}}class W extends e.Component{constructor(t){super(t)}render(){const t=this.props,{onBarcodeScan:n,onRfidOnce:l,onRfidBoxOnce:a,onRfidPalletOnce:r,onRfidScan:c,onRfidBoxScan:o,onRfidPalletScan:i}=t;return l||a||r?e.createElement(He,g({},t)):c||o||i?e.createElement(ee,g({},t)):n?e.createElement(Ue,g({},t)):e.createElement(T,g({},t))}}class v extends e.Component{constructor(t){super(t)}render(){const{className:t,title:n,infoList:l=[],isError:a=!1,buttonMultiLines:r=!1,style:c={},onClick:o=()=>{},okText:i="\u8FD4\u56DE\u9996\u9875",cancelText:s=null}=this.props,m=e.createElement(d.Group,null,s?e.createElement(d,{style:r?{height:"auto",lineHeight:"50px"}:{},type:"dark",onClick:()=>o(!1)},s):null,e.createElement(d,{type:"primary",style:r?{height:"auto",lineHeight:"normal"}:{},onClick:()=>o(!0)},i));return e.createElement(W,{footer:m},e.createElement("div",{className:"pda-finish-card-top"},e.createElement("img",{className:"pda-finish-card-img",src:a?v.ERROR_SUCCESS:v.SUCCESS}),e.createElement("p",{className:"pda-finish-card-title"},n),l.map((h,f)=>e.createElement("p",{key:f,className:"pda-finish-card-list"},e.createElement("span",null,h.label||""),e.createElement("span",null,h.content||"")))))}}v.SUCCESS="https://img.alicdn.com/imgextra/i2/O1CN01yYwwSx1uNV0M1gHlQ_!!6000000006025-1-tps-630-436.gif";v.ERROR_SUCCESS="https://img.alicdn.com/imgextra/i3/O1CN01p5Oc5t1VMFWtBomQc_!!6000000002638-1-tps-600-456.gif";function je(){return e.createElement("div",null,e.createElement("h1",null,"FinishCard"),e.createElement("p",null," \u5B8C\u6210\u7EC4\u4EF6"),e.createElement("h2",null,"\u793A\u4F8B"),e.createElement("div",{className:"dark-block",style:{display:"flex",flexDirection:"row",position:"relative",width:480,height:800}},e.createElement(v,{title:"\u66F4\u6362\u6808\u677F\u7801\u5B8C\u6210",isError:!0,infoList:[{label:"\u65B0\u6808\u677F\u7801\uFF1A",content:"234982093"},{label:"\u539F\u6808\u677F\u7801\uFF1A",content:"234982093"}],okText:"\u8FD4\u56DE\u9996\u9875",onClick:u=>{console.log("isConfirm",u)}})),e.createElement("div",{className:"dark-block",style:{display:"flex",flexDirection:"row",position:"relative",width:480,height:800}},e.createElement(v,{title:"\u66F4\u6362\u6808\u677F\u7801\u5B8C\u6210",infoList:[{label:"\u65B0\u6808\u677F\u7801\uFF1A",content:"234982093"},{label:"\u539F\u6808\u677F\u7801\uFF1A",content:"234982093"}],buttonMultiLines:!0,okText:"\u8FD4\u56DE\u9996\u9875",cancelText:e.createElement("span",null,"\u8FD4\u56DE",e.createElement("br",null),"\u6682\u5B58\u4EFB\u52A1"),onClick:u=>{console.log("isConfirm",u)}})),e.createElement("code",{className:"code"},`
|
|
268
|
+
>>>>>>> 4950ea9c56814a53676090cbc575b46125474ac4:build/assets/index.87a9df58.js
|
|
269
|
+
<FinishCard
|
|
270
|
+
title="\u66F4\u6362\u6808\u677F\u7801\u5B8C\u6210"
|
|
271
|
+
infoList={
|
|
272
|
+
[
|
|
273
|
+
{label: '\u65B0\u6808\u677F\u7801\uFF1A', content: '234982093'},
|
|
274
|
+
{label: '\u539F\u6808\u677F\u7801\uFF1A', content: '234982093'},
|
|
275
|
+
]
|
|
276
|
+
}
|
|
277
|
+
buttonMultiLines
|
|
278
|
+
okText="\u8FD4\u56DE\u9996\u9875"
|
|
279
|
+
cancelText={<span>\u8FD4\u56DE<br />\u6682\u5B58\u4EFB\u52A1</span>}
|
|
280
|
+
onClick={(isConfirm)=>{
|
|
281
|
+
console.log("isConfirm", isConfirm);
|
|
282
|
+
}}
|
|
283
|
+
/>
|
|
284
|
+
`),e.createElement("h2",null,"\u53C2\u6570"),e.createElement("table",{className:"pure-table pure-table-bordered"},e.createElement("thead",null,e.createElement("tr",null,e.createElement("th",null,"\u5C5E\u6027"),e.createElement("th",null,"\u8BF4\u660E"),e.createElement("th",null,"\u7C7B\u578B"),e.createElement("th",null,"\u9ED8\u8BA4\u503C"))),e.createElement("tbody",null,e.createElement("tr",null,e.createElement("td",null,"title"),e.createElement("td",null,"\u6807\u9898"),e.createElement("td",null,"string"),e.createElement("td",null)),e.createElement("tr",null,e.createElement("td",null,"isError"),e.createElement("td",null,"\u662F\u5426\u5F02\u5E38\u5B8C\u6210"),e.createElement("td",null,"Boolean"),e.createElement("td",null,"false")),e.createElement("tr",null,e.createElement("td",null,"infoList"),e.createElement("td",null,"\u66F4\u591A\u4FE1\u606F"),e.createElement("td",null,"object[]"),e.createElement("td",null)),e.createElement("tr",null,e.createElement("td",null,"okText"),e.createElement("td",null,"\u786E\u8BA4\u6309\u94AE\u6587\u672C"),e.createElement("td",null,"string"),e.createElement("td",null,"\u8FD4\u56DE\u9996\u9875")),e.createElement("tr",null,e.createElement("td",null,"buttonMultiLines"),e.createElement("td",null,"\u6309\u94AE\u662F\u5426\u591A\u884C"),e.createElement("td",null,"boolean"),e.createElement("td",null,"false")),e.createElement("tr",null,e.createElement("td",null,"onClick"),e.createElement("td",null,"\u6309\u94AE\u70B9\u51FB\u56DE\u8C03"),e.createElement("td",null,"(isConfirm) => "),e.createElement("td",null)))))}class Ve extends e.Component{constructor(t){super(t)}render(){const{className:t,title:n,infoText:l,percentage:a=0,style:r={}}=this.props,c="https://img.alicdn.com/imgextra/i3/O1CN01EFksWL1DBZCu0H1JH_!!6000000000178-2-tps-21-30.png",o="https://img.alicdn.com/imgextra/i1/O1CN01YEhCSg1aObe8UZq7K_!!6000000003320-2-tps-379-17.png";return e.createElement("div",{className:E({[t]:!0,"pda-distance-card":!0}),style:r},e.createElement("p",{className:"pda-distance-card-highlight"},e.createElement("span",{className:"pda-distance-card-highlight1"},n)),e.createElement("div",{className:"pda-distance-indictor"},e.createElement("img",{src:c,width:20,height:29}),e.createElement("p",null,l)),e.createElement("div",{className:"pda-distance-card-progress"},e.createElement("div",{className:"pda-distance-card-progress-inside",style:{width:`${a*100}%`}}),e.createElement("img",{className:"pda-distance-card-progress-indictor",src:o})),e.createElement("div",{className:"pda-distance-label"},e.createElement("p",null,"\u8FDC"),e.createElement("p",null,"\u8FD1")))}}function Ye(){return e.createElement("div",null,e.createElement("h1",null,"DistanceCard"),e.createElement("p",null,"\u8DDD\u79BB\u7EC4\u4EF6"),e.createElement("h2",null,"\u793A\u4F8B"),e.createElement("div",{className:"light-block",style:{display:"flex",flexDirection:"row"}},e.createElement(Ve,{title:"\u8D27\u7269\u5728\u9644\u8FD1..",infoText:"\u79BB\u76EE\u6807\u8D27\u8DDD\u79BB",style:{width:"400px"},percentage:.56})),e.createElement("code",{className:"code"},`
|
|
285
|
+
<DistanceCard
|
|
286
|
+
title="\u8D27\u7269\u5728\u9644\u8FD1.."
|
|
287
|
+
infoText="\u79BB\u76EE\u6807\u8D27\u8DDD\u79BB"
|
|
288
|
+
style={{
|
|
289
|
+
width: '400px'
|
|
290
|
+
}}
|
|
291
|
+
percentage={0.56}
|
|
292
|
+
/>
|
|
293
|
+
<<<<<<< HEAD:build/assets/index.bf651e56.js
|
|
294
|
+
`),e.createElement("h2",null,"\u53C2\u6570"),e.createElement("table",{className:"pure-table pure-table-bordered"},e.createElement("thead",null,e.createElement("tr",null,e.createElement("th",null,"\u5C5E\u6027"),e.createElement("th",null,"\u8BF4\u660E"),e.createElement("th",null,"\u7C7B\u578B"),e.createElement("th",null,"\u9ED8\u8BA4\u503C"))),e.createElement("tbody",null,e.createElement("tr",null,e.createElement("td",null,"title"),e.createElement("td",null,"\u6807\u9898"),e.createElement("td",null,"string"),e.createElement("td",null)),e.createElement("tr",null,e.createElement("td",null,"infoText"),e.createElement("td",null,"\u63D0\u793A\u6587\u672C"),e.createElement("td",null,"string"),e.createElement("td",null)),e.createElement("tr",null,e.createElement("td",null,"percentage"),e.createElement("td",null,"\u8FDB\u5EA6\u6761\u767E\u5206\u6BD4"),e.createElement("td",null,"number"),e.createElement("td",null)))))}const Xe=/scroll|auto/i;function je(u){const t=1;return u.tagName!=="HTML"&&u.tagName!=="BODY"&&u.nodeType===t}function J(u,t){let n=u;for(;n&&n!==t&&je(n);){const{overflowY:l}=window.getComputedStyle(n);if(Xe.test(l))return n;n=n.parentNode}return t}function Ye(u){return e.createElement("div",{style:{color:u.color||"#999"}},e.createElement("svg",{height:"1em",viewBox:"0 0 100 40",style:{verticalAlign:"-0.125em"}},e.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},e.createElement("g",{transform:"translate(-100.000000, -71.000000)"},e.createElement("g",{transform:"translate(95.000000, 71.000000)"},e.createElement("g",{transform:"translate(5.000000, 0.000000)"},[0,1,2].map(t=>e.createElement("rect",{key:t,fill:"currentColor",x:20+t*26,y:"16",width:"8",height:"8",rx:"2"},e.createElement("animate",{attributeName:"y",from:"16",to:"16",dur:"2s",begin:`${t*.2}s`,repeatCount:"indefinite",values:"16; 6; 26; 16; 16",keyTimes:"0; 0.1; 0.3; 0.4; 1",id:"circ-anim"})))))))))}function qe(u){return u===window}function ze(u){const{className:t,hasMore:n,loadMore:l,threshold:a=0,style:r}=u,c=re(async()=>{await l()}),o=h.exports.useRef(null),i=ce(()=>{if(!n)return;const s=o.current;if(!s)return;const d=J(s);if(!d)return;const F=s.getBoundingClientRect().top;(qe(d)?window.innerHeight:d.getBoundingClientRect().bottom)>=F-a&&c()});return h.exports.useEffect(()=>{i()}),h.exports.useEffect(()=>{const s=o.current;if(!s)return;const d=J(s);if(!d)return;function F(){i()}return d.addEventListener("scroll",F),()=>{d.removeEventListener("scroll",F)}},[]),e.createElement("div",{className:m({[t]:!0,"pda-infinite-scroll":!0}),style:r,ref:o},n?e.createElement("div",{className:"pda-infinite-scroll-view"},e.createElement("span",null,"\u52A0\u8F7D\u4E2D"),e.createElement(Ye,null)):e.createElement("div",{className:"pda-infinite-scroll-view"},e.createElement("span",null,"\u6CA1\u6709\u66F4\u591A\u4E86~")))}const ee=()=>{};class Qe extends e.Component{constructor(t){super(t);N(this,"state",{showMenu:!1})}render(){const{className:t,goBack:n=!0,goBackHandle:l=ee,icon:a="scan",title:r="\u4EFB\u52A1",menuList:c=null}=this.props,{showMenu:o}=this.state;return e.createElement("div",{className:m({[t]:!0,"pda-header":!0})},e.createElement("div",{className:"header-click-area",onClick:n?l:ee},n&&e.createElement("div",{className:"pda-goback"}),a&&e.createElement("div",{className:m({"pda-header-icon":!0,["pda-header-icon-"+a]:!0})})),e.createElement("p",{className:m({"pda-title-text":!0})},r),c?e.createElement("div",{className:"pda-header-more",onClick:i=>{this.setState({showMenu:!0})}}):null,e.createElement(f,{visible:o,verticalPosition:"bottom",closable:!0,onClosed:i=>this.setState({showMenu:!1})},e.createElement("div",{className:"pda-menus"},c)))}}function Ze(u){const{service:t,data:n={}}=u,{title:l="title",message:a="message",okText:r="okText",cancelText:c=""}=n,o=e.useCallback(function(){t.onNext(!0)},[t]);return e.createElement(f,{verticalPosition:"bottom"},e.createElement(I,{title:l,message:a,okText:r,cancelText:c,onClick:o}))}function Je(u){const{service:t,data:n={}}=u,{title:l="title",message:a,subMessage:r=[],okText:c="okText",cancelText:o=""}=n,i=e.useCallback(function(s){t.onNext(s)},[t]);return e.createElement(f,{verticalPosition:"bottom"},e.createElement(I,{title:l,message:a,subMessage:r,okText:c,cancelText:o,onClick:i}))}function et(u){const{data:t={},service:n}=u,{title:l,level:a,message:r,duration:c=null}=t,[o,i]=h.exports.useState(!1);return e.useEffect(()=>{let s=null;return c&&setTimeout(()=>{i(!0),n.onNext("")},c),()=>{clearTimeout(s)}},[]),o?null:e.createElement(f,{verticalPosition:"bottom"},e.createElement("div",{style:{width:"90%"}},e.createElement(b,{type:a,title:l,message:tt(r)})))}function tt(u){var t=String(u).split("by Error:");return t[1]||t[0]}function lt(u){const{className:t="",visible:n,actions:l}=u;return e.createElement("div",{className:m({[t]:!0,"pda-action-sheet":!0,show:n})},e.createElement("div",{className:"pda-action-sheet-body"},l.map((a,r)=>e.createElement("div",{onClick:()=>{a.onClick(a.key)},className:"pda-action-sheet-item",key:r},a.title))))}const nt=[{title:"hello world",subTitle:"sub title",extra:"11111",tags:[1,2,3,4]},{title:"hello world",subTitle:"sub title",extra:"",tags:[1,2,3,4]},{title:"hello world",subTitle:"sub title"},{title:"hello world",subTitle:"sub title",extra:"11111"}];function ut(){return e.createElement("div",null,e.createElement("h1",null,"InfiniteScroll"),e.createElement("p",null,"\u6EDA\u52A8\u52A0\u8F7D\u7EC4\u4EF6"),e.createElement("h2",null,"\u793A\u4F8B"),e.createElement("div",{className:"light-block"},e.createElement("div",{style:{width:"432px",height:"425px",overflow:"scroll"}},e.createElement(R,{onItemClick:console.log,tabIndex:0,dataSource:nt}),e.createElement(ze,{hasMore:!0,loadMore:()=>{console.log("loadMore!")}}))),e.createElement("code",{className:"code"},`
|
|
295
|
+
=======
|
|
296
|
+
`),e.createElement("h2",null,"\u53C2\u6570"),e.createElement("table",{className:"pure-table pure-table-bordered"},e.createElement("thead",null,e.createElement("tr",null,e.createElement("th",null,"\u5C5E\u6027"),e.createElement("th",null,"\u8BF4\u660E"),e.createElement("th",null,"\u7C7B\u578B"),e.createElement("th",null,"\u9ED8\u8BA4\u503C"))),e.createElement("tbody",null,e.createElement("tr",null,e.createElement("td",null,"title"),e.createElement("td",null,"\u6807\u9898"),e.createElement("td",null,"string"),e.createElement("td",null)),e.createElement("tr",null,e.createElement("td",null,"infoText"),e.createElement("td",null,"\u63D0\u793A\u6587\u672C"),e.createElement("td",null,"string"),e.createElement("td",null)),e.createElement("tr",null,e.createElement("td",null,"percentage"),e.createElement("td",null,"\u8FDB\u5EA6\u6761\u767E\u5206\u6BD4"),e.createElement("td",null,"number"),e.createElement("td",null)))))}const qe=/scroll|auto/i;function ze(u){const t=1;return u.tagName!=="HTML"&&u.tagName!=="BODY"&&u.nodeType===t}function te(u,t){let n=u;for(;n&&n!==t&&ze(n);){const{overflowY:l}=window.getComputedStyle(n);if(qe.test(l))return n;n=n.parentNode}return t}function Qe(u){return e.createElement("div",{style:{color:u.color||"#999"}},e.createElement("svg",{height:"1em",viewBox:"0 0 100 40",style:{verticalAlign:"-0.125em"}},e.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},e.createElement("g",{transform:"translate(-100.000000, -71.000000)"},e.createElement("g",{transform:"translate(95.000000, 71.000000)"},e.createElement("g",{transform:"translate(5.000000, 0.000000)"},[0,1,2].map(t=>e.createElement("rect",{key:t,fill:"currentColor",x:20+t*26,y:"16",width:"8",height:"8",rx:"2"},e.createElement("animate",{attributeName:"y",from:"16",to:"16",dur:"2s",begin:`${t*.2}s`,repeatCount:"indefinite",values:"16; 6; 26; 16; 16",keyTimes:"0; 0.1; 0.3; 0.4; 1",id:"circ-anim"})))))))))}function Ze(u){return u===window}function Je(u){const{className:t,hasMore:n,loadMore:l,threshold:a=0,style:r}=u,c=ie(async()=>{await l()}),o=p.exports.useRef(null),i=se(()=>{if(!n)return;const s=o.current;if(!s)return;const m=te(s);if(!m)return;const h=s.getBoundingClientRect().top;(Ze(m)?window.innerHeight:m.getBoundingClientRect().bottom)>=h-a&&c()});return p.exports.useEffect(()=>{i()}),p.exports.useEffect(()=>{const s=o.current;if(!s)return;const m=te(s);if(!m)return;function h(){i()}return m.addEventListener("scroll",h),()=>{m.removeEventListener("scroll",h)}},[]),e.createElement("div",{className:E({[t]:!0,"pda-infinite-scroll":!0}),style:r,ref:o},n?e.createElement("div",{className:"pda-infinite-scroll-view"},e.createElement("span",null,"\u52A0\u8F7D\u4E2D"),e.createElement(Qe,null)):e.createElement("div",{className:"pda-infinite-scroll-view"},e.createElement("span",null,"\u6CA1\u6709\u66F4\u591A\u4E86~")))}const le=()=>{};class et extends e.Component{constructor(t){super(t);x(this,"state",{showMenu:!1})}render(){const{className:t,goBack:n=!0,goBackHandle:l=le,icon:a="scan",title:r="\u4EFB\u52A1",menuList:c=null}=this.props,{showMenu:o}=this.state;return e.createElement("div",{className:E({[t]:!0,"pda-header":!0})},e.createElement("div",{className:"header-click-area",onClick:n?l:le},n&&e.createElement("div",{className:"pda-goback"}),a&&e.createElement("div",{className:E({"pda-header-icon":!0,["pda-header-icon-"+a]:!0})})),e.createElement("p",{className:E({"pda-title-text":!0})},r),c?e.createElement("div",{className:"pda-header-more",onClick:i=>{this.setState({showMenu:!0})}}):null,e.createElement(B,{visible:o,verticalPosition:"bottom",closable:!0,onClosed:i=>this.setState({showMenu:!1})},e.createElement("div",{className:"pda-menus"},c)))}}function tt(u){const{service:t,data:n={}}=u,{title:l="title",message:a="message",okText:r="okText",cancelText:c=""}=n,o=e.useCallback(function(){t.onNext(!0)},[t]);return e.createElement(B,{verticalPosition:"bottom"},e.createElement(I,{title:l,message:a,okText:r,cancelText:c,onClick:o}))}function lt(u){const{service:t,data:n={}}=u,{title:l="title",message:a,subMessage:r=[],okText:c="okText",cancelText:o=""}=n,i=e.useCallback(function(s){t.onNext(s)},[t]);return e.createElement(B,{verticalPosition:"bottom"},e.createElement(I,{title:l,message:a,subMessage:r,okText:c,cancelText:o,onClick:i}))}function nt(u){const{data:t={},service:n}=u,{title:l,level:a,message:r,duration:c=null}=t,[o,i]=p.exports.useState(!1);return e.useEffect(()=>{let s=null;return c&&setTimeout(()=>{i(!0),n.onNext("")},c),()=>{clearTimeout(s)}},[]),o?null:e.createElement(B,{verticalPosition:"bottom"},e.createElement("div",{style:{width:"90%"}},e.createElement(b,{type:a,title:l,message:ut(r)})))}function ut(u){var t=String(u).split("by Error:");return t[1]||t[0]}function at(){}function rt(u){const{dataSource:t=[],onClickItem:n=at}=u;return e.createElement("div",{className:"pda-app-list"},t.map(l=>e.createElement("div",{className:"pda-app-group",key:l.groupName},e.createElement("h2",{className:"group-name"},l.groupName),e.createElement("div",{className:"group-apps"},l.list.map(a=>e.createElement("div",{className:"app-item",key:a.name,onClick:()=>n(a)},e.createElement("span",{className:"app-name"},a.name),e.createElement("span",{className:"app-subname"},a.subname)))))))}function ct(u){const{className:t="",visible:n,actions:l}=u;return e.createElement("div",{className:E({[t]:!0,"pda-action-sheet":!0,show:n})},e.createElement("div",{className:"pda-action-sheet-body"},l.map((a,r)=>e.createElement("div",{onClick:()=>{a.onClick(a.key)},className:"pda-action-sheet-item",key:r},a.title))))}const ot=[{title:"hello world",subTitle:"sub title",extra:"11111",tags:[1,2,3,4]},{title:"hello world",subTitle:"sub title",extra:"",tags:[1,2,3,4]},{title:"hello world",subTitle:"sub title"},{title:"hello world",subTitle:"sub title",extra:"11111"}];function it(){return e.createElement("div",null,e.createElement("h1",null,"InfiniteScroll"),e.createElement("p",null,"\u6EDA\u52A8\u52A0\u8F7D\u7EC4\u4EF6"),e.createElement("h2",null,"\u793A\u4F8B"),e.createElement("div",{className:"light-block"},e.createElement("div",{style:{width:"432px",height:"425px",overflow:"scroll"}},e.createElement(R,{onItemClick:console.log,tabIndex:0,dataSource:ot}),e.createElement(Je,{hasMore:!0,loadMore:()=>{console.log("loadMore!")}}))),e.createElement("code",{className:"code"},`
|
|
297
|
+
>>>>>>> 4950ea9c56814a53676090cbc575b46125474ac4:build/assets/index.87a9df58.js
|
|
298
|
+
|
|
299
|
+
const dataSource = [{
|
|
300
|
+
title: "hello world",
|
|
301
|
+
subTitle:"sub title",
|
|
302
|
+
extra:"11111",
|
|
303
|
+
tags:[1,2,3,4]
|
|
304
|
+
},{
|
|
305
|
+
title: "hello world",
|
|
306
|
+
subTitle:"sub title",
|
|
307
|
+
extra:"",
|
|
308
|
+
tags:[1,2,3,4]
|
|
309
|
+
},{
|
|
310
|
+
title: "hello world",
|
|
311
|
+
subTitle:"sub title",
|
|
312
|
+
},{
|
|
313
|
+
title: "hello world",
|
|
314
|
+
subTitle:"sub title",
|
|
315
|
+
extra:"11111",
|
|
316
|
+
}];
|
|
317
|
+
|
|
318
|
+
<div style={{
|
|
319
|
+
width: '432px',
|
|
320
|
+
height: '425px',
|
|
321
|
+
overflow: 'scroll'
|
|
322
|
+
}}>
|
|
323
|
+
|
|
324
|
+
<List
|
|
325
|
+
onItemClick={console.log}
|
|
326
|
+
tabIndex={0}
|
|
327
|
+
dataSource={dataSource}
|
|
328
|
+
>
|
|
329
|
+
</List>
|
|
330
|
+
<InfiniteScroll
|
|
331
|
+
hasMore={true}
|
|
332
|
+
loadMore={() => {console.log("loadMore!")}}
|
|
333
|
+
/>
|
|
334
|
+
</div>
|
|
335
|
+
`),e.createElement("h2",null,"\u53C2\u6570"),e.createElement("table",{className:"pure-table pure-table-bordered"},e.createElement("thead",null,e.createElement("tr",null,e.createElement("th",null,"\u5C5E\u6027"),e.createElement("th",null,"\u8BF4\u660E"),e.createElement("th",null,"\u7C7B\u578B"),e.createElement("th",null,"\u9ED8\u8BA4\u503C"))),e.createElement("tbody",null,e.createElement("tr",null,e.createElement("td",null,"hasMore"),e.createElement("td",null,"\u662F\u5426\u8FD8\u6709\u66F4\u591A"),e.createElement("td",null,"boolean"),e.createElement("td",null,"false")),e.createElement("tr",null,e.createElement("td",null,"loadMore"),e.createElement("td",null,"\u66F4\u591A\u52A0\u8F7D\u65B9\u6CD5\uFF0C\u5F53 hasMore \u662F true \u4E14\u62C9\u5230\u5E95\u90E8\u65F6\u4F1A\u8C03\u7528\u8BE5\u65B9\u6CD5"),e.createElement("td",null,"()=>"),e.createElement("td",null)),e.createElement("tr",null,e.createElement("td",null,"threshold"),e.createElement("td",null,"\u9608\u503C\uFF0C\u5E95\u90E8\u8DDD\u79BB\u9875\u9762\u591A\u5C11\u7684\u65F6\u5019\u8C03\u7528 loadMore \u65B9\u6CD5"),e.createElement("td",null,"number"),e.createElement("td",null,"0")))))}function st(){const[u,t]=p.exports.useState(!1);return e.createElement("div",null,e.createElement("h1",null,"ActionSheet"),e.createElement("p",null,"\u5F39\u7A97\u7EC4\u4EF6"),e.createElement("h2",null,"\u793A\u4F8B"),e.createElement("div",{className:"light-block"},e.createElement("div",{style:{height:"600px",width:"300px",position:"relative",backgroundColor:"#fff",display:"flex",alignItems:"flex-end",overflow:"hidden"}},e.createElement(d,{type:"dark",style:{margin:"12px"},onClick:()=>{t(!u)}},"\u5207\u6362\u6A21\u5F0F"),e.createElement(ct,{visible:u,actions:[{key:"total",title:"\u5207\u6362\u4E3A\u6574\u7BB1\u8BC6\u522B",onClick:()=>{}},{key:"seperate",title:"\u5207\u6362\u4E3A\u6563\u7BB1\u8BC6\u522B",onClick:()=>{}},{key:"cancel",title:"\u53D6\u6D88",onClick:()=>{t(!1)}}]}))),e.createElement("code",{className:"code"},`
|
|
336
|
+
<div style={{height: "600px", width: "300px", position: "relative", backgroundColor: "#fff", display: "flex", alignItems: "flex-end"}}>
|
|
337
|
+
<Button type="dark" style={{margin: '12px'}} onClick={() => {setVisible(!visible)}}>\u5207\u6362\u6A21\u5F0F</Button>
|
|
338
|
+
<ActionSheet
|
|
339
|
+
visible = {visible}
|
|
340
|
+
actions = {[{
|
|
341
|
+
key: "total",
|
|
342
|
+
title: "\u5207\u6362\u4E3A\u6574\u7BB1\u8BC6\u522B",
|
|
343
|
+
onClick: () => {}
|
|
344
|
+
}, {
|
|
345
|
+
key: "seperate",
|
|
346
|
+
title: "\u5207\u6362\u4E3A\u6563\u7BB1\u8BC6\u522B",
|
|
347
|
+
onClick: () => {}
|
|
348
|
+
}, {
|
|
349
|
+
key: "cancel",
|
|
350
|
+
title: "\u53D6\u6D88",
|
|
351
|
+
onClick: () => {
|
|
352
|
+
setVisible(false)
|
|
353
|
+
}
|
|
354
|
+
}]}
|
|
355
|
+
/>
|
|
356
|
+
`),e.createElement("h2",null,"\u53C2\u6570"),e.createElement("table",{className:"pure-table pure-table-bordered"},e.createElement("thead",null,e.createElement("tr",null,e.createElement("th",null,"\u5C5E\u6027"),e.createElement("th",null,"\u8BF4\u660E"),e.createElement("th",null,"\u7C7B\u578B"),e.createElement("th",null,"\u9ED8\u8BA4\u503C"))),e.createElement("tbody",null,e.createElement("tr",null,e.createElement("td",null,"visible"),e.createElement("td",null,"\u662F\u5426\u663E\u793A"),e.createElement("td",null,"boolean"),e.createElement("td",null,"false")),e.createElement("tr",null,e.createElement("td",null,"actions"),e.createElement("td",null,"\u64CD\u4F5C\u5217\u8868"),e.createElement("td",null,"object[]"),e.createElement("td",null)))))}const mt=[{groupName:"\u5206\u7EC4",list:[{name:"\u62E3\u9009",subname:"\u4EBA\u5DE5\u62E3\u9009"},{name:"\u590D\u6838",subname:"\u590D\u6838\u6253\u5305"},{name:"\u4E0A\u67B6",subname:"\u4E0A\u67B6XXXX"},{name:"\u62E3\u90092",subname:"\u4EBA\u5DE5\u62E3\u9009"}]},{groupName:"\u5206\u7EC42",list:[{name:"\u590D\u68381",subname:"\u590D\u6838\u6253\u5305"},{name:"\u4E0A\u67B61"},{name:"\u62E3\u90093",subname:"\u4EBA\u5DE5\u62E3\u9009"},{name:"\u590D\u68382",subname:"\u590D\u6838\u6253\u5305"},{name:"\u62E3\u9009\u62E3\u9009\u62E3\u9009\u62E3\u9009",subname:"\u4E0A\u67B6XXXX"}]}];function Et(){return e.createElement("div",null,e.createElement("h1",null,"AppList"),e.createElement("p",null,"\u4E00\u822C\u7528\u4E8E\u5C55\u793AAppList"),e.createElement("h2",null,"\u793A\u4F8B"),e.createElement("div",{className:"light-block",style:{display:"flex",flexDirection:"row"}},e.createElement("div",{style:{backgroundColor:"#000000",width:480}},e.createElement(rt,{dataSource:mt,onClickItem:console.log}))),e.createElement("code",{className:"code"},`
|
|
357
|
+
|
|
358
|
+
const dataSource = [
|
|
359
|
+
{
|
|
360
|
+
groupName:"\u5206\u7EC4",
|
|
361
|
+
list: [
|
|
362
|
+
{
|
|
363
|
+
name:"\u62E3\u9009",
|
|
364
|
+
subname:"\u4EBA\u5DE5\u62E3\u9009"
|
|
365
|
+
},
|
|
366
|
+
{
|
|
367
|
+
name:"\u590D\u6838",
|
|
368
|
+
subname:"\u590D\u6838\u6253\u5305"
|
|
369
|
+
},
|
|
370
|
+
{
|
|
371
|
+
name:"\u4E0A\u67B6",
|
|
372
|
+
subname:"\u4E0A\u67B6XXXX"
|
|
373
|
+
},
|
|
374
|
+
{
|
|
375
|
+
name:"\u62E3\u90092",
|
|
376
|
+
subname:"\u4EBA\u5DE5\u62E3\u9009"
|
|
377
|
+
},
|
|
378
|
+
{
|
|
379
|
+
name:"\u590D\u68381",
|
|
380
|
+
subname:"\u590D\u6838\u6253\u5305"
|
|
381
|
+
},
|
|
382
|
+
{
|
|
383
|
+
name:"\u4E0A\u67B61",
|
|
384
|
+
subname:"\u4E0A\u67B6XXXX"
|
|
385
|
+
},
|
|
386
|
+
{
|
|
387
|
+
name:"\u62E3\u90093",
|
|
388
|
+
subname:"\u4EBA\u5DE5\u62E3\u9009"
|
|
389
|
+
},
|
|
390
|
+
{
|
|
391
|
+
name:"\u590D\u68382",
|
|
392
|
+
subname:"\u590D\u6838\u6253\u5305"
|
|
393
|
+
},
|
|
394
|
+
{
|
|
395
|
+
name:"\u4E0A\u67B62",
|
|
396
|
+
subname:"\u4E0A\u67B6XXXX"
|
|
397
|
+
}
|
|
398
|
+
]
|
|
399
|
+
}
|
|
400
|
+
];
|
|
401
|
+
<AppList dataSource={dataSource} onClickItem={console.log} />
|
|
402
|
+
`),e.createElement("h2",null,"\u53C2\u6570"),e.createElement("table",{className:"pure-table pure-table-bordered"},e.createElement("thead",null,e.createElement("tr",null,e.createElement("th",null,"\u5C5E\u6027"),e.createElement("th",null,"\u8BF4\u660E"),e.createElement("th",null,"\u7C7B\u578B"),e.createElement("th",null,"\u9ED8\u8BA4\u503C"))),e.createElement("tbody",null,e.createElement("tr",null,e.createElement("td",null,"dataSource"),e.createElement("td",null,"\u6570\u636E"),e.createElement("td",null,"Array(group<groupName, list<name,subname>)"),e.createElement("td",null)),e.createElement("tr",null,e.createElement("td",null,"onClickItem"),e.createElement("td",null,"\u70B9\u51FBItem"),e.createElement("td",null,"Function(item)"),e.createElement("td",null,"-")))))}const dt="@cniot/android-pda-components",ht="0.1.6",pt="",Ft="./es/index.cjs.js",Ct="./es/index.es.js",gt={dev:"vite",build:"vite build --config vite.config.doc.js && vite build --config vite.config.js",doc:"vite -config vite.doc.js"},bt="module",ft="",Bt="ISC",yt={ahooks:"^2.10.11",classnames:"^2.3.1",history:"^5.0.1",keycode:"^2.2.1",less:"^4.1.1",react:"^17.0.2","react-dom":"^17.0.2"},kt={"@originjs/vite-plugin-require-context":"^1.0.5","markdown-it":"^12.1.0","markdown-to-jsx":"^7.1.3",vite:"^2.4.2","vite-plugin-plain-text":"^1.1.4"};var vt={name:dt,version:ht,description:pt,main:Ft,module:Ct,scripts:gt,type:bt,author:ft,license:Bt,dependencies:yt,devDependencies:kt},$={onNext(u){console.log("onnext",u)}};function At(){return e.createElement("div",null,e.createElement("h1",null,"/system/alert"),e.createElement("p",null,"\u5F39\u51FA\u4E00\u4E2A\u8B66\u544A\u7A97\uFF0C\u7528\u6237\u5FC5\u987B\u70B9\u51FB\u786E\u8BA4\u624D\u80FD\u7EE7\u7EED"),e.createElement("h2",null,"\u793A\u4F8B"),e.createElement("code",{className:"code"},`
|
|
403
|
+
// gs \u4EE3\u7801\u5982\u4E0B
|
|
404
|
+
pageFlow.alert({
|
|
405
|
+
title: '111',
|
|
406
|
+
message: '2222',
|
|
407
|
+
okText: "\u786E\u8BA4"
|
|
408
|
+
})
|
|
409
|
+
`),e.createElement("h2",null,"\u9875\u9762\u6548\u679C"),e.createElement("div",{className:"light-block light-block-overlay"},e.createElement(tt,{service:$,data:{title:"111",message:"2222",okText:"\u786E\u8BA4"}})),e.createElement("h2",null,"Alert"),e.createElement("table",{className:"pure-table pure-table-bordered"},e.createElement("thead",null,e.createElement("tr",null,e.createElement("th",null,"\u5C5E\u6027"),e.createElement("th",null,"\u8BF4\u660E"),e.createElement("th",null,"\u7C7B\u578B"),e.createElement("th",null,"\u9ED8\u8BA4\u503C"))),e.createElement("tbody",null,e.createElement("tr",null,e.createElement("td",null,"title"),e.createElement("td",null,"\u6807\u9898"),e.createElement("td",null,"string"),e.createElement("td",null)),e.createElement("tr",null,e.createElement("td",null,"message"),e.createElement("td",null,"\u4FE1\u606F"),e.createElement("td",null,"string"),e.createElement("td",null)),e.createElement("tr",null,e.createElement("td",null,"okText"),e.createElement("td",null,"\u786E\u8BA4\u6587\u672C"),e.createElement("td",null,"string"),e.createElement("td",null)))))}function Dt(){return e.createElement("div",null,e.createElement("h1",null,"/system/confirm"),e.createElement("p",null,"\u5F39\u51FA\u4E00\u4E2A\u786E\u8BA4\u6846\uFF0C\u7528\u6237\u5FC5\u987B\u70B9\u51FB\u786E\u8BA4\u624D\u80FD\u7EE7\u7EED"),e.createElement("h2",null,"\u793A\u4F8B"),e.createElement("code",{className:"code"},`
|
|
410
|
+
// gs \u4EE3\u7801\u5982\u4E0B
|
|
411
|
+
pageFlow.confirm({
|
|
412
|
+
title: '111',
|
|
413
|
+
message: '2222',
|
|
414
|
+
okText: "\u786E\u8BA4",
|
|
415
|
+
cancelText:"\u53D6\u6D88"
|
|
416
|
+
})
|
|
417
|
+
// \u5982\u679C message \u9700\u8981\u591A\u884C\u663E\u793A\uFF0C\u4F7F\u7528 subMessage \u65B9\u5F0F
|
|
418
|
+
pageFlow.confirm({
|
|
419
|
+
title: '111',
|
|
420
|
+
subMessage: [
|
|
421
|
+
{label: 'title1', content: 'content1'},
|
|
422
|
+
{label: 'title2', content: 'content2'},
|
|
423
|
+
{label: 'title3', content: 'content3'},
|
|
424
|
+
],
|
|
425
|
+
okText: "\u786E\u8BA4",
|
|
426
|
+
cancelText:"\u53D6\u6D88"
|
|
427
|
+
})
|
|
428
|
+
`),e.createElement("h2",null,"\u9875\u9762\u6548\u679C"),e.createElement("div",{className:"light-block light-block-overlay"},e.createElement(lt,{service:$,data:{title:"111",message:e.createElement("span",null,"\u6808\u677F\u7801\uFF1A",e.createElement("span",{style:{color:"#0091EA"}},"111"),e.createElement("br",null),e.createElement("span",null,"\u7BB1\u7801\uFF1A222")),okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88"}})),e.createElement("h2",null,"Confirm"),e.createElement("table",{className:"pure-table pure-table-bordered"},e.createElement("thead",null,e.createElement("tr",null,e.createElement("th",null,"\u5C5E\u6027"),e.createElement("th",null,"\u8BF4\u660E"),e.createElement("th",null,"\u7C7B\u578B"),e.createElement("th",null,"\u9ED8\u8BA4\u503C"))),e.createElement("tbody",null,e.createElement("tr",null,e.createElement("td",null,"title"),e.createElement("td",null,"\u6807\u9898"),e.createElement("td",null,"string"),e.createElement("td",null)),e.createElement("tr",null,e.createElement("td",null,"message"),e.createElement("td",null,"\u4FE1\u606F"),e.createElement("td",null,"string"),e.createElement("td",null)),e.createElement("tr",null,e.createElement("td",null,"subMessage"),e.createElement("td",null,"\u526F\u6587\u672C\u6D88\u606F"),e.createElement("td",null,"string"),e.createElement("td",null)),e.createElement("tr",null,e.createElement("td",null,"okText"),e.createElement("td",null,"\u786E\u8BA4\u6587\u672C"),e.createElement("td",null,"string"),e.createElement("td",null)),e.createElement("tr",null,e.createElement("td",null,"cancelText"),e.createElement("td",null,"\u53D6\u6D88\u6587\u672C"),e.createElement("td",null,"string"),e.createElement("td",null)))))}function Nt(){return e.createElement("div",null,e.createElement("h1",null,"/system/toast"),e.createElement("p",null,"\u5F39\u6846\u7EC4\u4EF6\uFF0C\u5982\u679C\u8981\u60AC\u6D6E\u5728\u9875\u9762\u4E0A\uFF0C\u8BF7\u914D\u5408 Overlay \u4F7F\u7528"),e.createElement("h2",null,"\u793A\u4F8B"),e.createElement("code",{className:"code"},`
|
|
429
|
+
// gs \u4EE3\u7801\u5982\u4E0B
|
|
430
|
+
pageFlow.toast({
|
|
431
|
+
level: "success", // success|warning|error
|
|
432
|
+
title: '111',
|
|
433
|
+
message: '2222',
|
|
434
|
+
duration: 3000,
|
|
435
|
+
})
|
|
436
|
+
`),e.createElement("h2",null,"\u9875\u9762\u6548\u679C"),e.createElement("div",{className:"light-block light-block-overlay"},e.createElement(nt,{service:$,data:{level:"success",title:"111",message:"2222",duration:3e3}})),e.createElement("h2",null,"Toast"),e.createElement("table",{className:"pure-table pure-table-bordered"},e.createElement("thead",null,e.createElement("tr",null,e.createElement("th",null,"\u5C5E\u6027"),e.createElement("th",null,"\u8BF4\u660E"),e.createElement("th",null,"\u7C7B\u578B"),e.createElement("th",null,"\u9ED8\u8BA4\u503C"))),e.createElement("tbody",null,e.createElement("tr",null,e.createElement("td",null,"level"),e.createElement("td",null,"\u5F39\u6846\u7C7B\u578B"),e.createElement("td",null,"string"),e.createElement("td",null,"success|warning|error")),e.createElement("tr",null,e.createElement("td",null,"message"),e.createElement("td",null,"\u4FE1\u606F"),e.createElement("td",null,"string"),e.createElement("td",null)),e.createElement("tr",null,e.createElement("td",null,"title"),e.createElement("td",null,"\u6807\u9898"),e.createElement("td",null,"string"),e.createElement("td",null)),e.createElement("tr",null,e.createElement("td",null,"duration"),e.createElement("td",null,"\u5EF6\u8FDF\u65F6\u95F4"),e.createElement("td",null,"number"),e.createElement("td",null,"ms")))))}function xt(){const u=e.createElement(et,null),t=e.createElement(d.Group,null,e.createElement(d,{type:"cutout",onClick:l=>console.log("cancle")},"\u53D6\u6D88"),e.createElement(d,{type:"primary"},"\u786E\u8BA4")),n=[{},{},{}];return e.createElement("div",null,e.createElement("h1",null,"Scan"),e.createElement("p",null,"\u626B\u7801\u7EC4\u4EF6"),e.createElement("h2",null,"\u793A\u4F8B"),e.createElement("div",{className:"light-block",style:{display:"flex"}},e.createElement("div",{style:{width:480,height:800,position:"relative"}},e.createElement(W,{style:{backgroundColor:"black",marginRight:20},header:u,footer:t},e.createElement(F,{text:"\u8BF7\u9760\u8FD1\u7BB1\u7801\u8FDB\u884C\u8BC6\u522B"}))),e.createElement("div",{style:{width:480,height:800,position:"relative"}},e.createElement(W,{style:{backgroundColor:"black"},header:u,footer:t},n.map((l,a)=>e.createElement(y,{key:a,title:"\u5F85\u62E3\u4EF6\u6570",highlightInfo:"800",highlightInfoCN:"\u4EF6",highlightSubInfo:"/800",highlightSubInfoCN:"\u4EF6",boldInfo:"\u52A0\u7C97\u663E\u793A\uFF1A512/\u4E94\u5382\u7EFC\u5305\u4E00\u697C,\u8FD9\u662F\u52A0\u7C97\u663E\u793A\u7684\u8D27\u54C1\u540D\u79F0\u53EF\u80FD\u6709\u591A\u884C",style:{width:"400px",backgroundColor:"black"},theme:"dark",infoList:[{label:"\u5546\u54C1\u6761\u7801",content:"623126388798"},{label:"\u622A\u6B62\u65E5\u671F",content:"2022-07-25"},{label:"\u4EA7\u54C1\u540D\u79F0",content:"\u5546\u54C1\u7684\u540D\u79F0"},{label:"\u54C1\u53F7",content:"12398765423"}]}))))),e.createElement("code",{className:"code"},`
|
|
437
|
+
const header = <Title></Title>;
|
|
438
|
+
const footer = (
|
|
439
|
+
<Button.Group>
|
|
440
|
+
<Button type="cutout" onClick={e => console.log('cancle')}>\u53D6\u6D88</Button>
|
|
441
|
+
<Button type="primary">\u786E\u8BA4</Button>
|
|
442
|
+
</Button.Group>
|
|
443
|
+
)
|
|
444
|
+
|
|
445
|
+
<BaseLayout
|
|
446
|
+
header={header}
|
|
447
|
+
footer={footer}
|
|
448
|
+
>
|
|
449
|
+
<Presentation text="\u8BF7\u9760\u8FD1\u7BB1\u7801\u8FDB\u884C\u8BC6\u522B" ></Presentation>
|
|
450
|
+
</BaseLayout>
|
|
451
|
+
<<<<<<< HEAD:build/assets/index.bf651e56.js
|
|
452
|
+
`),e.createElement("h2",null,"\u53C2\u6570"),e.createElement("table",{className:"pure-table pure-table-bordered"},e.createElement("thead",null,e.createElement("tr",null,e.createElement("th",null,"\u5C5E\u6027"),e.createElement("th",null,"\u8BF4\u660E"),e.createElement("th",null,"\u7C7B\u578B"),e.createElement("th",null,"\u9ED8\u8BA4\u503C"))),e.createElement("tbody",null,e.createElement("tr",null,e.createElement("td",null,"header"),e.createElement("td",null,"\u5438\u9876\u7EC4\u4EF6"),e.createElement("td",null),e.createElement("td",null)),e.createElement("tr",null,e.createElement("td",null,"footer"),e.createElement("td",null,"\u5438\u5E95\u7EC4\u4EF6"),e.createElement("td",null),e.createElement("td",null)),e.createElement("tr",null,e.createElement("td",null,"onBarcodeScan"),e.createElement("td",null,"\u6CE8\u518C\u626B\u63CF\u4E8C\u7EF4\u7801/\u6761\u5F62\u7801"),e.createElement("td",null,"Function"),e.createElement("td",null,"data => ")),e.createElement("tr",null,e.createElement("td",null,"onRfidOnce"),e.createElement("td",null,"\u6309\u952E\u6309\u4E0B/\u62AC\u8D77\uFF0C\u53EA\u89E6\u53D1\u7B2C\u4E00\u4E2Arfid\u7801"),e.createElement("td",null,"Function"),e.createElement("td",null,"data => ")),e.createElement("tr",null,e.createElement("td",null,"onRfidBoxOnce"),e.createElement("td",null,"\u6309\u952E\u6309\u4E0B/\u62AC\u8D77\uFF0C\u53EA\u89E6\u53D1\u7B2C\u4E00\u4E2A rfid \u7BB1\u7801"),e.createElement("td",null,"Function"),e.createElement("td",null,"data => ")),e.createElement("tr",null,e.createElement("td",null,"onRfidPalletOnce"),e.createElement("td",null,"\u6309\u952E\u6309\u4E0B/\u62AC\u8D77\uFF0C\u53EA\u89E6\u53D1\u7B2C\u4E00\u4E2A rfid \u6808\u677F\u7801"),e.createElement("td",null,"Function"),e.createElement("td",null,"data => ")),e.createElement("tr",null,e.createElement("td",null,"onRfidScan"),e.createElement("td",null,"\u6309\u952E\u6309\u4E0B/\u62AC\u8D77\u89E6\u53D1 rfid \u8FDE\u7EED\u626B\u63CF"),e.createElement("td",null,"Function"),e.createElement("td",null,"data => ")),e.createElement("tr",null,e.createElement("td",null,"onRfidBoxScan"),e.createElement("td",null,"\u6309\u952E\u6309\u4E0B/\u62AC\u8D77\u89E6\u53D1 rfid \u7BB1\u7801\u8FDE\u7EED\u626B\u63CF"),e.createElement("td",null,"Function"),e.createElement("td",null,"data => ")),e.createElement("tr",null,e.createElement("td",null,"onRfidPalletScan"),e.createElement("td",null,"\u6309\u952E\u6309\u4E0B/\u62AC\u8D77\u89E6\u53D1 rfid \u6808\u677F\u7801\u8FDE\u7EED\u626B\u63CF"),e.createElement("td",null,"Function"),e.createElement("td",null,"data => ")))))}const O=[{title:"\u7EC4\u4EF6\u5217\u8868",pages:[{key:"First",title:"\u5FEB\u901F\u5F00\u59CB",doc:ie},{key:"Header",title:"Header",doc:de},{key:"Button",title:"Button",doc:he},{key:"InfoCard",title:"InfoCard",doc:pe},{key:"Steps",title:"Steps",doc:Ce},{key:"ListItem",title:"ListItem",doc:be},{key:"Confirm",title:"Confirm",doc:Be},{key:"Toast",title:"Toast",doc:Se},{key:"Overlay",title:"Overlay",doc:Ie},{key:"Presentation",title:"Presentation",doc:we},{key:"List",title:"List",doc:_e},{key:"WakeKeyborard",title:"WakeKeyborard",doc:Pe},{key:"SubCard",title:"SubCard",doc:Re},{key:"FinishCard",title:"FinishCard",doc:Ge},{key:"DistanceCard",title:"DistanceCard",doc:Ve},{key:"InfiniteScroll",title:"InfiniteScroll",doc:ut},{key:"ActionSheet",title:"ActionSheet",doc:at}]},{title:"\u5185\u7F6E\u754C\u9762\u9884\u89C8",pages:[{key:"/system/alert",title:"/system/alert",doc:rt},{key:"/system/confirm",title:"/system/confirm",doc:ct},{key:"/system/toast",title:"/system/toast",doc:ot}]},{title:"\u5E03\u5C40\u5BB9\u5668",pages:[{key:"BaseLayout",title:"BaseLayout",doc:it}]}];function st(u){return O.map(t=>t.pages.filter(function(n){return n.key===u})[0]).filter(t=>t)[0]}function mt(){return location.hash.replace("#","")||O[0].pages[0].key}function Et(){const[u,t]=e.useState(mt),n=e.useCallback(function(a){location.hash=a,t(a)}),l=st(u);return e.createElement("div",{className:"components-container"},e.createElement("div",{className:"components-example"},e.createElement("h1",{title:"@cniot/android-pda-components",style:{lineHeight:"0.5em"}},e.createElement("span",null,"Components"),e.createElement("br",null),e.createElement("sub",{style:{fontSize:12}}," version: [0.1.3]")),O.map(function(a,r){return e.createElement(e.Fragment,{key:r},e.createElement("h2",null,a.title),a.pages.map(function(c){return e.createElement("div",{className:u===c.key?"components-item active":"components-item",onClick:n.bind(null,c.key),"data-index":c.key,key:c.key},e.createElement("span",null,c.title))}))})),e.createElement("div",{className:"show-case"},l?e.createElement(l.doc,{}):null))}M.render(e.createElement(Et,null),document.getElementById("root"));
|
|
453
|
+
=======
|
|
454
|
+
`),e.createElement("h2",null,"\u53C2\u6570"),e.createElement("table",{className:"pure-table pure-table-bordered"},e.createElement("thead",null,e.createElement("tr",null,e.createElement("th",null,"\u5C5E\u6027"),e.createElement("th",null,"\u8BF4\u660E"),e.createElement("th",null,"\u7C7B\u578B"),e.createElement("th",null,"\u9ED8\u8BA4\u503C"))),e.createElement("tbody",null,e.createElement("tr",null,e.createElement("td",null,"header"),e.createElement("td",null,"\u5438\u9876\u7EC4\u4EF6"),e.createElement("td",null),e.createElement("td",null)),e.createElement("tr",null,e.createElement("td",null,"footer"),e.createElement("td",null,"\u5438\u5E95\u7EC4\u4EF6"),e.createElement("td",null),e.createElement("td",null)),e.createElement("tr",null,e.createElement("td",null,"onBarcodeScan"),e.createElement("td",null,"\u6CE8\u518C\u626B\u63CF\u4E8C\u7EF4\u7801/\u6761\u5F62\u7801"),e.createElement("td",null,"Function"),e.createElement("td",null,"data => ")),e.createElement("tr",null,e.createElement("td",null,"onRfidOnce"),e.createElement("td",null,"\u6309\u952E\u6309\u4E0B/\u62AC\u8D77\uFF0C\u53EA\u89E6\u53D1\u7B2C\u4E00\u4E2Arfid\u7801"),e.createElement("td",null,"Function"),e.createElement("td",null,"data => ")),e.createElement("tr",null,e.createElement("td",null,"onRfidBoxOnce"),e.createElement("td",null,"\u6309\u952E\u6309\u4E0B/\u62AC\u8D77\uFF0C\u53EA\u89E6\u53D1\u7B2C\u4E00\u4E2A rfid \u7BB1\u7801"),e.createElement("td",null,"Function"),e.createElement("td",null,"data => ")),e.createElement("tr",null,e.createElement("td",null,"onRfidPalletOnce"),e.createElement("td",null,"\u6309\u952E\u6309\u4E0B/\u62AC\u8D77\uFF0C\u53EA\u89E6\u53D1\u7B2C\u4E00\u4E2A rfid \u6808\u677F\u7801"),e.createElement("td",null,"Function"),e.createElement("td",null,"data => ")),e.createElement("tr",null,e.createElement("td",null,"onRfidScan"),e.createElement("td",null,"\u6309\u952E\u6309\u4E0B/\u62AC\u8D77\u89E6\u53D1 rfid \u8FDE\u7EED\u626B\u63CF"),e.createElement("td",null,"Function"),e.createElement("td",null,"data => ")),e.createElement("tr",null,e.createElement("td",null,"onRfidBoxScan"),e.createElement("td",null,"\u6309\u952E\u6309\u4E0B/\u62AC\u8D77\u89E6\u53D1 rfid \u7BB1\u7801\u8FDE\u7EED\u626B\u63CF"),e.createElement("td",null,"Function"),e.createElement("td",null,"data => ")),e.createElement("tr",null,e.createElement("td",null,"onRfidPalletScan"),e.createElement("td",null,"\u6309\u952E\u6309\u4E0B/\u62AC\u8D77\u89E6\u53D1 rfid \u6808\u677F\u7801\u8FDE\u7EED\u626B\u63CF"),e.createElement("td",null,"Function"),e.createElement("td",null,"data => ")))))}const O=[{title:"\u7EC4\u4EF6\u5217\u8868",pages:[{key:"First",title:"\u5FEB\u901F\u5F00\u59CB",doc:Ee},{key:"Header",title:"Header",doc:Fe},{key:"Button",title:"Button",doc:Ce},{key:"InfoCard",title:"InfoCard",doc:ge},{key:"Steps",title:"Steps",doc:fe},{key:"ListItem",title:"ListItem",doc:ye},{key:"Confirm",title:"Confirm",doc:ve},{key:"Toast",title:"Toast",doc:Te},{key:"Overlay",title:"Overlay",doc:Le},{key:"Presentation",title:"Presentation",doc:_e},{key:"List",title:"List",doc:Re},{key:"WakeKeyborard",title:"WakeKeyborard",doc:$e},{key:"SubCard",title:"SubCard",doc:Oe},{key:"FinishCard",title:"FinishCard",doc:je},{key:"DistanceCard",title:"DistanceCard",doc:Ye},{key:"InfiniteScroll",title:"InfiniteScroll",doc:it},{key:"ActionSheet",title:"ActionSheet",doc:st},{key:"AppList",title:"AppList",doc:Et}]},{title:"\u5185\u7F6E\u754C\u9762\u9884\u89C8",pages:[{key:"/system/alert",title:"/system/alert",doc:At},{key:"/system/confirm",title:"/system/confirm",doc:Dt},{key:"/system/toast",title:"/system/toast",doc:Nt}]},{title:"\u5E03\u5C40\u5BB9\u5668",pages:[{key:"BaseLayout",title:"BaseLayout",doc:xt}]}];function St(u){return O.map(t=>t.pages.filter(function(n){return n.key===u})[0]).filter(t=>t)[0]}function It(){return location.hash.replace("#","")||O[0].pages[0].key}function wt(){const[u,t]=e.useState(It),n=e.useCallback(function(a){location.hash=a,t(a)}),l=St(u);return e.createElement("div",{className:"components-container"},e.createElement("div",{className:"components-example"},e.createElement("h1",{title:"@cniot/android-pda-components",style:{lineHeight:"0.5em"}},e.createElement("span",null,"Components"),e.createElement("br",null),e.createElement("sub",{style:{fontSize:12}}," version: [",vt.version,"]")),O.map(function(a,r){return e.createElement(e.Fragment,{key:r},e.createElement("h2",null,a.title),a.pages.map(function(c){return e.createElement("div",{className:u===c.key?"components-item active":"components-item",onClick:n.bind(null,c.key),"data-index":c.key,key:c.key},e.createElement("span",null,c.title))}))})),e.createElement("div",{className:"show-case"},l?e.createElement(l.doc,{}):null))}M.render(e.createElement(wt,null),document.getElementById("root"));
|
|
455
|
+
>>>>>>> 4950ea9c56814a53676090cbc575b46125474ac4:build/assets/index.87a9df58.js
|