How to use the @form-create/utils.toString function in @form-create/utils

To help you get started, we’ve selected a few @form-create/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 xaboy / form-create / packages / element-ui / src / components / upload / handler.js View on Github external
export function getFileName(pic) {
    return toString(pic).split('/').pop()
}
github xaboy / form-create / packages / iview / src / components / upload / index.jsx View on Github external
function getFileName(file) {
    return toString(file).split('/').pop()
}
github xaboy / form-create / packages / iview / src / components / upload / handler.js View on Github external
export function getFileName(pic) {
    return toString(pic).split('/').pop()
}
github xaboy / form-create / packages / iview / src / components / frame / render.js View on Github external
};

                            }
                        } catch (e) {
                        }
                    }
                },
            }), vNode.make('div', {slot: 'footer'}, [
                vNode.button({
                    on: {
                        click: () => {
                            _vm.onClose();
                            this.onCancel()
                        }
                    }
                }, [toString(closeBtnText)]),
                vNode.button({
                    props: {type: 'primary'}, on: {
                        click: () => {
                            this.onOk() !== false && _vm.onClose();
                        }
                    }
                }, [toString(okBtnText)])
            ])]
        });
    }
github xaboy / form-create / packages / iview / src / components / frame / render.js View on Github external
'fc-spin': true
            }
        }, [
            vNode.icon({
                props: {
                    type: 'load-c',
                    size: 18
                },
                class: {
                    'fc-spin-icon-load': true
                },
                key: 'ifspi' + unique
            }),
            vNode.make('div', {
                domProps: {
                    innerHTML: toString(this._props.loadingText)
                },
                key: 'ifspd' + unique
            })
        ])
    }
github xaboy / form-create / packages / framework / src / core / formCreate.js View on Github external
function setComponent(id, component) {
        if (component) {
            return _vue.component(toString(id), component);
        } else if (id)
            return components[toString(id)];
        else
            return {...components};
    }
github xaboy / form-create / packages / core / src / factory / vData.js View on Github external
VData.prototype[key] = function (obj, val) {
        if (isUndef(obj)) return this;

        if (isPlainObject(obj)) {
            $set(this._data, key, extend(this._data[key], obj));
        } else {
            $set(this._data[key], toString(obj), val);
        }

        return this;
    };
});