lew-ui 2.4.1 → 2.4.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +46 -46
- package/README.zh-CN.md +48 -48
- package/dist/components/collapse/src/LewCollapse.vue.d.ts +10 -10
- package/dist/components/collapse/src/LewCollapseItem.vue.d.ts +6 -20
- package/dist/components/collapse/src/props.d.ts +6 -12
- package/dist/components/empty/src/LewEmpty.vue.d.ts +5 -5
- package/dist/components/empty/src/props.d.ts +2 -2
- package/dist/components/form/src/LewFormItem.vue.d.ts +1 -1
- package/dist/components/popok/src/LewPopok.vue.d.ts +4 -18
- package/dist/components/popok/src/props.d.ts +2 -9
- package/dist/components/table/src/LewTable.vue.d.ts +10 -4
- package/dist/components/table/src/SortIcon.vue.d.ts +20 -0
- package/dist/index.mjs +807 -473
- package/dist/index.umd.js +4 -4
- package/dist/style.css +1 -1
- package/dist/utils/index.d.ts +10 -0
- package/package.json +1 -1
package/dist/utils/index.d.ts
CHANGED
|
@@ -24,6 +24,16 @@ export declare const numFormat: (num: number) => string;
|
|
|
24
24
|
* @returns {string} 转换后的像素值字符串。
|
|
25
25
|
*/
|
|
26
26
|
export declare const any2px: (value: number | string | undefined) => string;
|
|
27
|
+
/**
|
|
28
|
+
* 针对上面的 any2px 写一个类型校验方法,确保输入的值是有效的 CSS 值,可以是百分比或者 calc 计算。
|
|
29
|
+
* @param {number | string | undefined} value - 要校验的值。
|
|
30
|
+
* @returns {boolean} 如果输入的值是有效的 CSS 值,则返回 true,否则返回 false。
|
|
31
|
+
*/
|
|
32
|
+
export declare const isValidCssValue: ({ name, field, value }: {
|
|
33
|
+
name: string;
|
|
34
|
+
field: string;
|
|
35
|
+
value: number | string | undefined;
|
|
36
|
+
}) => boolean;
|
|
27
37
|
/**
|
|
28
38
|
* 设置表单值。
|
|
29
39
|
* @param {Object} options - 配置选项。
|