| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465 |
- <template>
- <div class="zap-text-item">
- <span class="zap-text-item__label">{{label}}</span>
- <div class="zap-text-item__file">
- <span v-if="value" class="zap-text-item__value">{{value}}</span>
- <span v-if="suffix" class="zap-text-item__suffix">{{suffix}}</span>
- </div>
- </div>
- </template>
- <script>
- export default {
- name: "TextItem",
- props: {
- label: String,
- value: String,
- suffix: String
- }
- }
- </script>
- <style lang="scss">
- .zap-text-item{
- display: flex;
- align-items: center;
- margin-bottom: 22px;
- margin-right: 10px;
- }
- .zap-text-item__label{
- flex: 0 0 176px;
- width: 176px;
- padding-right: 12px;
- text-align: right;
- font-size: 14px;
- color: #333333;
- }
- .zap-text-item__file{
- flex: 0 0 264px;
- display: flex;
- align-items: center;
- justify-content: space-between;
- width: 264px;
- height: 36px;
- padding-left: 8px;
- background-color: #F4F5F6;
- border: 1px solid #EBEBEB;
- border-radius: 4px;
- }
- .zap-text-item__value{
- flex: 1;
- font-size: 14px;
- color: #333333;
- }
- .zap-text-item__suffix{
- display: flex;
- align-items: center;
- justify-content: center;
- width: 40px;
- height: 100%;
- flex: 0 0 40px;
- font-size: 14px;
- color: #999999;
- border-left: 1px solid #EBEBEB;
- }
- </style>
|