@dckj-npm/dc-material 0.1.35 → 0.1.36
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/README.md +17 -17
- package/build/index.js +8 -8
- package/build/lowcode/assets-daily.json +71 -0
- package/build/lowcode/assets-dev.json +71 -0
- package/build/lowcode/assets-prod.json +71 -0
- package/build/lowcode/designer.html +302 -0
- package/build/lowcode/index.html +304 -0
- package/build/lowcode/index.js +1 -0
- package/build/lowcode/meta.design.js +1 -0
- package/build/lowcode/meta.js +1 -0
- package/build/lowcode/preview.css +1 -0
- package/build/lowcode/preview.html +33 -0
- package/build/lowcode/preview.js +308 -0
- package/build/lowcode/render/default/view.css +1 -0
- package/build/lowcode/render/default/view.js +295 -0
- package/build/lowcode/view.css +1 -0
- package/build/lowcode/view.js +295 -0
- package/dist/BizComps.js +5 -5
- package/dist/BizComps.js.map +1 -1
- package/es/components/bottom-navigation/bottom-navigation.d.ts +15 -15
- package/es/components/bottom-navigation/index.d.ts +3 -3
- package/es/components/bottom-navigation/index.scss +24 -24
- package/es/components/button/button.d.ts +14 -14
- package/es/components/button/index.d.ts +6 -6
- package/es/components/button/index.js +2 -2
- package/es/components/button/index.scss +16 -16
- package/es/components/carousel/carousel.d.ts +14 -14
- package/es/components/carousel/carousel.scss +32 -32
- package/es/components/colorful-button/colorful-button.d.ts +12 -12
- package/es/components/colorful-button/index.d.ts +3 -3
- package/es/components/colorful-button/index.scss +5 -5
- package/es/components/colorful-input/colorful-input.d.ts +8 -8
- package/es/components/colorful-input/index.d.ts +3 -3
- package/es/components/colorful-input/index.scss +5 -5
- package/es/components/goods-card-list/goods-card-list.d.ts +5 -5
- package/es/components/goods-card-list/goods-card-list.scss +112 -112
- package/es/components/goods-card-list/index.d.ts +3 -3
- package/es/components/goods-card-list/types.d.ts +45 -45
- package/es/components/grid-nav/grid-nav.d.ts +13 -13
- package/es/components/grid-nav/index.d.ts +3 -3
- package/es/components/grid-nav/index.scss +37 -37
- package/es/components/integral-task/index.d.ts +6 -6
- package/es/components/integral-task/index.js +2 -2
- package/es/components/integral-task/index.scss +35 -35
- package/es/components/integral-task/integral-task.d.ts +40 -40
- package/es/components/menu-list/index.d.ts +6 -6
- package/es/components/menu-list/index.js +2 -2
- package/es/components/menu-list/index.scss +16 -16
- package/es/components/menu-list/menu-list-item.d.ts +5 -5
- package/es/components/menu-list/menu-list-item.scss +49 -49
- package/es/components/menu-list/menu-list.d.ts +5 -5
- package/es/components/menu-list/types.d.ts +23 -23
- package/es/components/message-list/index.d.ts +6 -6
- package/es/components/message-list/index.js +2 -2
- package/es/components/message-list/index.scss +22 -22
- package/es/components/message-list/message-list-item.d.ts +29 -29
- package/es/components/message-list/message-list-item.js +2 -2
- package/es/components/message-list/message-list-item.scss +50 -50
- package/es/components/message-list/message-list.d.ts +32 -32
- package/es/components/notice-bar/index.d.ts +3 -3
- package/es/components/notice-bar/index.scss +29 -29
- package/es/components/notice-bar/notice-bar-item.d.ts +18 -18
- package/es/components/notice-bar/notice-bar-item.scss +26 -26
- package/es/components/notice-bar/notice-bar.d.ts +37 -37
- package/es/components/position/entity.d.ts +5 -5
- package/es/components/position/index.d.ts +3 -3
- package/es/components/position/index.scss +27 -27
- package/es/components/position/position-left.d.ts +9 -9
- package/es/components/position/position-list.d.ts +12 -12
- package/es/components/position/position.d.ts +8 -8
- package/es/components/radio-group/index.d.ts +8 -8
- package/es/components/radio-group/index.js +2 -2
- package/es/components/radio-group/index.scss +40 -40
- package/es/components/radio-group/radio-group-item.d.ts +48 -48
- package/es/components/radio-group/radio-group.d.ts +52 -52
- package/es/components/search-bar/index.d.ts +3 -3
- package/es/components/search-bar/index.scss +13 -13
- package/es/components/search-bar/search-bar.d.ts +7 -7
- package/es/components/swiper/index.d.ts +3 -3
- package/es/components/swiper/index.scss +12 -12
- package/es/components/swiper/swiper.d.ts +47 -47
- package/es/components/tab/index.d.ts +6 -6
- package/es/components/tab/index.js +2 -2
- package/es/components/tab/index.scss +23 -23
- package/es/components/tab/tab.d.ts +23 -23
- package/es/components/tab-container/index.d.ts +3 -3
- package/es/components/tab-container/index.scss +47 -47
- package/es/components/tab-container/tab-container.d.ts +10 -10
- package/es/components/tab-container-item/index.d.ts +3 -3
- package/es/components/tab-container-item/tab-container-item.d.ts +9 -9
- package/es/components/tag/index.d.ts +6 -6
- package/es/components/tag/index.js +2 -2
- package/es/components/tag/index.scss +24 -24
- package/es/components/tag/tag.d.ts +14 -14
- package/es/components/teletext-list/index.d.ts +6 -6
- package/es/components/teletext-list/index.js +2 -2
- package/es/components/teletext-list/index.scss +19 -19
- package/es/components/teletext-list/teletext-list-item.d.ts +42 -42
- package/es/components/teletext-list/teletext-list-item.js +2 -2
- package/es/components/teletext-list/teletext-list-item.scss +55 -55
- package/es/components/teletext-list/teletext-list.d.ts +61 -61
- package/es/components/teletext-list/teletext-list.js +2 -2
- package/es/components/title/index.d.ts +8 -8
- package/es/components/title/index.js +2 -2
- package/es/components/title/title-1.d.ts +10 -10
- package/es/components/title/title-1.scss +25 -25
- package/es/components/title/title-2.d.ts +18 -18
- package/es/components/title/title-2.scss +22 -22
- package/es/index.d.ts +40 -40
- package/es/index.scss +5 -5
- package/es/utils/children-node-handle.d.ts +9 -9
- package/es/utils/children-node-handle.js +7 -7
- package/es/utils/component-wrapper.d.ts +9 -9
- package/es/utils/debounce.d.ts +1 -1
- package/es/variables.d.ts +2 -2
- package/es/variables.scss +3 -3
- package/lib/components/bottom-navigation/bottom-navigation.d.ts +15 -15
- package/lib/components/bottom-navigation/index.d.ts +3 -3
- package/lib/components/bottom-navigation/index.scss +24 -24
- package/lib/components/button/button.d.ts +14 -14
- package/lib/components/button/index.d.ts +6 -6
- package/lib/components/button/index.js +2 -2
- package/lib/components/button/index.scss +16 -16
- package/lib/components/carousel/carousel.d.ts +14 -14
- package/lib/components/carousel/carousel.scss +32 -32
- package/lib/components/colorful-button/colorful-button.d.ts +12 -12
- package/lib/components/colorful-button/index.d.ts +3 -3
- package/lib/components/colorful-button/index.scss +5 -5
- package/lib/components/colorful-input/colorful-input.d.ts +8 -8
- package/lib/components/colorful-input/index.d.ts +3 -3
- package/lib/components/colorful-input/index.scss +5 -5
- package/lib/components/goods-card-list/goods-card-list.d.ts +5 -5
- package/lib/components/goods-card-list/goods-card-list.scss +112 -112
- package/lib/components/goods-card-list/index.d.ts +3 -3
- package/lib/components/goods-card-list/types.d.ts +45 -45
- package/lib/components/grid-nav/grid-nav.d.ts +13 -13
- package/lib/components/grid-nav/index.d.ts +3 -3
- package/lib/components/grid-nav/index.scss +37 -37
- package/lib/components/integral-task/index.d.ts +6 -6
- package/lib/components/integral-task/index.js +2 -2
- package/lib/components/integral-task/index.scss +35 -35
- package/lib/components/integral-task/integral-task.d.ts +40 -40
- package/lib/components/menu-list/index.d.ts +6 -6
- package/lib/components/menu-list/index.js +2 -2
- package/lib/components/menu-list/index.scss +16 -16
- package/lib/components/menu-list/menu-list-item.d.ts +5 -5
- package/lib/components/menu-list/menu-list-item.scss +49 -49
- package/lib/components/menu-list/menu-list.d.ts +5 -5
- package/lib/components/menu-list/types.d.ts +23 -23
- package/lib/components/message-list/index.d.ts +6 -6
- package/lib/components/message-list/index.js +2 -2
- package/lib/components/message-list/index.scss +22 -22
- package/lib/components/message-list/message-list-item.d.ts +29 -29
- package/lib/components/message-list/message-list-item.js +2 -2
- package/lib/components/message-list/message-list-item.scss +50 -50
- package/lib/components/message-list/message-list.d.ts +32 -32
- package/lib/components/notice-bar/index.d.ts +3 -3
- package/lib/components/notice-bar/index.scss +29 -29
- package/lib/components/notice-bar/notice-bar-item.d.ts +18 -18
- package/lib/components/notice-bar/notice-bar-item.scss +26 -26
- package/lib/components/notice-bar/notice-bar.d.ts +37 -37
- package/lib/components/position/entity.d.ts +5 -5
- package/lib/components/position/index.d.ts +3 -3
- package/lib/components/position/index.scss +27 -27
- package/lib/components/position/position-left.d.ts +9 -9
- package/lib/components/position/position-list.d.ts +12 -12
- package/lib/components/position/position.d.ts +8 -8
- package/lib/components/radio-group/index.d.ts +8 -8
- package/lib/components/radio-group/index.scss +40 -40
- package/lib/components/radio-group/radio-group-item.d.ts +48 -48
- package/lib/components/radio-group/radio-group.d.ts +52 -52
- package/lib/components/search-bar/index.d.ts +3 -3
- package/lib/components/search-bar/index.scss +13 -13
- package/lib/components/search-bar/search-bar.d.ts +7 -7
- package/lib/components/swiper/index.d.ts +3 -3
- package/lib/components/swiper/index.scss +12 -12
- package/lib/components/swiper/swiper.d.ts +47 -47
- package/lib/components/tab/index.d.ts +6 -6
- package/lib/components/tab/index.js +2 -2
- package/lib/components/tab/index.scss +23 -23
- package/lib/components/tab/tab.d.ts +23 -23
- package/lib/components/tab-container/index.d.ts +3 -3
- package/lib/components/tab-container/index.scss +47 -47
- package/lib/components/tab-container/tab-container.d.ts +10 -10
- package/lib/components/tab-container-item/index.d.ts +3 -3
- package/lib/components/tab-container-item/tab-container-item.d.ts +9 -9
- package/lib/components/tag/index.d.ts +6 -6
- package/lib/components/tag/index.js +2 -2
- package/lib/components/tag/index.scss +24 -24
- package/lib/components/tag/tag.d.ts +14 -14
- package/lib/components/teletext-list/index.d.ts +6 -6
- package/lib/components/teletext-list/index.scss +19 -19
- package/lib/components/teletext-list/teletext-list-item.d.ts +42 -42
- package/lib/components/teletext-list/teletext-list-item.js +2 -2
- package/lib/components/teletext-list/teletext-list-item.scss +55 -55
- package/lib/components/teletext-list/teletext-list.d.ts +61 -61
- package/lib/components/teletext-list/teletext-list.js +2 -2
- package/lib/components/title/index.d.ts +8 -8
- package/lib/components/title/title-1.d.ts +10 -10
- package/lib/components/title/title-1.scss +25 -25
- package/lib/components/title/title-2.d.ts +18 -18
- package/lib/components/title/title-2.scss +22 -22
- package/lib/index.d.ts +40 -40
- package/lib/index.scss +5 -5
- package/lib/utils/children-node-handle.d.ts +9 -9
- package/lib/utils/children-node-handle.js +7 -7
- package/lib/utils/component-wrapper.d.ts +9 -9
- package/lib/utils/debounce.d.ts +1 -1
- package/lib/variables.d.ts +2 -2
- package/lib/variables.scss +3 -3
- package/lowcode/button2/meta.ts +75 -75
- package/lowcode/custom-radio-group/meta.ts +310 -310
- package/lowcode/custom-radio-group-item/meta.ts +229 -229
- package/lowcode/d-c-slider/meta.design.ts +173 -173
- package/lowcode/d-c-slider/meta.ts +342 -342
- package/lowcode/d-c-slider/snippets.ts +68 -68
- package/lowcode/goods-card-list/meta.ts +268 -268
- package/lowcode/grid-nav/meta.ts +212 -212
- package/lowcode/integral-task/meta.ts +211 -211
- package/lowcode/menu-list/meta.ts +147 -147
- package/lowcode/message-list/meta.ts +202 -202
- package/lowcode/navigation/meta.ts +173 -173
- package/lowcode/notice-bar/meta.ts +229 -229
- package/lowcode/position/meta.ts +161 -161
- package/lowcode/search-bar/meta.ts +54 -54
- package/lowcode/swiper/meta.ts +237 -237
- package/lowcode/tab-container/meta.ts +69 -69
- package/lowcode/tab-container/props.ts +194 -194
- package/lowcode/tab-container-item/meta.ts +195 -195
- package/lowcode/tab-message/meta.ts +101 -101
- package/lowcode/tag-c/meta.ts +75 -75
- package/lowcode/teletext-list/meta.ts +329 -329
- package/lowcode/title1/meta.ts +59 -59
- package/lowcode/title2/meta.ts +93 -93
- package/lowcode_es/button2/meta.d.ts +22 -22
- package/lowcode_es/custom-radio-group/meta.d.ts +22 -0
- package/lowcode_es/custom-radio-group/meta.js +294 -0
- package/lowcode_es/custom-radio-group-item/meta.d.ts +23 -0
- package/lowcode_es/custom-radio-group-item/meta.js +205 -0
- package/lowcode_es/d-c-slider/meta.d.ts +148 -148
- package/lowcode_es/d-c-slider/meta.design.d.ts +100 -100
- package/lowcode_es/d-c-slider/snippets.d.ts +36 -36
- package/lowcode_es/goods-card-list/meta.d.ts +22 -0
- package/lowcode_es/goods-card-list/meta.js +250 -0
- package/lowcode_es/grid-nav/meta.d.ts +22 -22
- package/lowcode_es/integral-task/meta.d.ts +22 -22
- package/lowcode_es/menu-list/meta.d.ts +22 -22
- package/lowcode_es/message-list/meta.d.ts +22 -22
- package/lowcode_es/message-list/meta.js +4 -9
- package/lowcode_es/meta.js +23 -20
- package/lowcode_es/navigation/meta.d.ts +22 -22
- package/lowcode_es/notice-bar/meta.d.ts +22 -22
- package/lowcode_es/notice-bar/meta.js +16 -13
- package/lowcode_es/position/meta.d.ts +22 -22
- package/lowcode_es/search-bar/meta.d.ts +22 -22
- package/lowcode_es/swiper/meta.d.ts +22 -22
- package/lowcode_es/tab-container/meta.d.ts +22 -22
- package/lowcode_es/tab-container/props.d.ts +90 -90
- package/lowcode_es/tab-container-item/meta.d.ts +22 -22
- package/lowcode_es/tab-message/meta.d.ts +22 -22
- package/lowcode_es/tag-c/meta.d.ts +22 -22
- package/lowcode_es/teletext-list/meta.d.ts +22 -22
- package/lowcode_es/title1/meta.d.ts +22 -22
- package/lowcode_es/title2/meta.d.ts +22 -22
- package/lowcode_es/view.js +3 -3
- package/lowcode_lib/button2/meta.d.ts +22 -22
- package/lowcode_lib/custom-radio-group/meta.d.ts +22 -0
- package/lowcode_lib/custom-radio-group/meta.js +299 -0
- package/lowcode_lib/custom-radio-group-item/meta.d.ts +23 -0
- package/lowcode_lib/custom-radio-group-item/meta.js +210 -0
- package/lowcode_lib/d-c-slider/meta.d.ts +148 -148
- package/lowcode_lib/d-c-slider/meta.design.d.ts +100 -100
- package/lowcode_lib/d-c-slider/snippets.d.ts +36 -36
- package/lowcode_lib/goods-card-list/meta.d.ts +22 -0
- package/lowcode_lib/goods-card-list/meta.js +255 -0
- package/lowcode_lib/grid-nav/meta.d.ts +22 -22
- package/lowcode_lib/integral-task/meta.d.ts +22 -22
- package/lowcode_lib/menu-list/meta.d.ts +22 -22
- package/lowcode_lib/message-list/meta.d.ts +22 -22
- package/lowcode_lib/message-list/meta.js +4 -9
- package/lowcode_lib/meta.js +23 -20
- package/lowcode_lib/navigation/meta.d.ts +22 -22
- package/lowcode_lib/notice-bar/meta.d.ts +22 -22
- package/lowcode_lib/notice-bar/meta.js +16 -13
- package/lowcode_lib/position/meta.d.ts +22 -22
- package/lowcode_lib/search-bar/meta.d.ts +22 -22
- package/lowcode_lib/swiper/meta.d.ts +22 -22
- package/lowcode_lib/tab-container/meta.d.ts +22 -22
- package/lowcode_lib/tab-container/props.d.ts +90 -90
- package/lowcode_lib/tab-container-item/meta.d.ts +22 -22
- package/lowcode_lib/tab-message/meta.d.ts +22 -22
- package/lowcode_lib/tag-c/meta.d.ts +22 -22
- package/lowcode_lib/teletext-list/meta.d.ts +22 -22
- package/lowcode_lib/title1/meta.d.ts +22 -22
- package/lowcode_lib/title2/meta.d.ts +22 -22
- package/lowcode_lib/view.js +2 -2
- package/package.json +4 -4
|
@@ -0,0 +1,304 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="UTF-8" />
|
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
6
|
+
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
|
|
7
|
+
<title>DEMO 预览</title>
|
|
8
|
+
<style>
|
|
9
|
+
body {
|
|
10
|
+
font-family: PingFangSC-Regular, Roboto, Helvetica Neue, Helvetica, Tahoma, Arial,
|
|
11
|
+
PingFang SC-Light, Microsoft YaHei;
|
|
12
|
+
font-size: 12px;
|
|
13
|
+
|
|
14
|
+
* {
|
|
15
|
+
box-sizing: border-box;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
body,
|
|
20
|
+
#lce-container {
|
|
21
|
+
position: fixed;
|
|
22
|
+
left: 0;
|
|
23
|
+
right: 0;
|
|
24
|
+
bottom: 0;
|
|
25
|
+
top: 0;
|
|
26
|
+
box-sizing: border-box;
|
|
27
|
+
padding: 0;
|
|
28
|
+
margin: 0;
|
|
29
|
+
overflow: hidden;
|
|
30
|
+
text-rendering: optimizeLegibility;
|
|
31
|
+
-webkit-user-select: none;
|
|
32
|
+
-webkit-user-drag: none;
|
|
33
|
+
-webkit-text-size-adjust: none;
|
|
34
|
+
-webkit-touch-callout: none;
|
|
35
|
+
-webkit-font-smoothing: antialiased;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
html {
|
|
39
|
+
min-width: 1024px;
|
|
40
|
+
}
|
|
41
|
+
</style>
|
|
42
|
+
</head>
|
|
43
|
+
|
|
44
|
+
<body>
|
|
45
|
+
<link rel="stylesheet" href="https://uipaas-assets.com/prod/npm/@alilc/lowcode-engine/1.1.7-beta.11/dist/css/engine-core.css" />
|
|
46
|
+
<link rel="stylesheet" href="https://uipaas-assets.com/prod/npm/@alilc/lowcode-engine-ext/1.0.6-beta.25/dist/css/engine-ext.css" />
|
|
47
|
+
<link rel="stylesheet" href="https://alifd.alicdn.com/npm/@alilc/lowcode-preset-plugin@0.1.2/dist/lowcode-preset-plugin.css" />
|
|
48
|
+
<link href="https://alifd.alicdn.com/npm/@alifd/theme-lowcode-light@0.2.1/variables.css" rel="stylesheet" />
|
|
49
|
+
<link href="https://alifd.alicdn.com/npm/@alifd/theme-lowcode-light@0.2.1/dist/next.var.min.css" rel="stylesheet" />
|
|
50
|
+
|
|
51
|
+
<div id="lce-container"></div>
|
|
52
|
+
<script src="https://g.alicdn.com/code/lib/rax/1.1.0/rax.umd.min.js"></script>
|
|
53
|
+
<script src="https://g.alicdn.com/code/lib/react/16.9.0/umd/react.development.js"></script>
|
|
54
|
+
<script src="https://g.alicdn.com/code/lib/react-dom/16.9.0/umd/react-dom.development.js"></script>
|
|
55
|
+
<script src="https://g.alicdn.com/code/lib/prop-types/15.7.2/prop-types.js"></script>
|
|
56
|
+
<script>
|
|
57
|
+
React.PropTypes = PropTypes;
|
|
58
|
+
</script>
|
|
59
|
+
<script src="https://g.alicdn.com/platform/c/??react15-polyfill/0.0.1/dist/index.js,lodash/4.6.1/lodash.min.js,immutable/3.7.6/dist/immutable.min.js,natty-storage/2.0.2/dist/natty-storage.min.js,natty-fetch/2.6.0/dist/natty-fetch.pc.min.js,tinymce/4.2.5/tinymce-full.js"></script>
|
|
60
|
+
<script src="https://g.alicdn.com/mylib/moment/2.24.0/min/moment.min.js"></script>
|
|
61
|
+
<script src="https://g.alicdn.com/code/lib/alifd__next/1.23.20/next-with-locales.min.js"></script>
|
|
62
|
+
|
|
63
|
+
<script crossorigin="anonymous" src="https://uipaas-assets.com/prod/npm/@alilc/lowcode-engine/1.1.7-beta.11/dist/js/engine-core.js"></script>
|
|
64
|
+
<script crossorigin="anonymous" src="https://uipaas-assets.com/prod/npm/@alilc/lowcode-engine-ext/1.0.6-beta.25/dist/js/engine-ext.js"></script>
|
|
65
|
+
<script>
|
|
66
|
+
if (!window.AliLowCodeEngine.common) {
|
|
67
|
+
window.AliLowCodeEngine.common = {
|
|
68
|
+
designerCabin: window.AliLowCodeEngine.designerCabin,
|
|
69
|
+
editorCabin: window.AliLowCodeEngine.editorCabin,
|
|
70
|
+
skeletonCabin: window.AliLowCodeEngine.skeletonCabin,
|
|
71
|
+
utils: window.AliLowCodeEngine.utils,
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
</script>
|
|
75
|
+
<script src="https://alifd.alicdn.com/npm/@alilc/lowcode-preset-plugin@0.1.2/dist/lowcode-preset-plugin.js"></script>
|
|
76
|
+
<script type="text/javascript" charset="utf-8" src="./index.js"></script>
|
|
77
|
+
<script>
|
|
78
|
+
(function (factory) {
|
|
79
|
+
if (typeof define === 'function' && define.amd) {
|
|
80
|
+
define([], factory);
|
|
81
|
+
} else if (typeof module === 'object' && module.exports) {
|
|
82
|
+
module.exports = factory();
|
|
83
|
+
} else {
|
|
84
|
+
window.idleCallbackShim = factory();
|
|
85
|
+
}
|
|
86
|
+
})(function () {
|
|
87
|
+
'use strict';
|
|
88
|
+
var scheduleStart, throttleDelay, lazytimer, lazyraf;
|
|
89
|
+
var root =
|
|
90
|
+
typeof window != 'undefined' ? window : typeof global != undefined ? global : this || {};
|
|
91
|
+
var requestAnimationFrame =
|
|
92
|
+
(root.cancelRequestAnimationFrame && root.requestAnimationFrame) || setTimeout;
|
|
93
|
+
var cancelRequestAnimationFrame = root.cancelRequestAnimationFrame || clearTimeout;
|
|
94
|
+
var tasks = [];
|
|
95
|
+
var runAttempts = 0;
|
|
96
|
+
var isRunning = false;
|
|
97
|
+
var remainingTime = 7;
|
|
98
|
+
var minThrottle = 35;
|
|
99
|
+
var throttle = 125;
|
|
100
|
+
var index = 0;
|
|
101
|
+
var taskStart = 0;
|
|
102
|
+
var tasklength = 0;
|
|
103
|
+
var IdleDeadline = {
|
|
104
|
+
get didTimeout() {
|
|
105
|
+
return false;
|
|
106
|
+
},
|
|
107
|
+
timeRemaining: function () {
|
|
108
|
+
var timeRemaining = remainingTime - (Date.now() - taskStart);
|
|
109
|
+
return Math.max(0, timeRemaining);
|
|
110
|
+
},
|
|
111
|
+
};
|
|
112
|
+
var setInactive = debounce(function () {
|
|
113
|
+
remainingTime = 22;
|
|
114
|
+
throttle = 66;
|
|
115
|
+
minThrottle = 0;
|
|
116
|
+
});
|
|
117
|
+
|
|
118
|
+
function debounce(fn) {
|
|
119
|
+
var id, timestamp;
|
|
120
|
+
var wait = 99;
|
|
121
|
+
var check = function () {
|
|
122
|
+
var last = Date.now() - timestamp;
|
|
123
|
+
|
|
124
|
+
if (last < wait) {
|
|
125
|
+
id = setTimeout(check, wait - last);
|
|
126
|
+
} else {
|
|
127
|
+
id = null;
|
|
128
|
+
fn();
|
|
129
|
+
}
|
|
130
|
+
};
|
|
131
|
+
return function () {
|
|
132
|
+
timestamp = Date.now();
|
|
133
|
+
if (!id) {
|
|
134
|
+
id = setTimeout(check, wait);
|
|
135
|
+
}
|
|
136
|
+
};
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
function abortRunning() {
|
|
140
|
+
if (isRunning) {
|
|
141
|
+
if (lazyraf) {
|
|
142
|
+
cancelRequestAnimationFrame(lazyraf);
|
|
143
|
+
}
|
|
144
|
+
if (lazytimer) {
|
|
145
|
+
clearTimeout(lazytimer);
|
|
146
|
+
}
|
|
147
|
+
isRunning = false;
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
function onInputorMutation() {
|
|
152
|
+
if (throttle != 125) {
|
|
153
|
+
remainingTime = 7;
|
|
154
|
+
throttle = 125;
|
|
155
|
+
minThrottle = 35;
|
|
156
|
+
|
|
157
|
+
if (isRunning) {
|
|
158
|
+
abortRunning();
|
|
159
|
+
scheduleLazy();
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
setInactive();
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
function scheduleAfterRaf() {
|
|
166
|
+
lazyraf = null;
|
|
167
|
+
lazytimer = setTimeout(runTasks, 0);
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
function scheduleRaf() {
|
|
171
|
+
lazytimer = null;
|
|
172
|
+
requestAnimationFrame(scheduleAfterRaf);
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
function scheduleLazy() {
|
|
176
|
+
if (isRunning) {
|
|
177
|
+
return;
|
|
178
|
+
}
|
|
179
|
+
throttleDelay = throttle - (Date.now() - taskStart);
|
|
180
|
+
|
|
181
|
+
scheduleStart = Date.now();
|
|
182
|
+
|
|
183
|
+
isRunning = true;
|
|
184
|
+
|
|
185
|
+
if (minThrottle && throttleDelay < minThrottle) {
|
|
186
|
+
throttleDelay = minThrottle;
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
if (throttleDelay > 9) {
|
|
190
|
+
lazytimer = setTimeout(scheduleRaf, throttleDelay);
|
|
191
|
+
} else {
|
|
192
|
+
throttleDelay = 0;
|
|
193
|
+
scheduleRaf();
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
function runTasks() {
|
|
198
|
+
var task, i, len;
|
|
199
|
+
var timeThreshold = remainingTime > 9 ? 9 : 1;
|
|
200
|
+
taskStart = Date.now();
|
|
201
|
+
isRunning = false;
|
|
202
|
+
|
|
203
|
+
lazytimer = null;
|
|
204
|
+
|
|
205
|
+
if (runAttempts > 2 || taskStart - throttleDelay - 50 < scheduleStart) {
|
|
206
|
+
for (
|
|
207
|
+
i = 0, len = tasks.length;
|
|
208
|
+
i < len && IdleDeadline.timeRemaining() > timeThreshold;
|
|
209
|
+
i++
|
|
210
|
+
) {
|
|
211
|
+
task = tasks.shift();
|
|
212
|
+
tasklength++;
|
|
213
|
+
if (task) {
|
|
214
|
+
task(IdleDeadline);
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
if (tasks.length) {
|
|
220
|
+
scheduleLazy();
|
|
221
|
+
} else {
|
|
222
|
+
runAttempts = 0;
|
|
223
|
+
}
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
function requestIdleCallbackShim(task) {
|
|
227
|
+
index++;
|
|
228
|
+
tasks.push(task);
|
|
229
|
+
scheduleLazy();
|
|
230
|
+
return index;
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
function cancelIdleCallbackShim(id) {
|
|
234
|
+
var index = id - 1 - tasklength;
|
|
235
|
+
if (tasks[index]) {
|
|
236
|
+
tasks[index] = null;
|
|
237
|
+
}
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
if (!root.requestIdleCallback || !root.cancelIdleCallback) {
|
|
241
|
+
root.requestIdleCallback = requestIdleCallbackShim;
|
|
242
|
+
root.cancelIdleCallback = cancelIdleCallbackShim;
|
|
243
|
+
|
|
244
|
+
if (root.document && document.addEventListener) {
|
|
245
|
+
root.addEventListener('scroll', onInputorMutation, true);
|
|
246
|
+
root.addEventListener('resize', onInputorMutation);
|
|
247
|
+
|
|
248
|
+
document.addEventListener('focus', onInputorMutation, true);
|
|
249
|
+
document.addEventListener('mouseover', onInputorMutation, true);
|
|
250
|
+
['click', 'keypress', 'touchstart', 'mousedown'].forEach(function (name) {
|
|
251
|
+
document.addEventListener(name, onInputorMutation, { capture: true, passive: true });
|
|
252
|
+
});
|
|
253
|
+
|
|
254
|
+
if (root.MutationObserver) {
|
|
255
|
+
new MutationObserver(onInputorMutation).observe(document.documentElement, {
|
|
256
|
+
childList: true,
|
|
257
|
+
subtree: true,
|
|
258
|
+
attributes: true,
|
|
259
|
+
});
|
|
260
|
+
}
|
|
261
|
+
}
|
|
262
|
+
} else {
|
|
263
|
+
try {
|
|
264
|
+
root.requestIdleCallback(function () {}, { timeout: 0 });
|
|
265
|
+
} catch (e) {
|
|
266
|
+
(function (rIC) {
|
|
267
|
+
var timeRemainingProto, timeRemaining;
|
|
268
|
+
root.requestIdleCallback = function (fn, timeout) {
|
|
269
|
+
if (timeout && typeof timeout.timeout == 'number') {
|
|
270
|
+
return rIC(fn, timeout.timeout);
|
|
271
|
+
}
|
|
272
|
+
return rIC(fn);
|
|
273
|
+
};
|
|
274
|
+
if (
|
|
275
|
+
root.IdleCallbackDeadline &&
|
|
276
|
+
(timeRemainingProto = IdleCallbackDeadline.prototype)
|
|
277
|
+
) {
|
|
278
|
+
timeRemaining = Object.getOwnPropertyDescriptor(
|
|
279
|
+
timeRemainingProto,
|
|
280
|
+
'timeRemaining',
|
|
281
|
+
);
|
|
282
|
+
if (!timeRemaining || !timeRemaining.configurable || !timeRemaining.get) {
|
|
283
|
+
return;
|
|
284
|
+
}
|
|
285
|
+
Object.defineProperty(timeRemainingProto, 'timeRemaining', {
|
|
286
|
+
value: function () {
|
|
287
|
+
return timeRemaining.get.call(this);
|
|
288
|
+
},
|
|
289
|
+
enumerable: true,
|
|
290
|
+
configurable: true,
|
|
291
|
+
});
|
|
292
|
+
}
|
|
293
|
+
})(root.requestIdleCallback);
|
|
294
|
+
}
|
|
295
|
+
}
|
|
296
|
+
|
|
297
|
+
return {
|
|
298
|
+
request: requestIdleCallbackShim,
|
|
299
|
+
cancel: cancelIdleCallbackShim,
|
|
300
|
+
};
|
|
301
|
+
});
|
|
302
|
+
</script>
|
|
303
|
+
</body>
|
|
304
|
+
</html>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
!function t(r,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.BizComps=e():r.BizComps=e()}(window,(function(){return function(t){var r={};function e(n){if(r[n])return r[n].exports;var o=r[n]={i:n,l:!1,exports:{}};return t[n].call(o.exports,o,o.exports,e),o.l=!0,o.exports}return e.m=t,e.c=r,e.d=function(t,r,n){e.o(t,r)||Object.defineProperty(t,r,{enumerable:!0,get:n})},e.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},e.t=function(t,r){if(1&r&&(t=e(t)),8&r)return t;if(4&r&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(e.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&r&&"string"!=typeof t)for(var o in t)e.d(n,o,function(r){return t[r]}.bind(null,o));return n},e.n=function(t){var r=t&&t.__esModule?function r(){return t.default}:function r(){return t};return e.d(r,"a",r),r},e.o=function(t,r){return Object.prototype.hasOwnProperty.call(t,r)},e.p="",e(e.s=506)}({18:function(t,r){function e(t){var r=typeof t;return null!=t&&("object"==r||"function"==r)}t.exports=e},20:function(t,r,e){var n=e(59),o="object"==typeof self&&self&&self.Object===Object&&self,i=n||o||Function("return this")();t.exports=i},233:function(t,r){function e(){this.__data__=[],this.size=0}t.exports=e},234:function(t,r,e){var n=e(34),o,i=Array.prototype.splice;function c(t){var r=this.__data__,e=n(r,t),o;return!(e<0)&&(e==r.length-1?r.pop():i.call(r,e,1),--this.size,!0)}t.exports=c},235:function(t,r,e){var n=e(34);function o(t){var r=this.__data__,e=n(r,t);return e<0?void 0:r[e][1]}t.exports=o},236:function(t,r,e){var n=e(34);function o(t){return n(this.__data__,t)>-1}t.exports=o},237:function(t,r,e){var n=e(34);function o(t,r){var e=this.__data__,o=n(e,t);return o<0?(++this.size,e.push([t,r])):e[o][1]=r,this}t.exports=o},238:function(t,r,e){var n=e(33);function o(){this.__data__=new n,this.size=0}t.exports=o},239:function(t,r){function e(t){var r=this.__data__,e=r.delete(t);return this.size=r.size,e}t.exports=e},24:function(t,r){function e(t){return null!=t&&"object"==typeof t}t.exports=e},240:function(t,r){function e(t){return this.__data__.get(t)}t.exports=e},241:function(t,r){function e(t){return this.__data__.has(t)}t.exports=e},242:function(t,r,e){var n=e(33),o=e(50),i=e(78),c=200;function a(t,r){var e=this.__data__;if(e instanceof n){var c=e.__data__;if(!o||c.length<199)return c.push([t,r]),this.size=++e.size,this;e=this.__data__=new i(c)}return e.set(t,r),this.size=e.size,this}t.exports=a},243:function(t,r,e){var n=e(26),o=e(246),i=e(18),c=e(77),a=/[\\^$.*+?()[\]{}|]/g,u=/^\[object .+?Constructor\]$/,s=Function.prototype,f=Object.prototype,l=s.toString,p=f.hasOwnProperty,h=RegExp("^"+l.call(p).replace(a,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function v(t){return!(!i(t)||o(t))&&(n(t)?h:u).test(c(t));var r}t.exports=v},244:function(t,r,e){var n=e(44),o=Object.prototype,i=o.hasOwnProperty,c=o.toString,a=n?n.toStringTag:void 0;function u(t){var r=i.call(t,a),e=t[a];try{t[a]=void 0;var n=!0}catch(t){}var o=c.call(t);return n&&(r?t[a]=e:delete t[a]),o}t.exports=u},245:function(t,r){var e,n=Object.prototype.toString;function o(t){return n.call(t)}t.exports=o},246:function(t,r,e){var n=e(247),o=(i=/[^.]+$/.exec(n&&n.keys&&n.keys.IE_PROTO||""))?"Symbol(src)_1."+i:"",i;function c(t){return!!o&&o in t}t.exports=c},247:function(t,r,e){var n,o=e(20)["__core-js_shared__"];t.exports=o},248:function(t,r){function e(t,r){return null==t?void 0:t[r]}t.exports=e},249:function(t,r,e){var n=e(250),o=e(33),i=e(50);function c(){this.size=0,this.__data__={hash:new n,map:new(i||o),string:new n}}t.exports=c},250:function(t,r,e){var n=e(251),o=e(252),i=e(253),c=e(254),a=e(255);function u(t){var r=-1,e=null==t?0:t.length;for(this.clear();++r<e;){var n=t[r];this.set(n[0],n[1])}}u.prototype.clear=n,u.prototype.delete=o,u.prototype.get=i,u.prototype.has=c,u.prototype.set=a,t.exports=u},251:function(t,r,e){var n=e(36);function o(){this.__data__=n?n(null):{},this.size=0}t.exports=o},252:function(t,r){function e(t){var r=this.has(t)&&delete this.__data__[t];return this.size-=r?1:0,r}t.exports=e},253:function(t,r,e){var n=e(36),o="__lodash_hash_undefined__",i,c=Object.prototype.hasOwnProperty;function a(t){var r=this.__data__;if(n){var e=r[t];return e===o?void 0:e}return c.call(r,t)?r[t]:void 0}t.exports=a},254:function(t,r,e){var n=e(36),o,i=Object.prototype.hasOwnProperty;function c(t){var r=this.__data__;return n?void 0!==r[t]:i.call(r,t)}t.exports=c},255:function(t,r,e){var n=e(36),o="__lodash_hash_undefined__";function i(t,r){var e=this.__data__;return this.size+=this.has(t)?0:1,e[t]=n&&void 0===r?o:r,this}t.exports=i},256:function(t,r,e){var n=e(37);function o(t){var r=n(this,t).delete(t);return this.size-=r?1:0,r}t.exports=o},257:function(t,r){function e(t){var r=typeof t;return"string"==r||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==t:null===t}t.exports=e},258:function(t,r,e){var n=e(37);function o(t){return n(this,t).get(t)}t.exports=o},259:function(t,r,e){var n=e(37);function o(t){return n(this,t).has(t)}t.exports=o},26:function(t,r,e){var n=e(27),o=e(18),i="[object AsyncFunction]",c="[object Function]",a="[object GeneratorFunction]",u="[object Proxy]";function s(t){if(!o(t))return!1;var r=n(t);return r==c||r==a||r==i||r==u}t.exports=s},260:function(t,r,e){var n=e(37);function o(t,r){var e=n(this,t),o=e.size;return e.set(t,r),this.size+=e.size==o?0:1,this}t.exports=o},262:function(t,r){function e(t,r){for(var e=-1,n=Array(t);++e<t;)n[e]=r(e);return n}t.exports=e},263:function(t,r,e){var n=e(27),o=e(24),i="[object Arguments]";function c(t){return o(t)&&n(t)==i}t.exports=c},264:function(t,r){function e(){return!1}t.exports=e},265:function(t,r,e){var n=e(27),o=e(62),i=e(24),c="[object Arguments]",a="[object Array]",u="[object Boolean]",s="[object Date]",f="[object Error]",l="[object Function]",p="[object Map]",h="[object Number]",v="[object Object]",y="[object RegExp]",d="[object Set]",b="[object String]",g="[object WeakMap]",m="[object ArrayBuffer]",x="[object DataView]",_,j="[object Float64Array]",w="[object Int8Array]",O="[object Int16Array]",S="[object Int32Array]",P="[object Uint8Array]",k="[object Uint8ClampedArray]",A="[object Uint16Array]",L="[object Uint32Array]",E={};function T(t){return i(t)&&o(t.length)&&!!E[n(t)]}E["[object Float32Array]"]=E[j]=E[w]=E[O]=E[S]=E[P]=E[k]=E[A]=E[L]=!0,E[c]=E[a]=E[m]=E[u]=E[x]=E[s]=E[f]=E[l]=E[p]=E[h]=E[v]=E[y]=E[d]=E[b]=E[g]=!1,t.exports=T},267:function(t,r,e){var n=e(18),o=e(43),i=e(268),c,a=Object.prototype.hasOwnProperty;function u(t){if(!n(t))return i(t);var r=o(t),e=[];for(var c in t)("constructor"!=c||!r&&a.call(t,c))&&e.push(c);return e}t.exports=u},268:function(t,r){function e(t){var r=[];if(null!=t)for(var e in Object(t))r.push(e);return r}t.exports=e},269:function(t,r,e){(function(t){var n=e(20),o=r&&!r.nodeType&&r,i=o&&"object"==typeof t&&t&&!t.nodeType&&t,c,a=i&&i.exports===o?n.Buffer:void 0,u=a?a.allocUnsafe:void 0;function s(t,r){if(r)return t.slice();var e=t.length,n=u?u(e):new t.constructor(e);return t.copy(n),n}t.exports=s}).call(this,e(32)(t))},27:function(t,r,e){var n=e(44),o=e(244),i=e(245),c="[object Null]",a="[object Undefined]",u=n?n.toStringTag:void 0;function s(t){return null==t?void 0===t?a:c:u&&u in Object(t)?o(t):i(t)}t.exports=s},270:function(t,r){function e(t,r){var e=-1,n=t.length;for(r||(r=Array(n));++e<n;)r[e]=t[e];return r}t.exports=e},271:function(t,r,e){var n=e(70);function o(t,r){var e=r?n(t.buffer):t.buffer;return new t.constructor(e,t.byteOffset,t.length)}t.exports=o},272:function(t,r,e){var n=e(273),o=e(54),i=e(43);function c(t){return"function"!=typeof t.constructor||i(t)?{}:n(o(t))}t.exports=c},273:function(t,r,e){var n=e(18),o=Object.create,i=function(){function t(){}return function(r){if(!n(r))return{};if(o)return o(r);t.prototype=r;var e=new t;return t.prototype=void 0,e}}();t.exports=i},274:function(t,r,e){var n=e(275),o=e(282);function i(t){return n((function(r,e){var n=-1,i=e.length,c=i>1?e[i-1]:void 0,a=i>2?e[2]:void 0;for(c=t.length>3&&"function"==typeof c?(i--,c):void 0,a&&o(e[0],e[1],a)&&(c=i<3?void 0:c,i=1),r=Object(r);++n<i;){var u=e[n];u&&t(r,u,n,c)}return r}))}t.exports=i},275:function(t,r,e){var n=e(55),o=e(276),i=e(278);function c(t,r){return i(o(t,r,n),t+"")}t.exports=c},276:function(t,r,e){var n=e(277),o=Math.max;function i(t,r,e){return r=o(void 0===r?t.length-1:r,0),function(){for(var i=arguments,c=-1,a=o(i.length-r,0),u=Array(a);++c<a;)u[c]=i[r+c];c=-1;for(var s=Array(r+1);++c<r;)s[c]=i[c];return s[r]=e(u),n(t,this,s)}}t.exports=i},277:function(t,r){function e(t,r,e){switch(e.length){case 0:return t.call(r);case 1:return t.call(r,e[0]);case 2:return t.call(r,e[0],e[1]);case 3:return t.call(r,e[0],e[1],e[2])}return t.apply(r,e)}t.exports=e},278:function(t,r,e){var n=e(279),o,i=e(281)(n);t.exports=i},279:function(t,r,e){var n=e(280),o=e(63),i=e(55),c=o?function(t,r){return o(t,"toString",{configurable:!0,enumerable:!1,value:n(r),writable:!0})}:i;t.exports=c},280:function(t,r){function e(t){return function(){return t}}t.exports=e},281:function(t,r){var e=800,n=16,o=Date.now;function i(t){var r=0,e=0;return function(){var n=o(),i=16-(n-e);if(e=n,i>0){if(++r>=800)return arguments[0]}else r=0;return t.apply(void 0,arguments)}}t.exports=i},282:function(t,r,e){var n=e(35),o=e(41),i=e(61),c=e(18);function a(t,r,e){if(!c(e))return!1;var a=typeof r;return!!("number"==a?o(e)&&i(r,e.length):"string"==a&&r in e)&&n(e[r],t)}t.exports=a},283:function(t,r,e){var n,o=e(284)();t.exports=o},284:function(t,r){function e(t){return function(r,e,n){for(var o=-1,i=Object(r),c=n(r),a=c.length;a--;){var u=c[t?a:++o];if(!1===e(i[u],u,i))break}return r}}t.exports=e},286:function(t,r,e){var n=e(46),o=e(35);function i(t,r,e){(void 0!==e&&!o(t[r],e)||void 0===e&&!(r in t))&&n(t,r,e)}t.exports=i},287:function(t,r){function e(t,r){if(("constructor"!==r||"function"!=typeof t[r])&&"__proto__"!=r)return t[r]}t.exports=e},30:function(t,r,e){var n=e(243),o=e(248);function i(t,r){var e=o(t,r);return n(e)?e:void 0}t.exports=i},32:function(t,r){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},33:function(t,r,e){var n=e(233),o=e(234),i=e(235),c=e(236),a=e(237);function u(t){var r=-1,e=null==t?0:t.length;for(this.clear();++r<e;){var n=t[r];this.set(n[0],n[1])}}u.prototype.clear=n,u.prototype.delete=o,u.prototype.get=i,u.prototype.has=c,u.prototype.set=a,t.exports=u},337:function(t,r,e){var n=e(76),o=e(286),i=e(283),c=e(338),a=e(18),u=e(53),s=e(287);function f(t,r,e,l,p){t!==r&&i(r,(function(i,u){if(p||(p=new n),a(i))c(t,r,u,e,f,l,p);else{var h=l?l(s(t,u),i,u+"",t,r,p):void 0;void 0===h&&(h=i),o(t,u,h)}}),u)}t.exports=f},338:function(t,r,e){var n=e(286),o=e(269),i=e(271),c=e(270),a=e(272),u=e(60),s=e(38),f=e(339),l=e(45),p=e(26),h=e(18),v=e(48),y=e(51),d=e(287),b=e(340);function g(t,r,e,g,m,x,_){var j=d(t,e),w=d(r,e),O=_.get(w);if(O)n(t,e,O);else{var S=x?x(j,w,e+"",t,r,_):void 0,P=void 0===S;if(P){var k=s(w),A=!k&&l(w),L=!k&&!A&&y(w);S=w,k||A||L?s(j)?S=j:f(j)?S=c(j):A?(P=!1,S=o(w,!0)):L?(P=!1,S=i(w,!0)):S=[]:v(w)||u(w)?(S=j,u(j)?S=b(j):h(j)&&!p(j)||(S=a(w))):P=!1}P&&(_.set(w,S),m(S,w,g,x,_),_.delete(w)),n(t,e,S)}}t.exports=g},339:function(t,r,e){var n=e(41),o=e(24);function i(t){return o(t)&&n(t)}t.exports=i},34:function(t,r,e){var n=e(35);function o(t,r){for(var e=t.length;e--;)if(n(t[e][0],r))return e;return-1}t.exports=o},340:function(t,r,e){var n=e(52),o=e(53);function i(t){return n(t,o(t))}t.exports=i},35:function(t,r){function e(t,r){return t===r||t!=t&&r!=r}t.exports=e},36:function(t,r,e){var n,o=e(30)(Object,"create");t.exports=o},37:function(t,r,e){var n=e(257);function o(t,r){var e=t.__data__;return n(r)?e["string"==typeof r?"string":"hash"]:e.map}t.exports=o},38:function(t,r){var e=Array.isArray;t.exports=e},394:function(t,r,e){var n=e(337),o,i=e(274)((function(t,r,e,o){n(t,r,e,o)}));t.exports=i},40:function(t,r){t.exports=window.LowcodePresetPlugin},41:function(t,r,e){var n=e(26),o=e(62);function i(t){return null!=t&&o(t.length)&&!n(t)}t.exports=i},42:function(t,r){var e;e=function(){return this}();try{e=e||new Function("return this")()}catch(t){"object"==typeof window&&(e=window)}t.exports=e},43:function(t,r){var e=Object.prototype;function n(t){var r=t&&t.constructor,n;return t===("function"==typeof r&&r.prototype||e)}t.exports=n},44:function(t,r,e){var n,o=e(20).Symbol;t.exports=o},45:function(t,r,e){(function(t){var n=e(20),o=e(264),i=r&&!r.nodeType&&r,c=i&&"object"==typeof t&&t&&!t.nodeType&&t,a,u=c&&c.exports===i?n.Buffer:void 0,s,f=(u?u.isBuffer:void 0)||o;t.exports=f}).call(this,e(32)(t))},46:function(t,r,e){var n=e(63);function o(t,r,e){"__proto__"==r&&n?n(t,r,{configurable:!0,enumerable:!0,value:e,writable:!0}):t[r]=e}t.exports=o},48:function(t,r,e){var n=e(27),o=e(54),i=e(24),c="[object Object]",a=Function.prototype,u=Object.prototype,s=a.toString,f=u.hasOwnProperty,l=s.call(Object);function p(t){if(!i(t)||n(t)!=c)return!1;var r=o(t);if(null===r)return!0;var e=f.call(r,"constructor")&&r.constructor;return"function"==typeof e&&e instanceof e&&s.call(e)==l}t.exports=p},50:function(t,r,e){var n,o,i=e(30)(e(20),"Map");t.exports=i},506:function(t,r,e){t.exports=e(507)},507:function(t,r,e){"use strict";e.r(r);var n=e(40),o=e.n(n),i=e(394),c=e.n(i);function a(t,r){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable}))),e.push.apply(e,n)}return e}function u(t){for(var r=1;r<arguments.length;r++){var e=null!=arguments[r]?arguments[r]:{};r%2?a(Object(e),!0).forEach((function(r){s(t,r,e[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):a(Object(e)).forEach((function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))}))}return t}function s(t,r,e){return(r=f(r))in t?Object.defineProperty(t,r,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[r]=e,t}function f(t){var r=l(t,"string");return"symbol"==m(r)?r:r+""}function l(t,r){if("object"!=m(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,r||"default");if("object"!=m(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}function p(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */p=function t(){return r};var t,r={},e=Object.prototype,n=e.hasOwnProperty,o=Object.defineProperty||function(t,r,e){t[r]=e.value},i="function"==typeof Symbol?Symbol:{},c=i.iterator||"@@iterator",a=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function s(t,r,e){return Object.defineProperty(t,r,{value:e,enumerable:!0,configurable:!0,writable:!0}),t[r]}try{s({},"")}catch(t){s=function t(r,e,n){return r[e]=n}}function f(t,r,e,n){var i=r&&r.prototype instanceof g?r:g,c=Object.create(i.prototype),a=new z(n||[]);return o(c,"_invoke",{value:A(t,e,a)}),c}function l(t,r,e){try{return{type:"normal",arg:t.call(r,e)}}catch(t){return{type:"throw",arg:t}}}r.wrap=f;var h="suspendedStart",v="suspendedYield",y="executing",d="completed",b={};function g(){}function x(){}function _(){}var j={};s(j,c,(function(){return this}));var w=Object.getPrototypeOf,O=w&&w(w(F([])));O&&O!==e&&n.call(O,c)&&(j=O);var S=_.prototype=g.prototype=Object.create(j);function P(t){["next","throw","return"].forEach((function(r){s(t,r,(function(t){return this._invoke(r,t)}))}))}function k(t,r){function e(o,i,c,a){var u=l(t[o],t,i);if("throw"!==u.type){var s=u.arg,f=s.value;return f&&"object"==m(f)&&n.call(f,"__await")?r.resolve(f.__await).then((function(t){e("next",t,c,a)}),(function(t){e("throw",t,c,a)})):r.resolve(f).then((function(t){s.value=t,c(s)}),(function(t){return e("throw",t,c,a)}))}a(u.arg)}var i;o(this,"_invoke",{value:function t(n,o){function c(){return new r((function(t,r){e(n,o,t,r)}))}return i=i?i.then(c,c):c()}})}function A(r,e,n){var o=h;return function(i,c){if(o===y)throw Error("Generator is already running");if(o===d){if("throw"===i)throw c;return{value:t,done:!0}}for(n.method=i,n.arg=c;;){var a=n.delegate;if(a){var u=L(a,n);if(u){if(u===b)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=d,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=y;var s=l(r,e,n);if("normal"===s.type){if(o=n.done?d:v,s.arg===b)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(o=d,n.method="throw",n.arg=s.arg)}}}function L(r,e){var n=e.method,o=r.iterator[n];if(o===t)return e.delegate=null,"throw"===n&&r.iterator.return&&(e.method="return",e.arg=t,L(r,e),"throw"===e.method)||"return"!==n&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+n+"' method")),b;var i=l(o,r.iterator,e.arg);if("throw"===i.type)return e.method="throw",e.arg=i.arg,e.delegate=null,b;var c=i.arg;return c?c.done?(e[r.resultName]=c.value,e.next=r.nextLoc,"return"!==e.method&&(e.method="next",e.arg=t),e.delegate=null,b):c:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,b)}function E(t){var r={tryLoc:t[0]};1 in t&&(r.catchLoc=t[1]),2 in t&&(r.finallyLoc=t[2],r.afterLoc=t[3]),this.tryEntries.push(r)}function T(t){var r=t.completion||{};r.type="normal",delete r.arg,t.completion=r}function z(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(E,this),this.reset(!0)}function F(r){if(r||""===r){var e=r[c];if(e)return e.call(r);if("function"==typeof r.next)return r;if(!isNaN(r.length)){var o=-1,i=function e(){for(;++o<r.length;)if(n.call(r,o))return e.value=r[o],e.done=!1,e;return e.value=t,e.done=!0,e};return i.next=i}}throw new TypeError(m(r)+" is not iterable")}return x.prototype=_,o(S,"constructor",{value:_,configurable:!0}),o(_,"constructor",{value:x,configurable:!0}),x.displayName=s(_,u,"GeneratorFunction"),r.isGeneratorFunction=function(t){var r="function"==typeof t&&t.constructor;return!!r&&(r===x||"GeneratorFunction"===(r.displayName||r.name))},r.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,_):(t.__proto__=_,s(t,u,"GeneratorFunction")),t.prototype=Object.create(S),t},r.awrap=function(t){return{__await:t}},P(k.prototype),s(k.prototype,a,(function(){return this})),r.AsyncIterator=k,r.async=function(t,e,n,o,i){void 0===i&&(i=Promise);var c=new k(f(t,e,n,o),i);return r.isGeneratorFunction(e)?c:c.next().then((function(t){return t.done?t.value:c.next()}))},P(S),s(S,u,"Generator"),s(S,c,(function(){return this})),s(S,"toString",(function(){return"[object Generator]"})),r.keys=function(t){var r=Object(t),e=[];for(var n in r)e.push(n);return e.reverse(),function t(){for(;e.length;){var n=e.pop();if(n in r)return t.value=n,t.done=!1,t}return t.done=!0,t}},r.values=F,z.prototype={constructor:z,reset:function r(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(T),!e)for(var o in this)"t"===o.charAt(0)&&n.call(this,o)&&!isNaN(+o.slice(1))&&(this[o]=t)},stop:function t(){this.done=!0;var r=this.tryEntries[0].completion;if("throw"===r.type)throw r.arg;return this.rval},dispatchException:function r(e){if(this.done)throw e;var o=this;function i(r,n){return u.type="throw",u.arg=e,o.next=r,n&&(o.method="next",o.arg=t),!!n}for(var c=this.tryEntries.length-1;c>=0;--c){var a=this.tryEntries[c],u=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var s=n.call(a,"catchLoc"),f=n.call(a,"finallyLoc");if(s&&f){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!f)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function t(r,e){for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var c=i;break}}c&&("break"===r||"continue"===r)&&c.tryLoc<=e&&e<=c.finallyLoc&&(c=null);var a=c?c.completion:{};return a.type=r,a.arg=e,c?(this.method="next",this.next=c.finallyLoc,b):this.complete(a)},complete:function t(r,e){if("throw"===r.type)throw r.arg;return"break"===r.type||"continue"===r.type?this.next=r.arg:"return"===r.type?(this.rval=this.arg=r.arg,this.method="return",this.next="end"):"normal"===r.type&&e&&(this.next=e),b},finish:function t(r){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===r)return this.complete(n.completion,n.afterLoc),T(n),b}},catch:function t(r){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===r){var o=n.completion;if("throw"===o.type){var i=o.arg;T(n)}return i}}throw Error("illegal catch attempt")},delegateYield:function r(e,n,o){return this.delegate={iterator:F(e),resultName:n,nextLoc:o},"next"===this.method&&(this.arg=t),b}},r}function h(t){return b(t)||d(t)||y(t)||v()}function v(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function y(t,r){if(t){if("string"==typeof t)return g(t,r);var e={}.toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?g(t,r):void 0}}function d(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function b(t){if(Array.isArray(t))return g(t)}function g(t,r){(null==r||r>t.length)&&(r=t.length);for(var e=0,n=Array(r);e<r;e++)n[e]=t[e];return n}function m(t){return(m="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function x(t,r,e,n,o,i,c){try{var a=t[i](c),u=a.value}catch(t){return void e(t)}a.done?r(u):Promise.resolve(u).then(n,o)}function _(t){return function(){var r=this,e=arguments;return new Promise((function(n,o){var i=t.apply(r,e);function c(t){x(i,n,o,c,a,"next",t)}function a(t){x(i,n,o,c,a,"throw",t)}c(void 0)}))}}var j=new URLSearchParams(window.location.search),w="default",O=j.get("platform")||"",S=j.get("metaType")||O||"",P={meta:"/Users/chenxueli/project/waibao/52pupu/lowcode-material/.tmp/meta.js","meta.design":"/Users/chenxueli/project/waibao/52pupu/lowcode-material/.tmp/meta.design.js"},k=S?"meta.".concat(S):"meta";P[k]||(console.warn("[@alifd/build-plugin-lowcode] metaType can only in [".concat(Object.keys(P),"], current metaType is ").concat(k,", fullback to ").concat("default",".")),S="");var A=!!n.material,L=!1,E="react",T=[{package:"moment",version:"2.24.0",urls:["https://g.alicdn.com/mylib/moment/2.24.0/min/moment.min.js"],library:"moment"},{package:"lodash",library:"_",urls:["https://g.alicdn.com/platform/c/lodash/4.6.1/lodash.min.js"]},{title:"fusion\u7ec4\u4ef6\u5e93",package:"@alifd/next",version:"1.25.23",urls:["https://g.alicdn.com/code/lib/alifd__next/1.25.23/next.min.css","https://g.alicdn.com/code/lib/alifd__next/1.25.23/next-with-locales.min.js"],library:"Next"},{package:"antd",version:"4.17.3",urls:["https://g.alicdn.com/code/lib/antd/4.17.3/antd.min.js","https://g.alicdn.com/code/lib/antd/4.17.3/antd.min.css"],library:"antd"}];var z={packages:[]},F="./assets-dev.json",U={},N={},D=[],I="component";var M=B()||{componentName:"Page",id:"node_dockcviv8fo1",props:{ref:"outterView",style:{height:"100%"}},fileName:"lowcode",dataSource:{list:[]},state:{text:"outter",isShowDialog:!1},css:"body {font-size: 12px;} .botton{width:100px;color:#ff00ff}",lifeCycles:{componentDidMount:{type:"JSFunction",value:"function() {\n console.log('did mount');\n }"},componentWillUnmount:{type:"JSFunction",value:"function() {\n console.log('will umount');\n }"}},methods:{testFunc:{type:"JSFunction",value:"function() {\n console.log('test func');\n }"},onClick:{type:"JSFunction",value:"function() {\n this.setState({\n isShowDialog: true\n })\n }"},closeDialog:{type:"JSFunction",value:"function() {\n this.setState({\n isShowDialog: false\n })\n }"}},children:[]},G=document.getElementById("lce-container");function B(){var t,r=JSON.parse(window.localStorage.getItem("projectSchema")||"{}"),e;return null==r||null===(t=r.componentsTree)||void 0===t?void 0:t[0]}function C(t,r){return $.apply(this,arguments)}function $(){return($=_(p().mark((function t(r,e){var n;return p().wrap((function t(o){for(;;)switch(o.prev=o.next){case 0:if(!(e&&Array.isArray(e)&&e.length)){o.next=5;break}return o.next=3,Promise.all(e.map(function(){var t=_(p().mark((function t(r){return p().wrap((function t(e){for(;;)switch(e.prev=e.next){case 0:if("object"!==m(r)){e.next=4;break}return e.abrupt("return",r);case 4:return e.prev=4,e.next=7,fetch(r);case 7:return e.abrupt("return",e.sent.json());case 10:return e.prev=10,e.t0=e.catch(4),console.error("get assets data from builtin assets ".concat(r," failed: "),e.t0),e.abrupt("return",{});case 14:case"end":return e.stop()}}),t,null,[[4,10]])})));return function(r){return t.apply(this,arguments)}}()));case 3:(n=o.sent).forEach((function(t){var e=u(u({},t),{},{packages:t.packages||[t.package],components:t.components,componentList:(t.componentList||[]).map((function(t){return t.children&&(t.children=t.children.map((function(r){return r.sort||(r.sort={category:t.title,group:"\u539f\u5b50\u7ec4\u4ef6"}),r}))),t}))});c()(r,e,(function(t,r){if(Array.isArray(t)&&Array.isArray(r))return r.concat(t)}))}));case 5:case"end":return o.stop()}}),t)})))).apply(this,arguments)}o()((function(){return{name:"editor-init",init:function t(){return _(p().mark((function t(){var r,e,o,i,c,a;return p().wrap((function t(u){for(;;)switch(u.prev=u.next){case 0:return"object"===m(U)&&Object.keys(U).length&&n.setters.registerSetter(U),u.next=4,fetch(F);case 4:return u.next=6,u.sent.json();case 6:r=u.sent,e=r.packages,z.packages=z.packages.concat(e),z.components=r.components.map((function(t){return t.advancedUrls&&S&&t.advancedUrls[S]&&t.advancedUrls[S].length?t.url=t.advancedUrls[S][0]:t.urls&&S&&t.urls[S]&&(t.url=t.urls[S]),t})),z.groupList=r.groupList,u.next=23;break;case 13:if(o=!1,i=!1,u.t0=!1,!u.t0){u.next=19;break}return u.next=19,C(z,!1);case 19:if(u.t1=i,!u.t1){u.next=23;break}return u.next=23,C(z,i);case 23:c=new Map,a=h(new Set([].concat(T,h(z.packages)).map((function(t){var r=t.library;return c.set(r,t),r})))),z.packages=a.map((function(t){return c.get(t)})),z.packages=z.packages.map((function(t){return t.editUrls&&t.editUrls.length&&(t.renderUrls=t.urls,t.urls=t.editUrls),t})),A?(n.material.setAssets(z),n.project.openDocument(M)):(n.editor.setAssets(z),n.project.open(M));case 29:case"end":return u.stop()}}),t)})))()}}}),D||[],G,{supportVariableGlobally:!0,presetConfig:N})},51:function(t,r,e){var n=e(265),o=e(67),i=e(68),c=i&&i.isTypedArray,a=c?o(c):n;t.exports=a},52:function(t,r,e){var n=e(69),o=e(46);function i(t,r,e,i){var c=!e;e||(e={});for(var a=-1,u=r.length;++a<u;){var s=r[a],f=i?i(e[s],t[s],s,e,t):void 0;void 0===f&&(f=t[s]),c?o(e,s,f):n(e,s,f)}return e}t.exports=i},53:function(t,r,e){var n=e(80),o=e(267),i=e(41);function c(t){return i(t)?n(t,!0):o(t)}t.exports=c},54:function(t,r,e){var n,o=e(81)(Object.getPrototypeOf,Object);t.exports=o},55:function(t,r){function e(t){return t}t.exports=e},59:function(t,r,e){(function(r){var e="object"==typeof r&&r&&r.Object===Object&&r;t.exports=e}).call(this,e(42))},60:function(t,r,e){var n=e(263),o=e(24),i=Object.prototype,c=i.hasOwnProperty,a=i.propertyIsEnumerable,u=n(function(){return arguments}())?n:function(t){return o(t)&&c.call(t,"callee")&&!a.call(t,"callee")};t.exports=u},61:function(t,r){var e=9007199254740991,n=/^(?:0|[1-9]\d*)$/;function o(t,r){var e=typeof t;return!!(r=null==r?9007199254740991:r)&&("number"==e||"symbol"!=e&&n.test(t))&&t>-1&&t%1==0&&t<r}t.exports=o},62:function(t,r){var e=9007199254740991;function n(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}t.exports=n},63:function(t,r,e){var n=e(30),o=function(){try{var t=n(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();t.exports=o},67:function(t,r){function e(t){return function(r){return t(r)}}t.exports=e},68:function(t,r,e){(function(t){var n=e(59),o=r&&!r.nodeType&&r,i=o&&"object"==typeof t&&t&&!t.nodeType&&t,c,a=i&&i.exports===o&&n.process,u=function(){try{var t=i&&i.require&&i.require("util").types;return t||a&&a.binding&&a.binding("util")}catch(t){}}();t.exports=u}).call(this,e(32)(t))},69:function(t,r,e){var n=e(46),o=e(35),i,c=Object.prototype.hasOwnProperty;function a(t,r,e){var i=t[r];c.call(t,r)&&o(i,e)&&(void 0!==e||r in t)||n(t,r,e)}t.exports=a},70:function(t,r,e){var n=e(79);function o(t){var r=new t.constructor(t.byteLength);return new n(r).set(new n(t)),r}t.exports=o},76:function(t,r,e){var n=e(33),o=e(238),i=e(239),c=e(240),a=e(241),u=e(242);function s(t){var r=this.__data__=new n(t);this.size=r.size}s.prototype.clear=o,s.prototype.delete=i,s.prototype.get=c,s.prototype.has=a,s.prototype.set=u,t.exports=s},77:function(t,r){var e,n=Function.prototype.toString;function o(t){if(null!=t){try{return n.call(t)}catch(t){}try{return t+""}catch(t){}}return""}t.exports=o},78:function(t,r,e){var n=e(249),o=e(256),i=e(258),c=e(259),a=e(260);function u(t){var r=-1,e=null==t?0:t.length;for(this.clear();++r<e;){var n=t[r];this.set(n[0],n[1])}}u.prototype.clear=n,u.prototype.delete=o,u.prototype.get=i,u.prototype.has=c,u.prototype.set=a,t.exports=u},79:function(t,r,e){var n,o=e(20).Uint8Array;t.exports=o},80:function(t,r,e){var n=e(262),o=e(60),i=e(38),c=e(45),a=e(61),u=e(51),s,f=Object.prototype.hasOwnProperty;function l(t,r){var e=i(t),s=!e&&o(t),l=!e&&!s&&c(t),p=!e&&!s&&!l&&u(t),h=e||s||l||p,v=h?n(t.length,String):[],y=v.length;for(var d in t)!r&&!f.call(t,d)||h&&("length"==d||l&&("offset"==d||"parent"==d)||p&&("buffer"==d||"byteLength"==d||"byteOffset"==d)||a(d,y))||v.push(d);return v}t.exports=l},81:function(t,r){function e(t,r){return function(e){return t(r(e))}}t.exports=e}})}));
|