diff --git a/src/component/table/index.vue b/src/component/table/index.vue index 9c5ec74..56300f1 100644 --- a/src/component/table/index.vue +++ b/src/component/table/index.vue @@ -52,7 +52,7 @@ export interface TableProps { loading?: boolean; getCheckboxProps?: Function; getRadioProps?: Function; - download?:string; + download?: string; } const props = withDefaults(defineProps(), { @@ -77,7 +77,7 @@ const props = withDefaults(defineProps(), { loading: false, getCheckboxProps: () => {}, getRadioProps: () => {}, - download:"" + download: "", }); const emit = defineEmits([ @@ -423,11 +423,11 @@ const exportData = () => { ${tableStr}
`; - let a = document.createElement("a") + let a = document.createElement("a"); a.href = uri + base64(exportTemplate); - a.download= (props.download || "下载文件") + ".xls"; + a.download = (props.download || "下载文件") + ".xls"; a.click(); - // window.location.href = + // window.location.href = return; }; diff --git a/src/component/table/soultable.vue b/src/component/table/soultable.vue index 0e89ff1..4cf4a33 100644 --- a/src/component/table/soultable.vue +++ b/src/component/table/soultable.vue @@ -20,7 +20,11 @@ class="layui-icon layui-icon-right" style="float: right"> -->
  • 筛选数据 - +
  • 反选 -
      +
      • {{ i }} @@ -76,24 +80,24 @@ export interface SoulTableProps { top: number; list: any; soulkey: string; - show:boolean; + show: boolean; } const props = withDefaults(defineProps(), { top: 10, left: 10, list: [], soulkey: "", - show:false + show: false, }); -const emit = defineEmits(["asc", "desc", "sx",'daochu']); +const emit = defineEmits(["asc", "desc", "sx", "daochu"]); function asc(event: any) { emit("asc", event); } function desc(event: any) { emit("desc", event); } -function daochu(){ - emit("daochu") +function daochu() { + emit("daochu"); } const sel: any = ref([]); const list: any = ref([]); @@ -108,7 +112,7 @@ watch( } alllist.value = Array.from(set); list.value = alllist.value; - selshow.value = false + selshow.value = false; // console.log(list.value); }, { deep: true } @@ -157,14 +161,12 @@ function select(type: number) { } } const selshow = ref(false); -function shubiao(event:any){ - console.log(event,160) - if(event.target.getAttribute("show") == "select"){ - selshow.value = true - }else{ - selshow.value = false - +function shubiao(event: any) { + console.log(event, 160); + if (event.target.getAttribute("show") == "select") { + selshow.value = true; + } else { + selshow.value = false; } - } diff --git a/src/component/tree/TreeNode.vue b/src/component/tree/TreeNode.vue index e2d0196..3923f47 100644 --- a/src/component/tree/TreeNode.vue +++ b/src/component/tree/TreeNode.vue @@ -70,8 +70,8 @@ const nodeIconType = (node: TreeData): string => { if (node.children.length !== 0) { return !node.isLeaf ? "layui-icon-addition" : "layui-icon-subtraction"; } - if(props.hideicon){ - return "" + if (props.hideicon) { + return ""; } return "layui-icon-file"; }; diff --git a/src/component/tree/index.vue b/src/component/tree/index.vue index 4630813..d3767ce 100644 --- a/src/component/tree/index.vue +++ b/src/component/tree/index.vue @@ -38,7 +38,7 @@ export interface TreeProps { showLine?: boolean; showCheckbox?: boolean; replaceFields?: ReplaceFieldsOptions; - hideicon?:boolean; + hideicon?: boolean; } interface TreeEmits {