@gm-pc/frame 1.27.0 → 1.27.1-beta.0

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/src/print.less CHANGED
@@ -1,28 +1,28 @@
1
- @media print {
2
- html,
3
- body {
4
- background-color: white;
5
- }
6
-
7
- // 本身 打印 页面就小,命中了 framework/mobile.less 把相应的UI去掉了,但
8
- // 1 毕竟属于两种场景
9
- // 2 可能存在大的打印纸张
10
- // 所以还是要处理一遍
11
- .gm-framework {
12
- &-full-height {
13
- min-height: inherit;
14
- }
15
-
16
- &-left {
17
- display: none;
18
- }
19
-
20
- &-right-top {
21
- display: none;
22
- }
23
-
24
- &-content {
25
- padding: 0;
26
- }
27
- }
28
- }
1
+ @media print {
2
+ html,
3
+ body {
4
+ background-color: white;
5
+ }
6
+
7
+ // 本身 打印 页面就小,命中了 framework/mobile.less 把相应的UI去掉了,但
8
+ // 1 毕竟属于两种场景
9
+ // 2 可能存在大的打印纸张
10
+ // 所以还是要处理一遍
11
+ .gm-framework {
12
+ &-full-height {
13
+ min-height: inherit;
14
+ }
15
+
16
+ &-left {
17
+ display: none;
18
+ }
19
+
20
+ &-right-top {
21
+ display: none;
22
+ }
23
+
24
+ &-content {
25
+ padding: 0;
26
+ }
27
+ }
28
+ }
package/src/stories.tsx CHANGED
@@ -1,162 +1,162 @@
1
- import React from 'react'
2
- import { Breadcrumb, Framework, Left, FullTabs, Info, RightTop } from './index'
3
- import { Nav, Tabs } from '@gm-pc/react'
4
-
5
- const tabs = [
6
- {
7
- text: 'Tab1',
8
- value: '1',
9
- children: <div>1</div>,
10
- },
11
- {
12
- text: 'Tab2',
13
- value: '2',
14
- children: <div>2</div>,
15
- },
16
- {
17
- text: 'Tab3',
18
- value: '3',
19
- children: <div>3</div>,
20
- },
21
- {
22
- text: 'Tab4',
23
- value: '4',
24
- children: <div>4</div>,
25
- },
26
- {
27
- text: '长度比较长的tabs文本',
28
- value: '5',
29
- children: <div>5</div>,
30
- },
31
- ]
32
-
33
- const data = [
34
- {
35
- link: '/merchandise',
36
- name: '商品',
37
- sub: [
38
- {
39
- name: '商品管理',
40
- link: '/merchandise/manage',
41
- sub: [
42
- {
43
- link: '/merchandise/manage/sale',
44
- name: '报价单管理',
45
- },
46
- {
47
- link: '/merchandise/manage/list',
48
- name: '商品库',
49
- },
50
- ],
51
- },
52
- {
53
- name: '营销',
54
- link: '/merchandise/marketing_tool',
55
- sub: [
56
- {
57
- link: '/merchandise/marketing_tool/price_rule',
58
- name: '限时锁价',
59
- },
60
- ],
61
- },
62
- ],
63
- },
64
- {
65
- link: '/merchandise',
66
- name: '商品',
67
- sub: [
68
- {
69
- name: '商品管理',
70
- link: '/merchandise/manage',
71
- sub: [
72
- {
73
- link: '/merchandise/manage/tax_rate',
74
- name: '税率规则',
75
- },
76
- ],
77
- },
78
- ],
79
- },
80
- {
81
- link: '/supply_chain',
82
- name: '供应链',
83
- sub: [
84
- {
85
- name: '订单',
86
- link: '/supply_chain/order',
87
- sub: [
88
- {
89
- link: '/supply_chain/order/list',
90
- name: '订单列表',
91
- },
92
- ],
93
- },
94
- ],
95
- },
96
- ]
97
-
98
- export const ComFrameWork = () => (
99
- <div>
100
- <Framework
101
- menu={
102
- <Left>
103
- <Nav data={data} selected='' />
104
- </Left>
105
- }
106
- rightTop={
107
- <RightTop
108
- breadcrumb={
109
- <Breadcrumb
110
- breadcrumbs={[]}
111
- navConfig={data}
112
- pathname='/merchandise/manage/tax_rate'
113
- onSelect={(item) => console.log(item)}
114
- />
115
- }
116
- info={
117
- <Info
118
- more={[
119
- {
120
- text: 'adfasf',
121
- onClick: () => {
122
- console.log('123')
123
- },
124
- },
125
- ]}
126
- />
127
- }
128
- />
129
- }
130
- >
131
- <FullTabs
132
- tabs={[
133
- {
134
- text: '按订单查看',
135
- value: 'order',
136
- children: <div>按订单按订单按订单</div>,
137
- },
138
- {
139
- text: '按商品查看',
140
- value: 'sku',
141
- children: <div>按商品按商品按商品</div>,
142
- },
143
- {
144
- text: '按司机查看',
145
- value: 'driver',
146
- children: <div>按司机按司机按司机</div>,
147
- },
148
- {
149
- text: '内含tabs的例子',
150
- value: 'tabs',
151
- children: <Tabs tabs={tabs} />,
152
- },
153
- ]}
154
- defaultActive='sku'
155
- />
156
- </Framework>
157
- </div>
158
- )
159
-
160
- export default {
161
- title: 'Framework/Framework',
162
- }
1
+ import React from 'react'
2
+ import { Breadcrumb, Framework, Left, FullTabs, Info, RightTop } from './index'
3
+ import { Nav, Tabs } from '@gm-pc/react'
4
+
5
+ const tabs = [
6
+ {
7
+ text: 'Tab1',
8
+ value: '1',
9
+ children: <div>1</div>,
10
+ },
11
+ {
12
+ text: 'Tab2',
13
+ value: '2',
14
+ children: <div>2</div>,
15
+ },
16
+ {
17
+ text: 'Tab3',
18
+ value: '3',
19
+ children: <div>3</div>,
20
+ },
21
+ {
22
+ text: 'Tab4',
23
+ value: '4',
24
+ children: <div>4</div>,
25
+ },
26
+ {
27
+ text: '长度比较长的tabs文本',
28
+ value: '5',
29
+ children: <div>5</div>,
30
+ },
31
+ ]
32
+
33
+ const data = [
34
+ {
35
+ link: '/merchandise',
36
+ name: '商品',
37
+ sub: [
38
+ {
39
+ name: '商品管理',
40
+ link: '/merchandise/manage',
41
+ sub: [
42
+ {
43
+ link: '/merchandise/manage/sale',
44
+ name: '报价单管理',
45
+ },
46
+ {
47
+ link: '/merchandise/manage/list',
48
+ name: '商品库',
49
+ },
50
+ ],
51
+ },
52
+ {
53
+ name: '营销',
54
+ link: '/merchandise/marketing_tool',
55
+ sub: [
56
+ {
57
+ link: '/merchandise/marketing_tool/price_rule',
58
+ name: '限时锁价',
59
+ },
60
+ ],
61
+ },
62
+ ],
63
+ },
64
+ {
65
+ link: '/merchandise',
66
+ name: '商品',
67
+ sub: [
68
+ {
69
+ name: '商品管理',
70
+ link: '/merchandise/manage',
71
+ sub: [
72
+ {
73
+ link: '/merchandise/manage/tax_rate',
74
+ name: '税率规则',
75
+ },
76
+ ],
77
+ },
78
+ ],
79
+ },
80
+ {
81
+ link: '/supply_chain',
82
+ name: '供应链',
83
+ sub: [
84
+ {
85
+ name: '订单',
86
+ link: '/supply_chain/order',
87
+ sub: [
88
+ {
89
+ link: '/supply_chain/order/list',
90
+ name: '订单列表',
91
+ },
92
+ ],
93
+ },
94
+ ],
95
+ },
96
+ ]
97
+
98
+ export const ComFrameWork = () => (
99
+ <div>
100
+ <Framework
101
+ menu={
102
+ <Left>
103
+ <Nav data={data} selected='' />
104
+ </Left>
105
+ }
106
+ rightTop={
107
+ <RightTop
108
+ breadcrumb={
109
+ <Breadcrumb
110
+ breadcrumbs={[]}
111
+ navConfig={data}
112
+ pathname='/merchandise/manage/tax_rate'
113
+ onSelect={(item) => console.log(item)}
114
+ />
115
+ }
116
+ info={
117
+ <Info
118
+ more={[
119
+ {
120
+ text: 'adfasf',
121
+ onClick: () => {
122
+ console.log('123')
123
+ },
124
+ },
125
+ ]}
126
+ />
127
+ }
128
+ />
129
+ }
130
+ >
131
+ <FullTabs
132
+ tabs={[
133
+ {
134
+ text: '按订单查看',
135
+ value: 'order',
136
+ children: <div>按订单按订单按订单</div>,
137
+ },
138
+ {
139
+ text: '按商品查看',
140
+ value: 'sku',
141
+ children: <div>按商品按商品按商品</div>,
142
+ },
143
+ {
144
+ text: '按司机查看',
145
+ value: 'driver',
146
+ children: <div>按司机按司机按司机</div>,
147
+ },
148
+ {
149
+ text: '内含tabs的例子',
150
+ value: 'tabs',
151
+ children: <Tabs tabs={tabs} />,
152
+ },
153
+ ]}
154
+ defaultActive='sku'
155
+ />
156
+ </Framework>
157
+ </div>
158
+ )
159
+
160
+ export default {
161
+ title: 'Framework/Framework',
162
+ }
package/src/svg/more.svg CHANGED
@@ -1,10 +1,10 @@
1
- <?xml version="1.0" encoding="utf-8"?>
2
- <!-- Generator: Adobe Illustrator 23.0.1, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
3
- <svg version="1.1" id="图层_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
4
- viewBox="0 0 18 18" enable-background="new 0 0 18 18" xml:space="preserve">
5
- <g>
6
- <path d="M1.4,9c0,0.8,0.6,1.4,1.4,1.4c0.8,0,1.4-0.6,1.4-1.4c0-0.8-0.6-1.4-1.4-1.4C2,7.6,1.4,8.2,1.4,9L1.4,9z
7
- M7.6,9c0,0.8,0.6,1.4,1.4,1.4c0.8,0,1.4-0.6,1.4-1.4c0-0.8-0.6-1.4-1.4-1.4C8.2,7.6,7.6,8.2,7.6,9L7.6,9z M13.9,9
8
- c0,0.8,0.6,1.4,1.4,1.4c0.8,0,1.4-0.6,1.4-1.4c0-0.8-0.6-1.4-1.4-1.4C14.5,7.6,13.9,8.2,13.9,9L13.9,9z M14.9,9"/>
9
- </g>
10
- </svg>
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <!-- Generator: Adobe Illustrator 23.0.1, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
3
+ <svg version="1.1" id="图层_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
4
+ viewBox="0 0 18 18" enable-background="new 0 0 18 18" xml:space="preserve">
5
+ <g>
6
+ <path d="M1.4,9c0,0.8,0.6,1.4,1.4,1.4c0.8,0,1.4-0.6,1.4-1.4c0-0.8-0.6-1.4-1.4-1.4C2,7.6,1.4,8.2,1.4,9L1.4,9z
7
+ M7.6,9c0,0.8,0.6,1.4,1.4,1.4c0.8,0,1.4-0.6,1.4-1.4c0-0.8-0.6-1.4-1.4-1.4C8.2,7.6,7.6,8.2,7.6,9L7.6,9z M13.9,9
8
+ c0,0.8,0.6,1.4,1.4,1.4c0.8,0,1.4-0.6,1.4-1.4c0-0.8-0.6-1.4-1.4-1.4C14.5,7.6,13.9,8.2,13.9,9L13.9,9z M14.9,9"/>
9
+ </g>
10
+ </svg>