陈薪名 1 year ago
parent
commit
346047914a
  1. 29
      .editorconfig
  2. 4
      src/components/Detail/src/Detail.vue
  3. 14
      src/components/Search/src/Search.vue
  4. 5
      src/components/Table/src/Table.vue

29
.editorconfig

@ -1,12 +1,19 @@
root = true root = true
[*.{js,ts,vue}]
charset = utf-8 # 设置文件字符集为 utf-8 [*]
end_of_line = lf # 控制换行类型(lf | cr | crlf) charset=utf-8
insert_final_newline = true # 始终在文件末尾插入一个新行 end_of_line=lf
indent_style = space # 缩进风格(tab | space) insert_final_newline=true
indent_size = 2 # 缩进大小 indent_style=space
max_line_length = 100 # 最大行长度 indent_size=2
max_line_length = 100
[*.md] # 仅 md 文件适用以下规则
max_line_length = off # 关闭最大行长度限制 [*.{yml,yaml,json}]
trim_trailing_whitespace = false # 关闭末尾空格修剪 indent_style = space
indent_size = 2
[*.md]
trim_trailing_whitespace = false
[Makefile]
indent_style = tab

4
src/components/Detail/src/Detail.vue

@ -203,8 +203,8 @@ const remarksSubmitScuess = async (remark) => {
} }
// //
const getChangeRecordList = async () => { const getChangeRecordList = async () => {
remarksData.data.tableId = '1679654720693248010' // remarksData.data.tableId = '1679654720693248010'
remarksData.remarksList = await DetailApi.getChangeRecordPage(remarksData.data) changeRecordData.changeRecordList = await DetailApi.getChangeRecordPage(remarksData.data)
} }
</script> </script>
<style lang="scss"> <style lang="scss">

14
src/components/Search/src/Search.vue

@ -102,13 +102,13 @@ const setVisible = () => {
} }
const Search = ref() const Search = ref()
onMounted(() => { onMounted(() => {
nextTick(() => { // nextTick(() => {
console.log(4) // console.log(4)
console.log(Search.value.offsetHeight) // console.log(Search.value.offsetHeight)
wsCache.set('SearchoffsetHeight', Search.value.offsetHeight) // wsCache.set('SearchoffsetHeight', Search.value.offsetHeight)
console.log(wsCache.get('SearchoffsetHeight')) // console.log(wsCache.get('SearchoffsetHeight'))
console.log(4) // console.log(4)
}) // })
}) })
</script> </script>

5
src/components/Table/src/Table.vue

@ -9,7 +9,8 @@ import { set } from 'lodash-es'
import { Pagination, TableColumn, TableSetPropsType, TableSlotDefault } from '@/types/table' import { Pagination, TableColumn, TableSetPropsType, TableSlotDefault } from '@/types/table'
import { useCache } from '@/hooks/web/useCache' import { useCache } from '@/hooks/web/useCache'
const { wsCache } = useCache() const { wsCache } = useCache()
let SearchoffsetHeight =(wsCache.get('SearchoffsetHeight') + 310 )+'px'
export default defineComponent({ export default defineComponent({
// eslint-disable-next-line vue/no-reserved-component-names // eslint-disable-next-line vue/no-reserved-component-names
@ -17,7 +18,6 @@ export default defineComponent({
props: { props: {
pageSize: propTypes.number.def(10), pageSize: propTypes.number.def(10),
currentPage: propTypes.number.def(1), currentPage: propTypes.number.def(1),
height: propTypes.string.def('calc(100vh - '+SearchoffsetHeight+')'),
// //
selection: propTypes.bool.def(false), selection: propTypes.bool.def(false),
// schemashowOverflowTooltip, // schemashowOverflowTooltip,
@ -293,7 +293,6 @@ export default defineComponent({
// @ts-ignore // @ts-ignore
ref={elTableRef} ref={elTableRef}
data={unref(getProps).data} data={unref(getProps).data}
height={unref(getProps).height}
onSelection-change={selectionChange} onSelection-change={selectionChange}
onSort-change={sortChange} onSort-change={sortChange}
{...unref(getBindValue)} {...unref(getBindValue)}

Loading…
Cancel
Save