[improvement] rename packages dir to src (#3659)

This commit is contained in:
neverland
2019-06-27 11:25:57 +08:00
committed by GitHub
parent 8489918dca
commit 75c79b7044
619 changed files with 21 additions and 21 deletions
+35
View File
@@ -0,0 +1,35 @@
import { createNamespace, isDef } from '../utils';
import { inherit } from '../utils/functional';
// Types
import { CreateElement, RenderContext } from 'vue/types';
import { DefaultSlots } from '../utils/types';
export type InfoProps = {
info?: string | number;
};
const [createComponent, bem] = createNamespace('info');
function Info(
h: CreateElement,
props: InfoProps,
slots: DefaultSlots,
ctx: RenderContext<InfoProps>
) {
if (!isDef(props.info) || props.info === '') {
return;
}
return (
<div class={bem()} {...inherit(ctx, true)}>
{props.info}
</div>
);
}
Info.props = {
info: [String, Number]
};
export default createComponent<InfoProps>(Info);