doway-coms 2.10.87 → 2.10.89
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -173,7 +173,16 @@ export default {
|
|
|
173
173
|
};
|
|
174
174
|
</script>
|
|
175
175
|
|
|
176
|
-
<style lang="scss" scoped
|
|
176
|
+
<style lang="scss" scoped>
|
|
177
|
+
.d-control {
|
|
178
|
+
flex:1;
|
|
179
|
+
width: 100%;
|
|
180
|
+
height: 100px;
|
|
181
|
+
overflow: hidden;
|
|
182
|
+
white-space: nowrap;
|
|
183
|
+
text-overflow: ellipsis;
|
|
184
|
+
}
|
|
185
|
+
</style>
|
|
177
186
|
<style lang="less">
|
|
178
187
|
@import "../../styles/default.less";
|
|
179
188
|
</style>
|
package/packages/utils/msg.js
CHANGED
|
@@ -82,4 +82,21 @@ export function successMsg(msg, desc){
|
|
|
82
82
|
export function closeMsg(key){
|
|
83
83
|
notification.close(key)
|
|
84
84
|
}
|
|
85
|
-
export const confirmMsg = Modal.confirm
|
|
85
|
+
export const confirmMsg = Modal.confirm
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
export function confirm(title,content) {
|
|
90
|
+
return new Promise((resolve, reject) => {
|
|
91
|
+
confirmMsg({
|
|
92
|
+
title: title,
|
|
93
|
+
content: content,
|
|
94
|
+
onOk() {
|
|
95
|
+
resolve(true)
|
|
96
|
+
},
|
|
97
|
+
onCancel() {
|
|
98
|
+
resolve(false)
|
|
99
|
+
}
|
|
100
|
+
})
|
|
101
|
+
})
|
|
102
|
+
}
|