Skip to content

Commit

Permalink
build v3.4.5
Browse files Browse the repository at this point in the history
  • Loading branch information
smallweis committed Jun 12, 2024
1 parent 2ef6148 commit 6b422a0
Show file tree
Hide file tree
Showing 8 changed files with 34 additions and 21 deletions.
12 changes: 6 additions & 6 deletions lib/avue.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions lib/avue.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@smallwei/avue",
"version": "3.4.4",
"version": "3.4.5",
"description": "A Magic Configurable Web Framework",
"main": "lib/avue.min.js",
"unpkg": "lib/avue.min.js",
Expand Down
2 changes: 1 addition & 1 deletion packages/core/components/form/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ export default {
},
getPlaceholder,
getBind (column) {
let params = { ...column, ...params, ...this.$uploadFun(column) };
let params = { ...column, ...this.params, ...this.$uploadFun(column) };
['value', 'className'].forEach(ele => {
delete params[ele]
})
Expand Down
2 changes: 1 addition & 1 deletion packages/element-ui/crud/column/column-dynamic.vue
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
:filters="getColumnProp(columnOption,'filters')"
:filter-method="getColumnProp(columnOption,'filterMethod')?handleFilterMethod:undefined"
:filter-multiple="validData(columnOption.filterMultiple,true)"
:show-overflow-tooltip="columnOption.overHidden"
:show-overflow-tooltip="columnOption.showOverflowTooltip || columnOption.overHidden"
:min-width="columnOption.minWidth"
:sortable="getColumnProp(columnOption,'sortable')"
:render-header="columnOption.renderHeader"
Expand Down
15 changes: 8 additions & 7 deletions packages/element-ui/crud/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -517,8 +517,8 @@ export default create({
}
},
getTableHeight () {
if (this.isAutoHeight) {
this.$nextTick(() => {
this.$nextTick(() => {
if (this.isAutoHeight) {
const clientHeight = document.documentElement.clientHeight;
const calcHeight = this.calcHeight || 0;
const tableRef = this.$refs.table;
Expand All @@ -533,11 +533,12 @@ export default create({
tableHeight -= height;
}
this.tableHeight = tableHeight;
});
} else {
this.tableHeight = this.tableOption.height;
}
this.refreshTable()
} else {
this.tableHeight = this.tableOption.height;
}
this.refreshTable()
});
},
doLayout () {
this.$refs.table.doLayout()
Expand Down
16 changes: 14 additions & 2 deletions packages/element-ui/upload/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -500,14 +500,26 @@ export default create({
};
const uploadToDefault = () => {
let timer = null;
this.$axios({
url,
method: "post",
data: param,
headers,
onUploadProgress: (progressEvent) => {
let complete = progressEvent.loaded / progressEvent.total * 100 | 0;
if (fileState) fileState.percentage = complete;
let complete = (progressEvent.loaded / progressEvent.total * 100) || 0;
if (complete >= 80) {
if (timer) return
timer = setInterval(() => {
complete += (100 - complete) * 0.2
if (fileState) fileState.percentage = parseFloat(complete.toFixed(2))
if (complete > 99) {
timer && clearInterval(timer)
}
}, 1000)
} else {
if (fileState) fileState.percentage = parseFloat(complete.toFixed(2))
}
}
}).then(handleUploadResult).catch(handleUploadError);
};
Expand Down
2 changes: 1 addition & 1 deletion src/version.js
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export const version = '3.4.4'
export const version = '3.4.5'

0 comments on commit 6b422a0

Please sign in to comment.