-
Notifications
You must be signed in to change notification settings - Fork 62
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
42c899b
commit 67380b9
Showing
19 changed files
with
1,067 additions
and
1,078 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file modified
BIN
+116 Bytes
(100%)
webfe/package_vue/src/assets/iconfont/fonts/iconcool.woff
Binary file not shown.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,47 +1,47 @@ | ||
<template> | ||
<content-loader | ||
:width="baseWidth" | ||
:height="552" | ||
:speed="loadingConf.speed" | ||
:primaryColor="loadingConf.primaryColor" | ||
:secondaryColor="loadingConf.secondaryColor" | ||
> | ||
<rect x="0" y="55" rx="2" ry="2" :width="baseWidth" height="64" /> | ||
<rect x="0" y="131" rx="2" ry="2" :width="baseWidth" height="64" /> | ||
<rect x="0" y="207" rx="2" ry="2" :width="baseWidth" height="64" /> | ||
<rect x="0" y="283" rx="2" ry="2" :width="baseWidth" height="64" /> | ||
<rect x="0" y="359" rx="2" ry="2" :width="baseWidth" height="64" /> | ||
<rect x="0" y="435" rx="2" ry="2" :width="baseWidth" height="64" /> | ||
<rect x="0" y="0" rx="1" ry="1" width="88" height="28" /> | ||
<rect x="100" y="0" rx="1" ry="1" width="110" height="28" /> | ||
<rect x="505" y="2" rx="1" ry="1" width="150" height="28" /> | ||
<rect x="1092" y="0" rx="2" ry="2" width="88" height="32" /> | ||
<rect x="665" y="0" rx="2" ry="2" width="417" height="32" /> | ||
<rect x="0" y="520" rx="2" ry="2" width="104" height="32" /> | ||
<rect x="1076" y="520" rx="2" ry="2" width="104" height="32" /> | ||
</content-loader> | ||
<content-loader | ||
:width="baseWidth" | ||
:height="552" | ||
:speed="loadingConf.speed" | ||
:primary-color="loadingConf.primaryColor" | ||
:secondary-color="loadingConf.secondaryColor" | ||
> | ||
<rect x="0" y="55" rx="2" ry="2" :width="baseWidth" height="64" /> | ||
<rect x="0" y="131" rx="2" ry="2" :width="baseWidth" height="64" /> | ||
<rect x="0" y="207" rx="2" ry="2" :width="baseWidth" height="64" /> | ||
<rect x="0" y="283" rx="2" ry="2" :width="baseWidth" height="64" /> | ||
<rect x="0" y="359" rx="2" ry="2" :width="baseWidth" height="64" /> | ||
<rect x="0" y="435" rx="2" ry="2" :width="baseWidth" height="64" /> | ||
<rect x="0" y="0" rx="1" ry="1" width="88" height="28" /> | ||
<rect x="100" y="0" rx="1" ry="1" width="110" height="28" /> | ||
<rect :x="baseWidth - 690" y="0" rx="1" ry="1" width="150" height="32" /> | ||
<rect :x="baseWidth - 88" y="0" rx="2" ry="2" width="88" height="32" /> | ||
<rect :x="baseWidth - 525" y="0" rx="2" ry="2" width="417" height="32" /> | ||
<rect x="0" y="520" rx="2" ry="2" width="104" height="32" /> | ||
<rect :x="baseWidth - 104" y="520" rx="2" ry="2" width="104" height="32" /> | ||
</content-loader> | ||
</template> | ||
|
||
<script> | ||
import { ContentLoader } from 'vue-content-loader' | ||
export default { | ||
components: { | ||
ContentLoader | ||
}, | ||
props: { | ||
baseWidth: { | ||
type: Number, | ||
default: 1180 | ||
}, | ||
contentWidth: { | ||
type: Number, | ||
default: 1180 | ||
} | ||
}, | ||
computed: { | ||
loadingConf () { | ||
return this.$store.state.loadingConf | ||
} | ||
} | ||
} | ||
</script> | ||
import { ContentLoader } from 'vue-content-loader'; | ||
export default { | ||
components: { | ||
ContentLoader, | ||
}, | ||
props: { | ||
baseWidth: { | ||
type: Number, | ||
default: 1180, | ||
}, | ||
contentWidth: { | ||
type: Number, | ||
default: 1180, | ||
}, | ||
}, | ||
computed: { | ||
loadingConf() { | ||
return this.$store.state.loadingConf; | ||
}, | ||
}, | ||
}; | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
128 changes: 128 additions & 0 deletions
128
webfe/package_vue/src/components/teble-header-filters/index.vue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,128 @@ | ||
<template> | ||
<bk-popover | ||
ref="popover" | ||
theme="light navigation-message" | ||
ext-cls="custom-table-filter-cls" | ||
placement="bottom" | ||
:arrow="false" | ||
offset="40, 0" | ||
trigger="click" | ||
> | ||
<div class="filter-view"> | ||
<span class="label">{{ label }}</span> | ||
<span | ||
id="filter-icon" | ||
:class="[iconClass, { 'is-selected': selected !== 'all' }]" | ||
></span> | ||
</div> | ||
<template #content> | ||
<ul class="panel-list-cls"> | ||
<li | ||
v-for="item in filterList" | ||
:key="item.value" | ||
:class="['panel-item', { selected: item.value === selected }, { disabled: item.disabled }]" | ||
@click="handleSelect(item)" | ||
> | ||
{{ item.text }} | ||
</li> | ||
</ul> | ||
</template> | ||
</bk-popover> | ||
</template> | ||
|
||
<script> | ||
export default { | ||
name: 'CustomtableFilter', | ||
props: { | ||
active: { | ||
type: String, | ||
}, | ||
label: { | ||
type: String, | ||
}, | ||
iconClass: { | ||
type: String, | ||
}, | ||
filterList: { | ||
type: Array, | ||
default: () => [], | ||
}, | ||
}, | ||
data() { | ||
return { | ||
selected: '', | ||
}; | ||
}, | ||
watch: { | ||
active: { | ||
immediate: true, | ||
handler(newValue) { | ||
this.selected = newValue; | ||
}, | ||
}, | ||
}, | ||
methods: { | ||
handleSelect(data) { | ||
if (data.disabled) return; | ||
this.$refs.popover.instance.hide(); | ||
this.$emit('filter-change', data); | ||
}, | ||
}, | ||
}; | ||
</script> | ||
|
||
<style lang="scss"> | ||
.custom-table-filter-cls { | ||
top: -12px !important; | ||
.tippy-tooltip.light-theme { | ||
box-shadow: 0 0 6px 0 #dcdee5 !important; | ||
border-radius: 4px !important; | ||
} | ||
.panel-list-cls { | ||
color: #26323d; | ||
min-width: 70px; | ||
background-color: #fff; | ||
padding: 5px 0; | ||
margin: 0; | ||
max-height: 250px; | ||
list-style: none; | ||
overflow-y: auto; | ||
.panel-item { | ||
padding: 0 10px; | ||
font-size: 12px; | ||
line-height: 26px; | ||
cursor: pointer; | ||
&:hover { | ||
background-color: #eaf3ff; | ||
color: #3a84ff; | ||
} | ||
&.selected { | ||
background-color: #f4f6fa; | ||
color: #3a84ff; | ||
} | ||
&.disabled { | ||
cursor: not-allowed; | ||
color: #c4c6cc; | ||
} | ||
} | ||
} | ||
} | ||
.filter-view { | ||
#filter-icon { | ||
display: inline-block; | ||
width: 20px; | ||
height: 20px; | ||
line-height: 20px; | ||
font-size: 14px; | ||
text-align: center; | ||
cursor: pointer; | ||
color: #c4c6cc; | ||
&.is-selected { | ||
color: #3a84ff; | ||
} | ||
} | ||
} | ||
</style> |
Oops, something went wrong.