|
@@ -0,0 +1,203 @@
|
|
|
+// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
|
+
|
|
|
+exports[`模态框-点击遮罩层不可关闭 1`] = `
|
|
|
+<DialogComponent
|
|
|
+ maskClosable={false}
|
|
|
+>
|
|
|
+ <Button
|
|
|
+ onClick={[Function]}
|
|
|
+ >
|
|
|
+ <Button
|
|
|
+ block={false}
|
|
|
+ disabled={false}
|
|
|
+ htmlType="button"
|
|
|
+ onClick={[Function]}
|
|
|
+ onMouseDown={[Function]}
|
|
|
+ onMouseEnter={[Function]}
|
|
|
+ onMouseLeave={[Function]}
|
|
|
+ prefixCls="semi-button"
|
|
|
+ size="default"
|
|
|
+ theme="light"
|
|
|
+ type="primary"
|
|
|
+ >
|
|
|
+ <button
|
|
|
+ aria-disabled={false}
|
|
|
+ className="semi-button semi-button-primary semi-button-light"
|
|
|
+ disabled={false}
|
|
|
+ onClick={[Function]}
|
|
|
+ onMouseDown={[Function]}
|
|
|
+ onMouseEnter={[Function]}
|
|
|
+ onMouseLeave={[Function]}
|
|
|
+ type="button"
|
|
|
+ >
|
|
|
+ <span
|
|
|
+ className="semi-button-content"
|
|
|
+ onClick={[Function]}
|
|
|
+ x-semi-prop="children"
|
|
|
+ >
|
|
|
+ show dialog
|
|
|
+ </span>
|
|
|
+ </button>
|
|
|
+ </Button>
|
|
|
+ </Button>
|
|
|
+ <Button
|
|
|
+ onClick={[Function]}
|
|
|
+ >
|
|
|
+ <Button
|
|
|
+ block={false}
|
|
|
+ disabled={false}
|
|
|
+ htmlType="button"
|
|
|
+ onClick={[Function]}
|
|
|
+ onMouseDown={[Function]}
|
|
|
+ onMouseEnter={[Function]}
|
|
|
+ onMouseLeave={[Function]}
|
|
|
+ prefixCls="semi-button"
|
|
|
+ size="default"
|
|
|
+ theme="light"
|
|
|
+ type="primary"
|
|
|
+ >
|
|
|
+ <button
|
|
|
+ aria-disabled={false}
|
|
|
+ className="semi-button semi-button-primary semi-button-light"
|
|
|
+ disabled={false}
|
|
|
+ onClick={[Function]}
|
|
|
+ onMouseDown={[Function]}
|
|
|
+ onMouseEnter={[Function]}
|
|
|
+ onMouseLeave={[Function]}
|
|
|
+ type="button"
|
|
|
+ >
|
|
|
+ <span
|
|
|
+ className="semi-button-content"
|
|
|
+ onClick={[Function]}
|
|
|
+ x-semi-prop="children"
|
|
|
+ >
|
|
|
+ 静态调用
|
|
|
+ </span>
|
|
|
+ </button>
|
|
|
+ </Button>
|
|
|
+ </Button>
|
|
|
+ <Modal
|
|
|
+ afterClose={[Function]}
|
|
|
+ cancelLoading={false}
|
|
|
+ centered={false}
|
|
|
+ closable={true}
|
|
|
+ closeOnEsc={true}
|
|
|
+ confirmLoading={false}
|
|
|
+ fullScreen={false}
|
|
|
+ hasCancel={true}
|
|
|
+ keepDOM={false}
|
|
|
+ lazyRender={true}
|
|
|
+ mask={true}
|
|
|
+ maskClosable={false}
|
|
|
+ maskFixed={false}
|
|
|
+ motion={true}
|
|
|
+ okType="primary"
|
|
|
+ onCancel={[Function]}
|
|
|
+ onOk={[Function]}
|
|
|
+ size="small"
|
|
|
+ title="对话框标题"
|
|
|
+ visible={false}
|
|
|
+ zIndex={1000}
|
|
|
+ />
|
|
|
+</DialogComponent>
|
|
|
+`;
|
|
|
+
|
|
|
+exports[`模态框默认 1`] = `
|
|
|
+<DialogComponent>
|
|
|
+ <Button
|
|
|
+ onClick={[Function]}
|
|
|
+ >
|
|
|
+ <Button
|
|
|
+ block={false}
|
|
|
+ disabled={false}
|
|
|
+ htmlType="button"
|
|
|
+ onClick={[Function]}
|
|
|
+ onMouseDown={[Function]}
|
|
|
+ onMouseEnter={[Function]}
|
|
|
+ onMouseLeave={[Function]}
|
|
|
+ prefixCls="semi-button"
|
|
|
+ size="default"
|
|
|
+ theme="light"
|
|
|
+ type="primary"
|
|
|
+ >
|
|
|
+ <button
|
|
|
+ aria-disabled={false}
|
|
|
+ className="semi-button semi-button-primary semi-button-light"
|
|
|
+ disabled={false}
|
|
|
+ onClick={[Function]}
|
|
|
+ onMouseDown={[Function]}
|
|
|
+ onMouseEnter={[Function]}
|
|
|
+ onMouseLeave={[Function]}
|
|
|
+ type="button"
|
|
|
+ >
|
|
|
+ <span
|
|
|
+ className="semi-button-content"
|
|
|
+ onClick={[Function]}
|
|
|
+ x-semi-prop="children"
|
|
|
+ >
|
|
|
+ show dialog
|
|
|
+ </span>
|
|
|
+ </button>
|
|
|
+ </Button>
|
|
|
+ </Button>
|
|
|
+ <Button
|
|
|
+ onClick={[Function]}
|
|
|
+ >
|
|
|
+ <Button
|
|
|
+ block={false}
|
|
|
+ disabled={false}
|
|
|
+ htmlType="button"
|
|
|
+ onClick={[Function]}
|
|
|
+ onMouseDown={[Function]}
|
|
|
+ onMouseEnter={[Function]}
|
|
|
+ onMouseLeave={[Function]}
|
|
|
+ prefixCls="semi-button"
|
|
|
+ size="default"
|
|
|
+ theme="light"
|
|
|
+ type="primary"
|
|
|
+ >
|
|
|
+ <button
|
|
|
+ aria-disabled={false}
|
|
|
+ className="semi-button semi-button-primary semi-button-light"
|
|
|
+ disabled={false}
|
|
|
+ onClick={[Function]}
|
|
|
+ onMouseDown={[Function]}
|
|
|
+ onMouseEnter={[Function]}
|
|
|
+ onMouseLeave={[Function]}
|
|
|
+ type="button"
|
|
|
+ >
|
|
|
+ <span
|
|
|
+ className="semi-button-content"
|
|
|
+ onClick={[Function]}
|
|
|
+ x-semi-prop="children"
|
|
|
+ >
|
|
|
+ 静态调用
|
|
|
+ </span>
|
|
|
+ </button>
|
|
|
+ </Button>
|
|
|
+ </Button>
|
|
|
+ <Modal
|
|
|
+ afterClose={[Function]}
|
|
|
+ cancelLoading={false}
|
|
|
+ centered={false}
|
|
|
+ closable={true}
|
|
|
+ closeOnEsc={true}
|
|
|
+ confirmLoading={false}
|
|
|
+ fullScreen={false}
|
|
|
+ hasCancel={true}
|
|
|
+ keepDOM={false}
|
|
|
+ lazyRender={true}
|
|
|
+ mask={true}
|
|
|
+ maskClosable={true}
|
|
|
+ maskFixed={false}
|
|
|
+ motion={true}
|
|
|
+ okType="primary"
|
|
|
+ onCancel={[Function]}
|
|
|
+ onOk={[Function]}
|
|
|
+ size="small"
|
|
|
+ title="对话框标题"
|
|
|
+ visible={false}
|
|
|
+ zIndex={1000}
|
|
|
+ />
|
|
|
+</DialogComponent>
|
|
|
+`;
|