web-component-gallery 2.2.10 → 2.2.12
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.
|
@@ -187,12 +187,11 @@ async function updateTheme(theme) {
|
|
|
187
187
|
}
|
|
188
188
|
|
|
189
189
|
// 应用LESS变量更新
|
|
190
|
-
await less.modifyVars({
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
})
|
|
194
|
-
|
|
195
|
-
console.log("换肤成功")
|
|
190
|
+
// await less.modifyVars({
|
|
191
|
+
// ...themeVariables,
|
|
192
|
+
// ...updateVariables.less
|
|
193
|
+
// })
|
|
194
|
+
// console.log("换肤成功")
|
|
196
195
|
|
|
197
196
|
if (!Object.keys(updateVariables.css).length) return
|
|
198
197
|
|
|
@@ -76,14 +76,13 @@ const DescriptionsList = {
|
|
|
76
76
|
|
|
77
77
|
},
|
|
78
78
|
mounted() {
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
})
|
|
79
|
+
setTimeout(this.setDescContentWidth, 0)
|
|
80
|
+
this.$bus.$onWindow(this, 'resize', this.setDescContentWidth)
|
|
82
81
|
},
|
|
83
82
|
methods: {
|
|
84
83
|
setDescContentWidth() {
|
|
85
84
|
const elementG = this.$refs.Descriptions.querySelectorAll('.ant-descriptions-item-content')
|
|
86
|
-
const width = document.querySelector('.ant-descriptions-
|
|
85
|
+
const width = document.querySelector('.ant-descriptions-view').offsetWidth
|
|
87
86
|
const labelWidth = document.querySelector('.ant-descriptions-item-label').offsetWidth
|
|
88
87
|
const { column, descSettings } = this
|
|
89
88
|
for (let i = 0; i < elementG.length; i++) {
|
package/lib/table/index.vue
CHANGED
|
@@ -160,16 +160,12 @@ export default {
|
|
|
160
160
|
this.pagination = { ...this.pagination, ...this.paginationParams }
|
|
161
161
|
// 监听父级高度
|
|
162
162
|
this.initResizeObserver()
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
clearTimeout(scrollTimer)
|
|
166
|
-
}, 300)
|
|
167
|
-
this.$bus.$onWindow(this, 'resize', () => this.getScrollBodyH())
|
|
163
|
+
setTimeout(this.getScrollBodyH, 300)
|
|
164
|
+
this.$bus.$onWindow(this, 'resize', this.getScrollBodyH)
|
|
168
165
|
this.removeDomElement()
|
|
169
166
|
},
|
|
170
167
|
destroyed() {
|
|
171
168
|
if (this.resizeObserver) this.resizeObserver.disconnect()
|
|
172
|
-
window.removeEventListener('resize', this.getScrollBodyH)
|
|
173
169
|
},
|
|
174
170
|
methods: {
|
|
175
171
|
// 初始化尺寸观察器
|