fix: component ts type
parent
d71df4b3ba
commit
5b20498792
|
@ -75,9 +75,7 @@ export type Visibles = { [index: number]: boolean };
|
||||||
const Slider = defineComponent({
|
const Slider = defineComponent({
|
||||||
name: 'ASlider',
|
name: 'ASlider',
|
||||||
inheritAttrs: false,
|
inheritAttrs: false,
|
||||||
props: {
|
props: sliderProps(),
|
||||||
...sliderProps(),
|
|
||||||
},
|
|
||||||
emits: ['update:value', 'change', 'afterChange', 'blur'],
|
emits: ['update:value', 'change', 'afterChange', 'blur'],
|
||||||
slots: ['mark'],
|
slots: ['mark'],
|
||||||
setup(props, { attrs, slots, emit, expose }) {
|
setup(props, { attrs, slots, emit, expose }) {
|
||||||
|
|
|
@ -252,9 +252,9 @@ const TreeSelect = defineComponent({
|
||||||
export const TreeSelectNode = TreeNode;
|
export const TreeSelectNode = TreeNode;
|
||||||
export default Object.assign(TreeSelect, {
|
export default Object.assign(TreeSelect, {
|
||||||
TreeNode,
|
TreeNode,
|
||||||
SHOW_ALL,
|
SHOW_ALL: SHOW_ALL as typeof SHOW_ALL,
|
||||||
SHOW_PARENT,
|
SHOW_PARENT: SHOW_PARENT as typeof SHOW_PARENT,
|
||||||
SHOW_CHILD,
|
SHOW_CHILD: SHOW_CHILD as typeof SHOW_CHILD,
|
||||||
install: (app: App) => {
|
install: (app: App) => {
|
||||||
app.component(TreeSelect.name, TreeSelect);
|
app.component(TreeSelect.name, TreeSelect);
|
||||||
app.component(TreeSelectNode.displayName, TreeSelectNode);
|
app.component(TreeSelectNode.displayName, TreeSelectNode);
|
||||||
|
|
Loading…
Reference in New Issue