@cainiaofe/cn-ui-m
Version:
11 lines (10 loc) • 920 B
JavaScript
import React, { useState } from 'react';
import { CnButton, CnCard, CnDemoPage, CnDialog } from "../../..";
export var 运营类弹窗 = function () {
var _a = useState(false), dialog1 = _a[0], setDialog1 = _a[1];
return (React.createElement(CnDemoPage, { title: "\u8FD0\u8425\u7C7B\u5F39\u7A97" },
React.createElement(CnCard, null,
React.createElement(CnButton, { fullWidth: true, type: "primary", onClick: function () { return setDialog1(true); } }, "\u8FD0\u8425\u7C7B\u5F39\u7A97")),
React.createElement(CnDialog, { visible: dialog1, showBottomCloseIcon: true, closeMode: ['ok', 'cancel'], maskClosable: false, bgImg: "https://gw.alicdn.com/imgextra/i1/O1CN01tGop7p1p6wenFUcb9_!!6000000005312-0-tps-804-1234.jpg", footer: null, onOk: function () { return setDialog1(false); }, onClose: function () { return setDialog1(false); } })));
};
export default { title: 'demo/CnDialog' };