@cniot/android-pda-components 0.2.0 → 0.2.1
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.a01ed166.js → index.2e65ab93.js} +28 -28
- package/build/assets/{index.76e6fa0c.css → index.af97666b.css} +1 -1
- package/build/assets/vendor.999402d8.js +40 -0
- package/build/index.html +3 -3
- package/es/index.cjs.js +3 -3
- package/es/index.es.js +39 -14
- package/es/style.css +1 -1
- package/package.json +1 -1
- package/build/assets/index.7c7519d3.css +0 -1
- package/build/assets/index.c95b4d3b.js +0 -588
- package/build/assets/vendor.5080796b.js +0 -40
|
@@ -1,588 +0,0 @@
|
|
|
1
|
-
<<<<<<< HEAD:build/assets/index.a01ed166.js
|
|
2
|
-
var ie=Object.defineProperty,se=Object.defineProperties;var me=Object.getOwnPropertyDescriptors;var x=Object.getOwnPropertySymbols;var V=Object.prototype.hasOwnProperty,q=Object.prototype.propertyIsEnumerable;var M=(n,t,l)=>t in n?ie(n,t,{enumerable:!0,configurable:!0,writable:!0,value:l}):n[t]=l,C=(n,t)=>{for(var l in t||(t={}))V.call(t,l)&&M(n,l,t[l]);if(x)for(var l of x(t))q.call(t,l)&&M(n,l,t[l]);return n},P=(n,t)=>se(n,me(t));var A=(n,t)=>{var l={};for(var u in n)V.call(n,u)&&t.indexOf(u)<0&&(l[u]=n[u]);if(n!=null&&x)for(var u of x(n))t.indexOf(u)<0&&q.call(n,u)&&(l[u]=n[u]);return l};var S=(n,t,l)=>(M(n,typeof t!="symbol"?t+"":t,l),l);import{R as e,r as p,k as Ee,c as h,a as R,u as de,b as he}from"./vendor.999402d8.js";const pe=function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const a of document.querySelectorAll('link[rel="modulepreload"]'))u(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"&&u(c)}).observe(document,{childList:!0,subtree:!0});function l(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 u(a){if(a.ep)return;a.ep=!0;const r=l(a);fetch(a.href,r)}};pe();function Fe(){return e.createElement("div",null,e.createElement("h1",null,"\u5FEB\u901F\u5F00\u59CB"),e.createElement("code",{className:"code"},`
|
|
3
|
-
=======
|
|
4
|
-
var se=Object.defineProperty,me=Object.defineProperties;var Ee=Object.getOwnPropertyDescriptors;var N=Object.getOwnPropertySymbols;var j=Object.prototype.hasOwnProperty,V=Object.prototype.propertyIsEnumerable;var M=(n,t,l)=>t in n?se(n,t,{enumerable:!0,configurable:!0,writable:!0,value:l}):n[t]=l,F=(n,t)=>{for(var l in t||(t={}))j.call(t,l)&&M(n,l,t[l]);if(N)for(var l of N(t))V.call(t,l)&&M(n,l,t[l]);return n},q=(n,t)=>me(n,Ee(t));var A=(n,t)=>{var l={};for(var u in n)j.call(n,u)&&t.indexOf(u)<0&&(l[u]=n[u]);if(n!=null&&N)for(var u of N(n))t.indexOf(u)<0&&V.call(n,u)&&(l[u]=n[u]);return l};var x=(n,t,l)=>(M(n,typeof t!="symbol"?t+"":t,l),l);import{R as e,_ as p,k as de,c as E,a as P,u as he,b as pe}from"./vendor.5080796b.js";const Fe=function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const a of document.querySelectorAll('link[rel="modulepreload"]'))u(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"&&u(c)}).observe(document,{childList:!0,subtree:!0});function l(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 u(a){if(a.ep)return;a.ep=!0;const r=l(a);fetch(a.href,r)}};Fe();function Ce(){return e.createElement("div",null,e.createElement("h1",null,"\u5FEB\u901F\u5F00\u59CB"),e.createElement("code",{className:"code"},`
|
|
5
|
-
>>>>>>> 6f7032acb2e6e40814df61206ea1153b6b1ef3a3:build/assets/index.c95b4d3b.js
|
|
6
|
-
|
|
7
|
-
tnpm install @cniot/android-pda-components --save
|
|
8
|
-
|
|
9
|
-
import { Button } from '@cniot/android-pda-components';
|
|
10
|
-
|
|
11
|
-
import '@cniot/android-pda-components/es/style.css';
|
|
12
|
-
|
|
13
|
-
<<<<<<< HEAD:build/assets/index.a01ed166.js
|
|
14
|
-
`))}function d(n){const{type:t="default",onClick:l,className:u=""}=n;return e.createElement("button",{className:`pda-button pda-button-${t} ${u}`,onClick:l},n.children)}function Ce(n){return e.createElement("div",{className:"button-group"},n.children)}d.Group=Ce;function be(n){return{center:"op-overlay center",top:"op-overlay top",bottom:"op-overlay bottom"}[n]||"op-overlay"}function f(n){const{verticalPosition:t="center",visible:l=!0,closable:u=!1,onClosed:a=()=>{}}=n,[r,c]=p.exports.useState(!l);p.exports.useEffect(()=>{c(!l)},[l]);const o={};return u&&(o.onClick=i=>{c(!0),a()}),p.exports.useEffect(()=>{c(!l)},[l]),r?null:e.createElement("div",C({className:be(t)},o),n.children)}const ge=()=>{};function W(n){const{onBack:t,icon:l,title:u,menus:a=[],onClickMenuItem:r=ge,cancelMenuText:c,menuShortcutKey:o,backShortcutKey:i}=n,[s,m]=e.useState(!1);return e.useEffect(function(){if(o)return Y(z(o),function(){m(!0)})},[o]),e.useEffect(function(){if(i&&t)return Y(z(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,l&&e.createElement("div",{className:`pda-header-icon pda-header-icon-${l}`})),e.createElement("div",{className:"pda-title-text"},u),a&&a.length?e.createElement("div",{className:"pda-header-more",onClick:()=>m(!0)}):null,e.createElement(f,{visible:s,verticalPosition:"bottom",closable:!1,onClosed:()=>m(!1)},e.createElement("div",{className:"pda-menus"},a.map((E,F)=>e.createElement(d,{onClick:()=>{m(!1),r(E)},key:E.key||F},E.label)),c?e.createElement("div",{style:{marginTop:20}},e.createElement(d,{onClick:()=>m(!1)},c)):null)))}function z(n){return(n.indexOf(",")>-1?n.split(","):[n]).map(l=>{const u=Ee(l);return u===void 0&&console.warn("OPButton.shortcutKey error key value by:",l),u}).filter(l=>!!l)}function Y(n,t){function l(u){n.indexOf(u.keyCode)>-1&&t&&t(u)}return document.addEventListener("keyup",l),function(){document.removeEventListener("keyup",l)}}function Be(){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(W,{title:"hello world",onBack:console.log,backShortcutKey:"a"}),e.createElement(W,{icon:"read",title:"hello world"}),e.createElement(W,{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"},`
|
|
15
|
-
// backShortcutKey \u7ED1\u5B9A\u4E86 a \u952E\u5FEB\u6377\u89E6\u53D1 onBack
|
|
16
|
-
=======
|
|
17
|
-
`))}function h(n){const{type:t="default",onClick:l,className:u=""}=n;return e.createElement("button",{className:`pda-button pda-button-${t} ${u}`,onClick:l,tabIndex:n.tabIndex},n.children)}function be(n){return e.createElement("div",{className:"button-group"},n.children)}h.Group=be;function ge(n){return{center:"op-overlay center",top:"op-overlay top",bottom:"op-overlay bottom"}[n]||"op-overlay"}function B(n){const{verticalPosition:t="center",visible:l=!0,closable:u=!1,onClosed:a=()=>{}}=n,[r,c]=p.exports.useState(!l),o={};return u&&(o.onClick=i=>{c(!0),a()}),p.exports.useEffect(()=>{c(!l)},[l]),r?null:e.createElement("div",F({className:ge(t)},o),n.children)}const fe=()=>{};function R(n){const{onBack:t,icon:l,title:u,menus:a=[],onClickMenuItem:r=fe,cancelMenuText:c,menuShortcutKey:o,backShortcutKey:i}=n,[s,m]=e.useState(!1);return e.useEffect(function(){if(o)return Y(W(o),function(){m(!0)})},[o]),e.useEffect(function(){if(i&&t)return Y(W(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,l&&e.createElement("div",{className:`pda-header-icon pda-header-icon-${l}`})),e.createElement("div",{className:"pda-title-text"},u),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((d,g)=>e.createElement(h,{onClick:()=>{m(!1),r(d)},key:d.key||g},d.label)),c?e.createElement("div",{style:{marginTop:20}},e.createElement(h,{onClick:()=>m(!1)},c)):null)))}function W(n){return(n.indexOf(",")>-1?n.split(","):[n]).map(l=>{if(l.toLowerCase()==="fn")return 0;const u=de(l);return u===void 0&&console.warn("OPButton.shortcutKey error key value by:",l),u}).filter(l=>l!==void 0)}console.log("getShortcutKeyCodes",W("fn"));function Y(n,t){function l(u){n.indexOf(u.keyCode)>-1&&t&&t(u)}return document.addEventListener("keyup",l),function(){document.removeEventListener("keyup",l)}}function Be(){return e.createElement("div",null,e.createElement("h1",null,"Header"),e.createElement("p",null,"\u5934\u90E8\u6307\u5F15\uFF0C \u5728 iData PDA\u4E2D fn \u7684\u952E\u503C\u4E3A 0. back \u6309\u952E\u524D\u7AEF\u65E0\u6CD5\u76D1\u542C\u5230\uFF0C\u7531\u7CFB\u7EDF\u5904\u7406"),e.createElement("h2",null,"\u793A\u4F8B"),e.createElement("div",{className:"dark-block"},e.createElement(R,{title:"hello world",onBack:console.log,backShortcutKey:"a"}),e.createElement(R,{icon:"read",title:"hello world"}),e.createElement(R,{icon:"select",title:"hello world",menus:[{label:"menus1"},{label:"menus2"},{label:"menus3"}],onClickMenuItem:console.log,cancelMenuText:"\u53D6\u6D88",menuShortcutKey:"f1,f2,fn"})),e.createElement("code",{className:"code"},`
|
|
18
|
-
// backShortcutKey \u7ED1\u5B9A\u4E86 a \u952E\u5FEB\u6377\u89E6\u53D1 onBack
|
|
19
|
-
>>>>>>> 6f7032acb2e6e40814df61206ea1153b6b1ef3a3:build/assets/index.c95b4d3b.js
|
|
20
|
-
<Header
|
|
21
|
-
title='hello world'
|
|
22
|
-
onBack={console.log}
|
|
23
|
-
backShortcutKey="a"
|
|
24
|
-
/>
|
|
25
|
-
<Header
|
|
26
|
-
icon='read'
|
|
27
|
-
title='hello world'
|
|
28
|
-
></Header>
|
|
29
|
-
<Header
|
|
30
|
-
icon='select'
|
|
31
|
-
title='hello world'
|
|
32
|
-
menus={[
|
|
33
|
-
{
|
|
34
|
-
label:"menus1"
|
|
35
|
-
},
|
|
36
|
-
{
|
|
37
|
-
label:"menus2"
|
|
38
|
-
},
|
|
39
|
-
{
|
|
40
|
-
label:"menus3"
|
|
41
|
-
}
|
|
42
|
-
]}
|
|
43
|
-
onClickMenuItem={console.log}
|
|
44
|
-
cancelMenuText="\u53D6\u6D88"
|
|
45
|
-
menuShortcutKey="f1,f2,fn"
|
|
46
|
-
></Header>
|
|
47
|
-
<<<<<<< HEAD:build/assets/index.a01ed166.js
|
|
48
|
-
`),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 fe(){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:n=>console.log(n)},"\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"},`
|
|
49
|
-
=======
|
|
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,"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 ye(){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(h,null,"\u6309\u94AE"),e.createElement(h,{type:"primary",onClick:n=>console.log(n)},"\u786E\u8BA4"),e.createElement(h,{type:"dark"},"\u6DF1\u8272"),e.createElement(h.Group,null,e.createElement(h,{type:"cutout"},"\u9542\u7A7A"),e.createElement(h,null,"\u6309\u94AE"))),e.createElement("code",{className:"code"},`
|
|
51
|
-
>>>>>>> 6f7032acb2e6e40814df61206ea1153b6b1ef3a3:build/assets/index.c95b4d3b.js
|
|
52
|
-
<Button>\u6309\u94AE</Button>
|
|
53
|
-
<Button type='primary' onClick={e => console.log(e) }>\u786E\u8BA4</Button>
|
|
54
|
-
<Button type='dark'>\u6DF1\u8272</Button>
|
|
55
|
-
<Button.Group>
|
|
56
|
-
<Button type="cutout">\u9542\u7A7A</Button>
|
|
57
|
-
<Button>\u6309\u94AE</Button>
|
|
58
|
-
</Button.Group>
|
|
59
|
-
<<<<<<< HEAD:build/assets/index.a01ed166.js
|
|
60
|
-
`),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:l,highlightInfo:u,subTitle:a,subHighlightInfo:r,subHighlightSubInfo:c,infoImage:o,tagText:i,highlightInfoCN:s,highlightSubInfo:m,percentage:E,highlightSubInfoCN:F,boldInfo:b,infoList:k=[],style:_={},theme:ce="light"}=this.props;return e.createElement("div",{className:h({[t]:!0,"pda-info-card":!0,"pda-info-card-dark":ce==="dark"}),style:_},e.createElement("div",{className:"pda-info-card-title-section"},e.createElement("div",{className:"pda-info-card-title"},l),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"},u),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),E!==void 0?e.createElement("div",{className:"pda-info-card-progress"},e.createElement("div",{className:"pda-info-card-progress-inside",style:{width:`${E*100}%`}})):null,e.createElement("div",{className:"pda-info-card-bold"},b),k.map((j,oe)=>e.createElement("div",{key:oe,className:"pda-info-card-list"},e.createElement("span",null,j.label||""),"\xA0\xA0",e.createElement("span",null,j.content||""))))}}y.IMAGE_1="https://img.alicdn.com/imgextra/i2/O1CN01qYuxip1ME9zhdL9XG_!!6000000001402-2-tps-150-150.png";function ye(){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(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",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"},`
|
|
61
|
-
=======
|
|
62
|
-
`),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:l,highlightInfo:u,subTitle:a,subHighlightInfo:r,subHighlightSubInfo:c,infoImage:o,tagText:i,highlightInfoCN:s,highlightSubInfo:m,percentage:d,highlightSubInfoCN:g,boldInfo:b,infoList:k=[],style:_={},theme:oe="light"}=this.props;return e.createElement("div",{className:E({[t]:!0,"pda-info-card":!0,"pda-info-card-dark":oe==="dark"}),style:_},e.createElement("div",{className:"pda-info-card-title-section"},e.createElement("div",{className:"pda-info-card-title"},l),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"},u),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"},g)),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),d!==void 0?e.createElement("div",{className:"pda-info-card-progress"},e.createElement("div",{className:"pda-info-card-progress-inside",style:{width:`${d*100}%`}})):null,e.createElement("div",{className:"pda-info-card-bold"},b),k.map((U,ie)=>e.createElement("div",{key:ie,className:"pda-info-card-list"},e.createElement("span",null,U.label||""),"\xA0\xA0",e.createElement("span",null,U.content||""))))}}y.IMAGE_1="https://img.alicdn.com/imgextra/i2/O1CN01qYuxip1ME9zhdL9XG_!!6000000001402-2-tps-150-150.png";function ke(){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(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",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"},`
|
|
63
|
-
>>>>>>> 6f7032acb2e6e40814df61206ea1153b6b1ef3a3:build/assets/index.c95b4d3b.js
|
|
64
|
-
<InfoCard
|
|
65
|
-
title="\u5F85\u62E3\u4EF6\u6570"
|
|
66
|
-
highlightInfo="800"
|
|
67
|
-
highlightInfoCN = "\u4EF6"
|
|
68
|
-
highlightSubInfo="/800"
|
|
69
|
-
highlightSubInfoCN="\u4EF6"
|
|
70
|
-
percentage={0.64}
|
|
71
|
-
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"
|
|
72
|
-
infoList={
|
|
73
|
-
[
|
|
74
|
-
{label: '\u5546\u54C1\u6761\u7801', content: '623126388798'},
|
|
75
|
-
{label: '\u622A\u6B62\u65E5\u671F', content: '2022-07-25'},
|
|
76
|
-
{label: '\u4EA7\u54C1\u540D\u79F0', content: '\u5546\u54C1\u7684\u540D\u79F0'},
|
|
77
|
-
{label: '\u54C1\u53F7', content: '12398765423'},
|
|
78
|
-
]
|
|
79
|
-
}
|
|
80
|
-
/>`),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"},`
|
|
81
|
-
<InfoCard
|
|
82
|
-
title="\u5F85\u62E3\u4EF6\u6570"
|
|
83
|
-
highlightInfo="800"
|
|
84
|
-
highlightInfoCN = "\u4EF6"
|
|
85
|
-
highlightSubInfo="/800"
|
|
86
|
-
highlightSubInfoCN="\u4EF6"
|
|
87
|
-
tagText="\u5C11\u8D272"
|
|
88
|
-
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"
|
|
89
|
-
theme='dark'
|
|
90
|
-
infoList={
|
|
91
|
-
[
|
|
92
|
-
{label: '\u5546\u54C1\u6761\u7801', content: '623126388798'},
|
|
93
|
-
{label: '\u622A\u6B62\u65E5\u671F', content: '2022-07-25'},
|
|
94
|
-
{label: '\u4EA7\u54C1\u540D\u79F0', content: '\u5546\u54C1\u7684\u540D\u79F0'},
|
|
95
|
-
{label: '\u54C1\u53F7', content: '12398765423'},
|
|
96
|
-
]
|
|
97
|
-
}
|
|
98
|
-
/>`),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"},`
|
|
99
|
-
<InfoCard
|
|
100
|
-
title="\u6F0F\u626B\u7BB1\u6570/\u8BC6\u522B\u603B\u7BB1\u6570"
|
|
101
|
-
highlightInfo="0"
|
|
102
|
-
highlightSubInfo="/40"
|
|
103
|
-
infoImage={InfoCard.IMAGE_1}
|
|
104
|
-
/>`),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"},`
|
|
105
|
-
<InfoCard
|
|
106
|
-
title="\u8BC6\u522B\u7BB1\u6570(CS)"
|
|
107
|
-
highlightInfo="0"
|
|
108
|
-
highlightSubInfo="/50"
|
|
109
|
-
subTitle="\u8BC6\u522B\u4E2A\u6570(EA)"
|
|
110
|
-
subHighlightInfo="40"
|
|
111
|
-
subHighlightSubInfo="/50"
|
|
112
|
-
infoImage={InfoCard.IMAGE_1}
|
|
113
|
-
<<<<<<< HEAD:build/assets/index.a01ed166.js
|
|
114
|
-
/>`),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 ke extends e.Component{constructor(t){super(t)}render(){const{className:t,title:l,isActive:u,infoList:a=[],style:r={},index:c,isLast:o}=this.props;return e.createElement("div",{className:h({[t]:!0,"pda-step-card":!0}),style:r},e.createElement("div",{className:"pda-step-indictor"},e.createElement("div",{className:h({"pda-step-indictor-top":!0,"pda-step-indictor-top-hidden":c===0})}),e.createElement("div",{className:h({"pda-step-indictor-center":!0,"pda-step-indictor-center-active":u})}),e.createElement("div",{className:h({"pda-step-indictor-bottom":!0,"pda-step-indictor-bottom-hidden":o})})),e.createElement("div",{className:h({"pda-step":!0,"pda-step-dark":!u})},e.createElement("div",{className:"pda-step-title"},l),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 w extends e.Component{constructor(t){super(t)}render(){const{className:t,style:l={},theme:u="light",current:a=0,children:r}=this.props;return e.createElement("div",{className:h({[t]:!0}),style:l},(r||[]).map((c,o)=>{const i=C({index:o,isLast:o===(r||[]).length-1},c.props);return o===a?i.isActive=!0:i.isActive=!1,p.exports.cloneElement(c,i)}))}}S(w,"Step",ke);const{Step:D}=w;function ve(){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(w,{current:0,style:{marginRight:"32px"}},e.createElement(D,{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(D,{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(w,{current:1},e.createElement(D,{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(D,{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(D,{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"},`
|
|
115
|
-
=======
|
|
116
|
-
/>`),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 ve extends e.Component{constructor(t){super(t)}render(){const{className:t,title:l,isActive:u,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":u})}),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":!u})},e.createElement("div",{className:"pda-step-title"},l),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:l={},theme:u="light",current:a=0,children:r}=this.props;return e.createElement("div",{className:E({[t]:!0}),style:l},(r||[]).map((c,o)=>{const i=F({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",ve);const{Step:D}=S;function Ae(){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(D,{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(D,{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(D,{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(D,{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(D,{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"},`
|
|
117
|
-
>>>>>>> 6f7032acb2e6e40814df61206ea1153b6b1ef3a3:build/assets/index.c95b4d3b.js
|
|
118
|
-
<Steps current={0} style={{
|
|
119
|
-
marginRight: '32px',
|
|
120
|
-
}}>
|
|
121
|
-
<Step title="\u626B\u63CF\u4E2D" infoList={
|
|
122
|
-
[
|
|
123
|
-
{label: '\u5546\u54C1\u6761\u7801', content: '623126388798'},
|
|
124
|
-
{label: '\u622A\u6B62\u65E5\u671F', content: '2022-07-25'},
|
|
125
|
-
{label: '\u4EA7\u54C1\u540D\u79F0', content: '\u5546\u54C1\u7684\u540D\u79F0'},
|
|
126
|
-
{label: '\u54C1\u53F7', content: '12398765423'},
|
|
127
|
-
]
|
|
128
|
-
} />
|
|
129
|
-
<Step title="\u5DF2\u751F\u4EA7" infoList={
|
|
130
|
-
[
|
|
131
|
-
{label: '\u5546\u54C1\u6761\u7801', content: '623126388798'},
|
|
132
|
-
{label: '\u622A\u6B62\u65E5\u671F', content: '2022-07-25'},
|
|
133
|
-
{label: '\u4EA7\u54C1\u540D\u79F0', content: '\u5546\u54C1\u7684\u540D\u79F0'},
|
|
134
|
-
{label: '\u54C1\u53F7', content: '12398765423'},
|
|
135
|
-
]
|
|
136
|
-
} />
|
|
137
|
-
</Steps>
|
|
138
|
-
<<<<<<< HEAD:build/assets/index.a01ed166.js
|
|
139
|
-
`),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 Ae extends e.Component{constructor(t){super(t)}render(){const{className:t,header:l,onClick:u=()=>{},onHeightLightClick:a=()=>{},onIconClick:r=()=>{},highlightText:c,highlightSubText:o,stateTextList:i=[],stateList:s=[],subInfoList:m=[],style:E={},icon:F}=this.props;return e.createElement("div",{className:h({[t]:!0,"pda-list-item":!0}),style:E,onClick:u},l?e.createElement("div",{className:"pda-listitem-header"},l):null,e.createElement("div",{onClick:a,className:h({"pda-listitem-highlight":!0})},e.createElement("div",null,c),e.createElement("div",null,o)),e.createElement("div",{className:"pda-listitem-state-text"},i.map((b,k)=>e.createElement("span",{key:k},b.label||"","\uFF5C"))),e.createElement("div",{className:"pda-listitem-state-block"},s.map((b,k)=>{const _=b&&b.type?b.type:"default";return e.createElement("div",{key:k,className:_},b.label||"")})),F?e.createElement("div",{onClick:r,className:"pda-listitem-icon"},e.createElement("div",{className:h({"listitem-icon-container":!0,["listitem-icon-"+F]:!0})})):null,m.map((b,k)=>e.createElement("div",{key:k,className:"pda-listitem-subinfo"},e.createElement("span",null,b.label||""),"\xA0\xA0",e.createElement("span",null,b.content||""))))}}function De(){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(Ae,{onClick:n=>{console.log(123)},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"},`
|
|
140
|
-
=======
|
|
141
|
-
`),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 De extends e.Component{constructor(t){super(t)}render(){const{className:t,header:l,onClick:u=()=>{},onHeightLightClick:a=()=>{},onIconClick:r=()=>{},highlightText:c,highlightSubText:o,stateTextList:i=[],stateList:s=[],subInfoList:m=[],style:d={},icon:g}=this.props;return e.createElement("div",{className:E({[t]:!0,"pda-list-item":!0}),style:d,onClick:u},l?e.createElement("div",{className:"pda-listitem-header"},l):null,e.createElement("div",{onClick:a,className:E({"pda-listitem-highlight":!0})},e.createElement("div",null,c),e.createElement("div",null,o)),e.createElement("div",{className:"pda-listitem-state-text"},i.map((b,k)=>e.createElement("span",{key:k},b.label||"","\uFF5C"))),e.createElement("div",{className:"pda-listitem-state-block"},s.map((b,k)=>{const _=b&&b.type?b.type:"default";return e.createElement("div",{key:k,className:_},b.label||"")})),g?e.createElement("div",{onClick:r,className:"pda-listitem-icon"},e.createElement("div",{className:E({"listitem-icon-container":!0,["listitem-icon-"+g]:!0})})):null,m.map((b,k)=>e.createElement("div",{key:k,className:"pda-listitem-subinfo"},e.createElement("span",null,b.label||""),"\xA0\xA0",e.createElement("span",null,b.content||""))))}}function Ne(){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(De,{onClick:n=>{console.log(123)},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"},`
|
|
142
|
-
>>>>>>> 6f7032acb2e6e40814df61206ea1153b6b1ef3a3:build/assets/index.c95b4d3b.js
|
|
143
|
-
<ListItem
|
|
144
|
-
header="\u4EFB\u52A1\u5355"
|
|
145
|
-
highlightText="XXXX-XX-XXX"
|
|
146
|
-
highlightSubText="30%"
|
|
147
|
-
icon="next"
|
|
148
|
-
stateTextList={[
|
|
149
|
-
{label: '\u72B6\u60011'},
|
|
150
|
-
{label: '\u72B6\u60012'},
|
|
151
|
-
{label: '\u72B6\u60012'},
|
|
152
|
-
]}
|
|
153
|
-
stateList={[
|
|
154
|
-
{label: 'success', type: 'success'},
|
|
155
|
-
{label: 'default', },
|
|
156
|
-
{label: 'warning', type: 'warning'},
|
|
157
|
-
{label: 'error', type: 'error'},
|
|
158
|
-
]}
|
|
159
|
-
onIconClick={()=> {
|
|
160
|
-
console.log('icon click!')
|
|
161
|
-
}}
|
|
162
|
-
onHeightLightClick={()=> {
|
|
163
|
-
console.log('heightlight click!')
|
|
164
|
-
}}
|
|
165
|
-
subInfoList={
|
|
166
|
-
[
|
|
167
|
-
{label: '\u5546\u54C1\u6761\u7801', content: '623126388798'},
|
|
168
|
-
{label: '\u622A\u6B62\u65E5\u671F', content: '2022-07-25'},
|
|
169
|
-
{label: '\u4EA7\u54C1\u540D\u79F0', content: '\u5546\u54C1\u7684\u540D\u79F0'},
|
|
170
|
-
{label: '\u54C1\u53F7', content: '12398765423'},
|
|
171
|
-
{label: '\u4ED3\u5E93', content: '12398000000000765423'},
|
|
172
|
-
]
|
|
173
|
-
}
|
|
174
|
-
/>
|
|
175
|
-
<<<<<<< HEAD:build/assets/index.a01ed166.js
|
|
176
|
-
`),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 Ne(){}function N(n){const{title:t="title",message:l=null,subMessage:u=[],okText:a="okText",cancelText:r=null,onClick:c=Ne,type:o="primary",insertButtons:i=[],appendButtons:s=[]}=n;return e.createElement("div",{className:h({"confirm-wrap":!0,["confirm-"+o]:!0})},e.createElement("div",{className:"confirm-content"},e.createElement("div",{className:"confirm-title"},t),l?e.createElement("div",{className:"confirm-message"},l):null,u.length?e.createElement("div",{className:"confirm-sub-message"},u.map((m,E)=>{const{label:F,content:b}=m;return e.createElement("div",{className:"confirm-sub-block",key:F||E},e.createElement("p",{className:"confirm-sub-label"},F?F+" : ":""),e.createElement("p",{className:"confirm-sub-content"},b||""))})):null),e.createElement("div",{className:"confirm-btns"},i.length>0?e.createElement(d.Group,null,i.map((m,E)=>e.createElement(d,{key:E,onClick:()=>c(m.value)},m.label))):null,e.createElement(d.Group,null,r?e.createElement(d,{className:"confirm-cancel-button",onClick:()=>c(!1)},r):null,e.createElement(d,{type:"primary",onClick:()=>c(!0)},a)),s.length>0?e.createElement(d.Group,null,s.map((m,E)=>e.createElement(d,{key:E,onClick:()=>c(m.value)},m.label))):null))}function xe(){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(N,{title:"111111",message:"22222",okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",subMessage:[{label:"\u7BB1\u7801",content:"abcdefghijklmnopqrstuvwxyz"}],onClick:n=>{console.log("isConfirm",n)}}),e.createElement("br",null),e.createElement(N,{title:"111111",message:"22222",okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",type:"warning",subMessage:[{label:"\u7BB1\u7801",content:"abcdefghijklmnopqrstuvwxyz"}],onClick:n=>{console.log("isConfirm",n)},insertButtons:[{label:"\u67E5\u770B\u8BE6\u60C5111",value:"hello"}],appendButtons:[{label:"\u67E5\u770B\u8BE6\u60C5",value:{name:"id111"}}]})),e.createElement("code",{className:"code"},`
|
|
177
|
-
=======
|
|
178
|
-
`),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 xe(){}function I(n){const{title:t="title",message:l=null,subMessage:u=[],okText:a="okText",cancelText:r=null,onClick:c=xe,type:o="primary"}=n;return e.createElement("div",{className:E({"confirm-wrap":!0,["confirm-"+o]:!0})},e.createElement("div",{className:"confirm-title"},t),l?e.createElement("div",{className:"confirm-message"},l):null,u.length?e.createElement("div",{className:"confirm-sub-message"},u.map((i,s)=>{const{label:m,content:d}=i;return e.createElement("div",{className:"confirm-sub-block",key:m||s},e.createElement("p",{className:"confirm-sub-label"},m?m+" : ":""),e.createElement("p",{className:"confirm-sub-content"},d||""))})):null,e.createElement("div",{className:"confirm-btns"},r?e.createElement(h,{className:"confirm-cancel-button",onClick:()=>c(!1)},r):null,e.createElement(h,{type:"primary",onClick:()=>c(!0)},a)))}function Se(){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",subMessage:[{label:"\u7BB1\u7801",content:"abcdefghijklmnopqrstuvwxyz"}],onClick:n=>{console.log("isConfirm",n)}})),e.createElement("code",{className:"code"},`
|
|
179
|
-
>>>>>>> 6f7032acb2e6e40814df61206ea1153b6b1ef3a3:build/assets/index.c95b4d3b.js
|
|
180
|
-
<Confirm
|
|
181
|
-
// type="warning"
|
|
182
|
-
title="111111"
|
|
183
|
-
message="22222"
|
|
184
|
-
okText="\u786E\u8BA4"
|
|
185
|
-
cancelText="\u53D6\u6D88"
|
|
186
|
-
onClick={(isConfirm)=>{
|
|
187
|
-
console.log("isConfirm", isConfirm);
|
|
188
|
-
}}
|
|
189
|
-
></Confirm>
|
|
190
|
-
<<<<<<< HEAD:build/assets/index.a01ed166.js
|
|
191
|
-
`),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")),e.createElement("tr",null,e.createElement("td",null,"subMessage"),e.createElement("td",null,"\u63CF\u8FF0"),e.createElement("td",null,JSON.stringify([{label:"\u7BB1\u7801"},{content:"abcdefghijklmnopqrstuvwxyz"}])),e.createElement("td",null)))))}function Se(n){return(typeof n=="function"?n():n)||document.body}function we(n){return n===void 0}function J(...n){function t(u,a){return we(a)?u:a}let l=Object.assign({},n[0]);for(let u=1;u<n.length;u++)l=Object.assign(l,n[u],t);return l}function Ie(n){return{success:"toast-wrap success",warning:"toast-wrap warning",error:"toast-wrap error"}[n]||"toast-wrap"}function B(n){const{title:t="title",message:l="message",type:u="success",duration:a=null}=n,[r,c]=p.exports.useState(!1);return a&&setTimeout(()=>{c(!0)},a),r?null:e.createElement("div",{className:Ie(u)},e.createElement("div",{className:"toast-title"},t),e.createElement("div",{className:"toast-message"},l))}const Te={maskClickable:!0,stopPropagation:["click"]},Le=n=>{const t=J(Te,n),{maskClickable:l,content:u,icon:a,position:r,title:c,message:o,type:i,visible:s}=t;return e.createElement(f,{visible:s,verticalPosition:"bottom",closable:!0},e.createElement(B,{title:c,message:o,type:i}))},Q=[];function Z(n){R.unmountComponentAtNode(n)&&n.parentNode&&n.parentNode.removeChild(n)}const _e={duration:2e3};function Me(n){const t=J(_e,n);let l=0;const{getContainer:u=()=>document.body}=t,a=document.createElement("div");Se(u).appendChild(a),console.log("container: ",a),ee(),Q.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 l=window.setTimeout(()=>{i(!1)},t.duration),()=>{window.clearTimeout(l)}},[]),e.createElement(Le,P(C({},t),{getContainer:()=>a,visible:o,afterClose:()=>{Z(a)}}))}R.render(e.createElement(c,null),a)}function ee(){for(;;){const n=Q.pop();if(!n)break;Z(n)}}B.show=Me;B.clear=ee;function Pe(){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:n=>{B.show({type:"success",title:"hello title",message:"hello message",duration:1e3})}},"\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"},`
|
|
192
|
-
=======
|
|
193
|
-
`),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")),e.createElement("tr",null,e.createElement("td",null,"subMessage"),e.createElement("td",null,"\u63CF\u8FF0"),e.createElement("td",null,JSON.stringify([{label:"\u7BB1\u7801"},{content:"abcdefghijklmnopqrstuvwxyz"}])),e.createElement("td",null)))))}function Ie(n){return(typeof n=="function"?n():n)||document.body}function we(n){return n===void 0}function z(...n){function t(u,a){return we(a)?u:a}let l=Object.assign({},n[0]);for(let u=1;u<n.length;u++)l=Object.assign(l,n[u],t);return l}function Te(n){return{success:"toast-wrap success",warning:"toast-wrap warning",error:"toast-wrap error"}[n]||"toast-wrap"}function f(n){const{title:t="title",message:l="message",type:u="success",duration:a=null}=n,[r,c]=p.exports.useState(!1);return a&&setTimeout(()=>{c(!0)},a),r?null:e.createElement("div",{className:Te(u)},e.createElement("div",{className:"toast-title"},t),e.createElement("div",{className:"toast-message"},l))}const Le={maskClickable:!0,stopPropagation:["click"]},_e=n=>{const t=z(Le,n),{maskClickable:l,content:u,icon:a,position:r,title:c,message:o,type:i}=t;return e.createElement(B,{verticalPosition:"bottom",closable:!0},e.createElement(f,{title:c,message:o,type:i}))},J=[];function Q(n){P.unmountComponentAtNode(n)&&n.parentNode&&n.parentNode.removeChild(n)}const Me={duration:2e3};function Pe(n){const t=z(Me,n);let l=0;const{getContainer:u=()=>document.body}=t,a=document.createElement("div");Ie(u).appendChild(a),console.log("container: ",a),Z(),J.push(a);function c(){const[o,i]=p.exports.useState(!0);return p.exports.useEffect(()=>()=>{t.afterClose&&t.afterClose()},[]),p.exports.useEffect(()=>{if(t.duration!==0)return l=window.setTimeout(()=>{i(!1)},t.duration),()=>{window.clearTimeout(l)}},[]),e.createElement(_e,q(F({},t),{getContainer:()=>a,visible:o,afterClose:()=>{Q(a)}}))}P.render(e.createElement(c,null),a)}function Z(){for(;;){const n=J.pop();if(!n)break;Q(n)}}f.show=Pe;f.clear=Z;function Re(){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:n=>{f.show({type:"success",title:"hello title",message:"hello message"})}},"\u70B9\u51FB toast"),e.createElement(f,{title:"111111",message:"22222",type:"success"}),e.createElement("br",null),e.createElement(f,{title:"111111",message:"22222",type:"warning"}),e.createElement("br",null),e.createElement(f,{title:"\u5EF6\u65F6\u5173\u95ED",message:"duration={3000}",type:"error",duration:3e3}),e.createElement("br",null)),e.createElement("code",{className:"code"},`
|
|
194
|
-
>>>>>>> 6f7032acb2e6e40814df61206ea1153b6b1ef3a3:build/assets/index.c95b4d3b.js
|
|
195
|
-
Toast.show({
|
|
196
|
-
type: 'success',
|
|
197
|
-
title: 'hello title',
|
|
198
|
-
message: 'hello message',
|
|
199
|
-
})
|
|
200
|
-
<Toast
|
|
201
|
-
title="111111"
|
|
202
|
-
message="22222"
|
|
203
|
-
type="success"
|
|
204
|
-
></Toast>
|
|
205
|
-
<br />
|
|
206
|
-
<Toast
|
|
207
|
-
title="111111"
|
|
208
|
-
message="22222"
|
|
209
|
-
type="warning"
|
|
210
|
-
></Toast>
|
|
211
|
-
|
|
212
|
-
<br />
|
|
213
|
-
<Toast
|
|
214
|
-
title="\u5EF6\u65F6\u5173\u95ED"
|
|
215
|
-
message="duration={3000}"
|
|
216
|
-
type="error"
|
|
217
|
-
duration={3000}
|
|
218
|
-
></Toast>
|
|
219
|
-
<<<<<<< HEAD:build/assets/index.a01ed166.js
|
|
220
|
-
`),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 Re(){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(f,{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(f,{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(f,{verticalPosition:"bottom",closable:!0},e.createElement(N,{title:"111111",message:"22222",type:"error"}))),e.createElement("code",{className:"code"},`
|
|
221
|
-
=======
|
|
222
|
-
`),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 We(){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(f,{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(f,{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"},`
|
|
223
|
-
>>>>>>> 6f7032acb2e6e40814df61206ea1153b6b1ef3a3:build/assets/index.c95b4d3b.js
|
|
224
|
-
<Overlay verticalPosition="top" >
|
|
225
|
-
<Toast
|
|
226
|
-
title="111111"
|
|
227
|
-
message="22222"
|
|
228
|
-
type="success"
|
|
229
|
-
></Toast>
|
|
230
|
-
</Overlay>
|
|
231
|
-
|
|
232
|
-
<Overlay verticalPosition="center" >
|
|
233
|
-
<Toast
|
|
234
|
-
title="111111"
|
|
235
|
-
message="22222"
|
|
236
|
-
type="success"
|
|
237
|
-
></Toast>
|
|
238
|
-
</Overlay>
|
|
239
|
-
|
|
240
|
-
<Overlay verticalPosition="bottom" >
|
|
241
|
-
<Toast
|
|
242
|
-
title="111111"
|
|
243
|
-
message="22222"
|
|
244
|
-
type="success"
|
|
245
|
-
></Toast>
|
|
246
|
-
</Overlay>
|
|
247
|
-
|
|
248
|
-
<<<<<<< HEAD:build/assets/index.a01ed166.js
|
|
249
|
-
`),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 $(n){const{className:t=void 0,label:l="label",type:u="success"}=n;return e.createElement("div",{className:h({[t]:!0,"pda-tag":!0,["pda-tag-"+u]:!0})},l)}function We(){return e.createElement("div",null,e.createElement("h1",null,"Tag"),e.createElement("p",null,"\u6807\u7B7E"),e.createElement("h2",null,"\u793A\u4F8B"),e.createElement("div",{className:"light-block"},e.createElement($,null),e.createElement($,{label:"warning",type:"warning"})),e.createElement("code",{className:"code"},`
|
|
250
|
-
<Tag />
|
|
251
|
-
<Tag label='warning' type='warning'/>
|
|
252
|
-
`),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,"label"),e.createElement("td",null,"label"),e.createElement("td",null,"string"),e.createElement("td",null,"label")),e.createElement("tr",null,e.createElement("td",null,"type"),e.createElement("td",null,"\u7C7B\u578B"),e.createElement("td",null,"success | warning | error"),e.createElement("td",null,"success")))))}function I(n){const{className:t=void 0,title:l="",content:u="",type:a="default",onClick:r=()=>{}}=n;return l||u?e.createElement("div",{className:h({[t]:!0,"simple-card":!0,["simple-card-"+a]:!0}),onClick:r},e.createElement("p",{className:"simple-card-title"},l),e.createElement("p",{className:"simple-card-content"},u)):null}function $e(){return e.createElement("div",null,e.createElement("h1",null,"SimpleCard"),e.createElement("p",null,"\u7B80\u5355 Card"),e.createElement("h2",null,"\u793A\u4F8B"),e.createElement("div",{className:"light-block"},e.createElement(I,null),e.createElement(I,{title:"\u6807\u9898",content:"\u5185\u5BB9",type:"error",onClick:n=>{console.log(n)}}),e.createElement(I,{title:"500",content:"\u88C5\u8F66\u5B8C\u6210",onClick:n=>{console.log(n)}})),e.createElement("code",{className:"code"},`
|
|
253
|
-
<SimpleCard />
|
|
254
|
-
<SimpleCard title="\u6807\u9898" content="\u5185\u5BB9" type='error' onClick={e=>{console.log(e);}}/>
|
|
255
|
-
<SimpleCard title="500" content="\u88C5\u8F66\u5B8C\u6210" onClick={e=>{console.log(e);}}/>
|
|
256
|
-
`),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,"title")),e.createElement("tr",null,e.createElement("td",null,"content"),e.createElement("td",null,"\u5185\u5BB9"),e.createElement("td",null,"string"),e.createElement("td",null,"content")),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)),e.createElement("tr",null,e.createElement("td",null,"type"),e.createElement("td",null,"\u7C7B\u578B"),e.createElement("td",null,"default | error"),e.createElement("td",null,"default")))))}function Oe(n){const{className:t=void 0,dataSource:l=[],title:u="",tag:a}=n;return e.createElement("div",{className:h({[t]:!0,"simple-card-block":!0})},e.createElement("div",{className:"simple-card-block-header"},e.createElement("p",{className:"simple-card-block-title"},u),a?e.createElement("div",{style:{marginLeft:12}},e.createElement($,C({},a))):null),l.length>0?e.createElement("div",{className:"simple-card-block-content"},l.map((r,c)=>e.createElement(I,C({key:c},r))),e.createElement("div",{style:{display:"inline-block",padding:"12px 18px"}}),e.createElement("div",{style:{display:"inline-block",padding:"0 18px",margin:0}})):null)}function Ke(){return e.createElement("div",null,e.createElement("h1",null,"SimpleCardBlock"),e.createElement("p",null,"\u5361\u7247\u5757"),e.createElement("h2",null,"\u793A\u4F8B"),e.createElement("div",{className:"light-block"},e.createElement(Oe,{title:"\u51FA\u5E93\u4FE1\u606F\u51FA\u5E93\u4FE1\u606F\u51FA\u5E93\u4FE1\u606F\u51FA\u5E93\u4FE1\u606F\u51FA\u5E93\u4FE1\u606F\u51FA\u5E93\u4FE1\u606F\u51FA\u5E93\u4FE1\u606F",tag:{label:"\u6CE8\u610F\u5566",type:"warning"},dataSource:[{title:"500",content:"\u88C5\u8F66\u5B8C\u6210"},{title:"\u6807\u9898",content:"\u5185\u5BB9",type:"error",onClick:n=>console.log(n)},{title:"500",content:"\u88C5\u8F66\u5B8C\u6210"},{title:"\u6807\u9898",content:"\u5185\u5BB9",type:"error",onClick:n=>console.log(n)},{title:"500",content:"\u88C5\u8F66\u5B8C\u6210"}]})),e.createElement("code",{className:"code"},`
|
|
257
|
-
=======
|
|
258
|
-
`),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 $(n){const{className:t=void 0,label:l="label",type:u="success"}=n;return e.createElement("div",{className:E({[t]:!0,"pda-tag":!0,["pda-tag-"+u]:!0})},l)}function $e(){return e.createElement("div",null,e.createElement("h1",null,"Tag"),e.createElement("p",null,"\u6807\u7B7E"),e.createElement("h2",null,"\u793A\u4F8B"),e.createElement("div",{className:"light-block"},e.createElement($,null),e.createElement($,{label:"warning",type:"warning"})),e.createElement("code",{className:"code"},`
|
|
259
|
-
<Tag />
|
|
260
|
-
<Tag label='warning' type='warning'/>
|
|
261
|
-
`),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,"label"),e.createElement("td",null,"label"),e.createElement("td",null,"string"),e.createElement("td",null,"label")),e.createElement("tr",null,e.createElement("td",null,"type"),e.createElement("td",null,"\u7C7B\u578B"),e.createElement("td",null,"success | warning | error"),e.createElement("td",null,"success")))))}function w(n){const{className:t=void 0,title:l="",content:u="",type:a="default",onClick:r=()=>{}}=n;return l||u?e.createElement("div",{className:E({[t]:!0,"simple-card":!0,["simple-card-"+a]:!0}),onClick:r},e.createElement("p",{className:"simple-card-title"},l),e.createElement("p",{className:"simple-card-content"},u)):null}function Ke(){return e.createElement("div",null,e.createElement("h1",null,"SimpleCard"),e.createElement("p",null,"\u7B80\u5355 Card"),e.createElement("h2",null,"\u793A\u4F8B"),e.createElement("div",{className:"light-block"},e.createElement(w,null),e.createElement(w,{title:"\u6807\u9898",content:"\u5185\u5BB9",type:"error",onClick:n=>{console.log(n)}}),e.createElement(w,{title:"500",content:"\u88C5\u8F66\u5B8C\u6210",onClick:n=>{console.log(n)}})),e.createElement("code",{className:"code"},`
|
|
262
|
-
<SimpleCard />
|
|
263
|
-
<SimpleCard title="\u6807\u9898" content="\u5185\u5BB9" type='error' onClick={e=>{console.log(e);}}/>
|
|
264
|
-
<SimpleCard title="500" content="\u88C5\u8F66\u5B8C\u6210" onClick={e=>{console.log(e);}}/>
|
|
265
|
-
`),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,"title")),e.createElement("tr",null,e.createElement("td",null,"content"),e.createElement("td",null,"\u5185\u5BB9"),e.createElement("td",null,"string"),e.createElement("td",null,"content")),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)),e.createElement("tr",null,e.createElement("td",null,"type"),e.createElement("td",null,"\u7C7B\u578B"),e.createElement("td",null,"default | error"),e.createElement("td",null,"default")))))}function Oe(n){const{className:t=void 0,dataSource:l=[],title:u="",tag:a}=n;return e.createElement("div",{className:E({[t]:!0,"simple-card-block":!0})},e.createElement("div",{className:"simple-card-block-header"},e.createElement("p",{className:"simple-card-block-title"},u),a?e.createElement("div",{style:{marginLeft:12}},e.createElement($,F({},a))):null),l.length>0?e.createElement("div",{className:"simple-card-block-content"},l.map((r,c)=>e.createElement(w,F({key:c},r))),e.createElement("div",{style:{display:"inline-block",padding:"12px 18px"}}),e.createElement("div",{style:{display:"inline-block",padding:"0 18px",margin:0}})):null)}function He(){return e.createElement("div",null,e.createElement("h1",null,"SimpleCardBlock"),e.createElement("p",null,"\u5361\u7247\u5757"),e.createElement("h2",null,"\u793A\u4F8B"),e.createElement("div",{className:"light-block"},e.createElement(Oe,{title:"\u51FA\u5E93\u4FE1\u606F\u51FA\u5E93\u4FE1\u606F\u51FA\u5E93\u4FE1\u606F\u51FA\u5E93\u4FE1\u606F\u51FA\u5E93\u4FE1\u606F\u51FA\u5E93\u4FE1\u606F\u51FA\u5E93\u4FE1\u606F",tag:{label:"\u6CE8\u610F\u5566",type:"warning"},dataSource:[{title:"500",content:"\u88C5\u8F66\u5B8C\u6210"},{title:"\u6807\u9898",content:"\u5185\u5BB9",type:"error",onClick:n=>console.log(n)},{title:"500",content:"\u88C5\u8F66\u5B8C\u6210"},{title:"\u6807\u9898",content:"\u5185\u5BB9",type:"error",onClick:n=>console.log(n)},{title:"500",content:"\u88C5\u8F66\u5B8C\u6210"}]})),e.createElement("code",{className:"code"},`
|
|
266
|
-
>>>>>>> 6f7032acb2e6e40814df61206ea1153b6b1ef3a3:build/assets/index.c95b4d3b.js
|
|
267
|
-
<SimpleCardBlock
|
|
268
|
-
title="\u51FA\u5E93\u4FE1\u606F\u51FA\u5E93\u4FE1\u606F\u51FA\u5E93\u4FE1\u606F\u51FA\u5E93\u4FE1\u606F\u51FA\u5E93\u4FE1\u606F\u51FA\u5E93\u4FE1\u606F\u51FA\u5E93\u4FE1\u606F"
|
|
269
|
-
tag={
|
|
270
|
-
{label: '\u6CE8\u610F\u5566', type: 'warning'}
|
|
271
|
-
}
|
|
272
|
-
dataSource={
|
|
273
|
-
[
|
|
274
|
-
{title: '500', content: '\u88C5\u8F66\u5B8C\u6210'},
|
|
275
|
-
{title: "\u6807\u9898", content: "\u5185\u5BB9", type: 'error', onClick: e=>console.log(e) },
|
|
276
|
-
{title: '500', content: '\u88C5\u8F66\u5B8C\u6210'},
|
|
277
|
-
{title: "\u6807\u9898", content: "\u5185\u5BB9", type: 'error', onClick: e=>console.log(e) },
|
|
278
|
-
{title: '500', content: '\u88C5\u8F66\u5B8C\u6210'},
|
|
279
|
-
]
|
|
280
|
-
}
|
|
281
|
-
/>
|
|
282
|
-
<<<<<<< HEAD:build/assets/index.a01ed166.js
|
|
283
|
-
`),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,"title")),e.createElement("tr",null,e.createElement("td",null,"tag"),e.createElement("td",null,"\u6807\u7B7E"),e.createElement("td",null,"object"),e.createElement("td",null,"\u53C2\u8003 Tab")),e.createElement("tr",null,e.createElement("td",null,"dataSource"),e.createElement("td",null,"card \u6570\u636E\u6E90"),e.createElement("td",null,JSON.stringify([{},{}])),e.createElement("td",null,"\u5BF9\u8C61\u683C\u5F0F\u53C2\u8003 SimpleCard")))))}function g(n){const{image:t=g.IMAGE_1,text:l="",subText:u="",transparent:a}=n;return e.createElement("div",{className:a?"presentation-card transparent":"presentation-card"},e.createElement("img",{src:t}),l?e.createElement("div",{className:"text"},l):null,u?e.createElement("div",{className:"sub-text"},u):null)}g.IMAGE_1="https://img.alicdn.com/imgextra/i3/O1CN019Ivkor1ksy3pMGDsz_!!6000000004740-2-tps-280-322.png";g.IMAGE_2="https://img.alicdn.com/imgextra/i1/O1CN01lhSunu1X4VPw1Mlas_!!6000000002870-2-tps-352-158.png";g.IMAGE_3="https://img.alicdn.com/imgextra/i1/O1CN01mreYXo1XfbUsQ7hip_!!6000000002951-2-tps-322-144.png";g.IMAGE_4="https://img.alicdn.com/imgextra/i3/O1CN017gNM8F1Fmmcfti7Dg_!!6000000000530-1-tps-414-286.gif";function He(){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(g,{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(g,{image:g.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(g,{image:g.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(g,{image:g.IMAGE_3,text:"\u8BF7\u9760\u8FD1\u7BB1\u7801\u8FDB\u884C\u8BC6\u522B"})),e.createElement("br",null),e.createElement("code",{className:"code"},`
|
|
284
|
-
=======
|
|
285
|
-
`),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,"title")),e.createElement("tr",null,e.createElement("td",null,"tag"),e.createElement("td",null,"\u6807\u7B7E"),e.createElement("td",null,"object"),e.createElement("td",null,"\u53C2\u8003 Tab")),e.createElement("tr",null,e.createElement("td",null,"dataSource"),e.createElement("td",null,"card \u6570\u636E\u6E90"),e.createElement("td",null,JSON.stringify([{},{}])),e.createElement("td",null,"\u5BF9\u8C61\u683C\u5F0F\u53C2\u8003 SimpleCard")))))}function C(n){const{image:t=C.IMAGE_1,text:l="",subText:u="",transparent:a}=n;return e.createElement("div",{className:a?"presentation-card transparent":"presentation-card"},e.createElement("img",{src:t}),l?e.createElement("div",{className:"text"},l):null,u?e.createElement("div",{className:"sub-text"},u):null)}C.IMAGE_1="https://img.alicdn.com/imgextra/i3/O1CN019Ivkor1ksy3pMGDsz_!!6000000004740-2-tps-280-322.png";C.IMAGE_2="https://img.alicdn.com/imgextra/i1/O1CN01lhSunu1X4VPw1Mlas_!!6000000002870-2-tps-352-158.png";C.IMAGE_3="https://img.alicdn.com/imgextra/i1/O1CN01mreYXo1XfbUsQ7hip_!!6000000002951-2-tps-322-144.png";C.IMAGE_4="https://img.alicdn.com/imgextra/i3/O1CN017gNM8F1Fmmcfti7Dg_!!6000000000530-1-tps-414-286.gif";function Xe(){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(C,{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(C,{image:C.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(C,{image:C.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(C,{image:C.IMAGE_3,text:"\u8BF7\u9760\u8FD1\u7BB1\u7801\u8FDB\u884C\u8BC6\u522B"})),e.createElement("br",null),e.createElement("code",{className:"code"},`
|
|
286
|
-
>>>>>>> 6f7032acb2e6e40814df61206ea1153b6b1ef3a3:build/assets/index.c95b4d3b.js
|
|
287
|
-
<Presentation text="\u8BF7\u9760\u8FD1\u62A5\u5E9F\u7EB8\u7BB1" subText="\u5F00\u59CB\u8BC6\u522B"></Presentation>
|
|
288
|
-
<Presentation image={Presentation.IMAGE_4} text="\u8BF7\u9760\u8FD1\u7EB8\u7BB1" subText="\u5F00\u59CB\u8BC6\u522B" transparent={true}></Presentation>
|
|
289
|
-
<Presentation image={Presentation.IMAGE_2} imageStyle={{width: "500px"}} text="\u8BF7\u9760\u8FD1\u62A5\u5E9F\u7EB8\u7BB1" subText="\u5F00\u59CB\u8BC6\u522B" transparent={true} ></Presentation>
|
|
290
|
-
<Presentation image={Presentation.IMAGE_3} text="\u8BF7\u9760\u8FD1\u7BB1\u7801\u8FDB\u884C\u8BC6\u522B" ></Presentation>
|
|
291
|
-
<<<<<<< HEAD:build/assets/index.a01ed166.js
|
|
292
|
-
`),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 Ge(){}function O(n){const{dataSource:t=[],onClickItem:l,onItemClick:u=Ge}=n;return e.createElement("div",{className:"android-pda-list"},t.map((a,r)=>e.createElement(te,{key:a.key||r,dataSource:a,onClick:l||u})),n.children)}function te(n){const t=n.dataSource||{title:n.title,subTitle:n.subTitle,extra:n.extra,tags:n.tags},{title:l,subTitle:u,extra:a,tags:r=[],tabIndex:c}=t,{onClick:o}=n;return e.createElement("div",{className:"default-item",onClick:()=>{o(n.dataSource)},tabIndex:c},e.createElement("div",{className:"text"},e.createElement("div",null,l),e.createElement("div",{className:"sub-text"},u),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))}O.Item=te;const Xe=[{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 Ue(){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(O,{onClickItem:console.log,dataSource:Xe})),e.createElement("code",{className:"code"},`
|
|
293
|
-
=======
|
|
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,"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 Ge(){}function K(n){const{dataSource:t=[],onClickItem:l,onItemClick:u=Ge}=n;return e.createElement("div",{className:"android-pda-list"},t.map((a,r)=>e.createElement(ee,{key:a.key||r,dataSource:a,onClick:l||u})),n.children)}function ee(n){const t=n.dataSource||{title:n.title,subTitle:n.subTitle,extra:n.extra,tags:n.tags},{title:l,subTitle:u,extra:a,tags:r=[],tabIndex:c}=t,{onClick:o}=n;return e.createElement("div",{className:"default-item",onClick:()=>{o(n.dataSource)},tabIndex:c},e.createElement("div",{className:"text"},e.createElement("div",null,l),e.createElement("div",{className:"sub-text"},u),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))}K.Item=ee;const Ue=[{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 je(){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(K,{onClickItem:console.log,dataSource:Ue})),e.createElement("code",{className:"code"},`
|
|
295
|
-
>>>>>>> 6f7032acb2e6e40814df61206ea1153b6b1ef3a3:build/assets/index.c95b4d3b.js
|
|
296
|
-
const dataSource = [{
|
|
297
|
-
title: "hello world",
|
|
298
|
-
subTitle:"sub title",
|
|
299
|
-
extra:"11111",
|
|
300
|
-
tags:[1,2,3,4]
|
|
301
|
-
},{
|
|
302
|
-
title: "hello world",
|
|
303
|
-
subTitle:"sub title",
|
|
304
|
-
extra:"",
|
|
305
|
-
tags:[1,2,3,4]
|
|
306
|
-
},{
|
|
307
|
-
title: "hello world",
|
|
308
|
-
subTitle:"sub title",
|
|
309
|
-
},{
|
|
310
|
-
title: "hello world",
|
|
311
|
-
subTitle:"sub title",
|
|
312
|
-
extra:"11111",
|
|
313
|
-
}];
|
|
314
|
-
<List
|
|
315
|
-
onClickItem={console.log}
|
|
316
|
-
tabIndex={0}
|
|
317
|
-
dataSource={dataSource}
|
|
318
|
-
>
|
|
319
|
-
</List>
|
|
320
|
-
<<<<<<< HEAD:build/assets/index.a01ed166.js
|
|
321
|
-
`),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 K=()=>{};function le(n){const{label:t="\u67E5\u8BE2",onWakeKeyboard:l=K,onClick:u=K,onHidden:a=K,type:r="tel",placeholder:c="\u8BF7\u8F93\u5165"}=n,o=p.exports.useRef(null),[i,s]=p.exports.useState(!0);return p.exports.useEffect(()=>{const m=E=>{E.preventDefault();const{code:F,keyCode:b,key:k}=E;if(F==="Enter"){u(o.current.value,E),a(!0),s(!1);return}};return requestAnimationFrame(()=>{o.current.focus(),l()}),document.addEventListener("keyup",m),()=>{document.removeEventListener("keyup",m)}},[]),i?e.createElement("div",{className:"wakekeyborard-overlay",onClick:m=>{var E;((E=m.target.className)==null?void 0:E.includes("wakekeyborard-overlay"))&&(a(!1),s(!1))}},e.createElement("div",{className:"wakekeyborard-inputbox"},e.createElement("input",{ref:o,type:r,placeholder:c}),e.createElement(d,{type:"cutout",onClick:m=>{u(o.current.value,m),a(!0),s(!1)}},t))):null}const ne=()=>{};function je(n){const[t,l]=p.exports.useState(n.autoWakeup||!1),c=n,{onClick:u=ne,onHidden:a=ne}=c,r=A(c,["onClick","onHidden"]);return e.createElement("div",{className:"wakekeyborard"},t?e.createElement(le,C({onClick:(o,i)=>{u(o),l(!t)},onHidden:o=>{l(!1),a(o)}},r)):null,t?null:e.createElement("div",{className:"wakekeyborard-icon",onClick:o=>{l(!t)}}))}function Ve(){const[n,t]=p.exports.useState(!1);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(je,{autoWakeup:!0,label:"\u641C\u7D22",onWakeKeyboard:()=>{console.log("wake keyboard")},onHidden:()=>{console.log("keyboard hidden")},onClick:l=>{console.log("v is ",l)}}),e.createElement("p",null,"\u70B9\u51FB\u4E0B\u9762\u6309\u94AE\u5524\u8D77"),e.createElement(d,{onClick:l=>{t(!n)}},"\u8F93\u5165"),n?e.createElement(le,{onWakeKeyboard:l=>{console.log("keyborard from button")},onClick:l=>{console.log("value: ",l)},onHidden:l=>{console.log("keyborard hidden from button"),t(!1)}}):null),e.createElement("code",{className:"code"},`
|
|
322
|
-
=======
|
|
323
|
-
`),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 O=()=>{};function te(n){const{label:t="\u67E5\u8BE2",onWakeKeyboard:l=O,onClick:u=O,onHidden:a=O,type:r="tel",placeholder:c="\u8BF7\u8F93\u5165"}=n,o=p.exports.useRef(null),[i,s]=p.exports.useState(!0);return p.exports.useEffect(()=>{const m=d=>{d.preventDefault();const{code:g,keyCode:b,key:k}=d;if(g==="Enter"){u(o.current.value,d),a(!0),s(!1);return}};return requestAnimationFrame(()=>{o.current.focus(),l()}),document.addEventListener("keyup",m),()=>{document.removeEventListener("keyup",m)}},[]),i?e.createElement("div",{className:"wakekeyborard-overlay",onClick:m=>{m.target.className&&m.target.className.includes("wakekeyborard-overlay")&&(a(!1),s(!1))}},e.createElement("div",{className:"wakekeyborard-inputbox"},e.createElement("input",{ref:o,type:r,placeholder:c}),e.createElement(h,{type:"cutout",onClick:m=>{u(o.current.value,m),a(!0),s(!1)}},t))):null}const le=()=>{};function Ve(n){const[t,l]=p.exports.useState(!1),c=n,{onClick:u=le,onHidden:a=le}=c,r=A(c,["onClick","onHidden"]);return e.createElement("div",{className:"wakekeyborard"},t?e.createElement(te,F({onClick:(o,i)=>{u(o),l(!t)},onHidden:o=>{l(!1),a(o)}},r)):null,t?null:e.createElement("div",{className:"wakekeyborard-icon",onClick:o=>{l(!t)}}))}function qe(){const[n,t]=p.exports.useState(!1);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(Ve,{label:"\u641C\u7D22",onWakeKeyboard:()=>{console.log("wake keyboard")},onHidden:()=>{console.log("keyboard hidden")},onClick:l=>{console.log("v is ",l)}}),e.createElement("p",null,"\u70B9\u51FB\u4E0B\u9762\u6309\u94AE\u5524\u8D77"),e.createElement(h,{onClick:l=>{t(!n)}},"\u8F93\u5165"),n?e.createElement(te,{onWakeKeyboard:l=>{console.log("keyborard from button")},onClick:l=>{console.log("value: ",l)},onHidden:l=>{console.log("keyborard hidden from button"),t(!1)}}):null),e.createElement("code",{className:"code"},`
|
|
324
|
-
>>>>>>> 6f7032acb2e6e40814df61206ea1153b6b1ef3a3:build/assets/index.c95b4d3b.js
|
|
325
|
-
<WakeKeyborard
|
|
326
|
-
label='\u641C\u7D22'
|
|
327
|
-
onWakeKeyboard={ () => {console.log('wake keyboard')}}
|
|
328
|
-
onHidden={ () => {console.log('keyboard hidden')}}
|
|
329
|
-
onClick={v => {console.log('v is ', v);}}
|
|
330
|
-
/>
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
const [input, setInput] = useState(false);
|
|
335
|
-
|
|
336
|
-
<Button
|
|
337
|
-
onClick={e => {
|
|
338
|
-
setInput(!input);
|
|
339
|
-
}}
|
|
340
|
-
>\u8F93\u5165</Button>
|
|
341
|
-
{
|
|
342
|
-
input ? (
|
|
343
|
-
<Keyborard
|
|
344
|
-
onWakeKeyboard={
|
|
345
|
-
e => {
|
|
346
|
-
console.log('keyborard from button');
|
|
347
|
-
}
|
|
348
|
-
}
|
|
349
|
-
onClick={
|
|
350
|
-
v => {
|
|
351
|
-
console.log('value: ', v);
|
|
352
|
-
}
|
|
353
|
-
}
|
|
354
|
-
onHidden={
|
|
355
|
-
e => {
|
|
356
|
-
console.log('keyborard hidden from button');
|
|
357
|
-
setInput(false);
|
|
358
|
-
}
|
|
359
|
-
}
|
|
360
|
-
/>
|
|
361
|
-
) : null
|
|
362
|
-
}
|
|
363
|
-
<<<<<<< HEAD:build/assets/index.a01ed166.js
|
|
364
|
-
`),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,"label"),e.createElement("td",null,"\u786E\u8BA4\u6309\u952E\u6587\u6848"),e.createElement("td",null,"string"),e.createElement("td",null,"\u67E5\u8BE2")),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) => ")),e.createElement("tr",null,e.createElement("td",null,"onHidden"),e.createElement("td",null,"\u952E\u76D8\u9690\u85CF\u65F6\u56DE\u8C03"),e.createElement("td",null,"function: (value) => "),e.createElement("td",null,"(value) => ")))))}function H(n){const{title:t,context:l,name:u,tag:a,attrs:r=[],style:c}=n;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"},l),u?e.createElement("div",{className:"android-sub-card-name"},u):null,e.createElement("div",{className:"android-sub-card-attrs"},r.map(o=>e.createElement("div",{key:o},o))))}function qe(){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(H,{style:{marginRight:"20px",width:400},tag:{label:"\u6563\u7BB1",type:"default"},title:"\u54C1\u53F7",context:"50827834508278345082783450827834",attrs:["\u6279\u6B21\uFF1A23842839","\u6570\u91CF\uFF1A234"]}),e.createElement(H,{style:{marginRight:"20px",width:400},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(H,{title:"\u54C1\u53F7",tag:{label:"\u5C11\u8D27",type:"warning"},name:"\u5F90\u798F\u8BB0\u62B9\u8336\u51E4\u68A8\u916517g"})),e.createElement("code",{className:"code"},`
|
|
365
|
-
<SubCard tag={{label: "\u6563\u7BB1", type: "default"}} title="\u54C1\u53F7" context="5082 7834" attrs={["\u6279\u6B21\uFF1A23842839", "\u6570\u91CF\uFF1A234"]} ></SubCard>
|
|
366
|
-
<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>
|
|
367
|
-
`),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 T=()=>{};class L extends e.Component{constructor(t){super(t);this.state={},this._handleKeyUp=l=>{const{onScan:u=T,onEnter:a=T,onEsc:r=T,onDelete:c=T,scanMode:o=null}=this.props;l.preventDefault();const{code:i,keyCode:s,key:m}=l;if(i==="Enter"){a(l);return}if(i==="Delete"){c(l);return}if(i==="Esc"){r(l);return}},this._handleBeforeUnload=l=>(l.returnValue="\u786E\u5B9A\u79BB\u5F00\u5F53\u524D\u9875\u9762\u5417\uFF1F",!0),this._handleUnload=l=>{WindVane.call("WindvanePlugin","invoke","{'domain': 'rfid', 'method': 'stopRfidScan', 'params':null}",function(a){},function(a){});const u={tag:"stopRfid",level:"d",message:"stop rfid scan!!!"};WindVaneLog(u),WindVaneLog(u)}}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:l={},header:u,footer:a}=this.props;return e.createElement("div",{className:h({"baselayout-wrapper":!0}),style:l},u&&e.createElement("div",{className:h({"baselayout-header":!0})},u),e.createElement("div",{className:h({"baselayout-container":!0})},t.children),a&&e.createElement("div",{className:h({"baselayout-footer":!0})},a))}}const ze=()=>{};class Ye extends e.Component{constructor(t){super(t);this._rfidBeginScan=!1,this._handleRfidScan=l=>{const{onRfidOnce:u,onRfidBoxOnce:a,onRfidPalletOnce:r}=this.props,c=l.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)),u&&(this._stopWork(),u(c))},this._startWork=l=>{document.addEventListener("ContinuousRfidScan",this._handleRfidScan),WindVane.call("WindvanePlugin","invoke","{'domain': 'rfid', 'method': 'startScan', 'params': null}",function(u){},function(u){}),this._rfidBeginScan=!0},this._stopWork=l=>{document.removeEventListener("ContinuousRfidScan",this._handleRfidScan),WindVane.call("WindvanePlugin","invoke","{'domain': 'rfid', 'method': 'stopScan', 'params':null}",function(u){},function(u){})},this._handleKeyDown=l=>{const{code:u,keyCode:a,key:r}=l;(u==="F22"||u==="F23"||u==="F24"||u==="F9"||u==="F16")&&(this._rfidBeginScan||this._startWork())},this._handleKeyUp=l=>{const{code:u,keyCode:a,key:r}=l;(u==="F22"||u==="F23"||u==="F24"||u==="F9"||u==="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:l=ze}=a,u=A(a,["onRfidOnce"]);return e.createElement(L,C({},u))}}const Je=()=>{};class ue extends e.Component{constructor(t){super(t);this._rfidBeginScan=!1,this._handleRfidScan=l=>{const{onRfidScan:u,onRfidBoxScan:a,onRfidPalletScan:r}=this.props,c=l.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),u&&u(c)},this._startWork=l=>{document.addEventListener("ContinuousRfidScan",this._handleRfidScan),WindVane.call("WindvanePlugin","invoke","{'domain': 'rfid', 'method': 'startScan', 'params': null}",function(u){},function(u){}),this._rfidBeginScan=!0},this._stopWork=l=>{document.removeEventListener("ContinuousRfidScan",this._handleRfidScan),WindVane.call("WindvanePlugin","invoke","{'domain': 'rfid', 'method': 'stopScan', 'params':null}",function(u){},function(u){})},this._handleKeyDown=l=>{const{code:u,keyCode:a,key:r}=l;(u==="F22"||u==="F23"||u==="F24"||u==="F9"||u==="F16")&&(this._rfidBeginScan||this._startWork())},this._handleKeyUp=l=>{const{code:u,keyCode:a,key:r}=l;(u==="F22"||u==="F23"||u==="F24"||u==="F9"||u==="F16")&&(this._stopWork(),this._rfidBeginScan=!1)}}componentDidMount(){const{autoRfidScan:t=!1,rfidReaderSleep:l}=this.props;WindVane.call("WindvanePlugin","invoke","{'domain': 'keyboard', 'method': 'changeScanMode', 'params': {'scanMode': 'RFID'}}",function(u){},function(u){}),t?l||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,l){return this.props.autoRfidScan&&this.props.rfidReaderSleep!==t.rfidReaderSleep&&(t.rfidReaderSleep?this._stopWork():this._startWork()),!0}render(){const r=this.props,{onRfidScan:l=Je,autoRfidScan:u}=r,a=A(r,["onRfidScan","autoRfidScan"]);return e.createElement(L,C({},a))}}S(ue,"defaultProps",{rfidReaderSleep:!1});const Qe=()=>{};class Ze extends e.Component{constructor(t){super(t);this._barcodeBeginScan=!1,this._handleBarcodeScan=l=>{const{onBarcodeScan:u}=this.props;this._stopWork(),u(l.param)},this._startWork=l=>{document.addEventListener("BarcodeScan",this._handleBarcodeScan),this._barcodeBeginScan=!0},this._stopWork=l=>{document.removeEventListener("BarcodeScan",this._handleBarcodeScan)},this._handleKeyDown=l=>{const{code:u,keyCode:a,key:r}=l;(u==="F22"||u==="F23"||u==="F24"||u==="F9"||u==="F16")&&(this._barcodeBeginScan||this._startWork())},this._handleKeyUp=l=>{const{code:u,keyCode:a,key:r}=l;(u==="F22"||u==="F23"||u==="F24"||u==="F9"||u==="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:l=Qe}=a,u=A(a,["onBarcodeScan"]);return e.createElement(L,C({},u))}}class G extends e.Component{constructor(t){super(t)}render(){const t=this.props,{onBarcodeScan:l,onRfidOnce:u,onRfidBoxOnce:a,onRfidPalletOnce:r,onRfidScan:c,onRfidBoxScan:o,onRfidPalletScan:i}=t;return u||a||r?e.createElement(Ye,C({},t)):c||o||i?e.createElement(ue,C({},t)):l?e.createElement(Ze,C({},t)):e.createElement(L,C({},t))}}class v extends e.Component{constructor(t){super(t)}render(){const{className:t,title:l,infoList:u=[],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(G,{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"},l),u.map((E,F)=>e.createElement("p",{key:F,className:"pda-finish-card-list"},e.createElement("span",null,E.label||""),e.createElement("span",null,E.content||"")))))}}v.SUCCESS="https://img.alicdn.com/imgextra/i3/O1CN01OL2UYg24792knbTtC_!!6000000007343-1-tps-506-415.gif";v.ERROR_SUCCESS="https://img.alicdn.com/imgextra/i3/O1CN01p5Oc5t1VMFWtBomQc_!!6000000002638-1-tps-600-456.gif";function et(){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:"\u65B0\u6808\u677F\u7801\uFF1A",content:"23498209323498209123"},{label:"\u539F\u6808\u677F\u7801\uFF1A",content:"234982093"}],okText:"\u8FD4\u56DE\u9996\u9875",onClick:n=>{console.log("isConfirm",n)}})),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\u66F4\u6362\u6808\u677F\u7801\u5B8C\u6210\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:n=>{console.log("isConfirm",n)}})),e.createElement("code",{className:"code"},`
|
|
368
|
-
=======
|
|
369
|
-
`),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,"label"),e.createElement("td",null,"\u786E\u8BA4\u6309\u952E\u6587\u6848"),e.createElement("td",null,"string"),e.createElement("td",null,"\u67E5\u8BE2")),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) => ")),e.createElement("tr",null,e.createElement("td",null,"onHidden"),e.createElement("td",null,"\u952E\u76D8\u9690\u85CF\u65F6\u56DE\u8C03"),e.createElement("td",null,"function: (value) => "),e.createElement("td",null,"(value) => ")))))}function ne(n){const{title:t,context:l,name:u,tag:a,attrs:r=[],style:c}=n;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"},l),u?e.createElement("div",{className:"android-sub-card-name"},u):null,e.createElement("div",{className:"android-sub-card-attrs"},r.map(o=>e.createElement("div",{key:o},o))))}function Ye(){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(ne,{style:{marginRight:"20px",width:400},tag:{label:"\u6563\u7BB1",type:"default"},title:"\u54C1\u53F7",context:"50827834508278345082783450827834",attrs:["\u6279\u6B21\uFF1A23842839","\u6570\u91CF\uFF1A234"]}),e.createElement(ne,{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"},`
|
|
370
|
-
<SubCard tag={{label: "\u6563\u7BB1", type: "default"}} title="\u54C1\u53F7" context="5082 7834" attrs={["\u6279\u6B21\uFF1A23842839", "\u6570\u91CF\uFF1A234"]} ></SubCard>
|
|
371
|
-
<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>
|
|
372
|
-
`),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 T=()=>{};class L extends e.Component{constructor(t){super(t);this.state={},this._handleKeyUp=l=>{const{onScan:u=T,onEnter:a=T,onEsc:r=T,onDelete:c=T,scanMode:o=null}=this.props;l.preventDefault();const{code:i,keyCode:s,key:m}=l;if(i==="Enter"){a(l);return}if(i==="Delete"){c(l);return}if(i==="Esc"){r(l);return}},this._handleBeforeUnload=l=>(l.returnValue="\u786E\u5B9A\u79BB\u5F00\u5F53\u524D\u9875\u9762\u5417\uFF1F",!0),this._handleUnload=l=>{WindVane.call("WindvanePlugin","invoke","{'domain': 'rfid', 'method': 'stopRfidScan', 'params':null}",function(a){},function(a){});const u={tag:"stopRfid",level:"d",message:"stop rfid scan!!!"};WindVaneLog(u),WindVaneLog(u)}}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:l={},header:u,footer:a}=this.props;return e.createElement("div",{className:E({"baselayout-wrapper":!0}),style:l},u&&e.createElement("div",{className:E({"baselayout-header":!0})},u),e.createElement("div",{className:E({"baselayout-container":!0})},t.children),a&&e.createElement("div",{className:E({"baselayout-footer":!0})},a))}}const ze=()=>{};class Je extends e.Component{constructor(t){super(t);this._rfidBeginScan=!1,this._handleRfidScan=l=>{const{onRfidOnce:u,onRfidBoxOnce:a,onRfidPalletOnce:r}=this.props,c=l.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)),u&&(this._stopWork(),u(c))},this._startWork=l=>{document.addEventListener("ContinuousRfidScan",this._handleRfidScan),WindVane.call("WindvanePlugin","invoke","{'domain': 'rfid', 'method': 'startScan', 'params': null}",function(u){},function(u){}),this._rfidBeginScan=!0},this._stopWork=l=>{document.removeEventListener("ContinuousRfidScan",this._handleRfidScan),WindVane.call("WindvanePlugin","invoke","{'domain': 'rfid', 'method': 'stopScan', 'params':null}",function(u){},function(u){})},this._handleKeyDown=l=>{const{code:u,keyCode:a,key:r}=l;(u==="F22"||u==="F23"||u==="F24"||u==="F9"||u==="F16")&&(this._rfidBeginScan||this._startWork())},this._handleKeyUp=l=>{const{code:u,keyCode:a,key:r}=l;(u==="F22"||u==="F23"||u==="F24"||u==="F9"||u==="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:l=ze}=a,u=A(a,["onRfidOnce"]);return e.createElement(L,F({},u))}}const Qe=()=>{};class ue extends e.Component{constructor(t){super(t);this._rfidBeginScan=!1,this._handleRfidScan=l=>{const{onRfidScan:u,onRfidBoxScan:a,onRfidPalletScan:r}=this.props,c=l.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),u&&u(c)},this._startWork=l=>{document.addEventListener("ContinuousRfidScan",this._handleRfidScan),WindVane.call("WindvanePlugin","invoke","{'domain': 'rfid', 'method': 'startScan', 'params': null}",function(u){},function(u){}),this._rfidBeginScan=!0},this._stopWork=l=>{document.removeEventListener("ContinuousRfidScan",this._handleRfidScan),WindVane.call("WindvanePlugin","invoke","{'domain': 'rfid', 'method': 'stopScan', 'params':null}",function(u){},function(u){})},this._handleKeyDown=l=>{const{code:u,keyCode:a,key:r}=l;(u==="F22"||u==="F23"||u==="F24"||u==="F9"||u==="F16")&&(this._rfidBeginScan||this._startWork())},this._handleKeyUp=l=>{const{code:u,keyCode:a,key:r}=l;(u==="F22"||u==="F23"||u==="F24"||u==="F9"||u==="F16")&&(this._stopWork(),this._rfidBeginScan=!1)}}componentDidMount(){const{autoRfidScan:t=!1,rfidReaderSleep:l}=this.props;WindVane.call("WindvanePlugin","invoke","{'domain': 'keyboard', 'method': 'changeScanMode', 'params': {'scanMode': 'RFID'}}",function(u){},function(u){}),t?l||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,l){return this.props.autoRfidScan&&this.props.rfidReaderSleep!==t.rfidReaderSleep&&(t.rfidReaderSleep?this._stopWork():this._startWork()),!0}render(){const r=this.props,{onRfidScan:l=Qe,autoRfidScan:u}=r,a=A(r,["onRfidScan","autoRfidScan"]);return e.createElement(L,F({},a))}}x(ue,"defaultProps",{rfidReaderSleep:!1});const Ze=()=>{};class et extends e.Component{constructor(t){super(t);this._barcodeBeginScan=!1,this._handleBarcodeScan=l=>{const{onBarcodeScan:u}=this.props;this._stopWork(),u(l.param)},this._startWork=l=>{document.addEventListener("BarcodeScan",this._handleBarcodeScan),this._barcodeBeginScan=!0},this._stopWork=l=>{document.removeEventListener("BarcodeScan",this._handleBarcodeScan)},this._handleKeyDown=l=>{const{code:u,keyCode:a,key:r}=l;(u==="F22"||u==="F23"||u==="F24"||u==="F9"||u==="F16")&&(this._barcodeBeginScan||this._startWork())},this._handleKeyUp=l=>{const{code:u,keyCode:a,key:r}=l;(u==="F22"||u==="F23"||u==="F24"||u==="F9"||u==="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:l=Ze}=a,u=A(a,["onBarcodeScan"]);return e.createElement(L,F({},u))}}class H extends e.Component{constructor(t){super(t)}render(){const t=this.props,{onBarcodeScan:l,onRfidOnce:u,onRfidBoxOnce:a,onRfidPalletOnce:r,onRfidScan:c,onRfidBoxScan:o,onRfidPalletScan:i}=t;return u||a||r?e.createElement(Je,F({},t)):c||o||i?e.createElement(ue,F({},t)):l?e.createElement(et,F({},t)):e.createElement(L,F({},t))}}class v extends e.Component{constructor(t){super(t)}render(){const{className:t,title:l,infoList:u=[],isError:a=!1,buttonMultiLines:r=!1,style:c={},onClick:o=()=>{},okText:i="\u8FD4\u56DE\u9996\u9875",cancelText:s=null}=this.props,m=e.createElement(h.Group,null,s?e.createElement(h,{style:r?{height:"auto",lineHeight:"50px"}:{},type:"dark",onClick:()=>o(!1)},s):null,e.createElement(h,{type:"primary",style:r?{height:"auto",lineHeight:"normal"}:{},onClick:()=>o(!0)},i));return e.createElement(H,{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"},l),u.map((d,g)=>e.createElement("p",{key:g,className:"pda-finish-card-list"},e.createElement("span",null,d.label||""),e.createElement("span",null,d.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 tt(){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:n=>{console.log("isConfirm",n)}})),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:n=>{console.log("isConfirm",n)}})),e.createElement("code",{className:"code"},`
|
|
373
|
-
>>>>>>> 6f7032acb2e6e40814df61206ea1153b6b1ef3a3:build/assets/index.c95b4d3b.js
|
|
374
|
-
<FinishCard
|
|
375
|
-
title="\u66F4\u6362\u6808\u677F\u7801\u5B8C\u6210"
|
|
376
|
-
infoList={
|
|
377
|
-
[
|
|
378
|
-
{label: '\u65B0\u6808\u677F\u7801\uFF1A', content: '234982093'},
|
|
379
|
-
{label: '\u539F\u6808\u677F\u7801\uFF1A', content: '234982093'},
|
|
380
|
-
]
|
|
381
|
-
}
|
|
382
|
-
buttonMultiLines
|
|
383
|
-
okText="\u8FD4\u56DE\u9996\u9875"
|
|
384
|
-
cancelText={<span>\u8FD4\u56DE<br />\u6682\u5B58\u4EFB\u52A1</span>}
|
|
385
|
-
onClick={(isConfirm)=>{
|
|
386
|
-
console.log("isConfirm", isConfirm);
|
|
387
|
-
}}
|
|
388
|
-
/>
|
|
389
|
-
<<<<<<< HEAD:build/assets/index.a01ed166.js
|
|
390
|
-
`),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 tt extends e.Component{constructor(t){super(t)}render(){const{className:t,title:l,infoText:u,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:h({[t]:!0,"pda-distance-card":!0}),style:r},e.createElement("p",{className:"pda-distance-card-highlight"},e.createElement("span",{className:"pda-distance-card-highlight1"},l)),e.createElement("div",{className:"pda-distance-indictor"},e.createElement("img",{src:c,width:20,height:29}),e.createElement("p",null,u)),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 lt(){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(tt,{title:"\u8D27\u7269\u5728\u9644\u8FD1..",infoText:"\u79BB\u76EE\u6807\u8D27\u8DDD\u79BB",style:{width:"400px"},percentage:.56})),e.createElement("code",{className:"code"},`
|
|
391
|
-
=======
|
|
392
|
-
`),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 lt extends e.Component{constructor(t){super(t)}render(){const{className:t,title:l,infoText:u,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"},l)),e.createElement("div",{className:"pda-distance-indictor"},e.createElement("img",{src:c,width:20,height:29}),e.createElement("p",null,u)),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 nt(){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(lt,{title:"\u8D27\u7269\u5728\u9644\u8FD1..",infoText:"\u79BB\u76EE\u6807\u8D27\u8DDD\u79BB",style:{width:"400px"},percentage:.56})),e.createElement("code",{className:"code"},`
|
|
393
|
-
>>>>>>> 6f7032acb2e6e40814df61206ea1153b6b1ef3a3:build/assets/index.c95b4d3b.js
|
|
394
|
-
<DistanceCard
|
|
395
|
-
title="\u8D27\u7269\u5728\u9644\u8FD1.."
|
|
396
|
-
infoText="\u79BB\u76EE\u6807\u8D27\u8DDD\u79BB"
|
|
397
|
-
style={{
|
|
398
|
-
width: '400px'
|
|
399
|
-
}}
|
|
400
|
-
percentage={0.56}
|
|
401
|
-
/>
|
|
402
|
-
<<<<<<< HEAD:build/assets/index.a01ed166.js
|
|
403
|
-
`),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 nt=/scroll|auto/i;function ut(n){const t=1;return n.tagName!=="HTML"&&n.tagName!=="BODY"&&n.nodeType===t}function ae(n,t){let l=n;for(;l&&l!==t&&ut(l);){const{overflowY:u}=window.getComputedStyle(l);if(nt.test(u))return l;l=l.parentNode}return t}function at(n){return e.createElement("div",{style:{color:n.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 rt(n){return n===window}function ct(n){const{className:t,hasMore:l,loadMore:u,threshold:a=0,style:r}=n,c=de(async()=>{await u()}),o=p.exports.useRef(null),i=he(()=>{if(!l)return;const s=o.current;if(!s)return;const m=ae(s);if(!m)return;const E=s.getBoundingClientRect().top;(rt(m)?window.innerHeight:m.getBoundingClientRect().bottom)>=E-a&&c()});return p.exports.useEffect(()=>{i()}),p.exports.useEffect(()=>{const s=o.current;if(!s)return;const m=ae(s);if(!m)return;function E(){i()}return m.addEventListener("scroll",E),()=>{m.removeEventListener("scroll",E)}},[]),e.createElement("div",{className:h({[t]:!0,"pda-infinite-scroll":!0}),style:r,ref:o},l?e.createElement("div",{className:"pda-infinite-scroll-view"},e.createElement("span",null,"\u52A0\u8F7D\u4E2D"),e.createElement(at,null)):e.createElement("div",{className:"pda-infinite-scroll-view"},e.createElement("span",null,"\u6CA1\u6709\u66F4\u591A\u4E86~")))}const re=()=>{};class ot extends e.Component{constructor(t){super(t);S(this,"state",{showMenu:!1})}render(){const{className:t,goBack:l=!0,goBackHandle:u=re,icon:a="scan",title:r="\u4EFB\u52A1",menuList:c=null}=this.props,{showMenu:o}=this.state;return e.createElement("div",{className:h({[t]:!0,"pda-header":!0})},e.createElement("div",{className:"header-click-area",onClick:l?u:re},l&&e.createElement("div",{className:"pda-goback"}),a&&e.createElement("div",{className:h({"pda-header-icon":!0,["pda-header-icon-"+a]:!0})})),e.createElement("p",{className:h({"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 it(n){const{service:t,data:l={}}=n,{title:u="title",message:a="message",okText:r="okText",cancelText:c=""}=l,o=e.useCallback(function(){t.onNext(!0)},[t]);return e.createElement(f,{verticalPosition:"bottom"},e.createElement(N,{title:u,message:a,okText:r,cancelText:c,onClick:o}))}function st(n){const{service:t,data:l={}}=n,u=e.useCallback(function(a){t.onNext(a)},[t]);return e.createElement(f,{verticalPosition:"bottom"},e.createElement(N,P(C({},l),{onClick:u})))}function mt(n){const{data:t={},service:l}=n,{title:u,level:a,message:r,duration:c=null}=t,[o,i]=p.exports.useState(!1);return e.useEffect(()=>{l.onNext("");let s=null;return c&&setTimeout(()=>{i(!0)},c),()=>{clearTimeout(s)}},[t]),o?null:e.createElement(f,{verticalPosition:"bottom"},e.createElement("div",{style:{width:"90%"}},e.createElement(B,{type:a,title:u,message:Et(r)})))}function Et(n){var t=String(n).split("by Error:");return t[1]||t[0]}function dt(){}function ht(n){const{dataSource:t=[],onClickItem:l=dt}=n;return e.createElement("div",{className:"pda-app-list"},t.map(u=>e.createElement("div",{className:"pda-app-group",key:u.groupName},e.createElement("h2",{className:"group-name"},u.groupName),e.createElement("div",{className:"group-apps"},u.list.map(a=>e.createElement("div",{className:"app-item",key:a.name,onClick:()=>l(a)},e.createElement("span",{className:"app-name"},a.name),e.createElement("span",{className:"app-subname"},a.subname)))))))}function pt(n){const{className:t="",visible:l,actions:u}=n;return e.createElement("div",{className:h({[t]:!0,"pda-action-sheet":!0,show:l})},e.createElement("div",{className:"pda-action-sheet-body"},u.map((a,r)=>e.createElement("div",{onClick:()=>{a.onClick(a.key)},className:"pda-action-sheet-item",key:r},a.title))))}const Ft=[{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 Ct(){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(O,{onItemClick:console.log,tabIndex:0,dataSource:Ft}),e.createElement(ct,{hasMore:!0,loadMore:()=>{console.log("loadMore!")}}))),e.createElement("code",{className:"code"},`
|
|
404
|
-
=======
|
|
405
|
-
`),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 ut=/scroll|auto/i;function at(n){const t=1;return n.tagName!=="HTML"&&n.tagName!=="BODY"&&n.nodeType===t}function ae(n,t){let l=n;for(;l&&l!==t&&at(l);){const{overflowY:u}=window.getComputedStyle(l);if(ut.test(u))return l;l=l.parentNode}return t}function rt(n){return e.createElement("div",{style:{color:n.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 ct(n){return n===window}function ot(n){const{className:t,hasMore:l,loadMore:u,threshold:a=0,style:r}=n,c=he(async()=>{await u()}),o=p.exports.useRef(null),i=pe(()=>{if(!l)return;const s=o.current;if(!s)return;const m=ae(s);if(!m)return;const d=s.getBoundingClientRect().top;(ct(m)?window.innerHeight:m.getBoundingClientRect().bottom)>=d-a&&c()});return p.exports.useEffect(()=>{i()}),p.exports.useEffect(()=>{const s=o.current;if(!s)return;const m=ae(s);if(!m)return;function d(){i()}return m.addEventListener("scroll",d),()=>{m.removeEventListener("scroll",d)}},[]),e.createElement("div",{className:E({[t]:!0,"pda-infinite-scroll":!0}),style:r,ref:o},l?e.createElement("div",{className:"pda-infinite-scroll-view"},e.createElement("span",null,"\u52A0\u8F7D\u4E2D"),e.createElement(rt,null)):e.createElement("div",{className:"pda-infinite-scroll-view"},e.createElement("span",null,"\u6CA1\u6709\u66F4\u591A\u4E86~")))}const re=()=>{};class it extends e.Component{constructor(t){super(t);x(this,"state",{showMenu:!1})}render(){const{className:t,goBack:l=!0,goBackHandle:u=re,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:l?u:re},l&&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 st(n){const{service:t,data:l={}}=n,{title:u="title",message:a="message",okText:r="okText",cancelText:c=""}=l,o=e.useCallback(function(){t.onNext(!0)},[t]);return e.createElement(B,{verticalPosition:"bottom"},e.createElement(I,{title:u,message:a,okText:r,cancelText:c,onClick:o}))}function mt(n){const{service:t,data:l={}}=n,{title:u="title",message:a,subMessage:r=[],okText:c="okText",cancelText:o=""}=l,i=e.useCallback(function(s){t.onNext(s)},[t]);return e.createElement(B,{verticalPosition:"bottom"},e.createElement(I,{title:u,message:a,subMessage:r,okText:c,cancelText:o,onClick:i}))}function Et(n){const{data:t={},service:l}=n,{title:u,level:a,message:r,duration:c=null}=t,[o,i]=p.exports.useState(!1);return e.useEffect(()=>{l.onNext("");let s=null;return c&&setTimeout(()=>{i(!0)},c),()=>{clearTimeout(s)}},[t]),o?null:e.createElement(B,{verticalPosition:"bottom"},e.createElement("div",{style:{width:"90%"}},e.createElement(f,{type:a,title:u,message:dt(r)})))}function dt(n){var t=String(n).split("by Error:");return t[1]||t[0]}function ht(){}function pt(n){const{dataSource:t=[],onClickItem:l=ht}=n,u=1;return e.createElement("div",{className:"pda-app-list"},t.map(a=>e.createElement("div",{className:"pda-app-group",key:a.groupName},e.createElement("h2",{className:"group-name"},a.groupName),e.createElement("div",{className:"group-apps"},a.list.map(r=>e.createElement("div",{className:"app-item",key:r.name,tabIndex:u,onClick:()=>l(r)},e.createElement("span",{className:"app-name"},r.name),e.createElement("span",{className:"app-subname"},r.subname)))))))}function Ft(n){const{className:t="",visible:l,actions:u}=n;return e.createElement("div",{className:E({[t]:!0,"pda-action-sheet":!0,show:l})},e.createElement("div",{className:"pda-action-sheet-body"},u.map((a,r)=>e.createElement("div",{onClick:()=>{a.onClick(a.key)},className:"pda-action-sheet-item",key:r},a.title))))}const Ct=[{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 bt(){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(K,{onItemClick:console.log,tabIndex:0,dataSource:Ct}),e.createElement(ot,{hasMore:!0,loadMore:()=>{console.log("loadMore!")}}))),e.createElement("code",{className:"code"},`
|
|
406
|
-
>>>>>>> 6f7032acb2e6e40814df61206ea1153b6b1ef3a3:build/assets/index.c95b4d3b.js
|
|
407
|
-
|
|
408
|
-
const dataSource = [{
|
|
409
|
-
title: "hello world",
|
|
410
|
-
subTitle:"sub title",
|
|
411
|
-
extra:"11111",
|
|
412
|
-
tags:[1,2,3,4]
|
|
413
|
-
},{
|
|
414
|
-
title: "hello world",
|
|
415
|
-
subTitle:"sub title",
|
|
416
|
-
extra:"",
|
|
417
|
-
tags:[1,2,3,4]
|
|
418
|
-
},{
|
|
419
|
-
title: "hello world",
|
|
420
|
-
subTitle:"sub title",
|
|
421
|
-
},{
|
|
422
|
-
title: "hello world",
|
|
423
|
-
subTitle:"sub title",
|
|
424
|
-
extra:"11111",
|
|
425
|
-
}];
|
|
426
|
-
|
|
427
|
-
<div style={{
|
|
428
|
-
width: '432px',
|
|
429
|
-
height: '425px',
|
|
430
|
-
overflow: 'scroll'
|
|
431
|
-
}}>
|
|
432
|
-
|
|
433
|
-
<List
|
|
434
|
-
onItemClick={console.log}
|
|
435
|
-
tabIndex={0}
|
|
436
|
-
dataSource={dataSource}
|
|
437
|
-
>
|
|
438
|
-
</List>
|
|
439
|
-
<InfiniteScroll
|
|
440
|
-
hasMore={true}
|
|
441
|
-
loadMore={() => {console.log("loadMore!")}}
|
|
442
|
-
/>
|
|
443
|
-
</div>
|
|
444
|
-
<<<<<<< HEAD:build/assets/index.a01ed166.js
|
|
445
|
-
`),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 bt(){const[n,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(!n)}},"\u5207\u6362\u6A21\u5F0F"),e.createElement(pt,{visible:n,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"},`
|
|
446
|
-
=======
|
|
447
|
-
`),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 gt(){const[n,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(h,{type:"dark",style:{margin:"12px"},onClick:()=>{t(!n)}},"\u5207\u6362\u6A21\u5F0F"),e.createElement(Ft,{visible:n,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"},`
|
|
448
|
-
>>>>>>> 6f7032acb2e6e40814df61206ea1153b6b1ef3a3:build/assets/index.c95b4d3b.js
|
|
449
|
-
<div style={{height: "600px", width: "300px", position: "relative", backgroundColor: "#fff", display: "flex", alignItems: "flex-end"}}>
|
|
450
|
-
<Button type="dark" style={{margin: '12px'}} onClick={() => {setVisible(!visible)}}>\u5207\u6362\u6A21\u5F0F</Button>
|
|
451
|
-
<ActionSheet
|
|
452
|
-
visible = {visible}
|
|
453
|
-
actions = {[{
|
|
454
|
-
key: "total",
|
|
455
|
-
title: "\u5207\u6362\u4E3A\u6574\u7BB1\u8BC6\u522B",
|
|
456
|
-
onClick: () => {}
|
|
457
|
-
}, {
|
|
458
|
-
key: "seperate",
|
|
459
|
-
title: "\u5207\u6362\u4E3A\u6563\u7BB1\u8BC6\u522B",
|
|
460
|
-
onClick: () => {}
|
|
461
|
-
}, {
|
|
462
|
-
key: "cancel",
|
|
463
|
-
title: "\u53D6\u6D88",
|
|
464
|
-
onClick: () => {
|
|
465
|
-
setVisible(false)
|
|
466
|
-
}
|
|
467
|
-
}]}
|
|
468
|
-
/>
|
|
469
|
-
<<<<<<< HEAD:build/assets/index.a01ed166.js
|
|
470
|
-
`),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 gt=[{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 Bt(){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(ht,{dataSource:gt,onClickItem:console.log}))),e.createElement("code",{className:"code"},`
|
|
471
|
-
=======
|
|
472
|
-
`),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 ft=[{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 Bt(){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(pt,{dataSource:ft,onClickItem:console.log}))),e.createElement("code",{className:"code"},`
|
|
473
|
-
>>>>>>> 6f7032acb2e6e40814df61206ea1153b6b1ef3a3:build/assets/index.c95b4d3b.js
|
|
474
|
-
|
|
475
|
-
const dataSource = [
|
|
476
|
-
{
|
|
477
|
-
groupName:"\u5206\u7EC4",
|
|
478
|
-
list: [
|
|
479
|
-
{
|
|
480
|
-
name:"\u62E3\u9009",
|
|
481
|
-
subname:"\u4EBA\u5DE5\u62E3\u9009"
|
|
482
|
-
},
|
|
483
|
-
{
|
|
484
|
-
name:"\u590D\u6838",
|
|
485
|
-
subname:"\u590D\u6838\u6253\u5305"
|
|
486
|
-
},
|
|
487
|
-
{
|
|
488
|
-
name:"\u4E0A\u67B6",
|
|
489
|
-
subname:"\u4E0A\u67B6XXXX"
|
|
490
|
-
},
|
|
491
|
-
{
|
|
492
|
-
name:"\u62E3\u90092",
|
|
493
|
-
subname:"\u4EBA\u5DE5\u62E3\u9009"
|
|
494
|
-
},
|
|
495
|
-
{
|
|
496
|
-
name:"\u590D\u68381",
|
|
497
|
-
subname:"\u590D\u6838\u6253\u5305"
|
|
498
|
-
},
|
|
499
|
-
{
|
|
500
|
-
name:"\u4E0A\u67B61",
|
|
501
|
-
subname:"\u4E0A\u67B6XXXX"
|
|
502
|
-
},
|
|
503
|
-
{
|
|
504
|
-
name:"\u62E3\u90093",
|
|
505
|
-
subname:"\u4EBA\u5DE5\u62E3\u9009"
|
|
506
|
-
},
|
|
507
|
-
{
|
|
508
|
-
name:"\u590D\u68382",
|
|
509
|
-
subname:"\u590D\u6838\u6253\u5305"
|
|
510
|
-
},
|
|
511
|
-
{
|
|
512
|
-
name:"\u4E0A\u67B62",
|
|
513
|
-
subname:"\u4E0A\u67B6XXXX"
|
|
514
|
-
}
|
|
515
|
-
]
|
|
516
|
-
}
|
|
517
|
-
];
|
|
518
|
-
<AppList dataSource={dataSource} onClickItem={console.log} />
|
|
519
|
-
<<<<<<< HEAD:build/assets/index.a01ed166.js
|
|
520
|
-
`),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 ft="@cniot/android-pda-components",yt="0.1.23",kt="",vt="./es/index.cjs.js",At="./es/index.es.js",Dt={dev:"vite",build:"vite build --config vite.config.doc.js && vite build --config vite.config.js",doc:"vite -config vite.doc.js"},Nt="module",xt="",St="ISC",wt={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"},It={"@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 Tt={name:ft,version:yt,description:kt,main:vt,module:At,scripts:Dt,type:Nt,author:xt,license:St,dependencies:wt,devDependencies:It},X={onNext(n){console.log("onnext",n)}};function Lt(){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"},`
|
|
521
|
-
=======
|
|
522
|
-
`),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 yt="@cniot/android-pda-components",kt="0.1.18",vt="",At="./es/index.cjs.js",Dt="./es/index.es.js",Nt={dev:"vite",build:"vite build --config vite.config.doc.js && vite build --config vite.config.js",doc:"vite -config vite.doc.js"},xt="module",St="",It="ISC",wt={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"},Tt={"@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 Lt={name:yt,version:kt,description:vt,main:At,module:Dt,scripts:Nt,type:xt,author:St,license:It,dependencies:wt,devDependencies:Tt},X={onNext(n){console.log("onnext",n)}};function _t(){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"},`
|
|
523
|
-
>>>>>>> 6f7032acb2e6e40814df61206ea1153b6b1ef3a3:build/assets/index.c95b4d3b.js
|
|
524
|
-
// gs \u4EE3\u7801\u5982\u4E0B
|
|
525
|
-
pageFlow.alert({
|
|
526
|
-
title: '111',
|
|
527
|
-
message: '2222',
|
|
528
|
-
okText: "\u786E\u8BA4"
|
|
529
|
-
})
|
|
530
|
-
<<<<<<< HEAD:build/assets/index.a01ed166.js
|
|
531
|
-
`),e.createElement("h2",null,"\u9875\u9762\u6548\u679C"),e.createElement("div",{className:"light-block light-block-overlay"},e.createElement(it,{service:X,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 _t(){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"},`
|
|
532
|
-
=======
|
|
533
|
-
`),e.createElement("h2",null,"\u9875\u9762\u6548\u679C"),e.createElement("div",{className:"light-block light-block-overlay"},e.createElement(st,{service:X,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 Mt(){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"},`
|
|
534
|
-
>>>>>>> 6f7032acb2e6e40814df61206ea1153b6b1ef3a3:build/assets/index.c95b4d3b.js
|
|
535
|
-
// gs \u4EE3\u7801\u5982\u4E0B
|
|
536
|
-
pageFlow.confirm({
|
|
537
|
-
title: '111',
|
|
538
|
-
message: '2222',
|
|
539
|
-
okText: "\u786E\u8BA4",
|
|
540
|
-
cancelText:"\u53D6\u6D88"
|
|
541
|
-
})
|
|
542
|
-
// \u5982\u679C message \u9700\u8981\u591A\u884C\u663E\u793A\uFF0C\u4F7F\u7528 subMessage \u65B9\u5F0F
|
|
543
|
-
pageFlow.confirm({
|
|
544
|
-
title: '111',
|
|
545
|
-
subMessage: [
|
|
546
|
-
{label: 'title1', content: 'content1'},
|
|
547
|
-
{label: 'title2', content: 'content2'},
|
|
548
|
-
{label: 'title3', content: 'content3'},
|
|
549
|
-
],
|
|
550
|
-
okText: "\u786E\u8BA4",
|
|
551
|
-
cancelText:"\u53D6\u6D88"
|
|
552
|
-
})
|
|
553
|
-
<<<<<<< HEAD:build/assets/index.a01ed166.js
|
|
554
|
-
`),e.createElement("h2",null,"\u9875\u9762\u6548\u679C"),e.createElement("div",{className:"light-block light-block-overlay"},e.createElement(st,{service:X,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 Mt(){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"},`
|
|
555
|
-
=======
|
|
556
|
-
`),e.createElement("h2",null,"\u9875\u9762\u6548\u679C"),e.createElement("div",{className:"light-block light-block-overlay"},e.createElement(mt,{service:X,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 Pt(){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"},`
|
|
557
|
-
>>>>>>> 6f7032acb2e6e40814df61206ea1153b6b1ef3a3:build/assets/index.c95b4d3b.js
|
|
558
|
-
// gs \u4EE3\u7801\u5982\u4E0B
|
|
559
|
-
pageFlow.toast({
|
|
560
|
-
level: "success", // success|warning|error
|
|
561
|
-
title: '111',
|
|
562
|
-
message: '2222',
|
|
563
|
-
duration: 3000,
|
|
564
|
-
})
|
|
565
|
-
<<<<<<< HEAD:build/assets/index.a01ed166.js
|
|
566
|
-
`),e.createElement("h2",null,"\u9875\u9762\u6548\u679C"),e.createElement("div",{className:"light-block light-block-overlay"},e.createElement(mt,{service:X,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 Pt(){const n=e.createElement(ot,null),t=e.createElement(d.Group,null,e.createElement(d,{type:"cutout",onClick:u=>console.log("cancle")},"\u53D6\u6D88"),e.createElement(d,{type:"primary"},"\u786E\u8BA4")),l=[{},{},{}];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(G,{style:{backgroundColor:"black",marginRight:20},header:n,footer:t},e.createElement(g,{text:"\u8BF7\u9760\u8FD1\u7BB1\u7801\u8FDB\u884C\u8BC6\u522B"}))),e.createElement("div",{style:{width:480,height:800,position:"relative"}},e.createElement(G,{style:{backgroundColor:"black"},header:n,footer:t},l.map((u,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"},`
|
|
567
|
-
=======
|
|
568
|
-
`),e.createElement("h2",null,"\u9875\u9762\u6548\u679C"),e.createElement("div",{className:"light-block light-block-overlay"},e.createElement(Et,{service:X,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 Rt(){const n=e.createElement(it,null),t=e.createElement(h.Group,null,e.createElement(h,{type:"cutout",onClick:u=>console.log("cancle")},"\u53D6\u6D88"),e.createElement(h,{type:"primary"},"\u786E\u8BA4")),l=[{},{},{}];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(H,{style:{backgroundColor:"black",marginRight:20},header:n,footer:t},e.createElement(C,{text:"\u8BF7\u9760\u8FD1\u7BB1\u7801\u8FDB\u884C\u8BC6\u522B"}))),e.createElement("div",{style:{width:480,height:800,position:"relative"}},e.createElement(H,{style:{backgroundColor:"black"},header:n,footer:t},l.map((u,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"},`
|
|
569
|
-
>>>>>>> 6f7032acb2e6e40814df61206ea1153b6b1ef3a3:build/assets/index.c95b4d3b.js
|
|
570
|
-
const header = <Title></Title>;
|
|
571
|
-
const footer = (
|
|
572
|
-
<Button.Group>
|
|
573
|
-
<Button type="cutout" onClick={e => console.log('cancle')}>\u53D6\u6D88</Button>
|
|
574
|
-
<Button type="primary">\u786E\u8BA4</Button>
|
|
575
|
-
</Button.Group>
|
|
576
|
-
)
|
|
577
|
-
|
|
578
|
-
<BaseLayout
|
|
579
|
-
header={header}
|
|
580
|
-
footer={footer}
|
|
581
|
-
>
|
|
582
|
-
<Presentation text="\u8BF7\u9760\u8FD1\u7BB1\u7801\u8FDB\u884C\u8BC6\u522B" ></Presentation>
|
|
583
|
-
</BaseLayout>
|
|
584
|
-
<<<<<<< HEAD:build/assets/index.a01ed166.js
|
|
585
|
-
`),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 U=[{title:"\u7EC4\u4EF6\u5217\u8868",pages:[{key:"First",title:"\u5FEB\u901F\u5F00\u59CB",doc:Fe},{key:"Header",title:"Header",doc:Be},{key:"Button",title:"Button",doc:fe},{key:"InfoCard",title:"InfoCard",doc:ye},{key:"Steps",title:"Steps",doc:ve},{key:"ListItem",title:"ListItem",doc:De},{key:"Confirm",title:"Confirm",doc:xe},{key:"Toast",title:"Toast",doc:Pe},{key:"Overlay",title:"Overlay",doc:Re},{key:"Tag",title:"Tag",doc:We},{key:"SimpleCard",title:"SimpleCard",doc:$e},{key:"SimpleCardBlock",title:"SimpleCardBlock",doc:Ke},{key:"Presentation",title:"Presentation",doc:He},{key:"List",title:"List",doc:Ue},{key:"WakeKeyborard",title:"WakeKeyborard",doc:Ve},{key:"SubCard",title:"SubCard",doc:qe},{key:"FinishCard",title:"FinishCard",doc:et},{key:"DistanceCard",title:"DistanceCard",doc:lt},{key:"InfiniteScroll",title:"InfiniteScroll",doc:Ct},{key:"ActionSheet",title:"ActionSheet",doc:bt},{key:"AppList",title:"AppList",doc:Bt}]},{title:"\u5185\u7F6E\u754C\u9762\u9884\u89C8",pages:[{key:"/system/alert",title:"/system/alert",doc:Lt},{key:"/system/confirm",title:"/system/confirm",doc:_t},{key:"/system/toast",title:"/system/toast",doc:Mt}]},{title:"\u5E03\u5C40\u5BB9\u5668",pages:[{key:"BaseLayout",title:"BaseLayout",doc:Pt}]}];function Rt(n){return U.map(t=>t.pages.filter(function(l){return l.key===n})[0]).filter(t=>t)[0]}function Wt(){return location.hash.replace("#","")||U[0].pages[0].key}function $t(){const[n,t]=e.useState(Wt),l=e.useCallback(function(a){location.hash=a,t(a)}),u=Rt(n);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: [",Tt.version,"]")),U.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:n===c.key?"components-item active":"components-item",onClick:l.bind(null,c.key),"data-index":c.key,key:c.key},e.createElement("span",null,c.title))}))})),e.createElement("div",{className:"show-case"},u?e.createElement(u.doc,{}):null))}R.render(e.createElement($t,null),document.getElementById("root"));
|
|
586
|
-
=======
|
|
587
|
-
`),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 G=[{title:"\u7EC4\u4EF6\u5217\u8868",pages:[{key:"First",title:"\u5FEB\u901F\u5F00\u59CB",doc:Ce},{key:"Header",title:"Header",doc:Be},{key:"Button",title:"Button",doc:ye},{key:"InfoCard",title:"InfoCard",doc:ke},{key:"Steps",title:"Steps",doc:Ae},{key:"ListItem",title:"ListItem",doc:Ne},{key:"Confirm",title:"Confirm",doc:Se},{key:"Toast",title:"Toast",doc:Re},{key:"Overlay",title:"Overlay",doc:We},{key:"Tag",title:"Tag",doc:$e},{key:"SimpleCard",title:"SimpleCard",doc:Ke},{key:"SimpleCardBlock",title:"SimpleCardBlock",doc:He},{key:"Presentation",title:"Presentation",doc:Xe},{key:"List",title:"List",doc:je},{key:"WakeKeyborard",title:"WakeKeyborard",doc:qe},{key:"SubCard",title:"SubCard",doc:Ye},{key:"FinishCard",title:"FinishCard",doc:tt},{key:"DistanceCard",title:"DistanceCard",doc:nt},{key:"InfiniteScroll",title:"InfiniteScroll",doc:bt},{key:"ActionSheet",title:"ActionSheet",doc:gt},{key:"AppList",title:"AppList",doc:Bt}]},{title:"\u5185\u7F6E\u754C\u9762\u9884\u89C8",pages:[{key:"/system/alert",title:"/system/alert",doc:_t},{key:"/system/confirm",title:"/system/confirm",doc:Mt},{key:"/system/toast",title:"/system/toast",doc:Pt}]},{title:"\u5E03\u5C40\u5BB9\u5668",pages:[{key:"BaseLayout",title:"BaseLayout",doc:Rt}]}];function Wt(n){return G.map(t=>t.pages.filter(function(l){return l.key===n})[0]).filter(t=>t)[0]}function ce(){return location.hash.replace("#","")||G[0].pages[0].key}function $t(){const[n,t]=e.useState(ce),l=e.useCallback(function(a){location.hash=a});e.useEffect(function(){window.addEventListener("hashchange",function(){t(ce())})},[]);const u=Wt(n);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: [",Lt.version,"]")),G.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:n===c.key?"components-item active":"components-item",onClick:l.bind(null,c.key),"data-index":c.key,key:c.key},e.createElement("span",null,c.title))}))})),e.createElement("div",{className:"show-case"},u?e.createElement(u.doc,{}):null))}P.render(e.createElement($t,null),document.getElementById("root"));
|
|
588
|
-
>>>>>>> 6f7032acb2e6e40814df61206ea1153b6b1ef3a3:build/assets/index.c95b4d3b.js
|