提交 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
...@@ -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
...@@ -586,6 +586,6 @@ export default class AppPickerSelectView extends Vue { ...@@ -586,6 +586,6 @@ export default class AppPickerSelectView extends Vue {
} }
</script> </script>
<style lang='less'> <style lang='scss'>
@import './app-picker-select-view.less'; @import './app-picker-select-view.scss';
</style> </style>
\ No newline at end of file
...@@ -872,6 +872,6 @@ export default class AppPicker extends Vue { ...@@ -872,6 +872,6 @@ export default class AppPicker extends Vue {
} }
</script> </script>
<style lang="less"> <style lang="scss">
@import './app-picker.less'; @import './app-picker.scss';
</style> </style>
\ No newline at end of file
...@@ -174,6 +174,6 @@ export default class AppPortalDesign extends Vue { ...@@ -174,6 +174,6 @@ export default class AppPortalDesign extends Vue {
} }
</script> </script>
<style lang='less'> <style lang='scss'>
@import "./app-portal-design.less"; @import "./app-portal-design.scss";
</style> </style>
\ No newline at end of file
...@@ -172,6 +172,6 @@ export default class AppQuickGroup extends Vue { ...@@ -172,6 +172,6 @@ export default class AppQuickGroup extends Vue {
} }
</script> </script>
<style lang='less'> <style lang='scss'>
@import "./app-quick-group.less"; @import "./app-quick-group.scss";
</style> </style>
\ No newline at end of file
...@@ -67,6 +67,6 @@ export default class AppQuickMenus extends Vue { ...@@ -67,6 +67,6 @@ export default class AppQuickMenus extends Vue {
} }
</script> </script>
<style lang='less'> <style lang='scss'>
@import "./app-quick-menus.less"; @import "./app-quick-menus.scss";
</style> </style>
\ No newline at end of file
<template>
<el-radio-group class="app-radio-button" v-model="value">
<el-radio-button v-for="(_item,index) in items" :key = "index" :label="_item.value" :disabled="isDisabled || _item.disabled">
<span>{{Object.is(codelistType,'STATIC') ? $t('codelist.'+tag+'.'+_item.value) : _item.text}}</span>
</el-radio-button>
</el-radio-group>
</template>
<script lang = 'ts'>
import { Component, Vue, Prop, Model,Watch } from 'vue-property-decorator';
import CodeListService from "@/codelist/codelist-service";
@Component({})
export default class AppRadioButton extends Vue {
/**
* 代码表服务对象
*
* @type {CodeListService}
* @memberof AppRadioButton
*/
public codeListService:CodeListService = new CodeListService({ $store: this.$store });
/**
* 双向绑定值
*
* @type {*}
* @memberof AppRadioButton
*/
@Model('change') item?: any;
/**
* 获取值
*
* @memberof AppRadioButton
*/
get value() {
return this.item;
}
/**
* 设置值
*
* @memberof AppRadioButton
*/
set value(val: any) {
this.$emit('change', val);
}
/**
* 代码表标识
*
* @type {string}
* @memberof AppRadioButton
*/
@Prop() public tag?: string;
/**
* 代码表类型
*
* @type {string}
* @memberof AppRadioButton
*/
@Prop() public codelistType?: string;
/**
* 传入表单数据
*
* @type {*}
* @memberof AppRadioButton
*/
@Prop() public data?: any;
/**
* 监听表单数据变化
*
* @memberof AppRadioButton
*/
@Watch('data',{immediate:true,deep:true})
onDataChange(newVal: any, oldVal: any) {
if(newVal){
if(this.tag && this.codelistType == 'DYNAMIC'){
// 公共参数处理
let data: any = {};
this.handlePublicParams(data);
// 参数处理
let _context = data.context;
let _param = data.param;
console.log("app-radio-group")
this.codeListService.getItems(this.tag,_context,_param).then((res:any) => {
this.items = res;
}).catch((error:any)=>{
console.log(`----${this.tag}----${(this.$t('app.commonWords.codeNotExist') as string)}`);
})
}
}
}
/**
* 是否禁用
*
* @type {boolean}
* @memberof AppRadioButton
*/
@Prop() public disabled?: boolean;
/**
* 局部上下文导航参数
*
* @type {any}
* @memberof AppRadioButton
*/
@Prop() public localContext!:any;
/**
* 局部导航参数
*
* @type {any}
* @memberof AppRadioButton
*/
@Prop() public localParam!:any;
/**
* 视图上下文
*
* @type {*}
* @memberof AppRadioButton
*/
@Prop() public context!: any;
/**
* 视图参数
*
* @type {*}
* @memberof AppRadioButton
*/
@Prop() public viewparams!: any;
/**
* 属性名称
*
* @type {string}
* @memberof AppRadioButton
*/
@Prop() name?: string;
/**
* 是否禁用
*
* @readonly
* @memberof AppRadioButton
*/
get isDisabled() {
if (this.disabled) {
return true;
} else {
return false;
}
}
/**
* 代码表
*
* @type {any[]}
* @memberof AppRadioButton
*/
public items: any[] = [];
/**
* 公共参数处理
*
* @param {*} arg
* @returns
* @memberof AppRadioButton
*/
public handlePublicParams(arg: any) {
// 合并表单参数
arg.param = this.viewparams ? JSON.parse(JSON.stringify(this.viewparams)) : {};
arg.context = this.context ? JSON.parse(JSON.stringify(this.context)) : {};
// 附加参数处理
if (this.localContext && Object.keys(this.localContext).length >0) {
let _context = this.$util.computedNavData(this.data,arg.context,arg.param,this.localContext);
Object.assign(arg.context,_context);
}
if (this.localParam && Object.keys(this.localParam).length >0) {
let _param = this.$util.computedNavData(this.data,arg.param,arg.param,this.localParam);
Object.assign(arg.param,_param);
}
}
/**
* vue 生命周期
*
* @memberof AppRadioButton
*/
public created() {
if(this.tag && this.codelistType == 'STATIC'){
this.items = this.$store.getters.getCodeListItems(this.tag);
}else if(this.tag && this.codelistType == 'DYNAMIC'){
// 公共参数处理
let data: any = {};
this.handlePublicParams(data);
// 参数处理
let _context = data.context;
let _param = data.param;
this.codeListService.getItems(this.tag,_context,_param).then((res:any) => {
this.items = res;
}).catch((error:any)=>{
console.log(`----${this.tag}----${(this.$t('app.commonWords.codeNotExist') as string)}`);
})
}
}
}
</script>
<style lang="scss">
.app-radio-button {
overflow: auto;
.el-radio-button__inner{
padding: 10px 14px;
}
}
</style>
\ No newline at end of file
...@@ -303,6 +303,6 @@ export default class AppRadioGroup extends Vue { ...@@ -303,6 +303,6 @@ export default class AppRadioGroup extends Vue {
} }
} }
</script> </script>
<style lang="less"> <style lang="scss">
@import './app-radio-group.less'; @import './app-radio-group.scss';
</style> </style>
\ No newline at end of file
...@@ -197,6 +197,6 @@ export default class AppRangDate extends Vue { ...@@ -197,6 +197,6 @@ export default class AppRangDate extends Vue {
} }
</script> </script>
<style lang='less'> <style lang='scss'>
@import "./app-range-date.less"; @import "./app-range-date.scss";
</style> </style>
\ No newline at end of file
...@@ -176,6 +176,6 @@ export default class AppRangeEditor extends Vue { ...@@ -176,6 +176,6 @@ export default class AppRangeEditor extends Vue {
} }
</script> </script>
<style lang='less'> <style lang='scss'>
@import './app-range-editor.less'; @import './app-range-editor.scss';
</style> </style>
\ No newline at end of file
...@@ -220,6 +220,6 @@ export default class AppRate extends Vue { ...@@ -220,6 +220,6 @@ export default class AppRate extends Vue {
} }
</script> </script>
<style lang="less"> <style lang="scss">
@import './app-rate.less'; @import './app-rate.scss';
</style> </style>
...@@ -94,6 +94,6 @@ export default class AppRawItem extends Vue { ...@@ -94,6 +94,6 @@ export default class AppRawItem extends Vue {
</script> </script>
<style lang='less'> <style lang='scss'>
</style> </style>
\ No newline at end of file
...@@ -432,5 +432,5 @@ export default class AppRichTextEditor extends Vue { ...@@ -432,5 +432,5 @@ export default class AppRichTextEditor extends Vue {
} }
} }
</script> </script>
<style lang="less"> <style lang="scss">
</style> </style>
\ No newline at end of file
...@@ -39,6 +39,6 @@ export default class AppSiderMenus extends Vue { ...@@ -39,6 +39,6 @@ export default class AppSiderMenus extends Vue {
} }
</script> </script>
<style lang='less'> <style lang='scss'>
@import "./app-sider-menus.less"; @import "./app-sider-menus.scss";
</style> </style>
\ No newline at end of file
...@@ -94,6 +94,6 @@ export default class AppSlider extends Vue { ...@@ -94,6 +94,6 @@ export default class AppSlider extends Vue {
} }
</script> </script>
<style lang='less'> <style lang='scss'>
@import "./app-slider.less"; @import "./app-slider.scss";
</style> </style>
\ No newline at end of file
...@@ -63,22 +63,22 @@ ...@@ -63,22 +63,22 @@
} }
} }
} }
.slide-in(@x-begin,@x-end,@c-begin,@c-end,@name){ @mixin slide-in($x-begin,$x-end,$c-begin,$c-end){
@keyframes @name{ @keyframes fadein{
from { from {
transform: translateX(@x-begin); transform: translateX($x-begin);
background-color: @c-begin; background-color: $c-begin;
} }
to { to {
transform: translateX(@x-end); transform: translateX($x-end);
background-color: @c-end; background-color: $c-end;
} }
} }
} }
.slide-in(1670px,0px,#fff,#EEF2F5,fadein); @include slide-in(1670px,0px,#fff,#EEF2F5);
.animation(@animation-name,@animation-duration,@animation-timing-function,@animation-delay,@play-state){ @mixin animation($animation-name,$animation-duration,$animation-timing-function,$animation-delay,$play-state){
animation: @arguments; animation:$animation-name $animation-duration $animation-timing-function $animation-delay $play-state;
}; };
.open-bar { .open-bar {
.animation(fadein,0.7s,linear,0s,forwards); @include animation(fadein,0.7s,linear,0s,forwards);
}; };
\ No newline at end of file
...@@ -60,6 +60,6 @@ export default class AppSortBar extends Vue { ...@@ -60,6 +60,6 @@ export default class AppSortBar extends Vue {
} }
</script> </script>
<style lang="less"> <style lang="scss">
@import './app-sort-bar.less'; @import './app-sort-bar.scss';
</style> </style>
\ No newline at end of file
...@@ -240,6 +240,6 @@ export default class AppSpan extends Vue { ...@@ -240,6 +240,6 @@ export default class AppSpan extends Vue {
} }
</script> </script>
<style lang='less'> <style lang='scss'>
@import './app-span.less'; @import './app-span.scss';
</style> </style>
\ No newline at end of file
...@@ -72,6 +72,6 @@ export default class AppStepper extends Vue { ...@@ -72,6 +72,6 @@ export default class AppStepper extends Vue {
} }
</script> </script>
<style lang='less'> <style lang='scss'>
@import "./app-stepper.less"; @import "./app-stepper.scss";
</style> </style>
\ No newline at end of file
...@@ -37,6 +37,6 @@ export default class AppSwitch extends Vue { ...@@ -37,6 +37,6 @@ export default class AppSwitch extends Vue {
} }
</script> </script>
<style lang='less'> <style lang='scss'>
@import './app-switch.less'; @import './app-switch.scss';
</style> </style>
\ No newline at end of file
...@@ -5,7 +5,9 @@ ...@@ -5,7 +5,9 @@
popper-class='app-app-theme' popper-class='app-app-theme'
placement='bottom-end' placement='bottom-end'
:width="Object.is($i18n.locale, 'zh-CN') ? 180 : 250"> :width="Object.is($i18n.locale, 'zh-CN') ? 180 : 250">
<a>
<icon class='app-theme-icon' type='md-settings' :size="22" /> <icon class='app-theme-icon' type='md-settings' :size="22" />
</a>
<template slot='content'> <template slot='content'>
<div class='app-theme-color'> <div class='app-theme-color'>
<template v-for="(theme, index) in defaultThemes"> <template v-for="(theme, index) in defaultThemes">
...@@ -139,6 +141,6 @@ export default class AppTheme extends Vue { ...@@ -139,6 +141,6 @@ export default class AppTheme extends Vue {
} }
</script> </script>
<style lang="less"> <style lang="scss">
@import './app-theme.less'; @import './app-theme.scss';
</style> </style>
\ No newline at end of file
...@@ -187,6 +187,6 @@ export default class AppTodoList extends Vue { ...@@ -187,6 +187,6 @@ export default class AppTodoList extends Vue {
} }
</script> </script>
<style lang="less"> <style lang="scss">
@import './app-todo-list.less'; @import './app-todo-list.scss';
</style> </style>
\ No newline at end of file
...@@ -301,6 +301,6 @@ export default class AppTransfer extends Vue { ...@@ -301,6 +301,6 @@ export default class AppTransfer extends Vue {
} }
</script> </script>
<style lang='less'> <style lang='scss'>
@import "./app-transfer.less"; @import "./app-transfer.scss";
</style> </style>
\ No newline at end of file
...@@ -330,6 +330,6 @@ export default class AppTreePicker extends Vue { ...@@ -330,6 +330,6 @@ export default class AppTreePicker extends Vue {
} }
</script> </script>
<style lang='less'> <style lang='scss'>
@import './app-tree-picker.less'; @import './app-tree-picker.scss';
</style> </style>
\ No newline at end of file
...@@ -145,6 +145,6 @@ export default class AppUpdatePassword extends Vue { ...@@ -145,6 +145,6 @@ export default class AppUpdatePassword extends Vue {
} }
</script> </script>
<style lang="less"> <style lang="scss">
@import './app-update-password.less'; @import './app-update-password.scss';
</style> </style>
\ No newline at end of file
...@@ -378,6 +378,6 @@ export default class AppUpicker extends Vue { ...@@ -378,6 +378,6 @@ export default class AppUpicker extends Vue {
} }
} }
</script> </script>
<style lang="less"> <style lang="scss">
@import './app-upicker.less'; @import './app-upicker.scss';
</style> </style>
...@@ -107,6 +107,6 @@ export default class AppUploadFileInfo extends Vue { ...@@ -107,6 +107,6 @@ export default class AppUploadFileInfo extends Vue {
} }
</script> </script>
<style lang='less'> <style lang='scss'>
@import './app-upload-file-info.less'; @import './app-upload-file-info.scss';
</style> </style>
\ No newline at end of file
...@@ -109,6 +109,6 @@ export default class AppUser extends Vue { ...@@ -109,6 +109,6 @@ export default class AppUser extends Vue {
} }
</script> </script>
<style lang="less"> <style lang="scss">
@import './app-user.less'; @import './app-user.scss';
</style> </style>
\ No newline at end of file
...@@ -198,7 +198,7 @@ export default class AppVuePivotTable extends Vue { ...@@ -198,7 +198,7 @@ export default class AppVuePivotTable extends Vue {
} }
</script> </script>
<style lang="less"> <style lang="scss">
.app-vue-pivottable { .app-vue-pivottable {
height: calc(100% - 1px); height: calc(100% - 1px);
.pvtTable { .pvtTable {
......
...@@ -116,6 +116,6 @@ export default class AppWFApproval extends Vue { ...@@ -116,6 +116,6 @@ export default class AppWFApproval extends Vue {
} }
</script> </script>
<style lang="less"> <style lang="scss">
@import './app-wf-approval.less'; @import './app-wf-approval.scss';
</style> </style>
\ No newline at end of file
...@@ -334,7 +334,7 @@ export default class CodeList extends Vue { ...@@ -334,7 +334,7 @@ export default class CodeList extends Vue {
} }
</script> </script>
<style lang='less'> <style lang='scss'>
.codelist { .codelist {
display: flex; display: flex;
white-space: nowrap; white-space: nowrap;
......
...@@ -49,6 +49,6 @@ export default class ContextMenuContainer extends Vue { ...@@ -49,6 +49,6 @@ export default class ContextMenuContainer extends Vue {
} }
</script> </script>
<style lang='less'> <style lang='scss'>
</style> </style>
...@@ -305,6 +305,6 @@ export default class ContextMenuDrag extends Vue { ...@@ -305,6 +305,6 @@ export default class ContextMenuDrag extends Vue {
} }
</script> </script>
<style lang='less'> <style lang='scss'>
@import './context-menu-drag.less'; @import './context-menu-drag.scss';
</style> </style>
...@@ -48,7 +48,7 @@ class ContextMenuService { ...@@ -48,7 +48,7 @@ class ContextMenuService {
const service = new ContextMenuService(); const service = new ContextMenuService();
import { Vue, Component, Provide, Prop, Emit } from 'vue-property-decorator'; import { Vue, Component, Provide, Prop, Emit } from 'vue-property-decorator';
import './context-menu.less'; import './context-menu.scss';
@Component({}) @Component({})
export default class ContextMenu extends Vue { export default class ContextMenu extends Vue {
......
...@@ -70,7 +70,7 @@ export default class CronEditor extends Vue { ...@@ -70,7 +70,7 @@ export default class CronEditor extends Vue {
</script> </script>
<style lang="less"> <style lang="scss">
.transfer-select{ .transfer-select{
.ivu-select-dropdown { .ivu-select-dropdown {
padding: 0px; padding: 0px;
......
...@@ -247,7 +247,7 @@ export default class VueCron extends Vue { ...@@ -247,7 +247,7 @@ export default class VueCron extends Vue {
</script> </script>
<style lang="less"> <style lang="scss">
.cron { .cron {
text-align: left; text-align: left;
padding: 10px; padding: 10px;
......
...@@ -92,6 +92,6 @@ export default class DateRange extends Vue { ...@@ -92,6 +92,6 @@ export default class DateRange extends Vue {
} }
</script> </script>
<style lang = "less"> <style lang="scss">
@import "./date-picker-range.less"; @import "./date-picker-range.scss";
</style> </style>
\ No newline at end of file
...@@ -631,7 +631,7 @@ ...@@ -631,7 +631,7 @@
} }
} }
</script> </script>
<style lang="less"> <style lang="scss">
#file-upload { #file-upload {
width: auto; width: auto;
height: auto; height: auto;
......
...@@ -694,7 +694,7 @@ ...@@ -694,7 +694,7 @@
} }
</script> </script>
<style lang="less"> <style lang="scss">
.dialogDiv { .dialogDiv {
// el-dialog头部 // el-dialog头部
.el-dialog__header { .el-dialog__header {
......
...@@ -290,6 +290,6 @@ export default class DropDownListDynamic extends Vue { ...@@ -290,6 +290,6 @@ export default class DropDownListDynamic extends Vue {
} }
</script> </script>
<style lang='less'> <style lang='scss'>
@import './dropdown-list-dynamic.less'; @import './dropdown-list-dynamic.scss';
</style> </style>
\ No newline at end of file
...@@ -474,6 +474,6 @@ export default class DropDownList extends Vue { ...@@ -474,6 +474,6 @@ export default class DropDownList extends Vue {
} }
</script> </script>
<style lang='less'> <style lang='scss'>
@import './dropdown-list-hidden.less'; @import './dropdown-list-hidden.scss';
</style> </style>
\ No newline at end of file
...@@ -332,6 +332,6 @@ export default class DropDownListMpicker extends Vue { ...@@ -332,6 +332,6 @@ export default class DropDownListMpicker extends Vue {
} }
</script> </script>
<style lang='less'> <style lang='scss'>
@import './dropdown-list-mpicker.less'; @import './dropdown-list-mpicker.scss';
</style> </style>
\ No newline at end of file
...@@ -472,6 +472,6 @@ export default class DropDownList extends Vue { ...@@ -472,6 +472,6 @@ export default class DropDownList extends Vue {
} }
</script> </script>
<style lang='less'> <style lang='scss'>
@import './dropdown-list.less'; @import './dropdown-list.scss';
</style> </style>
\ No newline at end of file
...@@ -247,6 +247,6 @@ export default class ExtendActionTimeline extends Vue { ...@@ -247,6 +247,6 @@ export default class ExtendActionTimeline extends Vue {
} }
</script> </script>
<style lang='less'> <style lang='scss'>
@import './extend-action-timeline.less'; @import './extend-action-timeline.scss';
</style> </style>
\ No newline at end of file
...@@ -236,6 +236,6 @@ export default class FilterTree extends Vue { ...@@ -236,6 +236,6 @@ export default class FilterTree extends Vue {
} }
</script> </script>
<style lang="less"> <style lang="scss">
@import './filter-tree.less'; @import './filter-tree.scss';
</style> </style>
\ No newline at end of file
...@@ -220,6 +220,6 @@ export default class InputBox extends Vue { ...@@ -220,6 +220,6 @@ export default class InputBox extends Vue {
} }
</script> </script>
<style lang='less'> <style lang='scss'>
@import "./input-box.less"; @import "./input-box.scss";
</style> </style>
\ No newline at end of file
...@@ -86,6 +86,6 @@ export default class AppIndexNavBreadcrumb extends Vue { ...@@ -86,6 +86,6 @@ export default class AppIndexNavBreadcrumb extends Vue {
} }
</script> </script>
<style lang='less'> <style lang='scss'>
@import './app-index-nav-breadcrumb.less'; @import './app-index-nav-breadcrumb.scss';
</style> </style>
\ No newline at end of file
...@@ -69,6 +69,6 @@ export default class AppIndexNavTabs extends Vue { ...@@ -69,6 +69,6 @@ export default class AppIndexNavTabs extends Vue {
} }
</script> </script>
<style lang='less'> <style lang='scss'>
@import './app-index-nav-tabs.less'; @import './app-index-nav-tabs.scss';
</style> </style>
\ No newline at end of file
...@@ -69,6 +69,6 @@ export default class AppIndexOrgSelect extends Vue { ...@@ -69,6 +69,6 @@ export default class AppIndexOrgSelect extends Vue {
} }
</script> </script>
<style lang='less'> <style lang='scss'>
@import './app-index-org-select.less'; @import './app-index-org-select.scss';
</style> </style>
\ No newline at end of file
...@@ -69,6 +69,6 @@ export default class AppIndexUserInfo extends Vue { ...@@ -69,6 +69,6 @@ export default class AppIndexUserInfo extends Vue {
} }
</script> </script>
<style lang='less'> <style lang='scss'>
@import './app-index-user-info.less'; @import './app-index-user-info.scss';
</style> </style>
\ No newline at end of file
...@@ -233,6 +233,6 @@ export default class AppPresetButton extends Vue { ...@@ -233,6 +233,6 @@ export default class AppPresetButton extends Vue {
} }
} }
</script> </script>
<style lang='less'> <style lang='scss'>
@import './app-preset-button.less'; @import './app-preset-button.scss';
</style> </style>
\ No newline at end of file
...@@ -167,6 +167,6 @@ export default class AppPresetQrCode extends Vue { ...@@ -167,6 +167,6 @@ export default class AppPresetQrCode extends Vue {
} }
</script> </script>
<style lang='less'> <style lang='scss'>
@import './app-preset-qrcode.less'; @import './app-preset-qrcode.scss';
</style> </style>
\ No newline at end of file
...@@ -107,6 +107,6 @@ export default class AppPresetSwitch extends Vue { ...@@ -107,6 +107,6 @@ export default class AppPresetSwitch extends Vue {
} }
</script> </script>
<style lang='less'> <style lang='scss'>
@import './app-preset-switch.less'; @import './app-preset-switch.scss';
</style> </style>
\ No newline at end of file
...@@ -120,6 +120,6 @@ export default class AppPresetTextInput extends Vue { ...@@ -120,6 +120,6 @@ export default class AppPresetTextInput extends Vue {
} }
</script> </script>
<style lang='less'> <style lang='scss'>
@import './app-preset-text-input.less'; @import './app-preset-text-input.scss';
</style> </style>
\ No newline at end of file
...@@ -237,6 +237,6 @@ export default class AppLoginButton extends Vue { ...@@ -237,6 +237,6 @@ export default class AppLoginButton extends Vue {
} }
</script> </script>
<style lang="less"> <style lang="scss">
@import "./app-login-button.less"; @import "./app-login-button.scss";
</style> </style>
...@@ -131,7 +131,7 @@ export default class AppLoginCaptcha extends Vue { ...@@ -131,7 +131,7 @@ export default class AppLoginCaptcha extends Vue {
} }
</script> </script>
<style lang="less"> <style lang="scss">
.app-login-captcha { .app-login-captcha {
height: 40px; height: 40px;
width: 100%; width: 100%;
......
...@@ -573,6 +573,6 @@ export default { ...@@ -573,6 +573,6 @@ export default {
} }
}; };
</script> </script>
<style lang="less"> <style lang="scss">
@import './vue-puzzle-code.less'; @import './vue-puzzle-code.scss';
</style> </style>
...@@ -152,6 +152,6 @@ export default class AppLoginInput extends Vue { ...@@ -152,6 +152,6 @@ export default class AppLoginInput extends Vue {
} }
</script> </script>
<style lang="less"> <style lang="scss">
@import "./app-login-input.less"; @import "./app-login-input.scss";
</style> </style>
\ No newline at end of file
...@@ -79,6 +79,6 @@ export default class AppLoginMessage extends Vue { ...@@ -79,6 +79,6 @@ export default class AppLoginMessage extends Vue {
} }
</script> </script>
<style lang='less'> <style lang='scss'>
@import "./app-login-message.less"; @import "./app-login-message.scss";
</style> </style>
\ No newline at end of file
...@@ -193,6 +193,6 @@ export default class AppLoginNoteVerify extends Vue { ...@@ -193,6 +193,6 @@ export default class AppLoginNoteVerify extends Vue {
} }
</script> </script>
<style lang="less"> <style lang="scss">
@import "./app-login-note-verify.less"; @import "./app-login-note-verify.scss";
</style> </style>
...@@ -129,6 +129,6 @@ export default class AppLoginOrg extends Vue { ...@@ -129,6 +129,6 @@ export default class AppLoginOrg extends Vue {
} }
} }
</script> </script>
<style lang="less"> <style lang="scss">
@import './app-login-org.less'; @import './app-login-org.scss';
</style> </style>
\ No newline at end of file
...@@ -123,6 +123,6 @@ export default class AppThirdLogin extends Vue { ...@@ -123,6 +123,6 @@ export default class AppThirdLogin extends Vue {
} }
</script> </script>
<style lang="less"> <style lang="scss">
@import "./app-login-third.less"; @import "./app-login-third.scss";
</style> </style>
...@@ -127,6 +127,6 @@ export default class AppFieldImageDynamic extends Vue { ...@@ -127,6 +127,6 @@ export default class AppFieldImageDynamic extends Vue {
} }
} }
</script> </script>
<style lang = "less"> <style lang="scss">
@import './app-field-image-dynamic.less'; @import './app-field-image-dynamic.scss';
</style> </style>
\ No newline at end of file
...@@ -229,6 +229,6 @@ export default class AppCarousel extends Vue { ...@@ -229,6 +229,6 @@ export default class AppCarousel extends Vue {
} }
</script> </script>
<style lang='less'> <style lang='scss'>
@import './app-rawitem-carousel.less'; @import './app-rawitem-carousel.scss';
</style> </style>
\ No newline at end of file
...@@ -84,6 +84,6 @@ export default class AppRawItemImage extends Vue { ...@@ -84,6 +84,6 @@ export default class AppRawItemImage extends Vue {
} }
</script> </script>
<style lang = "less"> <style lang="scss">
@import './app-rawitem-image.less'; @import './app-rawitem-image.scss';
</style> </style>
\ No newline at end of file
...@@ -136,6 +136,6 @@ export default class AppRawItemVideo extends Vue { ...@@ -136,6 +136,6 @@ export default class AppRawItemVideo extends Vue {
} }
</script> </script>
<style lang='less'> <style lang='scss'>
@import "./app-rawitem-video.less"; @import "./app-rawitem-video.scss";
</style> </style>
...@@ -69,6 +69,6 @@ export default class AppCtrlPos extends Vue { ...@@ -69,6 +69,6 @@ export default class AppCtrlPos extends Vue {
} }
</script> </script>
<style lang='less'> <style lang='scss'>
@import './app-ctrl-pos.less'; @import './app-ctrl-pos.scss';
</style> </style>
\ No newline at end of file
...@@ -154,6 +154,6 @@ export default class AppNavPos extends Vue { ...@@ -154,6 +154,6 @@ export default class AppNavPos extends Vue {
} }
</script> </script>
<style lang='less'> <style lang='scss'>
@import './app-nav-pos.less'; @import './app-nav-pos.scss';
</style> </style>
\ No newline at end of file
...@@ -192,6 +192,6 @@ export default class AppScrollContainer extends Vue { ...@@ -192,6 +192,6 @@ export default class AppScrollContainer extends Vue {
} }
} }
</script> </script>
<style lang='less'> <style lang='scss'>
@import 'app-scroll-container.less'; @import 'app-scroll-container.scss';
</style> </style>
\ No newline at end of file
...@@ -117,6 +117,6 @@ export default class AppSimpleFlexContainer extends Vue { ...@@ -117,6 +117,6 @@ export default class AppSimpleFlexContainer extends Vue {
} }
</script> </script>
<style lang='less'> <style lang='scss'>
@import 'app-simpleflex-container.less'; @import 'app-simpleflex-container.scss';
</style> </style>
\ No newline at end of file
...@@ -148,6 +148,6 @@ export default class AppStandardContainer extends Vue { ...@@ -148,6 +148,6 @@ export default class AppStandardContainer extends Vue {
} }
} }
</script> </script>
<style lang='less'> <style lang='scss'>
@import 'app-standard-container.less'; @import 'app-standard-container.scss';
</style> </style>
\ No newline at end of file
...@@ -114,6 +114,6 @@ export default class AppTabPage extends Vue { ...@@ -114,6 +114,6 @@ export default class AppTabPage extends Vue {
} }
</script> </script>
<style lang='less'> <style lang='scss'>
@import './app-tab-page.less'; @import './app-tab-page.scss';
</style> </style>
\ No newline at end of file
...@@ -124,6 +124,6 @@ export default class AppTabPanel extends Vue { ...@@ -124,6 +124,6 @@ export default class AppTabPanel extends Vue {
} }
} }
</script> </script>
<style lang='less'> <style lang='scss'>
@import './app-tab-panel.less'; @import './app-tab-panel.scss';
</style> </style>
\ No newline at end of file
...@@ -121,6 +121,6 @@ export default class AppPresetCaption extends Vue { ...@@ -121,6 +121,6 @@ export default class AppPresetCaption extends Vue {
} }
</script> </script>
<style lang='less'> <style lang='scss'>
@import "./app-preset-caption.less"; @import "./app-preset-caption.scss";
</style> </style>
\ No newline at end of file
...@@ -225,6 +225,6 @@ export default class AppPresetText extends Vue { ...@@ -225,6 +225,6 @@ export default class AppPresetText extends Vue {
} }
} }
</script> </script>
<style lang="less"> <style lang="scss">
@import './app-preset-text.less'; @import './app-preset-text.scss';
</style> </style>
\ No newline at end of file
...@@ -84,6 +84,6 @@ export default class AppPresetTitle extends Vue { ...@@ -84,6 +84,6 @@ export default class AppPresetTitle extends Vue {
} }
</script> </script>
<style lang='less'> <style lang='scss'>
@import './app-preset-title.less'; @import './app-preset-title.scss';
</style> </style>
\ No newline at end of file
...@@ -242,6 +242,6 @@ export default class Login extends Vue { ...@@ -242,6 +242,6 @@ export default class Login extends Vue {
} }
</script> </script>
<style lang='less'> <style lang='scss'>
@import './login.less'; @import './login.scss';
</style> </style>
\ No newline at end of file
import { Vue, Component, Prop } from 'vue-property-decorator'; import { Vue, Component, Prop } from 'vue-property-decorator';
import './menu-icon.less'; import './menu-icon.scss';
/** /**
* 平台菜单按钮适配 * 平台菜单按钮适配
......
...@@ -43,6 +43,6 @@ export default class PropertyLayout extends Vue { ...@@ -43,6 +43,6 @@ export default class PropertyLayout extends Vue {
} }
</script> </script>
<style lang='less'> <style lang='scss'>
@import './property-layout.less'; @import './property-layout.scss';
</style> </style>
\ No newline at end of file
...@@ -311,6 +311,6 @@ export default class TabPageExp extends Vue { ...@@ -311,6 +311,6 @@ export default class TabPageExp extends Vue {
} }
</script> </script>
<style lang="less"> <style lang="scss">
@import "./tab-page-exp.less"; @import "./tab-page-exp.scss";
</style> </style>
...@@ -170,6 +170,6 @@ export default class UploadFile extends Vue { ...@@ -170,6 +170,6 @@ export default class UploadFile extends Vue {
} }
</script> </script>
<style lang='less'> <style lang='scss'>
@import './upload-file.less'; @import './upload-file.scss';
</style> </style>
\ No newline at end of file
.index-view-layout-left {
.header-right {
display: flex;
align-items: center;
justify-content: space-between;
}
.index_sider {
background-color:#FFF;
}
}
\ No newline at end of file
<template>
<layout class="index_view index-view-layout-left" id="movebox">
<sider class="index_sider" :width="collapseChange ? 64 : 200" hide-trigger id="left_move">
<div class="sider-top">
<slot name="siderTop" />
</div>
<slot name="siderContent" />
</sider>
<div v-show="!collapseChange" id="move_axis"></div>
<layout id="right_move">
<header class="index_header">
<div class="header-left">
<slot name="headerLeft" />
</div>
<div class="header-center">
<slot name="headerCenter" />
</div>
<div class="header-right">
<slot name="headerRight" />
</div>
</header>
<content :class="{ 'index_content': true, 'index_tab_content': Object.is(navModel,'tab') ? true : false, 'index_route_content': Object.is(navModel,'route') ? true : false }">
<slot name="tabPageExp" />
<slot name="navPos" />
</content>
</layout>
</layout>
</template>
<script lang="ts">
import { Vue, Component, Watch, Prop } from 'vue-property-decorator';
@Component({})
export default class AppIndexViewLayoutLeft extends Vue {
/**
* 导航模式
*
* @memberof AppIndexViewLayoutLeft
*/
@Prop({ default: 'tab' })
public navModel!: string;
/**
* 是否折叠
*
* @memberof AppIndexViewLayoutLeft
*/
@Prop({ default: false })
public collapseChange!: boolean;
}
</script>
<style lang="less">
@import "./index-view-layout-left.less";
</style>
.index-view-layout--top {
.index-view-layout-header {
height: 64px;
display: flex;
justify-content: space-between;
align-items: center;
background-color: var(--app-color-black);
color: var(--app-color-gray-white);
.header__left {
font-size: 21px;
font-weight: 700;
margin-left: 50px;
.app-icon {
width: 36px;
height: 37px;
margin-right: 6px;
}
}
.header__right {
display: flex;
align-items: center;
}
}
.index-view-layout-content {
height: calc(100% - 64px);
overflow: auto;
padding: 20px 38px 0 38px;
background-color: var(--app-color-gray-gray-400);
}
}
\ No newline at end of file
<template>
<layout class="index-view-layout index-view-layout--top">
<header class="index-view-layout-header">
<div class="header__left">
<slot name="headerLeft" />
</div>
<div class="header__center">
<slot name="headerCenter" />
</div>
<div class="header__right">
<slot name="headerRight" />
</div>
</header>
<content class="index-view-layout-content">
<slot name="navPos" />
</content>
<footer class="layout-footer-center">
<slot name="footer"></slot>
</footer>
</layout>
</template>
<script lang="ts">
import { Vue, Component } from 'vue-property-decorator';
@Component({})
export default class AppIndexViewLayoutTop extends Vue {
}
</script>
<style lang="less">
@import "./index-view-layout-top.less";
</style>
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册