@ccs-ui/rc-pro 2.3.6-alpha-31 → 2.3.6-alpha-32
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/docs-dist/2179.b80aa159.async.js +22 -0
- package/docs-dist/2191.275582c6.async.js +6 -0
- package/docs-dist/27.82086704.async.js +11 -0
- package/docs-dist/3249.edb38f0f.async.js +28 -0
- package/docs-dist/404.html +15 -0
- package/docs-dist/5171.198d8c6e.async.js +8 -0
- package/docs-dist/7024.588d984f.async.js +22 -0
- package/docs-dist/7488.2db563fb.async.js +137 -0
- package/docs-dist/751.bb8cce69.async.js +1 -0
- package/docs-dist/8784.91b4ab45.async.js +598 -0
- package/docs-dist/9591.06d066b1.async.js +1 -0
- package/docs-dist/9600.78d67888.async.js +16 -0
- package/docs-dist/9600.e8c51481.chunk.css +5 -0
- package/docs-dist/auth__demos.32e710d5.async.js +1 -0
- package/docs-dist/auth__index.md.33be0665.chunk.css +1 -0
- package/docs-dist/auth__index.md.e0b5996f.async.js +1 -0
- package/docs-dist/button__demos.a20990de.async.js +1 -0
- package/docs-dist/button__index.md.33be0665.chunk.css +1 -0
- package/docs-dist/button__index.md.43fe8c62.async.js +1 -0
- package/docs-dist/cascader__demos.cb1e67f3.async.js +1 -0
- package/docs-dist/cascader__index.md.33be0665.chunk.css +1 -0
- package/docs-dist/cascader__index.md.cafec622.async.js +1 -0
- package/docs-dist/components/auth/index.html +15 -0
- package/docs-dist/components/button/index.html +15 -0
- package/docs-dist/components/cascader/index.html +15 -0
- package/docs-dist/components/date-picker/index.html +15 -0
- package/docs-dist/components/dialog/index.html +15 -0
- package/docs-dist/components/editor/index.html +15 -0
- package/docs-dist/components/group-form-item/index.html +15 -0
- package/docs-dist/components/index.html +15 -0
- package/docs-dist/components/interval-button/index.html +15 -0
- package/docs-dist/components/layout-keep-alive/index.html +15 -0
- package/docs-dist/components/loading/index.html +15 -0
- package/docs-dist/components/pro-grid/index.html +15 -0
- package/docs-dist/components/pro-table/index.html +15 -0
- package/docs-dist/components/pro-tabs/index.html +15 -0
- package/docs-dist/components/result/index.html +15 -0
- package/docs-dist/components/select/index.html +15 -0
- package/docs-dist/components/time-picker/index.html +15 -0
- package/docs-dist/components/trigger/index.html +15 -0
- package/docs-dist/components/virtual-list/index.html +15 -0
- package/docs-dist/components/water-mark/index.html +15 -0
- package/docs-dist/date-picker__demos.4cf5ef3e.async.js +1 -0
- package/docs-dist/date-picker__index.md.33be0665.chunk.css +1 -0
- package/docs-dist/date-picker__index.md.c27e69b2.async.js +1 -0
- package/docs-dist/dialog__demos.14d31789.async.js +1 -0
- package/docs-dist/dialog__index.md.33be0665.chunk.css +1 -0
- package/docs-dist/dialog__index.md.665375f8.async.js +1 -0
- package/docs-dist/docs__index.md.0a458278.async.js +1 -0
- package/docs-dist/docs__index.md.33be0665.chunk.css +1 -0
- package/docs-dist/docs__log.md.33be0665.chunk.css +1 -0
- package/docs-dist/docs__log.md.af406e13.async.js +1 -0
- package/docs-dist/docs__utils.md.33be0665.chunk.css +1 -0
- package/docs-dist/docs__utils.md.e1ca1150.async.js +1 -0
- package/docs-dist/dumi__tmp-production__dumi__theme__ContextWrapper.b4f42a14.async.js +233 -0
- package/docs-dist/dumi__tmp-production__dumi__theme__ContextWrapper.b9764392.chunk.css +1 -0
- package/docs-dist/editor__demos.f5ff3638.async.js +6 -0
- package/docs-dist/editor__index.md.33be0665.chunk.css +1 -0
- package/docs-dist/editor__index.md.b4f3c5a3.async.js +1 -0
- package/docs-dist/favicon.png +0 -0
- package/docs-dist/group-form-item__demos.3197aa4d.async.js +1 -0
- package/docs-dist/group-form-item__index.md.33be0665.chunk.css +1 -0
- package/docs-dist/group-form-item__index.md.63bf18f4.async.js +1 -0
- package/docs-dist/index.html +15 -0
- package/docs-dist/index.md.1621f8b8.async.js +1 -0
- package/docs-dist/index.md.33be0665.chunk.css +1 -0
- package/docs-dist/interval-button__demos.ff98564f.async.js +1 -0
- package/docs-dist/interval-button__index.md.33be0665.chunk.css +1 -0
- package/docs-dist/interval-button__index.md.54c9da91.async.js +1 -0
- package/docs-dist/layout-keep-alive__demos.c12a544d.async.js +1 -0
- package/docs-dist/layout-keep-alive__index.md.33be0665.chunk.css +1 -0
- package/docs-dist/layout-keep-alive__index.md.90ef1c2b.async.js +1 -0
- package/docs-dist/loading__demos.8ac9187d.async.js +1 -0
- package/docs-dist/loading__index.md.33be0665.chunk.css +1 -0
- package/docs-dist/loading__index.md.d52a9847.async.js +1 -0
- package/docs-dist/log/index.html +15 -0
- package/docs-dist/logo.svg +48 -0
- package/docs-dist/meta__auth.2fdb9639.async.js +12 -0
- package/docs-dist/meta__auth.b9764392.chunk.css +1 -0
- package/docs-dist/meta__button.420ed66c.async.js +8759 -0
- package/docs-dist/meta__button.b9764392.chunk.css +1 -0
- package/docs-dist/meta__cascader.79f5fc28.async.js +103 -0
- package/docs-dist/meta__cascader.b9764392.chunk.css +1 -0
- package/docs-dist/meta__date-picker.79265ba8.async.js +72 -0
- package/docs-dist/meta__date-picker.b9764392.chunk.css +1 -0
- package/docs-dist/meta__dialog.1ca8b654.async.js +502 -0
- package/docs-dist/meta__dialog.b9764392.chunk.css +1 -0
- package/docs-dist/meta__docs.5dbc484a.async.js +1 -0
- package/docs-dist/meta__editor.11adf92c.async.js +37 -0
- package/docs-dist/meta__editor.b9764392.chunk.css +1 -0
- package/docs-dist/meta__group-form-item.a6e6163c.async.js +36 -0
- package/docs-dist/meta__group-form-item.b9764392.chunk.css +1 -0
- package/docs-dist/meta__index.md.3fe47f24.async.js +1 -0
- package/docs-dist/meta__interval-button.72bce101.async.js +17 -0
- package/docs-dist/meta__interval-button.b9764392.chunk.css +1 -0
- package/docs-dist/meta__layout-keep-alive.3997804f.async.js +17 -0
- package/docs-dist/meta__layout-keep-alive.b9764392.chunk.css +1 -0
- package/docs-dist/meta__loading.b9764392.chunk.css +1 -0
- package/docs-dist/meta__loading.cd39daf6.async.js +24 -0
- package/docs-dist/meta__pro-grid.b9764392.chunk.css +1 -0
- package/docs-dist/meta__pro-grid.be34bc7a.async.js +21 -0
- package/docs-dist/meta__pro-table.b9764392.chunk.css +1 -0
- package/docs-dist/meta__pro-table.d318e6ac.async.js +609 -0
- package/docs-dist/meta__pro-tabs.2d66cb0d.async.js +104 -0
- package/docs-dist/meta__pro-tabs.b9764392.chunk.css +1 -0
- package/docs-dist/meta__result.12e85cae.async.js +20 -0
- package/docs-dist/meta__result.b9764392.chunk.css +1 -0
- package/docs-dist/meta__select.91395de5.async.js +337 -0
- package/docs-dist/meta__select.b9764392.chunk.css +1 -0
- package/docs-dist/meta__time-picker.5ae1cf72.async.js +24 -0
- package/docs-dist/meta__time-picker.b9764392.chunk.css +1 -0
- package/docs-dist/meta__trigger.0368918c.async.js +451 -0
- package/docs-dist/meta__trigger.b9764392.chunk.css +1 -0
- package/docs-dist/meta__virtual-list.71ae35a9.async.js +35 -0
- package/docs-dist/meta__virtual-list.b9764392.chunk.css +1 -0
- package/docs-dist/meta__water-mark.b9764392.chunk.css +1 -0
- package/docs-dist/meta__water-mark.f487e8dd.async.js +15 -0
- package/docs-dist/nm__dumi__dist__client__pages__404.8b85f2d9.chunk.css +1 -0
- package/docs-dist/nm__dumi__dist__client__pages__404.c319e0a3.async.js +1 -0
- package/docs-dist/nm__dumi__dist__client__pages__Demo__index.578aa5c0.chunk.css +1 -0
- package/docs-dist/nm__dumi__dist__client__pages__Demo__index.7e033f2b.async.js +1 -0
- package/docs-dist/nm__dumi__theme-default__layouts__DocLayout__index.8a08baa2.async.js +1 -0
- package/docs-dist/preload_helper.9430b29d.js +1 -0
- package/docs-dist/pro-grid__demos.81d67052.async.js +1 -0
- package/docs-dist/pro-grid__index.md.33be0665.chunk.css +1 -0
- package/docs-dist/pro-grid__index.md.a6b9c956.async.js +1 -0
- package/docs-dist/pro-table__demos.254e5b3a.async.js +1 -0
- package/docs-dist/pro-table__index.md.33be0665.chunk.css +1 -0
- package/docs-dist/pro-table__index.md.607fa3d4.async.js +1 -0
- package/docs-dist/pro-tabs__demos.2f05143c.async.js +1 -0
- package/docs-dist/pro-tabs__index.md.33be0665.chunk.css +1 -0
- package/docs-dist/pro-tabs__index.md.61a7d2c1.async.js +1 -0
- package/docs-dist/result__demos.689a5a17.async.js +1 -0
- package/docs-dist/result__index.md.33be0665.chunk.css +1 -0
- package/docs-dist/result__index.md.7cac7890.async.js +1 -0
- package/docs-dist/select__demos.c77af292.async.js +1 -0
- package/docs-dist/select__index.md.33be0665.chunk.css +1 -0
- package/docs-dist/select__index.md.f818a939.async.js +2 -0
- package/docs-dist/time-picker__demos.48d5025e.async.js +1 -0
- package/docs-dist/time-picker__index.md.25b2d39e.async.js +1 -0
- package/docs-dist/time-picker__index.md.33be0665.chunk.css +1 -0
- package/docs-dist/trigger__demos.2f9bf9f4.async.js +1 -0
- package/docs-dist/trigger__index.md.33be0665.chunk.css +1 -0
- package/docs-dist/trigger__index.md.7e0b7729.async.js +1 -0
- package/docs-dist/umi.52ae6580.js +110 -0
- package/docs-dist/umi.8c46519e.css +1 -0
- package/docs-dist/utils/index.html +15 -0
- package/docs-dist/virtual-list__demos.b1f5e707.async.js +1 -0
- package/docs-dist/virtual-list__index.md.33be0665.chunk.css +1 -0
- package/docs-dist/virtual-list__index.md.47c7bdca.async.js +1 -0
- package/docs-dist/water-mark__demos.f7bcee8a.async.js +1 -0
- package/docs-dist/water-mark__index.md.33be0665.chunk.css +1 -0
- package/docs-dist/water-mark__index.md.e5555c25.async.js +1 -0
- package/docs-dist/~demos/:id/index.html +15 -0
- package/docs-dist/~demos/auth-demo-basic/index.html +15 -0
- package/docs-dist/~demos/button-demo-button/index.html +15 -0
- package/docs-dist/~demos/button-demo-group/index.html +15 -0
- package/docs-dist/~demos/cascader-demo-basic/index.html +15 -0
- package/docs-dist/~demos/cascader-demo-cache/index.html +15 -0
- package/docs-dist/~demos/date-picker-demo-basic/index.html +15 -0
- package/docs-dist/~demos/date-picker-demo-range/index.html +15 -0
- package/docs-dist/~demos/dialog-demo-demos/index.html +15 -0
- package/docs-dist/~demos/editor-demo-demos/index.html +15 -0
- package/docs-dist/~demos/group-form-item-demo-basic/index.html +15 -0
- package/docs-dist/~demos/interval-button-demo-basic/index.html +15 -0
- package/docs-dist/~demos/layout-keep-alive-demo-basic/index.html +15 -0
- package/docs-dist/~demos/loading-demo-basic/index.html +15 -0
- package/docs-dist/~demos/pro-grid-demo-basic/index.html +15 -0
- package/docs-dist/~demos/pro-table-demo-basic/index.html +15 -0
- package/docs-dist/~demos/pro-table-demo-fixed/index.html +15 -0
- package/docs-dist/~demos/pro-table-demo-selection/index.html +15 -0
- package/docs-dist/~demos/pro-tabs-demo-basic/index.html +15 -0
- package/docs-dist/~demos/pro-tabs-demo-tab/index.html +15 -0
- package/docs-dist/~demos/result-demo-basic/index.html +15 -0
- package/docs-dist/~demos/select-demo-api/index.html +15 -0
- package/docs-dist/~demos/select-demo-basic/index.html +15 -0
- package/docs-dist/~demos/select-demo-customize/index.html +15 -0
- package/docs-dist/~demos/select-demo-customize-label/index.html +15 -0
- package/docs-dist/~demos/time-picker-demo-basic/index.html +15 -0
- package/docs-dist/~demos/trigger-demo-basic/index.html +15 -0
- package/docs-dist/~demos/virtual-list-demo-basic/index.html +15 -0
- package/docs-dist/~demos/water-mark-demo-basic/index.html +15 -0
- package/es/auth/index.d.ts +7 -0
- package/es/auth/index.js +14 -0
- package/es/ccs.d.ts +1 -1
- package/es/dialog/button.d.ts +1 -1
- package/package.json +3 -2
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_ccs_ui_rc_pro=self.webpackChunk_ccs_ui_rc_pro||[]).push([[3326],{42568:function(s,t,n){n.r(t),n.d(t,{demos:function(){return m}});var r=n(90228),o=n.n(r),p=n(87999),b=n.n(p),d=n(75271),m={"pro-tabs-demo-basic":{component:d.memo(d.lazy(function(){return n.e(3408).then(n.bind(n,82340))})),asset:{type:"BLOCK",id:"pro-tabs-demo-basic",refAtomIds:["pro-tabs"],dependencies:{"index.tsx":{type:"FILE",value:n(93177).Z},"@ccs-ui/rc-pro":{type:"NPM",value:"2.3.6-alpha-32"},antd:{type:"NPM",value:"5.24.6"}},entry:"index.tsx",title:"\u57FA\u672C\u7528\u6CD5",description:"\u4E3B\u754C\u9762\u7EDF\u4E00tab\u4F7F\u7528\u98CE\u683C"},context:{"@ccs-ui/rc-pro":n(20600),antd:n(13249)},renderOpts:{compile:function(){var l=b()(o()().mark(function u(){var a,c=arguments;return o()().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,n.e(7488).then(n.bind(n,47488));case 2:return e.abrupt("return",(a=e.sent).default.apply(a,c));case 3:case"end":return e.stop()}},u)}));function i(){return l.apply(this,arguments)}return i}()}},"pro-tabs-demo-tab":{component:d.memo(d.lazy(function(){return n.e(3408).then(n.bind(n,17678))})),asset:{type:"BLOCK",id:"pro-tabs-demo-tab",refAtomIds:["pro-tabs"],dependencies:{"index.tsx":{type:"FILE",value:n(39395).Z},"@ccs-ui/rc-pro":{type:"NPM",value:"2.3.6-alpha-32"},antd:{type:"NPM",value:"5.24.6"}},entry:"index.tsx",title:"tab \u4EA4\u4E92",description:"tab\u9009\u4E2D\uFF0Ctab\u4E4B\u95F4\u4F20\u503C\uFF0Ctab\u6DFB\u52A0\uFF0Ctab\u79FB\u9664\uFF0Ctab\u7981\u7528"},context:{"@ccs-ui/rc-pro":n(20600),antd:n(13249)},renderOpts:{compile:function(){var l=b()(o()().mark(function u(){var a,c=arguments;return o()().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,n.e(7488).then(n.bind(n,47488));case 2:return e.abrupt("return",(a=e.sent).default.apply(a,c));case 3:case"end":return e.stop()}},u)}));function i(){return l.apply(this,arguments)}return i}()}}}},68288:function(s,t,n){n.r(t),n.d(t,{texts:function(){return r}});const r=[{value:"\u57FA\u4E8E antd Tabs \u7EC4\u4EF6\uFF0C\u56FA\u5B9A\u754C\u9762\u98CE\u683C\uFF0Ctab \u95F4\u4F7F\u7528 hooks \u8FDB\u884C\u4EA4\u4E92",paraId:0,tocIndex:0},{value:"\u53C2\u6570",paraId:1,tocIndex:5},{value:"\u8BF4\u660E",paraId:1,tocIndex:5},{value:"\u7C7B\u578B",paraId:1,tocIndex:5},{value:"\u9ED8\u8BA4\u503C",paraId:1,tocIndex:5},{value:"activeKey",paraId:1,tocIndex:5},{value:"\u5F53\u524D\u6FC0\u6D3B tab \u9762\u677F\u7684 key",paraId:1,tocIndex:5},{value:"string",paraId:1,tocIndex:5},{value:"-",paraId:1,tocIndex:5},{value:"items",paraId:1,tocIndex:5},{value:"antd Tabs items",paraId:1,tocIndex:5},{value:"Tab[]",paraId:1,tocIndex:5},{value:"-",paraId:1,tocIndex:5},{value:"option",paraId:1,tocIndex:5},{value:"tab \u95F4\u4F20\u9012\u7684\u53C2\u6570",paraId:1,tocIndex:5},{value:"any",paraId:1,tocIndex:5},{value:"-",paraId:1,tocIndex:5},{value:"onChange",paraId:1,tocIndex:5},{value:"\u6539\u53D8 tab \u95F4\u4F20\u9012\u7684\u53C2\u6570",paraId:1,tocIndex:5},{value:"(tab: Partial<TabProps>) => void",paraId:1,tocIndex:5},{value:"-",paraId:1,tocIndex:5}]},93177:function(s,t){t.Z=`import { CcsProTabs } from '@ccs-ui/rc-pro';
|
|
2
|
+
import { Tabs } from 'antd';
|
|
3
|
+
|
|
4
|
+
const items = [
|
|
5
|
+
{
|
|
6
|
+
key: '1',
|
|
7
|
+
label: 'tab a',
|
|
8
|
+
children: <div style={{ padding: 16 }}>tab1</div>,
|
|
9
|
+
},
|
|
10
|
+
{
|
|
11
|
+
key: '2',
|
|
12
|
+
label: 'tab b',
|
|
13
|
+
children: <div style={{ padding: 16 }}>tab2</div>,
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
key: '3',
|
|
17
|
+
label: 'tab c',
|
|
18
|
+
children: <div style={{ padding: 16 }}>tab3</div>,
|
|
19
|
+
},
|
|
20
|
+
];
|
|
21
|
+
|
|
22
|
+
export default function Basic() {
|
|
23
|
+
return (
|
|
24
|
+
<>
|
|
25
|
+
<CcsProTabs>
|
|
26
|
+
<Tabs items={items} />
|
|
27
|
+
</CcsProTabs>
|
|
28
|
+
</>
|
|
29
|
+
);
|
|
30
|
+
}
|
|
31
|
+
`},39395:function(s,t){t.Z=`import { CcsProTabs, useCcsTabs } from '@ccs-ui/rc-pro';
|
|
32
|
+
import { Button, Card, Space, Tabs } from 'antd';
|
|
33
|
+
|
|
34
|
+
let tabId = 3;
|
|
35
|
+
const Tab1 = () => {
|
|
36
|
+
const { onAddTabs, onRemoveTabs, onTabChange } = useCcsTabs();
|
|
37
|
+
|
|
38
|
+
const onAdd = () => {
|
|
39
|
+
tabId += 1;
|
|
40
|
+
onAddTabs(
|
|
41
|
+
{
|
|
42
|
+
key: tabId.toString(),
|
|
43
|
+
label: \`tab\${tabId}\`,
|
|
44
|
+
children: <div>new tab...</div>,
|
|
45
|
+
},
|
|
46
|
+
tabId.toString(),
|
|
47
|
+
);
|
|
48
|
+
};
|
|
49
|
+
|
|
50
|
+
const onRemove = () => {
|
|
51
|
+
onRemoveTabs('99');
|
|
52
|
+
};
|
|
53
|
+
|
|
54
|
+
return (
|
|
55
|
+
<div style={{ padding: 20 }}>
|
|
56
|
+
<Space>
|
|
57
|
+
<Button
|
|
58
|
+
onClick={() =>
|
|
59
|
+
onTabChange({
|
|
60
|
+
activeKey: '2',
|
|
61
|
+
options: { id: new Date().getTime() },
|
|
62
|
+
})
|
|
63
|
+
}
|
|
64
|
+
>
|
|
65
|
+
\u5207\u6362tab
|
|
66
|
+
</Button>
|
|
67
|
+
<Button onClick={() => onTabChange({ disableKeys: ['3'] })}>
|
|
68
|
+
\u7981\u7528tab3
|
|
69
|
+
</Button>
|
|
70
|
+
<Button onClick={() => onTabChange({ enableKeys: ['3'] })}>
|
|
71
|
+
\u542F\u7528tab3
|
|
72
|
+
</Button>
|
|
73
|
+
<Button onClick={onAdd}>\u6DFB\u52A0tab</Button>
|
|
74
|
+
<Button onClick={onRemove}>\u79FB\u9664tab</Button>
|
|
75
|
+
</Space>
|
|
76
|
+
<div style={{ margin: '10px 0' }}> Content of tab 1 </div>
|
|
77
|
+
</div>
|
|
78
|
+
);
|
|
79
|
+
};
|
|
80
|
+
|
|
81
|
+
const Tab2 = () => {
|
|
82
|
+
const { options } = useCcsTabs();
|
|
83
|
+
return (
|
|
84
|
+
<div style={{ padding: 20 }}>
|
|
85
|
+
<div style={{ margin: '10px 0' }}> Content of tab 2 </div>
|
|
86
|
+
<div style={{ margin: '10px 0' }}> \u83B7\u53D6\u4F20\u9012\u7684\u53C2\u6570\uFF1A{options.id} </div>
|
|
87
|
+
</div>
|
|
88
|
+
);
|
|
89
|
+
};
|
|
90
|
+
|
|
91
|
+
const Tab3 = () => <Card>TabContent3...</Card>;
|
|
92
|
+
|
|
93
|
+
export default () => (
|
|
94
|
+
<CcsProTabs>
|
|
95
|
+
<Tabs
|
|
96
|
+
items={[
|
|
97
|
+
{ key: '1', label: 'tab1', children: <Tab1 /> },
|
|
98
|
+
{ key: '2', label: 'tab2', children: <Tab2 />, disabled: true },
|
|
99
|
+
{ key: '3', label: 'tab3', children: <Tab3 /> },
|
|
100
|
+
]}
|
|
101
|
+
/>
|
|
102
|
+
</CcsProTabs>
|
|
103
|
+
);
|
|
104
|
+
`}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.ccs-aj-modal .ccs-aj-bg{-webkit-user-drag:none}.ccs-aj-modal .ccs-aj-slider-img{top:0;position:absolute;-webkit-user-drag:none}.ccs-aj-modal .ccs-aj-body{position:relative}.ccs-aj-modal .ccs-aj-btn{display:flex;justify-content:space-between;margin-top:5px;align-items:center}.ccs-aj-modal .ccs-aj-error{color:red}.ccs-aj-modal .ccs-aj-slider{position:relative;height:40px}.ccs-aj-modal .ccs-aj-slider-track{height:30px;margin-top:10px;text-align:center;line-height:30px;border-radius:15px;user-select:none}.ccs-aj-modal .ccs-aj-slider-bar{height:40px;width:40px;position:absolute;bottom:5px;border-radius:50%;display:flex;align-items:center;justify-content:center;color:gray;font-size:12px;cursor:move}.ccs-aj-modal .ccs-aj-slider-bar:hover{box-shadow:#666 0 0 8px}.ccs-aj-modal .ccs-aj-word-slider{color:#52c41a;text-align:center;border:1px solid #52c41a;height:36px;line-height:36px;margin-top:10px}.ccs-aj-modal .ccs-word-point{background-color:#52c41a;border-radius:15px;width:26px;height:26px;line-height:26px;text-align:center;color:#fff;position:absolute}.ccs-color-picker{display:flex;justify-content:start}.ccs-color-picker-select{display:none!important}.ccs-editor .cm-editor{outline:none!important}.ccs-editor .cm-editor:hover{outline:1px solid #c8c8c8!important}.ccs-editor-preview .cm-gutters{display:none}.ccs-editor-preview .cm-activeLine{background:transparent}.ccs-ellipsis{overflow:hidden;line-height:1.5;word-break:break-word}.buttons button:not(:last-child):after{margin:0 4px 0 6px;color:#e8e8e8;content:"|"}.dark-table ::-webkit-scrollbar{width:12px;height:12px}.dark-table ::-webkit-scrollbar-thumb{background:#2a2c2c;border-radius:3px}.ccs-pl.css-table-full{position:fixed;left:0;right:0;top:0;bottom:0;z-index:9999}.ccs-table-pagination{margin:0!important;padding:12px 16px;text-align:right}.ccs-pl{display:flex;flex-direction:column}.ccs-pl-icon{font-size:16}.ccs-pl-table-content{position:relative;flex:auto}.ccs-pl-form-collapse{display:flex;justify-content:flex-end;flex-wrap:wrap;column-gap:10px}.ccs-pl-form-expand{display:flex;justify-content:flex-start;flex-wrap:wrap;column-gap:10px}.ccs-pl-adaptation-form{flex:1 1 auto;overflow:hidden}.ccs-pl-adaptation-form::-webkit-scrollbar{display:none}.ccs-pl-form-item{margin-bottom:10px!important;margin-inline-end:0!important}.ccs-pl-toolbar{flex:0 0 auto}.ccs-table-card .react-resizable{position:relative;background-clip:padding-box}.ccs-table-card .react-resizable-handle{position:absolute;right:-5px;bottom:0;z-index:1;width:15px;height:100%;cursor:col-resize}.ccs-tabs-auto-height{flex:1 1 auto;overflow:hidden}.ccs-table-ellipsis{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ccs-keep-alive{flex:1 1 auto;display:flex;flex-direction:column;overflow:hidden}.ccs-keep-alive-tabs-colorful>.ant-tabs-nav{margin:0}.ccs-keep-alive-tabs-colorful>.ant-tabs-nav:before{background:#fff;opacity:.1;position:absolute;top:0;right:0;bottom:0;left:0}.ccs-keep-alive-tabs-colorful>.ant-tabs-nav .ant-tabs-tab-active{background-color:#fff}.ccs-keep-alive-tabs-colorful>.ant-tabs-nav .ant-tabs-tab{border:0;padding:6px 16px!important;border-radius:0!important}.ccs-keep-alive-tabs-colorful>.ant-tabs-nav .ant-tabs-tab,.ccs-keep-alive-tabs-colorful>.ant-tabs-nav .ant-tabs-tab-remove,.ccs-keep-alive-tabs-colorful>.ant-tabs-nav .ant-tabs-extra-content>.ant-dropdown-trigger{color:#03a9f4}.ccs-keep-alive-nav{margin:0}.ccs-keep-alive-nav:before{border-bottom:0!important}.ccs-keep-alive-tabs{background-color:#fff;border-bottom:1px solid #f1f2f5}.ccs-keep-alive-tabs.dark{background-color:#252525;border-bottom:0}.ccs-keep-alive .ccs-tab-item{flex:1 1 auto;position:relative}.ccs-keep-alive .ccs-sticky-scroll>div{padding:10px 16px 16px;flex-direction:column;display:none}.ccs-keep-alive .ccs-sticky-scroll.route-avtive>div{display:flex}.ccs-sticky-scroll>div{display:flex;flex-direction:column;padding:10px 16px 16px}.colorful-theme .page-content{background-color:#fff}.ccs-breadcrumb{margin-bottom:10px}.ccs-trigger-hidden{display:none!important}.ccs-trigger-show{display:block!important}.ccs-trigger-icon{color:#00000040!important;font-size:12px}.ccs-trigger-container{overflow:auto;background:#fff;border-radius:2px;box-shadow:0 3px 6px -4px #0000001f,0 6px 16px #00000014,0 9px 28px 8px #0000000d;transition:margin .3s}.ccs-trigger-mask{position:fixed;top:0;right:0;bottom:0;left:0;height:100%;opacity:1}.ccs-trigger-mask-hidden,.rc-trigger-popup-hidden{display:none}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_ccs_ui_rc_pro=self.webpackChunk_ccs_ui_rc_pro||[]).push([[1819],{99559:function(r,n,e){e.r(n),e.d(n,{demos:function(){return _}});var t=e(90228),u=e.n(t),d=e(87999),a=e.n(d),o=e(75271),_={"result-demo-basic":{component:o.memo(o.lazy(function(){return e.e(597).then(e.bind(e,58731))})),asset:{type:"BLOCK",id:"result-demo-basic",refAtomIds:["result"],dependencies:{"index.tsx":{type:"FILE",value:e(15603).Z},"@ccs-ui/rc-pro":{type:"NPM",value:"2.3.6-alpha-32"}},entry:"index.tsx",title:"\u57FA\u672C\u7528\u6CD5",description:"\u57FA\u672C\u7528\u6CD5\u3002"},context:{"@ccs-ui/rc-pro":e(20600)},renderOpts:{compile:function(){var c=a()(u()().mark(function m(){var l,p=arguments;return u()().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return s.next=2,e.e(7488).then(e.bind(e,47488));case 2:return s.abrupt("return",(l=s.sent).default.apply(l,p));case 3:case"end":return s.stop()}},m)}));function i(){return c.apply(this,arguments)}return i}()}}}},45279:function(r,n,e){e.r(n),e.d(n,{texts:function(){return t}});const t=[{value:"\u7ED3\u679C\u9875",paraId:0,tocIndex:0},{value:`\u53C2\u8003
|
|
2
|
+
`,paraId:1,tocIndex:4},{value:"Antd Result",paraId:1,tocIndex:4}]},15603:function(r,n){n.Z=`import { CcsResult } from '@ccs-ui/rc-pro';
|
|
3
|
+
|
|
4
|
+
export default () => {
|
|
5
|
+
return (
|
|
6
|
+
<>
|
|
7
|
+
<CcsResult.Success
|
|
8
|
+
title="Successfully Purchased Cloud Server ECS!"
|
|
9
|
+
subTitle="Order number: 2017182818828182881 Cloud server configuration takes 1-5 minutes, please wait."
|
|
10
|
+
/>
|
|
11
|
+
<CcsResult.Info />
|
|
12
|
+
<CcsResult.Warning />
|
|
13
|
+
<CcsResult.Error />
|
|
14
|
+
<CcsResult.Page403 />
|
|
15
|
+
<CcsResult.Page404 />
|
|
16
|
+
<CcsResult.Page500 />
|
|
17
|
+
</>
|
|
18
|
+
);
|
|
19
|
+
};
|
|
20
|
+
`}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.ccs-aj-modal .ccs-aj-bg{-webkit-user-drag:none}.ccs-aj-modal .ccs-aj-slider-img{top:0;position:absolute;-webkit-user-drag:none}.ccs-aj-modal .ccs-aj-body{position:relative}.ccs-aj-modal .ccs-aj-btn{display:flex;justify-content:space-between;margin-top:5px;align-items:center}.ccs-aj-modal .ccs-aj-error{color:red}.ccs-aj-modal .ccs-aj-slider{position:relative;height:40px}.ccs-aj-modal .ccs-aj-slider-track{height:30px;margin-top:10px;text-align:center;line-height:30px;border-radius:15px;user-select:none}.ccs-aj-modal .ccs-aj-slider-bar{height:40px;width:40px;position:absolute;bottom:5px;border-radius:50%;display:flex;align-items:center;justify-content:center;color:gray;font-size:12px;cursor:move}.ccs-aj-modal .ccs-aj-slider-bar:hover{box-shadow:#666 0 0 8px}.ccs-aj-modal .ccs-aj-word-slider{color:#52c41a;text-align:center;border:1px solid #52c41a;height:36px;line-height:36px;margin-top:10px}.ccs-aj-modal .ccs-word-point{background-color:#52c41a;border-radius:15px;width:26px;height:26px;line-height:26px;text-align:center;color:#fff;position:absolute}.ccs-color-picker{display:flex;justify-content:start}.ccs-color-picker-select{display:none!important}.ccs-editor .cm-editor{outline:none!important}.ccs-editor .cm-editor:hover{outline:1px solid #c8c8c8!important}.ccs-editor-preview .cm-gutters{display:none}.ccs-editor-preview .cm-activeLine{background:transparent}.ccs-ellipsis{overflow:hidden;line-height:1.5;word-break:break-word}.buttons button:not(:last-child):after{margin:0 4px 0 6px;color:#e8e8e8;content:"|"}.dark-table ::-webkit-scrollbar{width:12px;height:12px}.dark-table ::-webkit-scrollbar-thumb{background:#2a2c2c;border-radius:3px}.ccs-pl.css-table-full{position:fixed;left:0;right:0;top:0;bottom:0;z-index:9999}.ccs-table-pagination{margin:0!important;padding:12px 16px;text-align:right}.ccs-pl{display:flex;flex-direction:column}.ccs-pl-icon{font-size:16}.ccs-pl-table-content{position:relative;flex:auto}.ccs-pl-form-collapse{display:flex;justify-content:flex-end;flex-wrap:wrap;column-gap:10px}.ccs-pl-form-expand{display:flex;justify-content:flex-start;flex-wrap:wrap;column-gap:10px}.ccs-pl-adaptation-form{flex:1 1 auto;overflow:hidden}.ccs-pl-adaptation-form::-webkit-scrollbar{display:none}.ccs-pl-form-item{margin-bottom:10px!important;margin-inline-end:0!important}.ccs-pl-toolbar{flex:0 0 auto}.ccs-table-card .react-resizable{position:relative;background-clip:padding-box}.ccs-table-card .react-resizable-handle{position:absolute;right:-5px;bottom:0;z-index:1;width:15px;height:100%;cursor:col-resize}.ccs-tabs-auto-height{flex:1 1 auto;overflow:hidden}.ccs-table-ellipsis{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ccs-keep-alive{flex:1 1 auto;display:flex;flex-direction:column;overflow:hidden}.ccs-keep-alive-tabs-colorful>.ant-tabs-nav{margin:0}.ccs-keep-alive-tabs-colorful>.ant-tabs-nav:before{background:#fff;opacity:.1;position:absolute;top:0;right:0;bottom:0;left:0}.ccs-keep-alive-tabs-colorful>.ant-tabs-nav .ant-tabs-tab-active{background-color:#fff}.ccs-keep-alive-tabs-colorful>.ant-tabs-nav .ant-tabs-tab{border:0;padding:6px 16px!important;border-radius:0!important}.ccs-keep-alive-tabs-colorful>.ant-tabs-nav .ant-tabs-tab,.ccs-keep-alive-tabs-colorful>.ant-tabs-nav .ant-tabs-tab-remove,.ccs-keep-alive-tabs-colorful>.ant-tabs-nav .ant-tabs-extra-content>.ant-dropdown-trigger{color:#03a9f4}.ccs-keep-alive-nav{margin:0}.ccs-keep-alive-nav:before{border-bottom:0!important}.ccs-keep-alive-tabs{background-color:#fff;border-bottom:1px solid #f1f2f5}.ccs-keep-alive-tabs.dark{background-color:#252525;border-bottom:0}.ccs-keep-alive .ccs-tab-item{flex:1 1 auto;position:relative}.ccs-keep-alive .ccs-sticky-scroll>div{padding:10px 16px 16px;flex-direction:column;display:none}.ccs-keep-alive .ccs-sticky-scroll.route-avtive>div{display:flex}.ccs-sticky-scroll>div{display:flex;flex-direction:column;padding:10px 16px 16px}.colorful-theme .page-content{background-color:#fff}.ccs-breadcrumb{margin-bottom:10px}.ccs-trigger-hidden{display:none!important}.ccs-trigger-show{display:block!important}.ccs-trigger-icon{color:#00000040!important;font-size:12px}.ccs-trigger-container{overflow:auto;background:#fff;border-radius:2px;box-shadow:0 3px 6px -4px #0000001f,0 6px 16px #00000014,0 9px 28px 8px #0000000d;transition:margin .3s}.ccs-trigger-mask{position:fixed;top:0;right:0;bottom:0;left:0;height:100%;opacity:1}.ccs-trigger-mask-hidden,.rc-trigger-popup-hidden{display:none}
|
|
@@ -0,0 +1,337 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_ccs_ui_rc_pro=self.webpackChunk_ccs_ui_rc_pro||[]).push([[417],{41358:function(s,t,e){e.r(t),e.d(t,{demos:function(){return m}});var p=e(90228),r=e.n(p),I=e(87999),o=e.n(I),l=e(75271),m={"select-demo-basic":{component:l.memo(l.lazy(function(){return e.e(6714).then(e.bind(e,63902))})),asset:{type:"BLOCK",id:"select-demo-basic",refAtomIds:["select"],dependencies:{"index.tsx":{type:"FILE",value:e(4417).Z},"@ccs-ui/rc-pro":{type:"NPM",value:"2.3.6-alpha-32"}},entry:"index.tsx",title:`Antd Select
|
|
2
|
+
\u57FA\u672C\u7528\u6CD5`,description:"\u6269\u5C55\uFF0C\u6DFB\u52A0\u9ED8\u8BA4\u914D\u7F6E(\u641C\u7D22\uFF0C\u6E05\u695A\uFF0C\u5360\u4F4D)\uFF0C\u652F\u6301\u62FC\u97F3\u5339\u914D\u9009\u9879\uFF0C\u6DFB\u52A0\u5168\u90E8\u9009\u4E2D\u3002"},context:{"@ccs-ui/rc-pro":e(20600)},renderOpts:{compile:function(){var u=o()(r()().mark(function a(){var d,i=arguments;return r()().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,e.e(7488).then(e.bind(e,47488));case 2:return n.abrupt("return",(d=n.sent).default.apply(d,i));case 3:case"end":return n.stop()}},a)}));function c(){return u.apply(this,arguments)}return c}()}},"select-demo-api":{component:l.memo(l.lazy(function(){return e.e(6714).then(e.bind(e,2427))})),asset:{type:"BLOCK",id:"select-demo-api",refAtomIds:["select"],dependencies:{"index.tsx":{type:"FILE",value:e(7728).Z},"@ccs-ui/rc-pro":{type:"NPM",value:"2.3.6-alpha-32"},antd:{type:"NPM",value:"5.24.6"},react:{type:"NPM",value:"18.3.1"},"./service.ts":{type:"FILE",value:e(44109).Z}},entry:"index.tsx",title:"\u57FA\u4E8E\u63A5\u53E3",description:"\u4F20\u5165 request \u8BF7\u6C42\uFF0C\u4F7F\u7528\u63A5\u53E3\u6570\u636E\u3002\u53EF\u914D\u7F6Ecache\u7F13\u5B58\u63A5\u53E3\u6570\u636E"},context:{"@ccs-ui/rc-pro":e(20600),antd:e(13249),react:e(75271),"./service.ts":e(63485)},renderOpts:{compile:function(){var u=o()(r()().mark(function a(){var d,i=arguments;return r()().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,e.e(7488).then(e.bind(e,47488));case 2:return n.abrupt("return",(d=n.sent).default.apply(d,i));case 3:case"end":return n.stop()}},a)}));function c(){return u.apply(this,arguments)}return c}()}},"select-demo-customize":{component:l.memo(l.lazy(function(){return e.e(6714).then(e.bind(e,76648))})),asset:{type:"BLOCK",id:"select-demo-customize",refAtomIds:["select"],dependencies:{"index.tsx":{type:"FILE",value:e(84836).Z},"@ccs-ui/rc-pro":{type:"NPM",value:"2.3.6-alpha-32"},ahooks:{type:"NPM",value:"3.8.0"},antd:{type:"NPM",value:"5.24.6"},"./service.ts":{type:"FILE",value:e(44109).Z}},entry:"index.tsx",title:"\u81EA\u5B9A\u4E49\u9009\u62E9\u5668",description:`\u81EA\u5B9A\u4E49\u5F39\u6846\u5185\u5BB9\uFF0C\u7528\u4E8E\u8868\u683C\u9009\u62E9\u7B49\u573A\u666F;
|
|
3
|
+
\u4F7F\u7528useTableSelection\u83B7\u53D6\u9009\u4E2D\u6570\u636E\uFF0C\u5904\u7406\u53D7\u63A7\u6570\u636E
|
|
4
|
+
\u4F7F\u7528mode\u53C2\u6570\u5224\u65AD\u5355\u9009\u6216\u591A\u9009;
|
|
5
|
+
\u4F7F\u7528\u53C2\u6570labelInValue\u8FD4\u56DE\u9009\u4E2D\u5BF9\u8C61\u6570\u636E`},context:{"@ccs-ui/rc-pro":e(20600),ahooks:e(42191),antd:e(13249),"./service.ts":e(63485)},renderOpts:{compile:function(){var u=o()(r()().mark(function a(){var d,i=arguments;return r()().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,e.e(7488).then(e.bind(e,47488));case 2:return n.abrupt("return",(d=n.sent).default.apply(d,i));case 3:case"end":return n.stop()}},a)}));function c(){return u.apply(this,arguments)}return c}()}},"select-demo-customize-label":{component:l.memo(l.lazy(function(){return e.e(6714).then(e.bind(e,26752))})),asset:{type:"BLOCK",id:"select-demo-customize-label",refAtomIds:["select"],dependencies:{"index.tsx":{type:"FILE",value:e(81783).Z},"@ccs-ui/rc-pro":{type:"NPM",value:"2.3.6-alpha-32"},antd:{type:"NPM",value:"5.24.6"},"./service.ts":{type:"FILE",value:e(44109).Z}},entry:"index.tsx",title:"\u81EA\u5B9A\u4E49\u9009\u4E2D\u8BE6\u60C5"},context:{"@ccs-ui/rc-pro":e(20600),antd:e(13249),"./service.ts":e(63485)},renderOpts:{compile:function(){var u=o()(r()().mark(function a(){var d,i=arguments;return r()().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,e.e(7488).then(e.bind(e,47488));case 2:return n.abrupt("return",(d=n.sent).default.apply(d,i));case 3:case"end":return n.stop()}},a)}));function c(){return u.apply(this,arguments)}return c}()}}}},63485:function(s,t,e){e.r(t),e.d(t,{onRequest:function(){return p},onRequestList:function(){return I},onRequestPage:function(){return r}});function p(){return new Promise(function(o){setTimeout(function(){o({msg:"",success:!0,data:[{id:"1",name:"\u9009\u9879\u4E00"},{id:"2",name:"\u9009\u9879\u4E8C"},{id:"3",name:"\u9009\u9879\u4E09"}]})},1e3)})}function r(o){var l=o.pageNo;return new Promise(function(m){setTimeout(function(){m({data:{totalNum:20,result:Array(10).fill("").map(function(u,c){var a=(l-1)*10+c+1;return{id:a.toString(),name:"\u9009\u9879".concat(a,"\u9009\u9879").concat(a,"\u9009\u9879").concat(a,"\u9009\u9879").concat(a,"\u9009\u9879").concat(a,"\u9009\u9879").concat(a,"\u9009\u9879").concat(a,"\u9009\u9879").concat(a,"\u9009\u9879").concat(a,"\u9009\u9879").concat(a)}})}})},1e3)})}function I(o){return new Promise(function(l){setTimeout(function(){l({data:Array.isArray(o)?o.map(function(m){return{id:m,name:"\u9009\u9879".concat(m)}}):[{id:o,name:"\u9009\u9879".concat(o)}]})},1500)})}},2487:function(s,t,e){e.r(t),e.d(t,{texts:function(){return p}});const p=[{value:"Antd Select \u7EC4\u4EF6\u6269\u5C55\uFF0C\u6DFB\u52A0\u9ED8\u8BA4\u914D\u7F6E\uFF0C\u57FA\u4E8E\u63A5\u53E3\u9009\u62E9\uFF0C\u81EA\u5B9A\u4E49\u5F39\u6846\u9009\u62E9\u3002",paraId:0,tocIndex:0},{value:"\u901A\u7528\u5C5E\u6027\u7EE7\u627F ",paraId:1,tocIndex:7},{value:"Antd Select",paraId:1,tocIndex:7},{value:"\u53C2\u6570",paraId:2,tocIndex:7},{value:"\u8BF4\u660E",paraId:2,tocIndex:7},{value:"\u7C7B\u578B",paraId:2,tocIndex:7},{value:"\u9ED8\u8BA4\u503C",paraId:2,tocIndex:7},{value:"showAll",paraId:2,tocIndex:7},{value:"\u6DFB\u52A0\u5168\u90E8\u9009\u9879",paraId:2,tocIndex:7},{value:"boolean | { label: string, value: any }",paraId:2,tocIndex:7},{value:"-",paraId:2,tocIndex:7},{value:"fieldNames",paraId:2,tocIndex:7},{value:"\u9009\u9879\u5B57\u6BB5\u914D\u7F6E",paraId:2,tocIndex:7},{value:"{ label: string | string[], value: string | string[] }",paraId:2,tocIndex:7},{value:"-",paraId:2,tocIndex:7},{value:"\u7EE7\u627F ",paraId:3,tocIndex:8},{value:"CcsSelectProps",paraId:3,tocIndex:8},{value:"\u53C2\u6570",paraId:4,tocIndex:8},{value:"\u8BF4\u660E",paraId:4,tocIndex:8},{value:"\u7C7B\u578B",paraId:4,tocIndex:8},{value:"\u9ED8\u8BA4\u503C",paraId:4,tocIndex:8},{value:"request",paraId:4,tocIndex:8},{value:"\u63A5\u53E3\u67E5\u8BE2\u65B9\u6CD5",paraId:4,tocIndex:8},{value:"(dependParams: any) => Promise<any[]>",paraId:4,tocIndex:8},{value:"-",paraId:4,tocIndex:8},{value:"defaultParams",paraId:4,tocIndex:8},{value:"\u9ED8\u8BA4\u53C2\u6570",paraId:4,tocIndex:8},{value:"Record<string,any>",paraId:4,tocIndex:8},{value:"-",paraId:4,tocIndex:8},{value:"cache",paraId:4,tocIndex:8},{value:"\u6570\u636E\u7F13\u5B58\u914D\u7F6E",paraId:4,tocIndex:8},{value:"CacheType",paraId:4,tocIndex:8},{value:"-",paraId:4,tocIndex:8},{value:"\u53C2\u6570",paraId:5,tocIndex:9},{value:"\u8BF4\u660E",paraId:5,tocIndex:9},{value:"\u7C7B\u578B",paraId:5,tocIndex:9},{value:"\u9ED8\u8BA4\u503C",paraId:5,tocIndex:9},{value:"cacheKey",paraId:5,tocIndex:9},{value:"\u7F13\u5B58 key\uFF0C\u540C\u4E00\u4E2A key \u5C06\u5168\u5C40\u5171\u4EAB\u6570\u636E",paraId:5,tocIndex:9},{value:"string",paraId:5,tocIndex:9},{value:"-",paraId:5,tocIndex:9},{value:"staleTime",paraId:5,tocIndex:9},{value:"\u8BBE\u7F6E\u6570\u636E\u4FDD\u6301\u65B0\u9C9C\u65F6\u95F4,\u5728\u8BE5\u65F6\u95F4\u5185\uFF0C\u6211\u4EEC\u8BA4\u4E3A\u6570\u636E\u662F\u65B0\u9C9C\u7684\uFF0C\u4E0D\u4F1A\u91CD\u65B0\u53D1\u8D77\u8BF7\u6C42",paraId:5,tocIndex:9},{value:"number",paraId:5,tocIndex:9},{value:"-",paraId:5,tocIndex:9},{value:"cacheTime",paraId:5,tocIndex:9},{value:"\u8BBE\u7F6E\u6570\u636E\u7F13\u5B58\u65F6\u95F4\uFF0C\u8D85\u8FC7\u8BE5\u65F6\u95F4\uFF0C\u6211\u4EEC\u4F1A\u6E05\u7A7A\u8BE5\u6761\u7F13\u5B58\u6570\u636E",paraId:5,tocIndex:9},{value:"number",paraId:5,tocIndex:9},{value:"-",paraId:5,tocIndex:9},{value:"\u7EE7\u627F",paraId:6,tocIndex:10},{value:"SelectProps",paraId:6,tocIndex:10},{value:"\u53C2\u6570",paraId:7,tocIndex:10},{value:"\u8BF4\u660E",paraId:7,tocIndex:10},{value:"\u7C7B\u578B",paraId:7,tocIndex:10},{value:"\u9ED8\u8BA4\u503C",paraId:7,tocIndex:10},{value:"width",paraId:7,tocIndex:10},{value:"\u9009\u62E9\u89E6\u53D1\u5668\u5BBD\u5EA6",paraId:7,tocIndex:10},{value:"number",paraId:7,tocIndex:10},{value:"-",paraId:7,tocIndex:10},{value:"contentWidth",paraId:7,tocIndex:10},{value:"\u5185\u5BB9\u5BBD\u5EA6",paraId:7,tocIndex:10},{value:"number",paraId:7,tocIndex:10},{value:"-",paraId:7,tocIndex:10},{value:"children",paraId:7,tocIndex:10},{value:"\u81EA\u5B9A\u4E49\u5185\u5BB9",paraId:7,tocIndex:10},{value:"ReactElement | ((props: SelectChildrenProps) => ReactNode)",paraId:7,tocIndex:10},{value:"-",paraId:7,tocIndex:10},{value:"\u7EE7\u627F",paraId:8,tocIndex:11},{value:"SelectProps",paraId:8,tocIndex:11},{value:"\u53C2\u6570",paraId:9,tocIndex:11},{value:"\u8BF4\u660E",paraId:9,tocIndex:11},{value:"\u7C7B\u578B",paraId:9,tocIndex:11},{value:"\u9ED8\u8BA4\u503C",paraId:9,tocIndex:11},{value:"width",paraId:9,tocIndex:11},{value:"\u9009\u62E9\u89E6\u53D1\u5668\u5BBD\u5EA6",paraId:9,tocIndex:11},{value:"number",paraId:9,tocIndex:11},{value:"-",paraId:9,tocIndex:11},{value:"modal",paraId:9,tocIndex:11},{value:"ant modal \u53C2\u6570",paraId:9,tocIndex:11},{value:"ModalProps",paraId:9,tocIndex:11},{value:"-",paraId:9,tocIndex:11},{value:"children",paraId:9,tocIndex:11},{value:"\u81EA\u5B9A\u4E49\u5185\u5BB9",paraId:9,tocIndex:11},{value:"ReactElement | ((props: SelectChildrenProps) => ReactNode)",paraId:9,tocIndex:11},{value:"-",paraId:9,tocIndex:11},{value:"\u7EE7\u627F",paraId:10,tocIndex:12},{value:"SelectProps 'value' | 'onChange' | 'mode' \u5C5E\u6027",paraId:10,tocIndex:12},{value:"\u53C2\u6570",paraId:11,tocIndex:12},{value:"\u8BF4\u660E",paraId:11,tocIndex:12},{value:"\u7C7B\u578B",paraId:11,tocIndex:12},{value:"\u9ED8\u8BA4\u503C",paraId:11,tocIndex:12},{value:"onChangeOptions",paraId:11,tocIndex:12},{value:"\u66F4\u65B0 select options",paraId:11,tocIndex:12},{value:"function(options)",paraId:11,tocIndex:12},{value:"-",paraId:11,tocIndex:12},{value:"onChangeLabel",paraId:11,tocIndex:12},{value:"\u66F4\u65B0 \u9009\u4E2D\u9879\u8BF4\u660E\u4FE1\u606F",paraId:11,tocIndex:12},{value:"function(labelText)",paraId:11,tocIndex:12},{value:"-",paraId:11,tocIndex:12},{value:"onLoading",paraId:11,tocIndex:12},{value:"\u66F4\u65B0 select loading",paraId:11,tocIndex:12},{value:"function(loading)",paraId:11,tocIndex:12},{value:"-",paraId:11,tocIndex:12}]},7728:function(s,t){t.Z=`import { CcsSelect } from '@ccs-ui/rc-pro';
|
|
6
|
+
import { Button, Space } from 'antd';
|
|
7
|
+
import { useState } from 'react';
|
|
8
|
+
import { onRequest } from './service';
|
|
9
|
+
|
|
10
|
+
export default () => {
|
|
11
|
+
const [count, setCount] = useState(1);
|
|
12
|
+
|
|
13
|
+
return (
|
|
14
|
+
<>
|
|
15
|
+
<Space direction="vertical">
|
|
16
|
+
<CcsSelect.Api
|
|
17
|
+
request={onRequest}
|
|
18
|
+
placeholder="\u8BF7\u9009\u62E9"
|
|
19
|
+
style={{ width: 200 }}
|
|
20
|
+
showAll
|
|
21
|
+
fieldNames={{ label: ['data', 'name'], value: ['data', 'id'] }}
|
|
22
|
+
/>
|
|
23
|
+
{Array(count)
|
|
24
|
+
.fill('')
|
|
25
|
+
.map((_, index) => (
|
|
26
|
+
<CcsSelect.Api
|
|
27
|
+
key={index}
|
|
28
|
+
request={onRequest}
|
|
29
|
+
placeholder="\u8BF7\u9009\u62E9"
|
|
30
|
+
style={{ width: 200 }}
|
|
31
|
+
fieldNames={{ label: ['data', 'name'], value: ['data', 'id'] }}
|
|
32
|
+
cache={{ cacheKey: '_Select_01', staleTime: 60 * 60 * 1000 }}
|
|
33
|
+
/>
|
|
34
|
+
))}
|
|
35
|
+
<Button onClick={() => setCount(count + 1)}>\u6DFB\u52A0</Button>
|
|
36
|
+
</Space>
|
|
37
|
+
</>
|
|
38
|
+
);
|
|
39
|
+
};
|
|
40
|
+
`},4417:function(s,t){t.Z=`import { CcsSelect } from '@ccs-ui/rc-pro';
|
|
41
|
+
|
|
42
|
+
export default () => {
|
|
43
|
+
return (
|
|
44
|
+
<>
|
|
45
|
+
<CcsSelect
|
|
46
|
+
options={[
|
|
47
|
+
{ value: '1', label: '\u9009\u9879\u4E00' },
|
|
48
|
+
{ value: '2', label: '\u9009\u9879\u4E8C' },
|
|
49
|
+
{ value: '3', label: '\u9009\u9879\u4E09' },
|
|
50
|
+
]}
|
|
51
|
+
placeholder="\u8BF7\u9009\u62E9"
|
|
52
|
+
style={{ width: 200 }}
|
|
53
|
+
showAll
|
|
54
|
+
/>
|
|
55
|
+
</>
|
|
56
|
+
);
|
|
57
|
+
};
|
|
58
|
+
`},81783:function(s,t){t.Z=`import { CcsProTable, CcsSelect, useTableSelection } from '@ccs-ui/rc-pro';
|
|
59
|
+
import { Form, Space } from 'antd';
|
|
60
|
+
import { SelectChildrenProps } from '../customize';
|
|
61
|
+
import { onRequestPage, RecordType } from './service';
|
|
62
|
+
|
|
63
|
+
function CustomSelect({
|
|
64
|
+
mode,
|
|
65
|
+
value,
|
|
66
|
+
onChange,
|
|
67
|
+
onChangeLabel,
|
|
68
|
+
}: SelectChildrenProps) {
|
|
69
|
+
// \u9009\u62E9\u72B6\u6001\u4E8B\u4EF6\uFF0C\u5904\u7406\u53D7\u63A7\u72B6\u6001\uFF0C\u9009\u4E2D\u663E\u793A\u6587\u5B57\u4FE1\u606F
|
|
70
|
+
const rowSelection = useTableSelection({
|
|
71
|
+
value,
|
|
72
|
+
onChange,
|
|
73
|
+
keyField: 'id',
|
|
74
|
+
onChangeRows: (rows) => {
|
|
75
|
+
// \u81EA\u5B9A\u4E49\u663E\u793A\u9009\u4E2D\u8BE6\u60C5
|
|
76
|
+
onChangeLabel?.(\`\u5DF2\u9009\u4E2D\${rows.length}\u9879\`);
|
|
77
|
+
},
|
|
78
|
+
type: !!mode ? 'checkbox' : 'radio',
|
|
79
|
+
preserveSelectedRowKeys: true,
|
|
80
|
+
});
|
|
81
|
+
|
|
82
|
+
return (
|
|
83
|
+
<CcsProTable<RecordType>
|
|
84
|
+
table={{
|
|
85
|
+
rowKey: 'id',
|
|
86
|
+
size: 'small',
|
|
87
|
+
request: onRequestPage,
|
|
88
|
+
rowSelection,
|
|
89
|
+
hideOperation: true,
|
|
90
|
+
columns: [
|
|
91
|
+
{ dataIndex: 'id', title: 'ID' },
|
|
92
|
+
{ dataIndex: 'name', title: 'Name' },
|
|
93
|
+
],
|
|
94
|
+
}}
|
|
95
|
+
/>
|
|
96
|
+
);
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
export default () => {
|
|
100
|
+
return (
|
|
101
|
+
<Space direction="vertical">
|
|
102
|
+
<Form
|
|
103
|
+
onValuesChange={(values) => {
|
|
104
|
+
console.log('form values', values);
|
|
105
|
+
}}
|
|
106
|
+
>
|
|
107
|
+
<Form.Item name="customLabel">
|
|
108
|
+
<CcsSelect.Customize
|
|
109
|
+
width={200}
|
|
110
|
+
contentWidth={500}
|
|
111
|
+
placeholder="\u8BF7\u9009\u62E9"
|
|
112
|
+
title="\u8868\u683C\u9009\u62E9"
|
|
113
|
+
mode="multiple"
|
|
114
|
+
>
|
|
115
|
+
<CustomSelect />
|
|
116
|
+
</CcsSelect.Customize>
|
|
117
|
+
</Form.Item>
|
|
118
|
+
<Form.Item name="customModalLabel">
|
|
119
|
+
<CcsSelect.Modal
|
|
120
|
+
placeholder="\u8BF7\u9009\u62E9"
|
|
121
|
+
width={200}
|
|
122
|
+
mode="multiple"
|
|
123
|
+
modal={{
|
|
124
|
+
width: 600,
|
|
125
|
+
title: '\u8868\u683C\u9009\u62E9',
|
|
126
|
+
}}
|
|
127
|
+
>
|
|
128
|
+
<CustomSelect />
|
|
129
|
+
</CcsSelect.Modal>
|
|
130
|
+
</Form.Item>
|
|
131
|
+
</Form>
|
|
132
|
+
</Space>
|
|
133
|
+
);
|
|
134
|
+
};
|
|
135
|
+
`},84836:function(s,t){t.Z=`import { CcsProTable, CcsSelect, useTableSelection } from '@ccs-ui/rc-pro';
|
|
136
|
+
import { useRequest } from 'ahooks';
|
|
137
|
+
import { Form, Space } from 'antd';
|
|
138
|
+
import { SelectChildrenProps } from '../customize';
|
|
139
|
+
import { onRequestList, onRequestPage, RecordType } from './service';
|
|
140
|
+
|
|
141
|
+
function CustomSelect({
|
|
142
|
+
mode,
|
|
143
|
+
onLoading,
|
|
144
|
+
onChangeOptions,
|
|
145
|
+
value,
|
|
146
|
+
onChange,
|
|
147
|
+
}: SelectChildrenProps) {
|
|
148
|
+
// \u521D\u59CB\u5316\uFF0C\u5982\u679C\u9700\u8981\u56DE\u663E\u9009\u4E2D\u503C\uFF0C\u5219\u9700\u6839\u636Evalue\u83B7\u53D6\u76F8\u5E94\u7684\u6570\u636E
|
|
149
|
+
const defaultReq = useRequest(
|
|
150
|
+
async () => {
|
|
151
|
+
onLoading?.(true);
|
|
152
|
+
const listResult = await onRequestList(value);
|
|
153
|
+
onLoading?.(false);
|
|
154
|
+
return listResult;
|
|
155
|
+
},
|
|
156
|
+
{ manual: !value },
|
|
157
|
+
);
|
|
158
|
+
|
|
159
|
+
// \u9009\u4E2D\u4E8B\u4EF6\uFF0C\u5904\u7406\u53D7\u63A7\u72B6\u6001\uFF0C\u9009\u4E2D\u663E\u793A\u6587\u5B57\u4FE1\u606F
|
|
160
|
+
const { selectedRows, onClear, ...rowSelection } = useTableSelection({
|
|
161
|
+
value,
|
|
162
|
+
onChange,
|
|
163
|
+
type: !!mode ? 'checkbox' : 'radio',
|
|
164
|
+
keyField: 'id',
|
|
165
|
+
onChangeRows: onChangeOptions,
|
|
166
|
+
defaultRows: defaultReq.data?.data,
|
|
167
|
+
preserveSelectedRowKeys: true,
|
|
168
|
+
});
|
|
169
|
+
|
|
170
|
+
// \u9009\u4E2D\u9879
|
|
171
|
+
const renderTitle = () => (
|
|
172
|
+
<CcsProTable.SelectionAlert
|
|
173
|
+
color="processing"
|
|
174
|
+
data={selectedRows || []}
|
|
175
|
+
fieldNames={{ key: 'id', label: 'name' }}
|
|
176
|
+
onClear={onClear}
|
|
177
|
+
/>
|
|
178
|
+
);
|
|
179
|
+
|
|
180
|
+
return (
|
|
181
|
+
<CcsProTable<RecordType>
|
|
182
|
+
table={{
|
|
183
|
+
loading: defaultReq.loading,
|
|
184
|
+
title: !!mode ? renderTitle : undefined,
|
|
185
|
+
rowKey: 'id',
|
|
186
|
+
size: 'small',
|
|
187
|
+
request: onRequestPage,
|
|
188
|
+
rowSelection,
|
|
189
|
+
hideOperation: true,
|
|
190
|
+
columns: [
|
|
191
|
+
{ dataIndex: 'id', title: 'ID' },
|
|
192
|
+
{ dataIndex: 'name', title: 'Name', ellipsis: true },
|
|
193
|
+
],
|
|
194
|
+
}}
|
|
195
|
+
/>
|
|
196
|
+
);
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
export default () => {
|
|
200
|
+
return (
|
|
201
|
+
<Space direction="vertical">
|
|
202
|
+
<Form
|
|
203
|
+
initialValues={{
|
|
204
|
+
customName: '12',
|
|
205
|
+
customNames: ['1', '2', '12'],
|
|
206
|
+
customModalName: '12',
|
|
207
|
+
customModalNames: ['1', '2', '12'],
|
|
208
|
+
customNameObj: ['1', '2'],
|
|
209
|
+
}}
|
|
210
|
+
onValuesChange={(values) => {
|
|
211
|
+
console.log('form values', values);
|
|
212
|
+
}}
|
|
213
|
+
>
|
|
214
|
+
<Form.Item name="customName" label="table \u5355\u9009">
|
|
215
|
+
<CcsSelect.Customize
|
|
216
|
+
width={200}
|
|
217
|
+
contentWidth={500}
|
|
218
|
+
placeholder="\u8BF7\u9009\u62E9"
|
|
219
|
+
fieldNames={{ label: 'name', value: 'id' }}
|
|
220
|
+
>
|
|
221
|
+
<CustomSelect />
|
|
222
|
+
</CcsSelect.Customize>
|
|
223
|
+
</Form.Item>
|
|
224
|
+
<Form.Item name="customNames" label="table \u591A\u9009">
|
|
225
|
+
<CcsSelect.Customize
|
|
226
|
+
fieldNames={{ label: 'name', value: 'id' }}
|
|
227
|
+
width={250}
|
|
228
|
+
contentWidth={500}
|
|
229
|
+
placeholder="\u8BF7\u9009\u62E9"
|
|
230
|
+
mode="multiple"
|
|
231
|
+
>
|
|
232
|
+
<CustomSelect />
|
|
233
|
+
</CcsSelect.Customize>
|
|
234
|
+
</Form.Item>
|
|
235
|
+
<Form.Item name="aaaaaaaaa" label="table \u591A\u9009aaaa">
|
|
236
|
+
<CcsSelect.Customize
|
|
237
|
+
fieldNames={{ label: 'name', value: 'id' }}
|
|
238
|
+
width={250}
|
|
239
|
+
contentWidth={500}
|
|
240
|
+
placeholder="\u8BF7\u9009\u62E9"
|
|
241
|
+
mode="multiple"
|
|
242
|
+
>
|
|
243
|
+
<CustomSelect />
|
|
244
|
+
</CcsSelect.Customize>
|
|
245
|
+
</Form.Item>
|
|
246
|
+
<Form.Item name="customModalName" label="modal table \u5355\u9009">
|
|
247
|
+
<CcsSelect.Modal
|
|
248
|
+
width={240}
|
|
249
|
+
fieldNames={{ label: 'name', value: 'id' }}
|
|
250
|
+
placeholder="\u8BF7\u9009\u62E9"
|
|
251
|
+
modal={{ width: 600, title: 'modal table \u5355\u9009' }}
|
|
252
|
+
>
|
|
253
|
+
<CustomSelect />
|
|
254
|
+
</CcsSelect.Modal>
|
|
255
|
+
</Form.Item>
|
|
256
|
+
<Form.Item name="customModalNames" label="modal table \u591A\u9009">
|
|
257
|
+
<CcsSelect.Modal
|
|
258
|
+
mode="multiple"
|
|
259
|
+
width={250}
|
|
260
|
+
fieldNames={{ label: 'name', value: 'id' }}
|
|
261
|
+
placeholder="\u8BF7\u9009\u62E9"
|
|
262
|
+
modal={{ width: 600, title: 'modal table \u591A\u9009' }}
|
|
263
|
+
>
|
|
264
|
+
<CustomSelect />
|
|
265
|
+
</CcsSelect.Modal>
|
|
266
|
+
</Form.Item>
|
|
267
|
+
<Form.Item name="customNameObj" label="\u8FD4\u56DE\u9009\u4E2D\u5BF9\u8C61">
|
|
268
|
+
<CcsSelect.Customize
|
|
269
|
+
labelInValue
|
|
270
|
+
fieldNames={{ label: 'name', value: 'id' }}
|
|
271
|
+
width={250}
|
|
272
|
+
contentWidth={500}
|
|
273
|
+
placeholder="\u8BF7\u9009\u62E9"
|
|
274
|
+
mode="multiple"
|
|
275
|
+
>
|
|
276
|
+
<CustomSelect />
|
|
277
|
+
</CcsSelect.Customize>
|
|
278
|
+
</Form.Item>
|
|
279
|
+
</Form>
|
|
280
|
+
</Space>
|
|
281
|
+
);
|
|
282
|
+
};
|
|
283
|
+
`},44109:function(s,t){t.Z=`export type RecordType = { id: string; name: string };
|
|
284
|
+
|
|
285
|
+
export function onRequest() {
|
|
286
|
+
return new Promise<any>((resolve) => {
|
|
287
|
+
setTimeout(() => {
|
|
288
|
+
resolve({
|
|
289
|
+
msg: '',
|
|
290
|
+
success: true,
|
|
291
|
+
data: [
|
|
292
|
+
{ id: '1', name: '\u9009\u9879\u4E00' },
|
|
293
|
+
{ id: '2', name: '\u9009\u9879\u4E8C' },
|
|
294
|
+
{ id: '3', name: '\u9009\u9879\u4E09' },
|
|
295
|
+
],
|
|
296
|
+
});
|
|
297
|
+
}, 1000);
|
|
298
|
+
});
|
|
299
|
+
}
|
|
300
|
+
|
|
301
|
+
// table \u5206\u9875
|
|
302
|
+
export function onRequestPage({ pageNo }: { pageNo: number }) {
|
|
303
|
+
return new Promise<{
|
|
304
|
+
data: { totalNum: number; result: RecordType[] };
|
|
305
|
+
}>((resolve) => {
|
|
306
|
+
setTimeout(() => {
|
|
307
|
+
resolve({
|
|
308
|
+
data: {
|
|
309
|
+
totalNum: 20,
|
|
310
|
+
result: Array(10)
|
|
311
|
+
.fill('')
|
|
312
|
+
.map((f, index) => {
|
|
313
|
+
const id = (pageNo - 1) * 10 + index + 1;
|
|
314
|
+
return {
|
|
315
|
+
id: id.toString(),
|
|
316
|
+
name: \`\u9009\u9879\${id}\u9009\u9879\${id}\u9009\u9879\${id}\u9009\u9879\${id}\u9009\u9879\${id}\u9009\u9879\${id}\u9009\u9879\${id}\u9009\u9879\${id}\u9009\u9879\${id}\u9009\u9879\${id}\`,
|
|
317
|
+
};
|
|
318
|
+
}),
|
|
319
|
+
},
|
|
320
|
+
});
|
|
321
|
+
}, 1000);
|
|
322
|
+
});
|
|
323
|
+
}
|
|
324
|
+
|
|
325
|
+
// \u83B7\u53D6\u6E05\u5355\u6570\u636E
|
|
326
|
+
export function onRequestList(value: string | string[]) {
|
|
327
|
+
return new Promise<{ data: RecordType[] }>((resolve) => {
|
|
328
|
+
setTimeout(() => {
|
|
329
|
+
resolve({
|
|
330
|
+
data: Array.isArray(value)
|
|
331
|
+
? value.map((v) => ({ id: v, name: \`\u9009\u9879\${v}\` }))
|
|
332
|
+
: [{ id: value, name: \`\u9009\u9879\${value}\` }],
|
|
333
|
+
});
|
|
334
|
+
}, 1500);
|
|
335
|
+
});
|
|
336
|
+
}
|
|
337
|
+
`}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.ccs-aj-modal .ccs-aj-bg{-webkit-user-drag:none}.ccs-aj-modal .ccs-aj-slider-img{top:0;position:absolute;-webkit-user-drag:none}.ccs-aj-modal .ccs-aj-body{position:relative}.ccs-aj-modal .ccs-aj-btn{display:flex;justify-content:space-between;margin-top:5px;align-items:center}.ccs-aj-modal .ccs-aj-error{color:red}.ccs-aj-modal .ccs-aj-slider{position:relative;height:40px}.ccs-aj-modal .ccs-aj-slider-track{height:30px;margin-top:10px;text-align:center;line-height:30px;border-radius:15px;user-select:none}.ccs-aj-modal .ccs-aj-slider-bar{height:40px;width:40px;position:absolute;bottom:5px;border-radius:50%;display:flex;align-items:center;justify-content:center;color:gray;font-size:12px;cursor:move}.ccs-aj-modal .ccs-aj-slider-bar:hover{box-shadow:#666 0 0 8px}.ccs-aj-modal .ccs-aj-word-slider{color:#52c41a;text-align:center;border:1px solid #52c41a;height:36px;line-height:36px;margin-top:10px}.ccs-aj-modal .ccs-word-point{background-color:#52c41a;border-radius:15px;width:26px;height:26px;line-height:26px;text-align:center;color:#fff;position:absolute}.ccs-color-picker{display:flex;justify-content:start}.ccs-color-picker-select{display:none!important}.ccs-editor .cm-editor{outline:none!important}.ccs-editor .cm-editor:hover{outline:1px solid #c8c8c8!important}.ccs-editor-preview .cm-gutters{display:none}.ccs-editor-preview .cm-activeLine{background:transparent}.ccs-ellipsis{overflow:hidden;line-height:1.5;word-break:break-word}.buttons button:not(:last-child):after{margin:0 4px 0 6px;color:#e8e8e8;content:"|"}.dark-table ::-webkit-scrollbar{width:12px;height:12px}.dark-table ::-webkit-scrollbar-thumb{background:#2a2c2c;border-radius:3px}.ccs-pl.css-table-full{position:fixed;left:0;right:0;top:0;bottom:0;z-index:9999}.ccs-table-pagination{margin:0!important;padding:12px 16px;text-align:right}.ccs-pl{display:flex;flex-direction:column}.ccs-pl-icon{font-size:16}.ccs-pl-table-content{position:relative;flex:auto}.ccs-pl-form-collapse{display:flex;justify-content:flex-end;flex-wrap:wrap;column-gap:10px}.ccs-pl-form-expand{display:flex;justify-content:flex-start;flex-wrap:wrap;column-gap:10px}.ccs-pl-adaptation-form{flex:1 1 auto;overflow:hidden}.ccs-pl-adaptation-form::-webkit-scrollbar{display:none}.ccs-pl-form-item{margin-bottom:10px!important;margin-inline-end:0!important}.ccs-pl-toolbar{flex:0 0 auto}.ccs-table-card .react-resizable{position:relative;background-clip:padding-box}.ccs-table-card .react-resizable-handle{position:absolute;right:-5px;bottom:0;z-index:1;width:15px;height:100%;cursor:col-resize}.ccs-tabs-auto-height{flex:1 1 auto;overflow:hidden}.ccs-table-ellipsis{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ccs-keep-alive{flex:1 1 auto;display:flex;flex-direction:column;overflow:hidden}.ccs-keep-alive-tabs-colorful>.ant-tabs-nav{margin:0}.ccs-keep-alive-tabs-colorful>.ant-tabs-nav:before{background:#fff;opacity:.1;position:absolute;top:0;right:0;bottom:0;left:0}.ccs-keep-alive-tabs-colorful>.ant-tabs-nav .ant-tabs-tab-active{background-color:#fff}.ccs-keep-alive-tabs-colorful>.ant-tabs-nav .ant-tabs-tab{border:0;padding:6px 16px!important;border-radius:0!important}.ccs-keep-alive-tabs-colorful>.ant-tabs-nav .ant-tabs-tab,.ccs-keep-alive-tabs-colorful>.ant-tabs-nav .ant-tabs-tab-remove,.ccs-keep-alive-tabs-colorful>.ant-tabs-nav .ant-tabs-extra-content>.ant-dropdown-trigger{color:#03a9f4}.ccs-keep-alive-nav{margin:0}.ccs-keep-alive-nav:before{border-bottom:0!important}.ccs-keep-alive-tabs{background-color:#fff;border-bottom:1px solid #f1f2f5}.ccs-keep-alive-tabs.dark{background-color:#252525;border-bottom:0}.ccs-keep-alive .ccs-tab-item{flex:1 1 auto;position:relative}.ccs-keep-alive .ccs-sticky-scroll>div{padding:10px 16px 16px;flex-direction:column;display:none}.ccs-keep-alive .ccs-sticky-scroll.route-avtive>div{display:flex}.ccs-sticky-scroll>div{display:flex;flex-direction:column;padding:10px 16px 16px}.colorful-theme .page-content{background-color:#fff}.ccs-breadcrumb{margin-bottom:10px}.ccs-trigger-hidden{display:none!important}.ccs-trigger-show{display:block!important}.ccs-trigger-icon{color:#00000040!important;font-size:12px}.ccs-trigger-container{overflow:auto;background:#fff;border-radius:2px;box-shadow:0 3px 6px -4px #0000001f,0 6px 16px #00000014,0 9px 28px 8px #0000000d;transition:margin .3s}.ccs-trigger-mask{position:fixed;top:0;right:0;bottom:0;left:0;height:100%;opacity:1}.ccs-trigger-mask-hidden,.rc-trigger-popup-hidden{display:none}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_ccs_ui_rc_pro=self.webpackChunk_ccs_ui_rc_pro||[]).push([[5660],{23039:function(o,n,e){e.r(n),e.d(n,{demos:function(){return c}});var t=e(90228),s=e.n(t),i=e(87999),u=e.n(i),a=e(75271),c={"time-picker-demo-basic":{component:a.memo(a.lazy(function(){return e.e(9673).then(e.bind(e,38132))})),asset:{type:"BLOCK",id:"time-picker-demo-basic",refAtomIds:["time-picker"],dependencies:{"index.tsx":{type:"FILE",value:e(70960).Z},"@ccs-ui/rc-pro":{type:"NPM",value:"2.3.6-alpha-32"},antd:{type:"NPM",value:"5.24.6"}},entry:"index.tsx",title:"\u57FA\u672C\u7528\u6CD5",description:"\u5E74\uFF0C\u6708\uFF0C\u65E5\uFF0C\u65F6\u95F4\uFF0C\u8F93\u5165\u8F93\u51FA\u5B57\u7B26\u4E32\uFF0C\u4E0D\u9700\u8981\u8F6C\u6362Dayjs\u7C7B\u578B\u3002"},context:{"@ccs-ui/rc-pro":e(20600),antd:e(13249)},renderOpts:{compile:function(){var l=u()(s()().mark(function _(){var d,p=arguments;return s()().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,e.e(7488).then(e.bind(e,47488));case 2:return r.abrupt("return",(d=r.sent).default.apply(d,p));case 3:case"end":return r.stop()}},_)}));function m(){return l.apply(this,arguments)}return m}()}}}},60950:function(o,n,e){e.r(n),e.d(n,{texts:function(){return t}});const t=[{value:"\u65F6\u95F4\u9009\u62E9\u7EC4\u4EF6\uFF0C\u8F93\u5165\u8F93\u51FA\u65F6\u95F4\u5B57\u7B26\u4E32",paraId:0,tocIndex:0},{value:"\u901A\u7528\u5C5E\u6027\u7EE7\u627F ",paraId:1,tocIndex:3},{value:"Ant TimePicker",paraId:1,tocIndex:3}]},70960:function(o,n){n.Z=`import { CcsTimePicker } from '@ccs-ui/rc-pro';
|
|
2
|
+
import { Space } from 'antd';
|
|
3
|
+
|
|
4
|
+
export default () => {
|
|
5
|
+
const onChange = (e: string | [string, string]) => {
|
|
6
|
+
console.log('e', e);
|
|
7
|
+
};
|
|
8
|
+
|
|
9
|
+
return (
|
|
10
|
+
<Space direction="vertical">
|
|
11
|
+
<CcsTimePicker
|
|
12
|
+
value="23:12:12"
|
|
13
|
+
onChange={onChange}
|
|
14
|
+
placeholder="\u9009\u62E9\u65F6\u95F4"
|
|
15
|
+
/>
|
|
16
|
+
<CcsTimePicker.RangePicker
|
|
17
|
+
value={['10:12:12', '23:22:18']}
|
|
18
|
+
onChange={onChange}
|
|
19
|
+
placeholder={['\u5F00\u59CB', '\u7ED3\u675F']}
|
|
20
|
+
/>
|
|
21
|
+
</Space>
|
|
22
|
+
);
|
|
23
|
+
};
|
|
24
|
+
`}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.ccs-aj-modal .ccs-aj-bg{-webkit-user-drag:none}.ccs-aj-modal .ccs-aj-slider-img{top:0;position:absolute;-webkit-user-drag:none}.ccs-aj-modal .ccs-aj-body{position:relative}.ccs-aj-modal .ccs-aj-btn{display:flex;justify-content:space-between;margin-top:5px;align-items:center}.ccs-aj-modal .ccs-aj-error{color:red}.ccs-aj-modal .ccs-aj-slider{position:relative;height:40px}.ccs-aj-modal .ccs-aj-slider-track{height:30px;margin-top:10px;text-align:center;line-height:30px;border-radius:15px;user-select:none}.ccs-aj-modal .ccs-aj-slider-bar{height:40px;width:40px;position:absolute;bottom:5px;border-radius:50%;display:flex;align-items:center;justify-content:center;color:gray;font-size:12px;cursor:move}.ccs-aj-modal .ccs-aj-slider-bar:hover{box-shadow:#666 0 0 8px}.ccs-aj-modal .ccs-aj-word-slider{color:#52c41a;text-align:center;border:1px solid #52c41a;height:36px;line-height:36px;margin-top:10px}.ccs-aj-modal .ccs-word-point{background-color:#52c41a;border-radius:15px;width:26px;height:26px;line-height:26px;text-align:center;color:#fff;position:absolute}.ccs-color-picker{display:flex;justify-content:start}.ccs-color-picker-select{display:none!important}.ccs-editor .cm-editor{outline:none!important}.ccs-editor .cm-editor:hover{outline:1px solid #c8c8c8!important}.ccs-editor-preview .cm-gutters{display:none}.ccs-editor-preview .cm-activeLine{background:transparent}.ccs-ellipsis{overflow:hidden;line-height:1.5;word-break:break-word}.buttons button:not(:last-child):after{margin:0 4px 0 6px;color:#e8e8e8;content:"|"}.dark-table ::-webkit-scrollbar{width:12px;height:12px}.dark-table ::-webkit-scrollbar-thumb{background:#2a2c2c;border-radius:3px}.ccs-pl.css-table-full{position:fixed;left:0;right:0;top:0;bottom:0;z-index:9999}.ccs-table-pagination{margin:0!important;padding:12px 16px;text-align:right}.ccs-pl{display:flex;flex-direction:column}.ccs-pl-icon{font-size:16}.ccs-pl-table-content{position:relative;flex:auto}.ccs-pl-form-collapse{display:flex;justify-content:flex-end;flex-wrap:wrap;column-gap:10px}.ccs-pl-form-expand{display:flex;justify-content:flex-start;flex-wrap:wrap;column-gap:10px}.ccs-pl-adaptation-form{flex:1 1 auto;overflow:hidden}.ccs-pl-adaptation-form::-webkit-scrollbar{display:none}.ccs-pl-form-item{margin-bottom:10px!important;margin-inline-end:0!important}.ccs-pl-toolbar{flex:0 0 auto}.ccs-table-card .react-resizable{position:relative;background-clip:padding-box}.ccs-table-card .react-resizable-handle{position:absolute;right:-5px;bottom:0;z-index:1;width:15px;height:100%;cursor:col-resize}.ccs-tabs-auto-height{flex:1 1 auto;overflow:hidden}.ccs-table-ellipsis{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ccs-keep-alive{flex:1 1 auto;display:flex;flex-direction:column;overflow:hidden}.ccs-keep-alive-tabs-colorful>.ant-tabs-nav{margin:0}.ccs-keep-alive-tabs-colorful>.ant-tabs-nav:before{background:#fff;opacity:.1;position:absolute;top:0;right:0;bottom:0;left:0}.ccs-keep-alive-tabs-colorful>.ant-tabs-nav .ant-tabs-tab-active{background-color:#fff}.ccs-keep-alive-tabs-colorful>.ant-tabs-nav .ant-tabs-tab{border:0;padding:6px 16px!important;border-radius:0!important}.ccs-keep-alive-tabs-colorful>.ant-tabs-nav .ant-tabs-tab,.ccs-keep-alive-tabs-colorful>.ant-tabs-nav .ant-tabs-tab-remove,.ccs-keep-alive-tabs-colorful>.ant-tabs-nav .ant-tabs-extra-content>.ant-dropdown-trigger{color:#03a9f4}.ccs-keep-alive-nav{margin:0}.ccs-keep-alive-nav:before{border-bottom:0!important}.ccs-keep-alive-tabs{background-color:#fff;border-bottom:1px solid #f1f2f5}.ccs-keep-alive-tabs.dark{background-color:#252525;border-bottom:0}.ccs-keep-alive .ccs-tab-item{flex:1 1 auto;position:relative}.ccs-keep-alive .ccs-sticky-scroll>div{padding:10px 16px 16px;flex-direction:column;display:none}.ccs-keep-alive .ccs-sticky-scroll.route-avtive>div{display:flex}.ccs-sticky-scroll>div{display:flex;flex-direction:column;padding:10px 16px 16px}.colorful-theme .page-content{background-color:#fff}.ccs-breadcrumb{margin-bottom:10px}.ccs-trigger-hidden{display:none!important}.ccs-trigger-show{display:block!important}.ccs-trigger-icon{color:#00000040!important;font-size:12px}.ccs-trigger-container{overflow:auto;background:#fff;border-radius:2px;box-shadow:0 3px 6px -4px #0000001f,0 6px 16px #00000014,0 9px 28px 8px #0000000d;transition:margin .3s}.ccs-trigger-mask{position:fixed;top:0;right:0;bottom:0;left:0;height:100%;opacity:1}.ccs-trigger-mask-hidden,.rc-trigger-popup-hidden{display:none}
|