Skip to content

Commit

Permalink
fix: revert antdv version
Browse files Browse the repository at this point in the history
  • Loading branch information
buqiyuan committed Jan 5, 2022
1 parent 75c9f55 commit d5804ee
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 24 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
},
"dependencies": {
"@vueuse/core": "^7.5.1",
"ant-design-vue": "3.0.0-beta.5",
"ant-design-vue": "3.0.0-beta.4",
"axios": "^0.24.0",
"core-js": "^3.20.2",
"dayjs": "^1.10.7",
Expand Down
5 changes: 3 additions & 2 deletions src/components/core/dynamic-table/props.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@ export const props = {
/** 导出的文件名 */
exportFileName: {
type: String as PropType<string>,
default: '导出数据',
},
/** xlsx的booktype */
exportBookType: {
Expand All @@ -74,7 +73,9 @@ export const props = {
},
/** 自定义数据导出格式函数 */
exportFormatter: {
type: Function,
type: Function as PropType<
(columns: TableColumn<any>[], tableData: any[]) => { header: Recordable; data: any[] }
>,
default: null,
},
};
Expand Down
51 changes: 34 additions & 17 deletions src/views/demos/tables/wzry-table/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -65,30 +65,47 @@
// 展开搜索表单时更新英雄皮肤选项值
const toggleAdvanced = (e) => {
if (e) {
dynamicTableRef.value?.getQueryFormRef().updateSchema([
{
field: 'skin_name',
componentProps: {
options: [
{
label: '皮肤1',
value: 'aa',
},
{
label: '皮肤2',
value: 'bb',
},
],
},
},
]);
// dynamicTableRef.value?.getQueryFormRef().updateSchema([
// {
// field: 'skin_name',
// componentProps: {
// options: [
// {
// label: '皮肤1',
// value: 'aa',
// },
// {
// label: '皮肤2',
// value: 'bb',
// },
// ],
// },
// },
// ]);
}
};
const loadData = async (params) => {
const { data } = await getWzryHeroList(params);
tableData = data.list;
dynamicTableRef.value?.getQueryFormRef().updateSchema([
{
field: 'skin_name',
componentProps: {
options: [
{
label: '皮肤1',
value: 'aa',
},
{
label: '皮肤2',
value: 'bb',
},
],
},
},
]);
return data;
};
</script>
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2412,10 +2412,10 @@ ansi-styles@^6.0.0:
resolved "https://registry.nlark.com/ansi-styles/download/ansi-styles-6.1.0.tgz#87313c102b8118abd57371afab34618bf7350ed3"
integrity sha1-hzE8ECuBGKvVc3GvqzRhi/c1DtM=

[email protected].5:
version "3.0.0-beta.5"
resolved "https://registry.npmmirror.com/ant-design-vue/download/ant-design-vue-3.0.0-beta.5.tgz#9994ecedc7ad29600d85e73a754199d948869bb1"
integrity sha512-yX+JGkPlzXav56hHCg0aa1LAB9GQEEQ8Xfy0o7tc49zFH2v0Q8ekiWVXsvsiracLZgl7GcLm5HnEPp9tAy0BZQ==
[email protected].4:
version "3.0.0-beta.4"
resolved "https://registry.npmmirror.com/ant-design-vue/download/ant-design-vue-3.0.0-beta.4.tgz#e6f7861682875d77220d02ffe561b2b2022cd15b"
integrity sha512-WUkA8LyXw35vi1OOHTzvtcet0lEhNGCQNF85zEOHpPlA1Xf8KWCricFeiA38fgg2AHWvE1mrVw/wqB1kXBJM1Q==
dependencies:
"@ant-design/colors" "^6.0.0"
"@ant-design/icons-vue" "^6.0.0"
Expand Down

0 comments on commit d5804ee

Please sign in to comment.