baseline: 小军 WMS 二开代码原始快照(含 SynOABusiness.cs Debugger.Break)
This commit is contained in:
commit
c2b0e7be0d
6522 files changed
+3530643
No files matched your search
@@ -0,0 +1,78 @@
|
||||
<template>
|
||||
<view :style="popupContainerStyleReactive">
|
||||
<opsoft-mask v-on="$listeners" v-bind="$attrs"/>
|
||||
<view class="opsoft-screen-popup" :style="popupStyleReactive" @tap.stop="popupScreenClick">
|
||||
<slot name="popupContent"/>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import {ref, computed} from "vue";
|
||||
export default {
|
||||
name: "opsoft-screen-popup",
|
||||
props: {
|
||||
popupStyle: { type: Object, default: () => ({})},
|
||||
popupContainerStyle: { type: Object, default: () => ({})},
|
||||
},
|
||||
watch: {
|
||||
popupStyle: {
|
||||
deep: true,
|
||||
handler: function (newValue, OldValue) {
|
||||
if (newValue) {
|
||||
let obj = new Object();
|
||||
Object.assign(obj, this.popupStyleReactive);
|
||||
Object.assign(obj, newValue);
|
||||
this.popupStyleReactive = obj;
|
||||
}
|
||||
}
|
||||
},
|
||||
popupContainerStyle: {
|
||||
deep: true,
|
||||
handler: function (newValue, OldValue) {
|
||||
if (newValue) {
|
||||
let obj = new Object();
|
||||
Object.assign(obj, this.popupContainerStyleReactive);
|
||||
Object.assign(obj, newValue);
|
||||
this.popupContainerStyleReactive = obj;
|
||||
}
|
||||
}
|
||||
},
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
popupStyleReactive: new Object(),
|
||||
popupContainerStyleReactive: new Object(),
|
||||
}
|
||||
},
|
||||
created() {
|
||||
if (this.popupStyle) {
|
||||
let obj = new Object();
|
||||
Object.assign(obj, this.popupStyleReactive);
|
||||
Object.assign(obj, this.popupStyle);
|
||||
this.popupStyleReactive = obj;
|
||||
}
|
||||
|
||||
if (this.popupContainerStyle) {
|
||||
let obj = new Object();
|
||||
Object.assign(obj, this.popupContainerStyleReactive);
|
||||
Object.assign(obj, this.popupContainerStyle);
|
||||
this.popupContainerStyleReactive = obj;
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
popupScreenClick: function(event){
|
||||
this.$emit("popupScreenClick", event)
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style>
|
||||
.opsoft-screen-popup{
|
||||
z-index: 999;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
}
|
||||
</style>
|
||||
Reference in new issue
Block a user