1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
| <template>
| <div class="wms-in-bound2-input-layout">
| <div class="label-view" v-if="label" :style="{width:labelWidth?labelWidth:'auto'}">{{label}}:</div>
| <div class="input-view">
| <slot></slot>
| <div v-if="msg">
| <a-alert :message="msg" type="error" show-icon />
| </div>
| </div>
| </div>
| </template>
|
| <script>
| export default {
| name:'wmsInBound2InputLayout',
| props:{
| label:{
| type:String,
| default:''
| },
| labelWidth:{
| type:String,
| default:''
| },
| msg:{
| type:String,
| default:''
| }
| },
| mounted(){
| console.log(this.$scopedSlots.err)
| }
| }
| </script>
|
| <style lang="less" scoped>
| .wms-in-bound2-input-layout{
| width:100%;
| display:flex;
| margin:0 auto;
| .label-view{
| flex-shrink: 0;
| padding-top: 3.5px;
| text-align: right;
| }
| .input-view{
| flex-grow:1;
| }
| }
| </style>
|
|