How to use the @uform/utils.isStr function in @uform/utils

To help you get started, we’ve selected a few @uform/utils examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github alibaba / uform / packages / react / src / shared / broadcast.tsx View on Github external
broadcast.subscribe(({ type, state, schema, ...others }) => {
        if (type !== 'submit' && type !== 'reset') {
          if (initialized) {
            if (options.selector) {
              if (
                (isFn(options.selector) && options.selector({ type, state })) ||
                (isArr(options.selector) &&
                  options.selector.indexOf(type) > -1) ||
                (isStr(options.selector) && options.selector === type)
              ) {
                setState({
                  status: type,
                  state,
                  schema,
                  ...others
                })
              }
            }
          } else {
            finalValue = {
              status: type,
              state,
              schema,
              ...others
            }
github alibaba / uform / packages / react / src / utils.tsx View on Github external
export const isNotEmptyStr = (str: string): boolean => !!(isStr(str) && str)

@uform/utils

> UForm工具函数集

MIT
Latest version published 5 years ago

Package Health Score

68 / 100
Full package analysis

Similar packages