plain-design 1.0.0-beta.42 → 1.0.0-beta.43
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/dist/plain-design.commonjs.min.js +17 -17
- package/dist/plain-design.min.js +17 -17
- package/dist/report.html +38 -38
- package/package.json +1 -1
- package/src/packages/components/DatePicker/index.tsx +1 -1
- package/src/packages/components/InputNumber/index.tsx +1 -1
- package/src/packages/entry.tsx +1 -0
- package/src/packages/utils/findReactElement.tsx +2 -2
package/package.json
CHANGED
@@ -20,7 +20,7 @@ import {createPopupAttrsGetter} from "../usePopup/utils/createPopperAttrsGetter"
|
|
20
20
|
import {useParentPopupId} from "../usePopup/utils/popup.utils";
|
21
21
|
|
22
22
|
export const DatePicker = designComponent({
|
23
|
-
name: '-date',
|
23
|
+
name: '-date-picker',
|
24
24
|
props: DatePropsOptions,
|
25
25
|
expose: {
|
26
26
|
DatePanel,
|
@@ -8,7 +8,7 @@ import {useInputNumberSingle} from "./useInputNumber.single";
|
|
8
8
|
import {useInputNumberMultiple} from "./useInputNumber.multiple";
|
9
9
|
|
10
10
|
export const InputNumber = designComponent({
|
11
|
-
name: '-number',
|
11
|
+
name: '-input-number',
|
12
12
|
inheritPropsType: Input,
|
13
13
|
props: InputNumberPropsOption,
|
14
14
|
emits: InputNumberEmitsOption,
|
package/src/packages/entry.tsx
CHANGED
@@ -208,6 +208,7 @@ export type {tEditComputed, tEditControl, EditProvideData} from './uses/useEdit'
|
|
208
208
|
export {useStyle, StyleProps, ThemeShape, ThemeSize, ThemeStatus} from './uses/useStyle';
|
209
209
|
export type {tStyleComputed, UseStyleProvideData} from './uses/useStyle';
|
210
210
|
|
211
|
+
// @ts-ignore
|
211
212
|
setComponentPrefix(globalComponentPrefix);
|
212
213
|
|
213
214
|
export const version = packageJson.version;
|
@@ -4,7 +4,7 @@ import {RenderNode} from "plain-design-composition";
|
|
4
4
|
|
5
5
|
type FindRenderNode = Exclude<ReactNode, string | number | null | undefined | void | boolean>
|
6
6
|
|
7
|
-
export function findReactElement(node: ReactNode, isMatch: (node:
|
7
|
+
export function findReactElement(node: ReactNode, isMatch: (node: any) => boolean): ReactNode[] | null {
|
8
8
|
|
9
9
|
/*内容为空,不匹配*/
|
10
10
|
if (node == null) {return null;}
|
@@ -63,7 +63,7 @@ export function findReactElement(node: ReactNode, isMatch: (node: FindRenderNode
|
|
63
63
|
* @author 韦胜健
|
64
64
|
* @date 2022/10/28 9:53
|
65
65
|
*/
|
66
|
-
function processArrayRenderNode({ array, ret, isMatch }: { array: RenderNode[], ret: FindRenderNode[], isMatch: (node:
|
66
|
+
function processArrayRenderNode({ array, ret, isMatch }: { array: RenderNode[], ret: FindRenderNode[], isMatch: (node: any) => boolean }) {
|
67
67
|
array.forEach(n => {
|
68
68
|
const findList = findReactElement(n, isMatch);
|
69
69
|
if (!!findList && findList.length > 0) {
|