mirror of
https://github.com/youzan/vant.git
synced 2025-10-20 10:44:59 +00:00
[new feature] Loading: add text-size prop
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
import { use } from '../utils';
|
||||
import { use, suffixPx } from '../utils';
|
||||
import { inherit } from '../utils/functional';
|
||||
import { isNumber } from '../utils/validate/number';
|
||||
|
||||
// Types
|
||||
import { CreateElement, RenderContext } from 'vue/types';
|
||||
@@ -22,11 +21,6 @@ const [sfc, bem] = use('skeleton');
|
||||
const DEFAULT_ROW_WIDTH = '100%';
|
||||
const DEFAULT_LAST_ROW_WIDTH = '60%';
|
||||
|
||||
function suffixPx(value: string | number): string {
|
||||
value = String(value);
|
||||
return isNumber(value) ? `${value}px` : value;
|
||||
}
|
||||
|
||||
function Skeleton(
|
||||
h: CreateElement,
|
||||
props: SkeletonProps,
|
||||
|
Reference in New Issue
Block a user