Commit 96bf00b4 authored by 熊成伟's avatar 熊成伟

debug

parent 85b8f907
......@@ -3,20 +3,10 @@
<component name="ChangeListManager">
<list default="true" id="a6d092de-b4f8-454d-99f5-4dac3ce112e5" name="Default Changelist" comment="">
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/Components/TodoCard/index.jsx" beforeDir="false" afterPath="$PROJECT_DIR$/src/Components/TodoCard/index.jsx" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/Components/TodoCard/index.less" beforeDir="false" afterPath="$PROJECT_DIR$/src/Components/TodoCard/index.less" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/Components/TopNotice/index.jsx" beforeDir="false" afterPath="$PROJECT_DIR$/src/Components/TopNotice/index.jsx" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/Components/TopSearch/index.jsx" beforeDir="false" afterPath="$PROJECT_DIR$/src/Components/TopSearch/index.jsx" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/Components/TopTabs/index.jsx" beforeDir="false" afterPath="$PROJECT_DIR$/src/Components/TopTabs/index.jsx" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/Components/WorkCard/CardItem.jsx" beforeDir="false" afterPath="$PROJECT_DIR$/src/Components/WorkCard/CardItem.jsx" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/Components/WorkCard/index.jsx" beforeDir="false" afterPath="$PROJECT_DIR$/src/Components/WorkCard/index.jsx" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/Components/WorkCard/index.less" beforeDir="false" afterPath="$PROJECT_DIR$/src/Components/WorkCard/index.less" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/Pages/Backlog/Backlog.jsx" beforeDir="false" afterPath="$PROJECT_DIR$/src/Pages/Backlog/Backlog.jsx" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/Pages/Work/Work.jsx" beforeDir="false" afterPath="$PROJECT_DIR$/src/Pages/Work/Work.jsx" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/layout/BlankLayout.jsx" beforeDir="false" afterPath="$PROJECT_DIR$/src/layout/BlankLayout.jsx" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/layout/CommonLayout.jsx" beforeDir="false" afterPath="$PROJECT_DIR$/src/layout/CommonLayout.jsx" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/layout/Footer.jsx" beforeDir="false" afterPath="$PROJECT_DIR$/src/layout/Footer.jsx" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/router.js" beforeDir="false" afterPath="$PROJECT_DIR$/src/router.js" afterDir="false" />
<change beforePath="$PROJECT_DIR$/package.json" beforeDir="false" afterPath="$PROJECT_DIR$/package.json" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/Pages/EventProcessing/Basic.jsx" beforeDir="false" afterPath="$PROJECT_DIR$/src/Pages/EventProcessing/Basic.jsx" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/Pages/EventProcessing/Process.jsx" beforeDir="false" afterPath="$PROJECT_DIR$/src/Pages/EventProcessing/Process.jsx" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/Pages/EventProcessing/index.less" beforeDir="false" afterPath="$PROJECT_DIR$/src/Pages/EventProcessing/index.less" afterDir="false" />
</list>
<ignored path="$PROJECT_DIR$/.tmp/" />
<ignored path="$PROJECT_DIR$/temp/" />
......@@ -30,10 +20,10 @@
<component name="FileEditorManager">
<leaf SIDE_TABS_SIZE_LIMIT_KEY="300">
<file pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/src/components/WorkCard/index.jsx">
<entry file="file://$PROJECT_DIR$/src/Pages/EventProcessing/Process.jsx">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="125">
<caret line="8" selection-start-line="8" selection-end-line="9" />
<state relative-caret-position="-202">
<caret line="60" column="59" selection-start-line="60" selection-start-column="57" selection-end-line="60" selection-end-column="59" />
<folding>
<element signature="e#0#39#0" expanded="true" />
</folding>
......@@ -41,11 +31,14 @@
</provider>
</entry>
</file>
<file pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/src/layout/index.less">
<file pinned="false" current-in-tab="true">
<entry file="file://$PROJECT_DIR$/src/Pages/EventProcessing/Basic.jsx">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="175">
<caret line="7" column="17" lean-forward="true" selection-start-line="7" selection-start-column="17" selection-end-line="7" selection-end-column="17" />
<state relative-caret-position="300">
<caret line="12" column="22" selection-start-line="12" selection-start-column="22" selection-end-line="12" selection-end-column="22" />
<folding>
<element signature="e#0#26#0" expanded="true" />
</folding>
</state>
</provider>
</entry>
......@@ -53,8 +46,8 @@
<file pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/src/Pages/Work/Work.jsx">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="450">
<caret line="33" column="29" lean-forward="true" selection-start-line="33" selection-start-column="29" selection-end-line="33" selection-end-column="29" />
<state relative-caret-position="375">
<caret line="30" column="12" lean-forward="true" selection-start-line="27" selection-start-column="5" selection-end-line="30" selection-end-column="12" />
<folding>
<element signature="e#0#39#0" expanded="true" />
</folding>
......@@ -62,26 +55,20 @@
</provider>
</entry>
</file>
<file pinned="false" current-in-tab="true">
<entry file="file://$PROJECT_DIR$/src/Pages/EventProcessing/Process.jsx">
<file pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/src/Pages/EventProcessing/index.less">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="275">
<caret line="23" column="27" selection-start-line="23" selection-start-column="27" selection-end-line="23" selection-end-column="27" />
<folding>
<element signature="e#0#39#0" expanded="true" />
</folding>
<state relative-caret-position="520">
<caret line="66" column="25" selection-start-line="66" selection-start-column="25" selection-end-line="66" selection-end-column="25" />
</state>
</provider>
</entry>
</file>
<file pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/src/Pages/EventProcessing/Option.jsx">
<entry file="file://$PROJECT_DIR$/package.json">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="275">
<caret line="11" column="48" selection-start-line="11" selection-start-column="37" selection-end-line="11" selection-end-column="48" />
<folding>
<element signature="e#0#26#0" expanded="true" />
</folding>
<state relative-caret-position="225">
<caret line="10" column="27" selection-start-line="10" selection-start-column="27" selection-end-line="10" selection-end-column="27" />
</state>
</provider>
</entry>
......@@ -89,8 +76,8 @@
<file pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/src/Pages/Notice/Notice.jsx">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="272">
<caret line="11" column="17" lean-forward="true" selection-start-line="11" selection-start-column="17" selection-end-line="11" selection-end-column="17" />
<state relative-caret-position="200">
<caret line="11" column="17" selection-start-line="11" selection-start-column="17" selection-end-line="11" selection-end-column="17" />
<folding>
<element signature="e#0#26#0" expanded="true" />
</folding>
......@@ -101,7 +88,7 @@
<file pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/src/components/TodoCard/index.jsx">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="500">
<state relative-caret-position="925">
<caret line="38" column="39" selection-start-line="38" selection-start-column="39" selection-end-line="38" selection-end-column="39" />
<folding>
<element signature="e#0#26#0" expanded="true" />
......@@ -113,7 +100,7 @@
<file pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/src/components/WorkCard/CardItem.jsx">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="1075">
<state relative-caret-position="1050">
<caret line="43" column="47" selection-start-line="43" selection-start-column="43" selection-end-line="43" selection-end-column="47" />
<folding>
<element signature="e#0#39#0" expanded="true" />
......@@ -125,8 +112,8 @@
<file pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/src/Pages/Backlog/Backlog.jsx">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="-177">
<caret line="5" column="28" lean-forward="true" selection-start-line="5" selection-start-column="28" selection-end-line="5" selection-end-column="28" />
<state relative-caret-position="50">
<caret line="5" column="28" selection-start-line="5" selection-start-column="28" selection-end-line="5" selection-end-column="28" />
<folding>
<element signature="e#0#26#0" expanded="true" />
</folding>
......@@ -137,7 +124,7 @@
<file pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/src/layout/Footer.jsx">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="700">
<state relative-caret-position="650">
<caret line="28" column="36" selection-start-line="28" selection-start-column="36" selection-end-line="28" selection-end-column="36" />
<folding>
<element signature="e#0#39#0" expanded="true" />
......@@ -212,7 +199,6 @@
<option value="$PROJECT_DIR$/src/components/TopSearch/index.jsx" />
<option value="$PROJECT_DIR$/src/layout/BlankLayout.jsx" />
<option value="$PROJECT_DIR$/src/components/List/index.jsx" />
<option value="$PROJECT_DIR$/src/Pages/EventProcessing/Basic.jsx" />
<option value="$PROJECT_DIR$/src/Pages/EventProcessing/Adjunct.jsx" />
<option value="$PROJECT_DIR$/src/components/List/index.less" />
<option value="$PROJECT_DIR$/src/components/TopTabs/index.jsx" />
......@@ -220,7 +206,6 @@
<option value="$PROJECT_DIR$/src/Pages/EventProcessing/Option.jsx" />
<option value="$PROJECT_DIR$/src/Pages/EventProcessing/Flow.jsx" />
<option value="$PROJECT_DIR$/src/components/StepCard/index.jsx" />
<option value="$PROJECT_DIR$/src/Pages/EventProcessing/index.less" />
<option value="$PROJECT_DIR$/src/layout/CommonLayout.jsx" />
<option value="$PROJECT_DIR$/src/Pages/Backlog/Backlog.jsx" />
<option value="$PROJECT_DIR$/src/components/WorkCard/CardItem.jsx" />
......@@ -232,6 +217,8 @@
<option value="$PROJECT_DIR$/src/components/WorkCard/index.jsx" />
<option value="$PROJECT_DIR$/src/Pages/Work/Work.jsx" />
<option value="$PROJECT_DIR$/src/Pages/EventProcessing/Process.jsx" />
<option value="$PROJECT_DIR$/src/Pages/EventProcessing/index.less" />
<option value="$PROJECT_DIR$/src/Pages/EventProcessing/Basic.jsx" />
</list>
</option>
</component>
......@@ -271,20 +258,6 @@
<item name="src" type="462c0819:PsiDirectoryNode" />
<item name="components" type="462c0819:PsiDirectoryNode" />
</path>
<path>
<item name="create-react-app" type="b2602c69:ProjectViewProjectNode" />
<item name="create-react-app" type="462c0819:PsiDirectoryNode" />
<item name="src" type="462c0819:PsiDirectoryNode" />
<item name="components" type="462c0819:PsiDirectoryNode" />
<item name="TodoCard" type="462c0819:PsiDirectoryNode" />
</path>
<path>
<item name="create-react-app" type="b2602c69:ProjectViewProjectNode" />
<item name="create-react-app" type="462c0819:PsiDirectoryNode" />
<item name="src" type="462c0819:PsiDirectoryNode" />
<item name="components" type="462c0819:PsiDirectoryNode" />
<item name="WorkCard" type="462c0819:PsiDirectoryNode" />
</path>
<path>
<item name="create-react-app" type="b2602c69:ProjectViewProjectNode" />
<item name="create-react-app" type="462c0819:PsiDirectoryNode" />
......@@ -366,12 +339,13 @@
<option name="presentableId" value="Default" />
<updated>1591238943411</updated>
<workItem from="1591238945654" duration="32617000" />
<workItem from="1591319543352" duration="31270000" />
<workItem from="1591319543352" duration="31523000" />
<workItem from="1591406085733" duration="5474000" />
</task>
<servers />
</component>
<component name="TimeTrackingManager">
<option name="totallyTimeSpent" value="63887000" />
<option name="totallyTimeSpent" value="69614000" />
</component>
<component name="ToolWindowManager">
<frame x="-8" y="-8" width="1382" height="784" extended-state="6" />
......@@ -426,13 +400,7 @@
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/build/static/css/main.653da357.css">
<provider selected="true" editor-type-id="text-editor">
<state>
<caret column="313" selection-start-column="311" selection-end-column="313" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/build/static/css/main.653da357.css" />
<entry file="file://$PROJECT_DIR$/src/index.js">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="225">
......@@ -470,16 +438,7 @@
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/src/components/ProcessTabs/index.jsx">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="550">
<caret line="22" column="21" lean-forward="true" selection-start-line="22" selection-start-column="21" selection-end-line="22" selection-end-column="21" />
<folding>
<element signature="e#0#26#0" expanded="true" />
</folding>
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/src/components/ProcessTabs/index.jsx" />
<entry file="file://$PROJECT_DIR$/src/router.js">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="375">
......@@ -490,13 +449,6 @@
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/package.json">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="200">
<caret line="8" column="12" selection-start-line="8" selection-start-column="5" selection-end-line="8" selection-end-column="12" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/public/manifest.json">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="150">
......@@ -504,16 +456,6 @@
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/src/Pages/EventProcessing/Basic.jsx">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="275">
<caret line="14" column="29" selection-start-line="14" selection-start-column="13" selection-end-line="14" selection-end-column="29" />
<folding>
<element signature="e#0#26#0" expanded="true" />
</folding>
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/src/Pages/EventProcessing/Adjunct.jsx">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="475">
......@@ -578,13 +520,6 @@
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/src/Pages/EventProcessing/index.less">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="425">
<caret line="23" column="36" selection-start-line="23" selection-start-column="36" selection-end-line="23" selection-end-column="36" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/src/layout/BlankLayout.jsx">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="175">
......@@ -672,10 +607,27 @@
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/src/Pages/Backlog/Backlog.jsx">
<entry file="file://$PROJECT_DIR$/src/components/WorkCard/index.jsx">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="150">
<caret line="8" selection-start-line="8" selection-end-line="9" />
<folding>
<element signature="e#0#39#0" expanded="true" />
</folding>
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/src/layout/index.less">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="-177">
<caret line="5" column="28" lean-forward="true" selection-start-line="5" selection-start-column="28" selection-end-line="5" selection-end-column="28" />
<state relative-caret-position="175">
<caret line="7" column="17" selection-start-line="7" selection-start-column="17" selection-end-line="7" selection-end-column="17" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/src/Pages/EventProcessing/Option.jsx">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="250">
<caret line="11" column="48" selection-start-line="11" selection-start-column="37" selection-end-line="11" selection-end-column="48" />
<folding>
<element signature="e#0#26#0" expanded="true" />
</folding>
......@@ -684,8 +636,8 @@
</entry>
<entry file="file://$PROJECT_DIR$/src/Pages/Notice/Notice.jsx">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="272">
<caret line="11" column="17" lean-forward="true" selection-start-line="11" selection-start-column="17" selection-end-line="11" selection-end-column="17" />
<state relative-caret-position="200">
<caret line="11" column="17" selection-start-line="11" selection-start-column="17" selection-end-line="11" selection-end-column="17" />
<folding>
<element signature="e#0#26#0" expanded="true" />
</folding>
......@@ -694,7 +646,7 @@
</entry>
<entry file="file://$PROJECT_DIR$/src/components/TodoCard/index.jsx">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="500">
<state relative-caret-position="925">
<caret line="38" column="39" selection-start-line="38" selection-start-column="39" selection-end-line="38" selection-end-column="39" />
<folding>
<element signature="e#0#26#0" expanded="true" />
......@@ -702,37 +654,47 @@
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/src/layout/Footer.jsx">
<entry file="file://$PROJECT_DIR$/src/components/WorkCard/CardItem.jsx">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="700">
<caret line="28" column="36" selection-start-line="28" selection-start-column="36" selection-end-line="28" selection-end-column="36" />
<state relative-caret-position="1050">
<caret line="43" column="47" selection-start-line="43" selection-start-column="43" selection-end-line="43" selection-end-column="47" />
<folding>
<element signature="e#0#39#0" expanded="true" />
</folding>
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/src/layout/index.less">
<entry file="file://$PROJECT_DIR$/src/Pages/Backlog/Backlog.jsx">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="175">
<caret line="7" column="17" lean-forward="true" selection-start-line="7" selection-start-column="17" selection-end-line="7" selection-end-column="17" />
<state relative-caret-position="50">
<caret line="5" column="28" selection-start-line="5" selection-start-column="28" selection-end-line="5" selection-end-column="28" />
<folding>
<element signature="e#0#26#0" expanded="true" />
</folding>
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/src/components/WorkCard/CardItem.jsx">
<entry file="file://$PROJECT_DIR$/src/layout/Footer.jsx">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="1075">
<caret line="43" column="47" selection-start-line="43" selection-start-column="43" selection-end-line="43" selection-end-column="47" />
<state relative-caret-position="650">
<caret line="28" column="36" selection-start-line="28" selection-start-column="36" selection-end-line="28" selection-end-column="36" />
<folding>
<element signature="e#0#39#0" expanded="true" />
</folding>
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/src/components/WorkCard/index.jsx">
<entry file="file://$PROJECT_DIR$/package.json">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="125">
<caret line="8" selection-start-line="8" selection-end-line="9" />
<state relative-caret-position="225">
<caret line="10" column="27" selection-start-line="10" selection-start-column="27" selection-end-line="10" selection-end-column="27" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/src/Pages/EventProcessing/Process.jsx">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="-202">
<caret line="60" column="59" selection-start-line="60" selection-start-column="57" selection-end-line="60" selection-end-column="59" />
<folding>
<element signature="e#0#39#0" expanded="true" />
</folding>
......@@ -741,30 +703,27 @@
</entry>
<entry file="file://$PROJECT_DIR$/src/Pages/Work/Work.jsx">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="450">
<caret line="33" column="29" lean-forward="true" selection-start-line="33" selection-start-column="29" selection-end-line="33" selection-end-column="29" />
<state relative-caret-position="375">
<caret line="30" column="12" lean-forward="true" selection-start-line="27" selection-start-column="5" selection-end-line="30" selection-end-column="12" />
<folding>
<element signature="e#0#39#0" expanded="true" />
</folding>
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/src/Pages/EventProcessing/Option.jsx">
<entry file="file://$PROJECT_DIR$/src/Pages/EventProcessing/index.less">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="275">
<caret line="11" column="48" selection-start-line="11" selection-start-column="37" selection-end-line="11" selection-end-column="48" />
<folding>
<element signature="e#0#26#0" expanded="true" />
</folding>
<state relative-caret-position="520">
<caret line="66" column="25" selection-start-line="66" selection-start-column="25" selection-end-line="66" selection-end-column="25" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/src/Pages/EventProcessing/Process.jsx">
<entry file="file://$PROJECT_DIR$/src/Pages/EventProcessing/Basic.jsx">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="275">
<caret line="23" column="27" selection-start-line="23" selection-start-column="27" selection-end-line="23" selection-end-column="27" />
<state relative-caret-position="300">
<caret line="12" column="22" selection-start-line="12" selection-start-column="22" selection-end-line="12" selection-end-column="22" />
<folding>
<element signature="e#0#39#0" expanded="true" />
<element signature="e#0#26#0" expanded="true" />
</folding>
</state>
</provider>
......
......@@ -3,7 +3,7 @@
"version": "2.0.0",
"private": true,
"dependencies": {
"antd-mobile": "^2.0.0",
"antd-mobile": "^2.3.3",
"customize-cra": "^1.0.0",
"lib-flexible": "^0.3.2",
"postcss-px2rem": "^0.3.0",
......
import React from 'react';
import {WhiteSpace} from 'antd-mobile'
import './index.less'
import List from '../../components/List'
const data = Array.from(new Array(7)).map((_val, i) => ({
icon: '/img/test/test.png',
text: `name${i}`,
}));
const Basic = () => {
const personImg = data.map((item, index) => (
<div key={index} className="pos-line">
<img alt=""/>
</div>
))
const listData = [
{title: '单位(科室)', content: '文电科'},
{title: '人数', content: '3'},
......
import React, {Component} from 'react';
import {WingBlank, WhiteSpace} from 'antd-mobile'
import {WingBlank, WhiteSpace, ActionSheet} from 'antd-mobile'
import './index.less'
import TopTabs from '../../components/TopTabs'
import Basic from './Basic'
import Adjunct from './Adjunct'
import Flow from './Flow';
import Option from './Option'
import Option from './Option';
const isIPhone = new RegExp('\\biPhone\\b|\\biPod\\b', 'i').test(window.navigator.userAgent);
let wrapProps;
if (isIPhone) {
wrapProps = {
onTouchStart: e => e.preventDefault(),
};
}
class Process extends Component {
constructor() {
......@@ -48,6 +57,19 @@ class Process extends Component {
document.getElementById("event").scrollTo(0,top - 9)
};
showActionSheet = () => {
const BUTTONS = ['送部门领导审核', '送办公室分管主任审批', '办结', '取消'];
ActionSheet.showActionSheetWithOptions({
options: BUTTONS,
cancelButtonIndex: BUTTONS.length - 1,
maskClosable: true,
wrapProps,
},
(buttonIndex) => {
console.log(buttonIndex)
});
}
render() {
return (
<div>
......@@ -65,7 +87,7 @@ class Process extends Component {
</WingBlank>
</div>
<div className="event-footer">
<div className="event-footer-button">
<div className="event-footer-button" onClick={this.showActionSheet}>
{this.state.footButton}
</div>
......
......@@ -47,3 +47,22 @@
border-radius:5px;
padding: 12px;
}
.am-action-sheet{
bottom: 10px;
left: 10px;
right: 10px;
border-radius: 7px;
width: auto;
}
.am-action-sheet-button-list .am-action-sheet-cancel-button-mask{
position: relative;
}
.am-action-sheet-button-list .am-action-sheet-cancel-button{
padding-top: 0;
}
.pos-line{
display: flex;
align-items: center;
flex-direction: column;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment