-
Notifications
You must be signed in to change notification settings - Fork 601
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor devextreme-vue for TS in IDE
- Loading branch information
1 parent
bcdcdbb
commit 8f6e0c5
Showing
7 changed files
with
52 additions
and
70 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
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 was deleted.
Oops, something went wrong.
This file was deleted.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,20 @@ | ||
import { defineComponent, DefineComponent } from 'vue'; | ||
import { initDxComponent } from '../../component'; | ||
import { initDxConfiguration } from '../../configuration-component'; | ||
import { initDxExtensionComponent } from '../../extension-component'; | ||
import { setCompatOptions, setVModel } from '../../vue-helper'; | ||
import { setVModel } from '../../vue-helper'; | ||
|
||
export function createComponent(config: any): DefineComponent { | ||
export function prepareComponentConfig(config) { | ||
config.extends = initDxComponent(); | ||
setCompatOptions(config); | ||
|
||
if (config.model) { | ||
setVModel(config); | ||
} | ||
return defineComponent(config); | ||
} | ||
|
||
export function createConfigurationComponent(config: any): DefineComponent { | ||
export function prepareConfigurationComponentConfig(config: any): void { | ||
config.extends = initDxConfiguration(); | ||
setCompatOptions(config); | ||
return defineComponent(config); | ||
} | ||
|
||
export function createExtensionComponent(config: any): DefineComponent { | ||
export function prepareExtensionComponentConfig(config: any): void { | ||
config.extends = initDxExtensionComponent(); | ||
setCompatOptions(config); | ||
return defineComponent(config); | ||
} |
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