-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* chore: release v1.0.0 * docs: 加上文档地址 (#13) Co-authored-by: HOMEDO\zhangjiayun <zhangjiayun@homedo.com> * docs: 文档名称修改 * feat: 登录输入框加一键清空和密码框显示隐藏 * feat: 登录框加上验证码 * fix: 去除VueI18nPlugin以让Vue18n其支持内联 JavaScript 字符串的模板 * refactor: 样式规范化 全局样式文件规范化 font-size改为自动换算rem 不同size下的elment base font-size变更 * fix: 修复文档链接样式错误,修复刷新不自动关闭菜单错误 * feat: 加上切换动画 * chore: template-release v1.0.1 * chore: release v1.0.1 Co-authored-by: HOMEDO\zhangjiayun <zhangjiayun@homedo.com>
- Loading branch information
1 parent
ad75cfc
commit fcc9ba5
Showing
27 changed files
with
356 additions
and
156 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 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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 |
---|---|---|
@@ -0,0 +1,56 @@ | ||
import { PropType, Ref, Transition, TransitionProps, VNode } from 'vue'; | ||
import { MeKeepAliveProps, default as MeKeepAlive } from './meKeepAlive'; | ||
import { useLoadMessages } from '@/locales/i18n'; | ||
import { done } from '@/utils/nProgress'; | ||
import { localeConfig } from '@/config'; | ||
export default defineComponent({ | ||
props: { | ||
is: { | ||
type: [String, Object], | ||
}, | ||
keepAlive: Object as PropType<MeKeepAliveProps>, | ||
componentKey: [Number, String, Symbol], | ||
doneProgress: Boolean, | ||
transition: Object as PropType<TransitionProps>, | ||
}, | ||
setup(props, { attrs }) { | ||
const loadMessages = useLoadMessages(); | ||
const componentIs: Ref<any> = ref(undefined); | ||
const key = ref(props.componentKey); | ||
const _attrs = ref(attrs); | ||
watch( | ||
() => props.is, | ||
async (is) => { | ||
if (is) { | ||
localeConfig.loadMessageConfig.componentLoad && (await Promise.allSettled(loadMessages(is as any, false))); // 自动加载语言包 | ||
componentIs.value = is; | ||
key.value = props.componentKey; | ||
_attrs.value = attrs; | ||
if (props.doneProgress) { | ||
done(); | ||
} | ||
} | ||
}, | ||
{ immediate: true }, | ||
); | ||
|
||
return () => { | ||
const components = [] as VNode[]; | ||
components.push( | ||
h(componentIs.value || 'div', { | ||
key: key.value, | ||
..._attrs.value, | ||
}), | ||
); | ||
if (props.keepAlive) { | ||
const index = components.length - 1; | ||
components.push(h(MeKeepAlive, props.keepAlive, [components[index]])); | ||
} | ||
if (props.transition) { | ||
const index = components.length - 1; | ||
components.push(h(Transition, props.transition, { default: () => components[index] })); | ||
} | ||
return components[components.length - 1]; | ||
}; | ||
}, | ||
}); |
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
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 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 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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
import '@/event/module'; | ||
import '@/styles/common.scss'; | ||
import '@/styles/index.scss'; | ||
import { bootscrapt } from './app'; | ||
bootscrapt(); |
Oops, something went wrong.