Skip to content

Commit

Permalink
feat: add design setting
Browse files Browse the repository at this point in the history
  • Loading branch information
anncwb committed Dec 8, 2020
1 parent 5dc8226 commit bae53f3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/components/Application/src/AppProvider.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,15 @@
import { defineComponent, toRefs } from 'vue';
import { createAppProviderContext } from './useAppContext';
import designSetting from '/@/settings/designSetting';
export default defineComponent({
name: 'AppProvider',
inheritAttrs: false,
props: {
prefixCls: {
type: String as PropType<string>,
default: 'vben',
default: designSetting.prefixCls,
},
},
setup(props) {
Expand Down
3 changes: 3 additions & 0 deletions src/settings/designSetting.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export default {
prefixCls: 'vben',
};

0 comments on commit bae53f3

Please sign in to comment.