kts-component-invoice-operate 1.2.6 → 1.2.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kts-component-invoice-operate",
3
- "version": "1.2.6",
3
+ "version": "1.2.7",
4
4
  "scripts": {
5
5
  "start": "dumi dev",
6
6
  "docs:build": "dumi build",
@@ -24,6 +24,10 @@ class MyController extends Invoice.InvoiceController {
24
24
  { buyerName: '中科讯联科技北京网络有限公司', buyerNo: '918273829182918291' },
25
25
  ],
26
26
  list: [
27
+ { buyerName: '中科讯联科技北京网络有限公司中科讯联科技北京网络有限公司', buyerNo: '918273829182918291' },
28
+ { buyerName: '中科讯联科技北京网络有限公司', buyerNo: '918273829182918291' },
29
+ { buyerName: '中科讯联科技北京网络有限公司', buyerNo: '918273829182918291' },
30
+ { buyerName: '中科讯联科技北京网络有限公司', buyerNo: '918273829182918291' },
27
31
  { buyerName: '中科讯联科技北京网络有限公司', buyerNo: '918273829182918291' },
28
32
  { buyerName: '中科讯联科技北京网络有限公司', buyerNo: '918273829182918291' },
29
33
  { buyerName: '中科讯联科技北京网络有限公司', buyerNo: '918273829182918291' },
@@ -115,7 +115,6 @@
115
115
  padding : 6px 0;
116
116
  display : flex;
117
117
  flex-direction: column;
118
- max-height : 400px;
119
118
  overflow-y : auto;
120
119
  overflow-x : hidden;
121
120
  }
@@ -177,9 +176,13 @@
177
176
  }
178
177
 
179
178
  li {
180
- list-style: none;
181
- width : 50%;
182
- float : left;
179
+ list-style : none;
180
+ width : 50%;
181
+ float : left;
182
+ text-overflow: ellipsis;
183
+ white-space : nowrap;
184
+ overflow : hidden;
185
+ padding-right: 10px;
183
186
  }
184
187
 
185
188
  &::after {
@@ -52,18 +52,20 @@ export default (props: IBuyerNameInputProps) => {
52
52
  <Divider style={{ margin: "0 6px" }} />
53
53
  <div className='kts-invoice-operate-buyer-name-content-block' style={{ padding: '14px 10px 4px' }} >
54
54
  <label style={{ padding: '0 10px' }} >选择公司</label>
55
- {
56
- !dataSource.list || dataSource.list.length <= 0
57
- ? <Empty image={Empty.PRESENTED_IMAGE_SIMPLE} />
58
- : dataSource.list.map((e, i) => {
59
- return (
60
- <ul key={i} onClick={() => { onClickItem(e) }} className='kts-invoice-operate-buyer-name-content-select-company' >
61
- <li>{e.buyerName}</li>
62
- <li>{e.buyerNo}</li>
63
- </ul>
64
- )
65
- })
66
- }
55
+ <div style={{ maxHeight: 200, overflow: "auto" }} >
56
+ {
57
+ !dataSource.list || dataSource.list.length <= 0
58
+ ? <Empty image={Empty.PRESENTED_IMAGE_SIMPLE} />
59
+ : dataSource.list.map((e, i) => {
60
+ return (
61
+ <ul key={i} onClick={() => { onClickItem(e) }} className='kts-invoice-operate-buyer-name-content-select-company' >
62
+ <li title={e.buyerName} >{e.buyerName}</li>
63
+ <li title={e.buyerNo} >{e.buyerNo}</li>
64
+ </ul>
65
+ )
66
+ })
67
+ }
68
+ </div>
67
69
  </div>
68
70
  </>
69
71
  )
@@ -106,7 +108,7 @@ export default (props: IBuyerNameInputProps) => {
106
108
  overlayClassName='kts-invoice-operate-buyer-name-popover'
107
109
  placement="bottomLeft"
108
110
  trigger="click"
109
- visible={visible}
111
+ visible={visible || true}
110
112
  content={content}
111
113
  >
112
114
  <Input