Skip to content

Commit f7c3b55

Browse files
author
Yang
committed
chore: modal mini
1 parent ece9be4 commit f7c3b55

40 files changed

Lines changed: 628 additions & 335 deletions

packages/mini-demo/order.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"input":{"AutoHeight":"6","Basic":"1","Clearable":"2","Disabled":"5","Native":"3","ReadOnly":"4","ShowLength":"7","Vertical":"8","Readonly":"4","Disable":0},"swipe-action":{"Basic":0},"modal":{"Basic":"1","Button":"2","Alert":"1"}}
1+
{"input":{"AutoHeight":"6","Basic":"1","Clearable":"2","Disabled":"5","Native":"3","ReadOnly":"4","ShowLength":"7","Vertical":"8","Readonly":"4","Disable":0},"swipe-action":{"Basic":0},"modal":{"Basic":"1","Button":"2","Alert":"3","Confrim":"3"},"loading":{"Basic":0,"Spinner":0}}

packages/mini-demo/src/app.config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ export default defineAppConfig({
99
'pages/input/index',
1010
'pages/swipe-action/index',
1111
'pages/modal/index',
12+
'pages/loading/index',
1213
],
1314
window: {
1415
backgroundTextStyle: 'light',

packages/mini-demo/src/app.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
11
page {
22
height: 100%;
33
}
4+
5+
View {
6+
box-sizing: border-box;
7+
}

packages/mini-demo/src/pages/checkbox/component/custom-icon.tsx

Lines changed: 0 additions & 37 deletions
This file was deleted.

packages/mini-demo/src/pages/checkbox/component/custom.tsx

Lines changed: 0 additions & 73 deletions
This file was deleted.
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
import React from 'react';
2+
import { List, Loading } from 'zarm/mini';
3+
4+
const Demo =() => {
5+
return (
6+
<List>
7+
<List.Item title="普通" suffix={<Loading />} />
8+
<List.Item title="大号" suffix={<Loading size="lg" />} />
9+
</List>
10+
);
11+
}
12+
13+
export default Demo;
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
import React from 'react';
2+
import { List, Loading } from 'zarm/mini';
3+
4+
const Demo =() => {
5+
return (
6+
<List>
7+
<List.Item title="普通" suffix={<Loading type="spinner" />} />
8+
<List.Item title="大号" suffix={<Loading size="lg" type="spinner" />} />
9+
</List>
10+
);
11+
}
12+
13+
export default Demo;
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
export default definePageConfig({
2+
navigationBarTitleText: 'Loading'
3+
})

packages/mini-demo/src/pages/loading/index.scss

Whitespace-only changes.
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
2+
import * as React from 'react';
3+
import Basic from './component/basic';
4+
import Spinner from './component/spinner';
5+
6+
import './index.scss';
7+
8+
export default () => {
9+
return (
10+
<>
11+
<Basic />
12+
<Spinner />
13+
</>
14+
)
15+
}

0 commit comments

Comments
 (0)