提交 f8f0b9b8 编写于 作者: RedPig97's avatar RedPig97

update: less组件替换scss

上级 fcc4ae31
...@@ -28,6 +28,6 @@ export default class Error404 extends Vue { ...@@ -28,6 +28,6 @@ export default class Error404 extends Vue {
} }
</script> </script>
<style lang='less'> <style lang='scss'>
@import './404.less'; @import './404.scss';
</style> </style>
\ No newline at end of file
...@@ -28,6 +28,6 @@ export default class Error404 extends Vue { ...@@ -28,6 +28,6 @@ export default class Error404 extends Vue {
} }
</script> </script>
<style lang='less'> <style lang='scss'>
@import './500.less'; @import './500.scss';
</style> </style>
\ No newline at end of file
...@@ -163,6 +163,6 @@ export default class ActionTimeline extends Vue { ...@@ -163,6 +163,6 @@ export default class ActionTimeline extends Vue {
} }
</script> </script>
<style lang='less'> <style lang='scss'>
@import './action-timeline.less'; @import './action-timeline.scss';
</style> </style>
\ No newline at end of file
...@@ -150,6 +150,6 @@ export default class AppActionBar extends Vue { ...@@ -150,6 +150,6 @@ export default class AppActionBar extends Vue {
} }
</script> </script>
<style lang='less'> <style lang='scss'>
@import "./app-actionbar.less"; @import "./app-actionbar.scss";
</style> </style>
\ No newline at end of file
...@@ -93,6 +93,6 @@ export default class AppAddressSelection extends Vue { ...@@ -93,6 +93,6 @@ export default class AppAddressSelection extends Vue {
} }
</script> </script>
<style lang='less'> <style lang='scss'>
@import './app-address-selection.less'; @import './app-address-selection.scss';
</style> </style>
\ No newline at end of file
...@@ -112,7 +112,7 @@ export default class AppAlertGroup extends Vue { ...@@ -112,7 +112,7 @@ export default class AppAlertGroup extends Vue {
} }
</script> </script>
<style lang="less"> <style lang="scss">
.view-body-messages { .view-body-messages {
margin-bottom: 6px; margin-bottom: 6px;
} }
......
...@@ -230,6 +230,6 @@ export default class AppAlert extends Vue { ...@@ -230,6 +230,6 @@ export default class AppAlert extends Vue {
} }
</script> </script>
<style lang="less"> <style lang="scss">
@import './app-alert.less'; @import './app-alert.scss';
</style> </style>
\ No newline at end of file
...@@ -319,6 +319,6 @@ export default class AppAutocomplete extends Vue { ...@@ -319,6 +319,6 @@ export default class AppAutocomplete extends Vue {
} }
</script> </script>
<style lang='less'> <style lang='scss'>
@import './app-autocomplete.less'; @import './app-autocomplete.scss';
</style> </style>
\ No newline at end of file
...@@ -216,6 +216,6 @@ export default class Breadcrumb extends Vue { ...@@ -216,6 +216,6 @@ export default class Breadcrumb extends Vue {
} }
</script> </script>
<style lang='less'> <style lang='scss'>
@import "./app-breadcrumb.less"; @import "./app-breadcrumb.scss";
</style> </style>
\ No newline at end of file
...@@ -55,6 +55,6 @@ export default class AppBuild extends Vue { ...@@ -55,6 +55,6 @@ export default class AppBuild extends Vue {
} }
</script> </script>
<style lang="less"> <style lang="scss">
@import './app-build.less'; @import './app-build.scss';
</style> </style>
\ No newline at end of file
.app-calendar-itemlayoutpanel{
display: flex;
.item-icon{
width: 40px;
height: 40px;
margin-right: 10px;
img{
width: 100%;
height: 100%;
border-radius: 50%;
}
}
.item-text{
.title{
font-size: 18px;
font-weight: bold;
}
.srfdescription{
margin-top: 14px;
margin-bottom: 14px;
}
.date{
.start{
margin:0 6px;
}
.end{
margin:0 6px;
}
}
}
}
<template>
<div class="app-calendar-itemlayoutpanel">
<div class="item-icon">
</div>
<div class="item-text">
<div class="title">{{inputData.title}}</div>
<div class="srfdescription">{{inputData.srfdescription}}</div>
<div class="date">
{{ $t('userCustom.AppCalendarItemlayoutpanel.from') }}
<span class="start">{{inputData.start}}</span>
{{$t('userCustom.AppCalendarItemlayoutpanel.to')}}
<span class="end">{{inputData.end}}</span>
</div>
</div>
</div>
</template>
<script lang="ts">
import { Component, Vue, Prop, Model, Watch } from 'vue-property-decorator';
import { Subject,Subscription } from 'rxjs';
@Component({
})
export default class AppCalendarItemlayoutpanel extends Vue {
/**
* 面板数据对象
*
* @type {*}
* @memberof AppCalendarItemlayoutpanel
*/
@Prop() public inputData?: any;
}
</script>
<style lang="scss">
@import './app-calendar-itemlayoutpanel.scss';
</style>
\ No newline at end of file
...@@ -284,6 +284,6 @@ export default class AppCheckBox extends Vue { ...@@ -284,6 +284,6 @@ export default class AppCheckBox extends Vue {
} }
</script> </script>
<style lang='less'> <style lang='scss'>
@import './app-checkbox-list.less'; @import './app-checkbox-list.scss';
</style> </style>
\ No newline at end of file
...@@ -50,6 +50,6 @@ export default class AppCheckbox extends Vue { ...@@ -50,6 +50,6 @@ export default class AppCheckbox extends Vue {
} }
</script> </script>
<style lang='less'> <style lang='scss'>
@import "./app-checkbox.less"; @import "./app-checkbox.scss";
</style> </style>
\ No newline at end of file
...@@ -179,6 +179,6 @@ export default class AppColorPicker extends Vue { ...@@ -179,6 +179,6 @@ export default class AppColorPicker extends Vue {
} }
</script> </script>
<style lang="less"> <style lang="scss">
@import './app-color-picker.less'; @import './app-color-picker.scss';
</style> </style>
...@@ -152,7 +152,7 @@ export default class AppColorSpan extends Vue { ...@@ -152,7 +152,7 @@ export default class AppColorSpan extends Vue {
} }
</script> </script>
<style lang="less"> <style lang="scss">
.text-color{ .text-color{
padding: 2px 8px; padding: 2px 8px;
margin: 6px 6px 6px 0px; margin: 6px 6px 6px 0px;
......
...@@ -53,6 +53,6 @@ export default class AppColumnFormat extends Vue { ...@@ -53,6 +53,6 @@ export default class AppColumnFormat extends Vue {
} }
</script> </script>
<style lang='less'> <style lang='scss'>
@import "./app-column-format.less"; @import "./app-column-format.scss";
</style> </style>
\ No newline at end of file
...@@ -314,6 +314,6 @@ export default class AppColumnLink extends Vue { ...@@ -314,6 +314,6 @@ export default class AppColumnLink extends Vue {
} }
</script> </script>
<style lang='less'> <style lang='scss'>
@import './app-column-link.less'; @import './app-column-link.scss';
</style> </style>
\ No newline at end of file
...@@ -148,6 +148,6 @@ export default class AppColumnRender extends Vue { ...@@ -148,6 +148,6 @@ export default class AppColumnRender extends Vue {
} }
</script> </script>
<style lang='less'> <style lang='scss'>
@import "./app-column-render.less"; @import "./app-column-render.scss";
</style> </style>
\ No newline at end of file
...@@ -457,6 +457,6 @@ export default class AppDashboardDesign extends Vue { ...@@ -457,6 +457,6 @@ export default class AppDashboardDesign extends Vue {
} }
</script> </script>
<style lang="less"> <style lang="scss">
@import "./app-dashboard-design.less"; @import "./app-dashboard-design.scss";
</style> </style>
\ No newline at end of file
.app-data-card{
padding: 10px;
.data-item{
display: flex;
margin-bottom: 16px;
.item-text{
.srfmajortext{
font-size: 18px;
font-weight: bold;
}
.srfdescription{
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 1;
overflow: hidden;
}
}
.item-icon{
width: 50px;
height: 50px;
margin-right: 10px;
.single-card-img{
border-radius: 50%;
width: 100%;
height: 100%;
}
}
}
.data-view-item-action{
width: 100%;
display: flex;
justify-content: space-around;
border-top: 1px solid #e2e2e2;
padding-top: 10px;
button{
width: 50%;
font-size: 15px;
border: none;
background-color: transparent;
border: none;
}
}
}
\ No newline at end of file
<template>
<div class="app-data-card">
<div class="data-item">
<div class="item-icon">
<img v-if="inputData.srficonpath" :src="inputData.srficonpath" class="single-card-img" />
<img v-else src="/assets/img/noimage.png" class="single-card-img" />
</div>
<div class="item-text">
<div class="srfmajortext">{{inputData.srfmajortext}}</div>
<div class="srfdescription" :title="inputData.srfdescription">{{inputData.srfdescription}}</div>
</div>
</div>
<div class="data-view-item-action" v-if="actionModel">
<template v-for="(action,index) in Object.keys(actionModel)">
<button type="info" :key="index" @click="uiAction(inputData, action, $event)">
<i :class="actionModel[action].icon" style="margin-right:2px;"></i>
<span>{{actionModel[action].caption}}</span>
</button>
</template>
</div>
</div>
</template>
<script lang="ts">
import { Component, Vue, Prop, Model, Watch } from 'vue-property-decorator';
import { Subject,Subscription } from 'rxjs';
@Component({
})
export default class AppDataCard extends Vue {
/**
* 面板数据对象
*
* @type {*}
* @memberof AppDataCard
*/
@Prop() public inputData?: any;
/**
* 操作栏模型
*
* @type {*}
* @memberof AppDataCard
*/
@Prop() public actionModel:any;
/**
* 操作列界面行为
*
* @param {*} data
* @param {*} tag
* @param {*} $event
* @memberof AppDataCard
*/
public uiAction(data: any, tag: any, $event: any) {
this.$emit('uiAction',data, tag, $event)
}
}
</script>
<style lang="scss">
@import './app-data-card.scss';
</style>
\ No newline at end of file
// 导入视图样式 // 导入视图样式
.app-data-upload-view{ .app-data-upload-view{
font-family: "Microsoft YaHei"; font-family: "Microsoft YaHei";
display: flex; display: flex;
flex-direction: column; flex-direction: column;
.main-content{ .main-content{
height: calc(100% - 68px); height: calc(100% - 68px);
background: #FAFAFB; background: #FAFAFB;
border-radius: 4px; border-radius: 4px;
border: 1px dashed #D7D7D7; border: 1px dashed #D7D7D7;
margin-top: 10px; margin-top: 10px;
// 上传文件区域 // 上传文件区域
.upload-container{ .upload-container{
cursor: pointer; cursor: pointer;
height: 100%; height: 100%;
width: 100%; width: 100%;
text-align: center; text-align: center;
padding-top: 58px; padding-top: 58px;
.icon-import{ .icon-import{
display: block; display: block;
margin: 0 auto 17px; margin: 0 auto 17px;
} }
.select-file-text{ .select-file-text{
height: 17px; height: 17px;
font-size: 12px; font-size: 12px;
color: #565656; color: #565656;
line-height: 17px; line-height: 17px;
} }
} }
// 信息展示容器 // 信息展示容器
.data-info-container{ .data-info-container{
padding: 8px 10px 6px; padding: 8px 10px 6px;
height: 100%; height: 100%;
width: 100%; width: 100%;
// 进度条 // 进度条
.progress{ .progress{
margin-bottom: 6px ; margin-bottom: 6px ;
.el-progress-bar__outer{ .el-progress-bar__outer{
background-color: #FFFFFF; background-color: #FFFFFF;
} }
.el-progress-bar__inner{ .el-progress-bar__inner{
background-color: #D7E9FF; background-color: #D7E9FF;
} }
} }
.message-container{ .message-container{
height: calc(100% - 26px); height: calc(100% - 26px);
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
ul li{ ul li{
list-style-type: none; list-style-type: none;
padding-left: 20px; padding-left: 20px;
} }
.result-list{ .result-list{
height: 100%; height: 100%;
width: 100%; width: 100%;
overflow: auto; overflow: auto;
} }
//成功信息区 //成功信息区
.result-list{ .result-list{
ul .success-item{ ul .success-item{
background: url("~@/assets/img/icon-success.svg") no-repeat 5px 5px; background: url("~@/assets/img/icon-success.svg") no-repeat 5px 5px;
background-size: 10px 10px; background-size: 10px 10px;
} }
} }
//错误信息区 //错误信息区
.result-list{ .result-list{
ul .error-item{ ul .error-item{
background: url("~@/assets/img/icon-error.svg") no-repeat 5px 5px; background: url("~@/assets/img/icon-error.svg") no-repeat 5px 5px;
background-size: 10px 10px; background-size: 10px 10px;
} }
} }
} }
} }
} }
// 下载模板区 // 下载模板区
.second-content{ .second-content{
padding: 16px 12px 0; padding: 16px 12px 0;
margin-bottom: 30px; margin-bottom: 30px;
.import-template-message{ .import-template-message{
font-size: 12px; font-size: 12px;
height: 17px; height: 17px;
color: #565656; color: #565656;
line-height: 17px; line-height: 17px;
} }
.import-template{ .import-template{
.icon-link{ .icon-link{
width: 12px; width: 12px;
margin-bottom: -1px; margin-bottom: -1px;
margin-right: 3px; margin-right: 3px;
} }
height: 17px; height: 17px;
font-size: 12px; font-size: 12px;
color: #57A3FD; color: #57A3FD;
line-height: 17px; line-height: 17px;
} }
} }
// 底部按钮 // 底部按钮
.button-container{ .button-container{
text-align: right; text-align: right;
margin: 15px; margin: 15px;
height: 28px; height: 28px;
.el-button{ .el-button{
margin: 0 0 0 8px; margin: 0 0 0 8px;
padding: 3px 15px; padding: 3px 15px;
font-size: 12px; font-size: 12px;
line-height: 20px; line-height: 20px;
} }
.primary-button{ .primary-button{
color: #FFFFFF; color: #FFFFFF;
background-color: #57A3FD; background-color: #57A3FD;
border-color: #57A3FD; border-color: #57A3FD;
&:hover{ &:hover{
background: #66b1ff; background: #66b1ff;
border-color: #66b1ff; border-color: #66b1ff;
} }
&:disabled{ &:disabled{
color: var(--button-font-color-light); color: var(--button-font-color-light);
border-color: var(--button-font-color-light); border-color: var(--button-font-color-light);
background-color: var(--button-background-color-light); background-color: var(--button-background-color-light);
} }
} }
} }
} }
//模态样式 //模态样式
.view-default.app-data-upload-modal{ .view-default.app-data-upload-modal{
.app-data-upload-view{ .app-data-upload-view{
width: 100%; width: 100%;
height: 100%; height: 100%;
padding: 0 20px 24px 20px; padding: 0 20px 24px 20px;
} }
.ivu-modal-content .ivu-modal-body{ .ivu-modal-content .ivu-modal-body{
height: calc(100% - 58px); height: calc(100% - 58px);
} }
// 模态标题 // 模态标题
.ivu-modal-header{ .ivu-modal-header{
padding: 16px; padding: 16px;
border: 0; border: 0;
.ivu-modal-header-inner{ .ivu-modal-header-inner{
color: #333333; color: #333333;
font-weight: 600; font-weight: 600;
height: 24px; height: 24px;
line-height: 24px; line-height: 24px;
} }
} }
// 关闭图标 // 关闭图标
.ivu-modal-close .ivu-icon-ios-close{ .ivu-modal-close .ivu-icon-ios-close{
color: #999999; color: #999999;
font-weight: 600; font-weight: 600;
} }
} }
\ No newline at end of file
...@@ -607,6 +607,6 @@ export default class AppDataUploadView extends Vue { ...@@ -607,6 +607,6 @@ export default class AppDataUploadView extends Vue {
} }
</script> </script>
<style lang="less"> <style lang="scss">
@import "./app-data-upload.less"; @import "./app-data-upload.scss";
</style> </style>
...@@ -431,6 +431,6 @@ export default class AppDepartmentPersonnel extends Vue { ...@@ -431,6 +431,6 @@ export default class AppDepartmentPersonnel extends Vue {
} }
</script> </script>
<style lang="less"> <style lang="scss">
@import './app-department-personnel.less'; @import './app-department-personnel.scss';
</style> </style>
\ No newline at end of file
...@@ -283,6 +283,6 @@ export default class AppDepartmentSelect extends Vue { ...@@ -283,6 +283,6 @@ export default class AppDepartmentSelect extends Vue {
} }
</script> </script>
<style lang='less'> <style lang='scss'>
@import './app-department-select.less'; @import './app-department-select.scss';
</style> </style>
\ No newline at end of file
...@@ -285,6 +285,6 @@ export default class AppEmbedPicker extends Vue { ...@@ -285,6 +285,6 @@ export default class AppEmbedPicker extends Vue {
} }
</script> </script>
<style lang='less'> <style lang='scss'>
@import './app-embed-picker.less'; @import './app-embed-picker.scss';
</style> </style>
\ No newline at end of file
...@@ -135,6 +135,6 @@ export default class AppExportExcel extends Vue { ...@@ -135,6 +135,6 @@ export default class AppExportExcel extends Vue {
} }
</script> </script>
<style lang='less'> <style lang='scss'>
@import './app-export-excel.less'; @import './app-export-excel.scss';
</style> </style>
...@@ -513,6 +513,6 @@ export default class AppFileUpload extends Vue { ...@@ -513,6 +513,6 @@ export default class AppFileUpload extends Vue {
} }
</script> </script>
<style lang='less'> <style lang='scss'>
@import './app-file-upload.less'; @import './app-file-upload.scss';
</style> </style>
\ No newline at end of file
...@@ -497,6 +497,6 @@ export default class AppFormDRUIPart extends Vue { ...@@ -497,6 +497,6 @@ export default class AppFormDRUIPart extends Vue {
} }
} }
</script> </script>
<style lang = "less"> <style lang="scss">
@import './app-form-druipart.less'; @import './app-form-druipart.scss';
</style> </style>
\ No newline at end of file
...@@ -351,6 +351,6 @@ export default class AppFormGroup extends Vue { ...@@ -351,6 +351,6 @@ export default class AppFormGroup extends Vue {
} }
} }
</script> </script>
<style lang='less'> <style lang='scss'>
@import './app-form-group.less'; @import './app-form-group.scss';
</style> </style>
\ No newline at end of file
...@@ -62,6 +62,6 @@ export default class AppFormGroup2 extends Vue { ...@@ -62,6 +62,6 @@ export default class AppFormGroup2 extends Vue {
} }
</script> </script>
<style lang="less"> <style lang="scss">
@import './app-form-group2.less'; @import './app-form-group2.scss';
</style> </style>
\ No newline at end of file
...@@ -288,6 +288,6 @@ export default class AppFormItem extends Vue { ...@@ -288,6 +288,6 @@ export default class AppFormItem extends Vue {
} }
</script> </script>
<style lang='less'> <style lang='scss'>
@import "./app-form-item.less"; @import "./app-form-item.scss";
</style> </style>
\ No newline at end of file
...@@ -211,6 +211,6 @@ export default class AppFormItem2 extends Vue { ...@@ -211,6 +211,6 @@ export default class AppFormItem2 extends Vue {
} }
} }
</script> </script>
<style lang="less"> <style lang="scss">
@import "./app-form-item2.less"; @import "./app-form-item2.scss";
</style> </style>
\ No newline at end of file
...@@ -239,6 +239,6 @@ export default class AppFormPart extends Vue { ...@@ -239,6 +239,6 @@ export default class AppFormPart extends Vue {
} }
</script> </script>
<style lang = "less"> <style lang="scss">
@import './app-form-part.less'; @import './app-form-part.scss';
</style> </style>
\ No newline at end of file
...@@ -28,6 +28,6 @@ export default class AppForm extends Vue { ...@@ -28,6 +28,6 @@ export default class AppForm extends Vue {
@Prop() public name?: string; @Prop() public name?: string;
} }
</script> </script>
<style lang = "less"> <style lang="scss">
@import './app-form.less'; @import './app-form.scss';
</style> </style>
\ No newline at end of file
...@@ -91,6 +91,6 @@ export default class AppFormatData extends Vue { ...@@ -91,6 +91,6 @@ export default class AppFormatData extends Vue {
} }
</script> </script>
<style lang="less"> <style lang="scss">
@import './app-format-data.less'; @import './app-format-data.scss';
</style> </style>
\ No newline at end of file
<template> <template>
<div class="fullscren"> <div class="fullscren">
<Icon :type="fullScren == true ? 'ios-contract' : 'ios-expand'" size="22" @click="handleScreen"/> <Icon :type="fullScren == true ? 'ios-contract' : 'ios-expand'" color="#aaa" size="22" @click="handleScreen"/>
</div> </div>
</template> </template>
<script lang = 'ts'> <script lang = 'ts'>
...@@ -82,7 +82,7 @@ export default class AppFullScren extends Vue{ ...@@ -82,7 +82,7 @@ export default class AppFullScren extends Vue{
} }
</script> </script>
<style lang='less'> <style lang='scss'>
.fullscren{ .fullscren{
cursor:pointer; cursor:pointer;
padding: 0 5px; padding: 0 5px;
......
...@@ -283,7 +283,7 @@ export default class AppGroupPicker extends Vue { ...@@ -283,7 +283,7 @@ export default class AppGroupPicker extends Vue {
} }
</script> </script>
<style lang="less"> <style lang="scss">
.ibiz-group-picker{ .ibiz-group-picker{
width: 100%; width: 100%;
height: 100%; height: 100%;
......
...@@ -327,6 +327,6 @@ export default class AppGroupSelect extends Vue { ...@@ -327,6 +327,6 @@ export default class AppGroupSelect extends Vue {
} }
</script> </script>
<style lang="less"> <style lang="scss">
@import './app-group-select.less'; @import './app-group-select.scss';
</style> </style>
\ No newline at end of file
...@@ -74,6 +74,6 @@ export default class AppQuickMenus extends Vue { ...@@ -74,6 +74,6 @@ export default class AppQuickMenus extends Vue {
} }
</script> </script>
<style lang='less'> <style lang='scss'>
@import "./app-icon-menus.less"; @import "./app-icon-menus.scss";
</style> </style>
\ No newline at end of file
...@@ -199,6 +199,6 @@ export default class AppImagePreview extends Vue { ...@@ -199,6 +199,6 @@ export default class AppImagePreview extends Vue {
} }
</script> </script>
<style lang = "less"> <style lang="scss">
@import './app-image-preview.less'; @import './app-image-preview.scss';
</style> </style>
\ No newline at end of file
...@@ -503,6 +503,6 @@ export default class AppImageUpload extends Vue { ...@@ -503,6 +503,6 @@ export default class AppImageUpload extends Vue {
} }
} }
</script> </script>
<style lang = "less"> <style lang="scss">
@import './app-image-upload.less'; @import './app-image-upload.scss';
</style> </style>
\ No newline at end of file
...@@ -184,6 +184,6 @@ export default class AppInputIp extends Vue { ...@@ -184,6 +184,6 @@ export default class AppInputIp extends Vue {
} }
</script> </script>
<style lang='less'> <style lang='scss'>
@import './app-input-ip.less'; @import './app-input-ip.scss';
</style> </style>
...@@ -177,7 +177,7 @@ export default { ...@@ -177,7 +177,7 @@ export default {
} }
</script> </script>
<style lang="less"> <style lang="scss">
</style> </style>
...@@ -67,6 +67,6 @@ export default class AppLang extends Vue { ...@@ -67,6 +67,6 @@ export default class AppLang extends Vue {
} }
</script> </script>
<style lang="less"> <style lang="scss">
@import './app-lang.less'; @import './app-lang.scss';
</style> </style>
\ No newline at end of file
.app-list-itemlayoutpanel{
padding: 0 0 0 20px;
// margin: 10px;
.srfmajortext{
font-size: 16px;
cursor: pointer;
}
.srfdescription{
margin-bottom: 10px;
}
.el-tag{
margin: 10px 6px 10px 0;
color: #000;
padding: 0 16px;
max-height: 24px;
line-height: 24px;
background-color: rgb(250, 250, 250)
}
.srfmajortext:hover{
color: #40a9ff;
}
.user-information{
display: flex;
.srficon{
width: 28px;
height: 28px;
margin-right: 6px;
>img{
width: 100%;
border-radius: 50%;
height: 100%;
}
}
}
.app-list-item-action{
margin-top:6px;
>a{
margin:0 20px 0 0 !important;
}
}
}
<template>
<div v-if="inputData" class="app-list-itemlayoutpanel">
<h4 class="srfmajortext">{{inputData.srfmajortext}}</h4>
<template v-for="(tagitem,index) of tagArr">
<el-tag v-if="tagArr" type="info" size="medium" :key="index">{{tagitem}}</el-tag>
</template>
<p class="srfdescription">{{inputData.srfdescription}}</p>
<div class="user-information">
<div class="srficon">
<img v-if="inputData.srficon" :src="inputData.srficon" />
<img v-else src="/assets/img/noimage.png" alt="">
</div>
<span class="srfdate">{{inputData.srfdate}}</span>
</div>
<div class="app-list-item-action" v-if="actionModel">
<template v-for="(action,index) in Object.keys(actionModel)">
<a :key="index" style="display: inline-block;margin: 0 12px;" @click="uiAction(inputData, action, $event)">
<i :class="actionModel[action].icon" style="margin-right:2px;"></i>
<span>{{actionModel[action].caption}}</span>
</a>
</template>
</div>
</div>
</template>
<script lang="ts">
import { Component, Vue, Prop, Model, Watch } from 'vue-property-decorator';
import { Subject,Subscription } from 'rxjs';
@Component({
})
export default class AppListItemlayoutpanel extends Vue {
/**
* 传递数据
*
* @type {any}
* @memberof AppListItemlayoutpanel
*/
@Prop() public inputData: any;
/**
* 操作栏模型
*
* @type {*}
* @memberof AppListItemlayoutpanel
*/
@Prop() public actionModel:any;
/**
* 处理数据
*
* @memberof AppListItemlayoutpanel
*/
public tagArr:Array<any>=[];
/**
* 操作列界面行为
*
* @param {*} data
* @param {*} tag
* @param {*} $event
* @memberof AppListItemlayoutpanel
*/
public uiAction(data: any, tag: any, $event: any) {
this.$emit('uiAction',data, tag, $event)
}
/**
* vue生命周期
*
* @memberof AppListItemlayoutpanel
*/
public created(){
if(this.inputData && this.inputData.srftag){
this.tagArr = this.inputData.srftag.split(',');
}
}
}
</script>
<style lang='scss'>
@import './app-list-itemlayoutpanel.scss';
</style>
\ No newline at end of file
<template> <template>
<div class="lockscren"> <div class="lockscren">
<span> <span>
<Icon type="md-lock" size="22" @click="handleLock"/> <Icon type="md-lock" size="22" color="#aaa" @click="handleLock"/>
<el-dialog :title="this.$t('components.lockScren.title')" <el-dialog :title="this.$t('components.lockScren.title')"
:visible.sync="box" :visible.sync="box"
width="30%" width="30%"
...@@ -91,7 +91,7 @@ export default class AppLockScren extends Vue{ ...@@ -91,7 +91,7 @@ export default class AppLockScren extends Vue{
} }
</script> </script>
<style lang='less'> <style lang='scss'>
.lockscren{ .lockscren{
cursor:pointer; cursor:pointer;
padding: 0 5px; padding: 0 5px;
......
...@@ -116,6 +116,6 @@ export default class AppLockIndex extends Vue{ ...@@ -116,6 +116,6 @@ export default class AppLockIndex extends Vue{
} }
</script> </script>
<style lang='less'> <style lang='scss'>
@import './app-lock.less'; @import './app-lock.scss';
</style> </style>
\ No newline at end of file
...@@ -464,6 +464,6 @@ export default class AppMapPosition extends Vue { ...@@ -464,6 +464,6 @@ export default class AppMapPosition extends Vue {
} }
</script> </script>
<style lang='less'> <style lang='scss'>
@import './app-map-position.less'; @import './app-map-position.scss';
</style> </style>
\ No newline at end of file
...@@ -19,6 +19,7 @@ ...@@ -19,6 +19,7 @@
font-size: 19px; font-size: 19px;
padding-top: 2px; padding-top: 2px;
padding-right: 2px; padding-right: 2px;
color: #aaa;
cursor: pointer; cursor: pointer;
} }
......
...@@ -224,6 +224,6 @@ export default class AppMessagePopover extends Vue { ...@@ -224,6 +224,6 @@ export default class AppMessagePopover extends Vue {
} }
</script> </script>
<style lang='less'> <style lang='scss'>
@import "app-message-popover.less"; @import "app-message-popover.scss";
</style> </style>
\ No newline at end of file
...@@ -386,6 +386,6 @@ export default class AppMpicker extends Vue { ...@@ -386,6 +386,6 @@ export default class AppMpicker extends Vue {
} }
</script> </script>
<style lang="less"> <style lang="scss">
@import './app-mpicker.less'; @import './app-mpicker.scss';
</style> </style>
\ No newline at end of file
...@@ -320,6 +320,6 @@ export default class AppOrgSelect extends Vue { ...@@ -320,6 +320,6 @@ export default class AppOrgSelect extends Vue {
} }
</script> </script>
<style lang="less"> <style lang="scss">
@import "./app-org-select.less"; @import "./app-org-select.scss";
</style> </style>
\ No newline at end of file
...@@ -151,6 +151,6 @@ export default class AppOrgSector extends Vue { ...@@ -151,6 +151,6 @@ export default class AppOrgSector extends Vue {
} }
</script> </script>
<style lang="less"> <style lang="scss">
@import "./app-orgsector.less"; @import "./app-orgsector.scss";
</style> </style>
\ No newline at end of file
...@@ -57,6 +57,6 @@ export default class AppPanelButton extends Vue { ...@@ -57,6 +57,6 @@ export default class AppPanelButton extends Vue {
} }
</script> </script>
<style lang='less'> <style lang='scss'>
</style> </style>
\ No newline at end of file
...@@ -201,6 +201,6 @@ export default class AppPanelField extends Vue { ...@@ -201,6 +201,6 @@ export default class AppPanelField extends Vue {
} }
} }
</script> </script>
<style lang='less'> <style lang='scss'>
@import "./app-panel-field.less"; @import "./app-panel-field.scss";
</style> </style>
\ No newline at end of file
此差异已折叠。
此差异已折叠。
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册