Harold Zhang
3 months ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
6 changed files with
12 additions and
6 deletions
-
cspell.json
-
packages/@core/ui-kit/shadcn-ui/src/components/collapsible/collapsible-params.vue
-
packages/@core/ui-kit/shadcn-ui/src/components/collapsible/collapsible.vue
-
packages/@core/ui-kit/shadcn-ui/src/components/expandable-arrow/expandable-arrow.vue
-
packages/effects/layouts/src/widgets/preferences/blocks/layout/sidebar.vue
-
playground/src/views/examples/form/modules/two-fields.vue
|
|
|
@ -27,6 +27,7 @@ |
|
|
|
"execa", |
|
|
|
"iconify", |
|
|
|
"iconoir", |
|
|
|
"indexeddb", |
|
|
|
"intlify", |
|
|
|
"isequal", |
|
|
|
"jspm", |
|
|
|
@ -36,6 +37,7 @@ |
|
|
|
"minw", |
|
|
|
"mkdist", |
|
|
|
"mockjs", |
|
|
|
"myapp", |
|
|
|
"naiveui", |
|
|
|
"napi", |
|
|
|
"nocheck", |
|
|
|
|
|
|
|
@ -31,8 +31,10 @@ const props = withDefaults(defineProps<Props>(), { |
|
|
|
|
|
|
|
const emits = defineEmits<{ 'update:value': [any, string] }>(); |
|
|
|
|
|
|
|
const modelValue = defineModel('value', { |
|
|
|
default: {} as Recordable<CollapsibleParamSchema['defaultValue']>, |
|
|
|
const modelValue = defineModel< |
|
|
|
Recordable<CollapsibleParamSchema['defaultValue']> |
|
|
|
>('value', { |
|
|
|
default: () => ({}), |
|
|
|
}); |
|
|
|
|
|
|
|
const visibleRefs = useTemplateRef('visibleRefs'); |
|
|
|
|
|
|
|
@ -30,7 +30,7 @@ const delegatedProps = computed(() => { |
|
|
|
|
|
|
|
const forwarded = useForwardPropsEmits(delegatedProps, emits); |
|
|
|
|
|
|
|
const open = defineModel('open', { default: true }); |
|
|
|
const open = defineModel<boolean>('open', { default: true }); |
|
|
|
|
|
|
|
function toggle() { |
|
|
|
open.value = !open.value; |
|
|
|
|
|
|
|
@ -7,7 +7,7 @@ const props = defineProps<{ |
|
|
|
}>(); |
|
|
|
|
|
|
|
// 控制箭头展开/收起状态 |
|
|
|
const collapsed = defineModel({ default: false }); |
|
|
|
const collapsed = defineModel<boolean>({ default: false }); |
|
|
|
</script> |
|
|
|
|
|
|
|
<template> |
|
|
|
|
|
|
|
@ -23,7 +23,9 @@ const sidebarDraggable = defineModel<boolean>('sidebarDraggable'); |
|
|
|
const sidebarCollapsed = defineModel<boolean>('sidebarCollapsed'); |
|
|
|
const sidebarExpandOnHover = defineModel<boolean>('sidebarExpandOnHover'); |
|
|
|
|
|
|
|
const sidebarButtons = defineModel<string[]>('sidebarButtons', { default: [] }); |
|
|
|
const sidebarButtons = defineModel<string[]>('sidebarButtons', { |
|
|
|
default: () => [], |
|
|
|
}); |
|
|
|
const sidebarCollapsedButton = defineModel<boolean>('sidebarCollapsedButton'); |
|
|
|
const sidebarFixedButton = defineModel<boolean>('sidebarFixedButton'); |
|
|
|
|
|
|
|
|
|
|
|
@ -3,7 +3,7 @@ import { Input, Select } from 'antdv-next'; |
|
|
|
|
|
|
|
const emit = defineEmits(['blur', 'change']); |
|
|
|
|
|
|
|
const modelValue = defineModel<[string, string]>({ |
|
|
|
const modelValue = defineModel<[string | undefined, string | undefined]>({ |
|
|
|
default: () => [undefined, undefined], |
|
|
|
}); |
|
|
|
|
|
|
|
|