Pre Merge pull request !27 from hetang/master
commit
f1d56f29e6
|
@ -85,7 +85,7 @@ export default defineComponent({
|
|||
|
||||
const rawVal = toRaw(state.checkedKeys)
|
||||
emit('update:value', rawVal)
|
||||
emit('check', rawVal, e)
|
||||
emit('check', state.checkStrictly ? rawVal.checked : rawVal, e)
|
||||
},
|
||||
onRightClick: handleRightClick
|
||||
}
|
||||
|
@ -163,6 +163,7 @@ export default defineComponent({
|
|||
|
||||
function checkAll(checkAll: boolean) {
|
||||
state.checkedKeys = checkAll ? getEnabledKeys() : ([] as KeyType[])
|
||||
emit('check', state.checkedKeys, [])
|
||||
}
|
||||
|
||||
function expandAll(expandAll: boolean) {
|
||||
|
|
|
@ -6,14 +6,26 @@ html[data-theme='dark'] {
|
|||
border-bottom: none !important;
|
||||
}
|
||||
}
|
||||
.ant-tabs-tab:not(.ant-tabs-tab-active) {
|
||||
border: none !important;
|
||||
&:hover {
|
||||
color: inherit;
|
||||
background-color: rgba(255, 255, 255, 0.5) !important;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
html[data-theme='light'] {
|
||||
.@{prefix-cls} {
|
||||
.ant-tabs-tab:not(.ant-tabs-tab-active) {
|
||||
border: none !important;
|
||||
&:hover {
|
||||
color: inherit;
|
||||
background-color: #dee1e6;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
.@{prefix-cls} {
|
||||
|
@ -120,12 +132,7 @@ html[data-theme='light'] {
|
|||
}
|
||||
}
|
||||
|
||||
.ant-tabs-tab:not(.ant-tabs-tab-active) {
|
||||
&:hover {
|
||||
color: inherit;
|
||||
background-color: #dee1e6;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
.ant-tabs-tab-active {
|
||||
position: relative;
|
||||
|
|
|
@ -14,7 +14,13 @@
|
|||
<Input size="large" v-model:value="formData.username" :placeholder="t('sys.login.userName')" class="fix-auto-fill" />
|
||||
</FormItem>
|
||||
<FormItem name="password" class="enter-x">
|
||||
<InputPassword size="large" visibilityToggle v-model:value="formData.password" :placeholder="t('sys.login.password')" />
|
||||
<InputPassword
|
||||
size="large"
|
||||
visibilityToggle
|
||||
v-model:value="formData.password"
|
||||
:placeholder="t('sys.login.password')"
|
||||
class="fix-auto-fill"
|
||||
/>
|
||||
</FormItem>
|
||||
|
||||
<Row class="enter-x">
|
||||
|
|
|
@ -114,7 +114,7 @@ function menuCheck(checkedKeys: CheckKeys, event: CheckedEvent) {
|
|||
// 这里是子节点的ID
|
||||
menuKeys.value = checkedKeys as number[]
|
||||
// 这里是父节点的ID 默认空数组
|
||||
menuHalfKeys.value = event.halfCheckedKeys as number[]
|
||||
menuHalfKeys.value = (event.halfCheckedKeys as number[]) || []
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
|
Loading…
Reference in New Issue