@melt-js/comps-vue2 2026.11.7 → 2026.11.16
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 +26 -1
- package/hel_dist/cdn/example-esm.html +1 -0
- package/hel_dist/cdn/example-umd.html +1 -0
- package/hel_dist/cdn/index.esm.mjs +36 -0
- package/hel_dist/cdn/index.umd.cjs +53 -0
- package/hel_dist/cdn/manifest.json +39 -0
- package/hel_dist/css/chunk-024e925a.3afab805.css +1 -0
- package/hel_dist/css/chunk-024e925a.3afab805.css.gz +0 -0
- package/hel_dist/css/chunk-1fed66ce.3afab805.css +1 -0
- package/hel_dist/css/chunk-1fed66ce.3afab805.css.gz +0 -0
- package/hel_dist/entry.js +20 -4
- package/hel_dist/hel-meta.json +78 -23
- package/hel_dist/index.html +1 -1
- package/hel_dist/js/app.d6543d1d.js +1 -0
- package/hel_dist/js/chunk-024e925a.a9f359ef.js +1 -0
- package/hel_dist/js/chunk-024e925a.a9f359ef.js.gz +0 -0
- package/hel_dist/js/chunk-1fed66ce.6383207e.js +1 -0
- package/hel_dist/js/chunk-1fed66ce.6383207e.js.gz +0 -0
- package/hel_dist/js/runtime.8e55f3d7.js +1 -0
- package/hel_dist/js/vendor.a5bc9dd1.js +1 -0
- package/hel_dist/js/vendor.a5bc9dd1.js.gz +0 -0
- package/hel_proxy/entry.js +20 -4
- package/hel_proxy_es/assets/components/App.propsSchema.json +13 -0
- package/hel_proxy_es/assets/components/BirdSvg/propsSchema.json +29 -0
- package/hel_proxy_es/assets/components/Butterflies3d/propsSchema.json +50 -0
- package/hel_proxy_es/assets/components/CatFace/propsSchema.json +40 -0
- package/hel_proxy_es/assets/components/FrogExpressions/propsSchema.json +13 -0
- package/hel_proxy_es/assets/components/HelloWorld.propsSchema.json +13 -0
- package/hel_proxy_es/assets/components/TierRanking/propsSchema.json +87 -0
- package/hel_proxy_es/assets/components/WhaleFollow/propsSchema.json +61 -0
- package/hel_proxy_es/entry.js +12 -4
- package/hel_proxy_es/types/components/App.propsSchema.json +13 -0
- package/hel_proxy_es/types/components/BirdSvg/propsSchema.json +29 -0
- package/hel_proxy_es/types/components/Butterflies3d/propsSchema.json +50 -0
- package/hel_proxy_es/types/components/CatFace/propsSchema.json +40 -0
- package/hel_proxy_es/types/components/FrogExpressions/propsSchema.json +13 -0
- package/hel_proxy_es/types/components/HelloWorld.propsSchema.json +13 -0
- package/hel_proxy_es/types/components/TierRanking/propsSchema.json +87 -0
- package/hel_proxy_es/types/components/WhaleFollow/propsSchema.json +61 -0
- package/hel_proxy_es/types/configs/subApp.d.ts +1 -0
- package/hel_proxy_es/types/entrance/libTypes.d.ts +55 -0
- package/package.json +117 -92
- package/hel_dist/css/chunk-ad8df0e6.e2ca7fbd.css +0 -1
- package/hel_dist/js/app~493df0b3.677583d3.js +0 -16
- package/hel_dist/js/app~493df0b3.677583d3.js.map +0 -1
- package/hel_dist/js/chunk-ad8df0e6.39491564.js +0 -2
- package/hel_dist/js/chunk-ad8df0e6.39491564.js.map +0 -1
- package/scripts/check.js +0 -13
- package/scripts/meta.js +0 -21
- package/scripts/prepublishOnly.js +0 -26
- package/src/assets/logo.png +0 -0
- package/src/components/App.vue +0 -32
- package/src/components/BirdSvg/index.vue +0 -101
- package/src/components/BirdSvg/source/README.md +0 -17
- package/src/components/BirdSvg/source/index.html +0 -65
- package/src/components/BirdSvg/source/style.css +0 -284
- package/src/components/BirdSvg/style.css +0 -194
- package/src/components/Butterflies3d/assets/clouds_back.jpg +0 -0
- package/src/components/Butterflies3d/assets/clouds_front.jpg +0 -0
- package/src/components/Butterflies3d/assets/clouds_left.jpg +0 -0
- package/src/components/Butterflies3d/assets/clouds_right.jpg +0 -0
- package/src/components/Butterflies3d/assets/clouds_top.jpg +0 -0
- package/src/components/Butterflies3d/assets/wing-pattern.gif +0 -0
- package/src/components/Butterflies3d/index.vue +0 -245
- package/src/components/Butterflies3d/source/README.md +0 -17
- package/src/components/Butterflies3d/source/index.html +0 -305
- package/src/components/Butterflies3d/source/reset.css +0 -1
- package/src/components/Butterflies3d/source/style.css +0 -831
- package/src/components/Butterflies3d/style.css +0 -295
- package/src/components/CatFace/index.vue +0 -128
- package/src/components/CatFace/source/README.md +0 -19
- package/src/components/CatFace/source/cat.less +0 -374
- package/src/components/CatFace/source/index.html +0 -92
- package/src/components/CatFace/style.css +0 -394
- package/src/components/FrogExpressions/index.vue +0 -94
- package/src/components/FrogExpressions/source/README.md +0 -17
- package/src/components/FrogExpressions/source/demo.css +0 -45
- package/src/components/FrogExpressions/source/frog.html +0 -375
- package/src/components/FrogExpressions/source/style.css +0 -1555
- package/src/components/FrogExpressions/style.css +0 -1109
- package/src/components/HelloWorld.vue +0 -37
- package/src/components/TierRanking/index.vue +0 -1012
- package/src/components/TierRanking/ranking.css +0 -650
- package/src/components/TierRanking/source/ranking.css +0 -657
- package/src/components/TierRanking/source/ranking.html +0 -1532
- package/src/components/WhaleFollow/index.vue +0 -276
- package/src/components/WhaleFollow/source/README.md +0 -19
- package/src/components/WhaleFollow/source/README.txt +0 -4
- package/src/components/WhaleFollow/source/index.html +0 -29
- package/src/components/WhaleFollow/source/index.js +0 -106
- package/src/components/WhaleFollow/source/license.txt +0 -9
- package/src/components/WhaleFollow/source/style.css +0 -2
- package/src/components/WhaleFollow/style.css +0 -36
- package/src/components/WhaleFollow/whaleData.js +0 -277
- package/src/components/index.js +0 -26
- package/src/configs/subApp.js +0 -9
- package/src/entrance/libProperties.js +0 -10
- package/src/entrance/libTypes.ts +0 -46
- package/src/loadApp.js +0 -20
- package/src/main.js +0 -25
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"name": "persist",
|
|
4
|
+
"type": "boolean",
|
|
5
|
+
"description": "是否把排行榜状态存到 IndexedDB",
|
|
6
|
+
"default": "true",
|
|
7
|
+
"required": false,
|
|
8
|
+
"version": "",
|
|
9
|
+
"isEvent": false,
|
|
10
|
+
"bindable": true,
|
|
11
|
+
"value": true
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
"name": "storageKey",
|
|
15
|
+
"type": "string",
|
|
16
|
+
"description": "IndexedDB 库名(多实例/多页面可区分)",
|
|
17
|
+
"default": "\"tier-ranking\"",
|
|
18
|
+
"required": false,
|
|
19
|
+
"version": "",
|
|
20
|
+
"isEvent": false,
|
|
21
|
+
"bindable": true,
|
|
22
|
+
"value": "tier-ranking"
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"name": "maxImageSize",
|
|
26
|
+
"type": "number",
|
|
27
|
+
"description": "上传图片压缩后的最大边长",
|
|
28
|
+
"default": "800",
|
|
29
|
+
"required": false,
|
|
30
|
+
"version": "",
|
|
31
|
+
"isEvent": false,
|
|
32
|
+
"bindable": true,
|
|
33
|
+
"value": 800,
|
|
34
|
+
"control": {
|
|
35
|
+
"min": 100,
|
|
36
|
+
"max": 2000,
|
|
37
|
+
"step": 50
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"name": "imageQuality",
|
|
42
|
+
"type": "number",
|
|
43
|
+
"description": "压缩质量(0.1 ~ 1)",
|
|
44
|
+
"default": "0.7",
|
|
45
|
+
"required": false,
|
|
46
|
+
"version": "",
|
|
47
|
+
"isEvent": false,
|
|
48
|
+
"bindable": true,
|
|
49
|
+
"value": 0.7,
|
|
50
|
+
"control": {
|
|
51
|
+
"min": 0.1,
|
|
52
|
+
"max": 1,
|
|
53
|
+
"step": 0.05
|
|
54
|
+
}
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
"name": "html2canvasUrl",
|
|
58
|
+
"type": "string",
|
|
59
|
+
"description": "自定义 html2canvas 地址(不传则依次尝试内置 CDN)",
|
|
60
|
+
"default": "\"\"",
|
|
61
|
+
"required": false,
|
|
62
|
+
"version": "",
|
|
63
|
+
"isEvent": false,
|
|
64
|
+
"bindable": true,
|
|
65
|
+
"value": ""
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
"name": "saved",
|
|
69
|
+
"type": "",
|
|
70
|
+
"description": "",
|
|
71
|
+
"default": "",
|
|
72
|
+
"required": false,
|
|
73
|
+
"version": "",
|
|
74
|
+
"isEvent": true,
|
|
75
|
+
"bindable": false
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
"name": "change",
|
|
79
|
+
"type": "",
|
|
80
|
+
"description": "",
|
|
81
|
+
"default": "",
|
|
82
|
+
"required": false,
|
|
83
|
+
"version": "",
|
|
84
|
+
"isEvent": true,
|
|
85
|
+
"bindable": false
|
|
86
|
+
}
|
|
87
|
+
]
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"name": "paused",
|
|
4
|
+
"type": "boolean",
|
|
5
|
+
"description": "暂停跟随(鲸鱼停在当前位置)",
|
|
6
|
+
"default": "false",
|
|
7
|
+
"required": false,
|
|
8
|
+
"version": "",
|
|
9
|
+
"isEvent": false,
|
|
10
|
+
"bindable": true,
|
|
11
|
+
"value": false
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
"name": "ease",
|
|
15
|
+
"type": "number",
|
|
16
|
+
"description": "缓动系数:越大越慢,源实现为 6(1 ~ 30)",
|
|
17
|
+
"default": "6",
|
|
18
|
+
"required": false,
|
|
19
|
+
"version": "",
|
|
20
|
+
"isEvent": false,
|
|
21
|
+
"bindable": true,
|
|
22
|
+
"value": 6,
|
|
23
|
+
"control": {
|
|
24
|
+
"min": 1,
|
|
25
|
+
"max": 30,
|
|
26
|
+
"step": 0.5
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
"name": "maxSpeed",
|
|
31
|
+
"type": "number",
|
|
32
|
+
"description": "每帧每轴最大位移,源实现为 150(10 ~ 1000)",
|
|
33
|
+
"default": "150",
|
|
34
|
+
"required": false,
|
|
35
|
+
"version": "",
|
|
36
|
+
"isEvent": false,
|
|
37
|
+
"bindable": true,
|
|
38
|
+
"value": 150,
|
|
39
|
+
"control": {
|
|
40
|
+
"min": 10,
|
|
41
|
+
"max": 1000,
|
|
42
|
+
"step": 10
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
"name": "fps",
|
|
47
|
+
"type": "number",
|
|
48
|
+
"description": "帧率,源实现为 30(1 ~ 60)",
|
|
49
|
+
"default": "30",
|
|
50
|
+
"required": false,
|
|
51
|
+
"version": "",
|
|
52
|
+
"isEvent": false,
|
|
53
|
+
"bindable": true,
|
|
54
|
+
"value": 30,
|
|
55
|
+
"control": {
|
|
56
|
+
"min": 1,
|
|
57
|
+
"max": 60,
|
|
58
|
+
"step": 1
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
]
|
package/hel_proxy_es/entry.js
CHANGED
|
@@ -13,8 +13,8 @@ const LIB_NAME = 'comps-vue2';
|
|
|
13
13
|
/*
|
|
14
14
|
|--------------------------------------------------------------------------
|
|
15
15
|
|
|
|
16
|
-
| 组件类型导出文件,同时也作为 rollup
|
|
17
|
-
| 仅包含 hel-lib-proxy
|
|
16
|
+
| 组件类型导出文件,同时也作为 rollup 的打包入口文件,rollup 打包后是一个
|
|
17
|
+
| 仅包含 hel-lib-proxy 的轻量代理文件,不包含组件实现
|
|
18
18
|
| 模块使用方 通过 npm i xxx-lib 后,只要在头文件处执行过 preFetchLib
|
|
19
19
|
| 则整个项目项使用本地模块一样载入提供方的组件,并可以点击到 node_modules 查看源码
|
|
20
20
|
|
|
|
@@ -23,6 +23,14 @@ const LIB_NAME = 'comps-vue2';
|
|
|
23
23
|
/**
|
|
24
24
|
* 将提供给用户的lib暴露出去(同时也暴露了类型)
|
|
25
25
|
*/
|
|
26
|
-
var dtlib = exposeLib(LIB_NAME);
|
|
26
|
+
var dtlib = exposeLib(LIB_NAME);
|
|
27
|
+
var App = dtlib.App;
|
|
28
|
+
var HelloWorld = dtlib.HelloWorld;
|
|
29
|
+
var TierRanking = dtlib.TierRanking;
|
|
30
|
+
var Butterflies3d = dtlib.Butterflies3d;
|
|
31
|
+
var CatFace = dtlib.CatFace;
|
|
32
|
+
var BirdSvg = dtlib.BirdSvg;
|
|
33
|
+
var FrogExpressions = dtlib.FrogExpressions;
|
|
34
|
+
var WhaleFollow = dtlib.WhaleFollow;
|
|
27
35
|
|
|
28
|
-
export { dtlib as default, dtlib };
|
|
36
|
+
export { App, BirdSvg, Butterflies3d, CatFace, FrogExpressions, HelloWorld, TierRanking, WhaleFollow, dtlib as default, dtlib };
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"name": "paused",
|
|
4
|
+
"type": "boolean",
|
|
5
|
+
"description": "暂停所有动画",
|
|
6
|
+
"default": "false",
|
|
7
|
+
"required": false,
|
|
8
|
+
"version": "",
|
|
9
|
+
"isEvent": false,
|
|
10
|
+
"bindable": true,
|
|
11
|
+
"value": false
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
"name": "speed",
|
|
15
|
+
"type": "number",
|
|
16
|
+
"description": "全局速度倍率:2 表示快一倍,限制在 0.1 ~ 10",
|
|
17
|
+
"default": "1",
|
|
18
|
+
"required": false,
|
|
19
|
+
"version": "",
|
|
20
|
+
"isEvent": false,
|
|
21
|
+
"bindable": true,
|
|
22
|
+
"value": 1,
|
|
23
|
+
"control": {
|
|
24
|
+
"min": 0.1,
|
|
25
|
+
"max": 10,
|
|
26
|
+
"step": 0.1
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
]
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"name": "butterflies",
|
|
4
|
+
"type": "array",
|
|
5
|
+
"description": "每只蝴蝶的配置:{ size, duration, wingDuration, marginTop, marginLeft }",
|
|
6
|
+
"default": "DEFAULT_BUTTERFLIES.map(butterfly => ({\n ...butterfly\n}))",
|
|
7
|
+
"required": false,
|
|
8
|
+
"version": "",
|
|
9
|
+
"isEvent": false,
|
|
10
|
+
"bindable": false
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
"name": "paused",
|
|
14
|
+
"type": "boolean",
|
|
15
|
+
"description": "暂停全部动画(公转、飘动、扇翅、天空盒)",
|
|
16
|
+
"default": "false",
|
|
17
|
+
"required": false,
|
|
18
|
+
"version": "",
|
|
19
|
+
"isEvent": false,
|
|
20
|
+
"bindable": true,
|
|
21
|
+
"value": false
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"name": "speed",
|
|
25
|
+
"type": "number",
|
|
26
|
+
"description": "全局速度倍率:2 表示快一倍,0.5 表示慢一倍,会被限制在 0.1 ~ 10",
|
|
27
|
+
"default": "1",
|
|
28
|
+
"required": false,
|
|
29
|
+
"version": "",
|
|
30
|
+
"isEvent": false,
|
|
31
|
+
"bindable": true,
|
|
32
|
+
"value": 1,
|
|
33
|
+
"control": {
|
|
34
|
+
"min": 0.1,
|
|
35
|
+
"max": 10,
|
|
36
|
+
"step": 0.1
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
"name": "wingTexture",
|
|
41
|
+
"type": "string",
|
|
42
|
+
"description": "自定义翅膀纹理地址;不传则用内置的本地纹理",
|
|
43
|
+
"default": "\"\"",
|
|
44
|
+
"required": false,
|
|
45
|
+
"version": "",
|
|
46
|
+
"isEvent": false,
|
|
47
|
+
"bindable": true,
|
|
48
|
+
"value": ""
|
|
49
|
+
}
|
|
50
|
+
]
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"name": "active",
|
|
4
|
+
"type": "boolean",
|
|
5
|
+
"description": "锁定「被摸」表情(鼠标 hover 仍然有效)",
|
|
6
|
+
"default": "false",
|
|
7
|
+
"required": false,
|
|
8
|
+
"version": "",
|
|
9
|
+
"isEvent": false,
|
|
10
|
+
"bindable": true,
|
|
11
|
+
"value": false
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
"name": "background",
|
|
15
|
+
"type": "string",
|
|
16
|
+
"description": "舞台背景色;传 'transparent' 可跟随宿主",
|
|
17
|
+
"default": "\"#f6f7a7\"",
|
|
18
|
+
"required": false,
|
|
19
|
+
"version": "",
|
|
20
|
+
"isEvent": false,
|
|
21
|
+
"bindable": true,
|
|
22
|
+
"value": "#f6f7a7"
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"name": "scale",
|
|
26
|
+
"type": "number",
|
|
27
|
+
"description": "缩放:0 表示自动(窄屏媒体查询会缩小),也可以显式传 0.3 ~ 2",
|
|
28
|
+
"default": "0",
|
|
29
|
+
"required": false,
|
|
30
|
+
"version": "",
|
|
31
|
+
"isEvent": false,
|
|
32
|
+
"bindable": true,
|
|
33
|
+
"value": 0,
|
|
34
|
+
"control": {
|
|
35
|
+
"min": 0,
|
|
36
|
+
"max": 2,
|
|
37
|
+
"step": 0.05
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
]
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"name": "persist",
|
|
4
|
+
"type": "boolean",
|
|
5
|
+
"description": "是否把排行榜状态存到 IndexedDB",
|
|
6
|
+
"default": "true",
|
|
7
|
+
"required": false,
|
|
8
|
+
"version": "",
|
|
9
|
+
"isEvent": false,
|
|
10
|
+
"bindable": true,
|
|
11
|
+
"value": true
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
"name": "storageKey",
|
|
15
|
+
"type": "string",
|
|
16
|
+
"description": "IndexedDB 库名(多实例/多页面可区分)",
|
|
17
|
+
"default": "\"tier-ranking\"",
|
|
18
|
+
"required": false,
|
|
19
|
+
"version": "",
|
|
20
|
+
"isEvent": false,
|
|
21
|
+
"bindable": true,
|
|
22
|
+
"value": "tier-ranking"
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"name": "maxImageSize",
|
|
26
|
+
"type": "number",
|
|
27
|
+
"description": "上传图片压缩后的最大边长",
|
|
28
|
+
"default": "800",
|
|
29
|
+
"required": false,
|
|
30
|
+
"version": "",
|
|
31
|
+
"isEvent": false,
|
|
32
|
+
"bindable": true,
|
|
33
|
+
"value": 800,
|
|
34
|
+
"control": {
|
|
35
|
+
"min": 100,
|
|
36
|
+
"max": 2000,
|
|
37
|
+
"step": 50
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"name": "imageQuality",
|
|
42
|
+
"type": "number",
|
|
43
|
+
"description": "压缩质量(0.1 ~ 1)",
|
|
44
|
+
"default": "0.7",
|
|
45
|
+
"required": false,
|
|
46
|
+
"version": "",
|
|
47
|
+
"isEvent": false,
|
|
48
|
+
"bindable": true,
|
|
49
|
+
"value": 0.7,
|
|
50
|
+
"control": {
|
|
51
|
+
"min": 0.1,
|
|
52
|
+
"max": 1,
|
|
53
|
+
"step": 0.05
|
|
54
|
+
}
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
"name": "html2canvasUrl",
|
|
58
|
+
"type": "string",
|
|
59
|
+
"description": "自定义 html2canvas 地址(不传则依次尝试内置 CDN)",
|
|
60
|
+
"default": "\"\"",
|
|
61
|
+
"required": false,
|
|
62
|
+
"version": "",
|
|
63
|
+
"isEvent": false,
|
|
64
|
+
"bindable": true,
|
|
65
|
+
"value": ""
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
"name": "saved",
|
|
69
|
+
"type": "",
|
|
70
|
+
"description": "",
|
|
71
|
+
"default": "",
|
|
72
|
+
"required": false,
|
|
73
|
+
"version": "",
|
|
74
|
+
"isEvent": true,
|
|
75
|
+
"bindable": false
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
"name": "change",
|
|
79
|
+
"type": "",
|
|
80
|
+
"description": "",
|
|
81
|
+
"default": "",
|
|
82
|
+
"required": false,
|
|
83
|
+
"version": "",
|
|
84
|
+
"isEvent": true,
|
|
85
|
+
"bindable": false
|
|
86
|
+
}
|
|
87
|
+
]
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"name": "paused",
|
|
4
|
+
"type": "boolean",
|
|
5
|
+
"description": "暂停跟随(鲸鱼停在当前位置)",
|
|
6
|
+
"default": "false",
|
|
7
|
+
"required": false,
|
|
8
|
+
"version": "",
|
|
9
|
+
"isEvent": false,
|
|
10
|
+
"bindable": true,
|
|
11
|
+
"value": false
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
"name": "ease",
|
|
15
|
+
"type": "number",
|
|
16
|
+
"description": "缓动系数:越大越慢,源实现为 6(1 ~ 30)",
|
|
17
|
+
"default": "6",
|
|
18
|
+
"required": false,
|
|
19
|
+
"version": "",
|
|
20
|
+
"isEvent": false,
|
|
21
|
+
"bindable": true,
|
|
22
|
+
"value": 6,
|
|
23
|
+
"control": {
|
|
24
|
+
"min": 1,
|
|
25
|
+
"max": 30,
|
|
26
|
+
"step": 0.5
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
"name": "maxSpeed",
|
|
31
|
+
"type": "number",
|
|
32
|
+
"description": "每帧每轴最大位移,源实现为 150(10 ~ 1000)",
|
|
33
|
+
"default": "150",
|
|
34
|
+
"required": false,
|
|
35
|
+
"version": "",
|
|
36
|
+
"isEvent": false,
|
|
37
|
+
"bindable": true,
|
|
38
|
+
"value": 150,
|
|
39
|
+
"control": {
|
|
40
|
+
"min": 10,
|
|
41
|
+
"max": 1000,
|
|
42
|
+
"step": 10
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
"name": "fps",
|
|
47
|
+
"type": "number",
|
|
48
|
+
"description": "帧率,源实现为 30(1 ~ 60)",
|
|
49
|
+
"default": "30",
|
|
50
|
+
"required": false,
|
|
51
|
+
"version": "",
|
|
52
|
+
"isEvent": false,
|
|
53
|
+
"bindable": true,
|
|
54
|
+
"value": 30,
|
|
55
|
+
"control": {
|
|
56
|
+
"min": 1,
|
|
57
|
+
"max": 60,
|
|
58
|
+
"step": 1
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
]
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const LIB_NAME: "comps-vue2";
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
export type CompTypes = {
|
|
2
|
+
App: {
|
|
3
|
+
name: string;
|
|
4
|
+
};
|
|
5
|
+
HelloWorld: {
|
|
6
|
+
name: string;
|
|
7
|
+
};
|
|
8
|
+
TierRanking: {
|
|
9
|
+
name: string;
|
|
10
|
+
};
|
|
11
|
+
Butterflies3d: {
|
|
12
|
+
name: string;
|
|
13
|
+
};
|
|
14
|
+
CatFace: {
|
|
15
|
+
name: string;
|
|
16
|
+
};
|
|
17
|
+
BirdSvg: {
|
|
18
|
+
name: string;
|
|
19
|
+
};
|
|
20
|
+
FrogExpressions: {
|
|
21
|
+
name: string;
|
|
22
|
+
};
|
|
23
|
+
WhaleFollow: {
|
|
24
|
+
name: string;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
/**
|
|
28
|
+
* 将提供给用户的lib暴露出去(同时也暴露了类型)
|
|
29
|
+
*/
|
|
30
|
+
export declare const dtlib: CompTypes;
|
|
31
|
+
export declare const App: {
|
|
32
|
+
name: string;
|
|
33
|
+
};
|
|
34
|
+
export declare const HelloWorld: {
|
|
35
|
+
name: string;
|
|
36
|
+
};
|
|
37
|
+
export declare const TierRanking: {
|
|
38
|
+
name: string;
|
|
39
|
+
};
|
|
40
|
+
export declare const Butterflies3d: {
|
|
41
|
+
name: string;
|
|
42
|
+
};
|
|
43
|
+
export declare const CatFace: {
|
|
44
|
+
name: string;
|
|
45
|
+
};
|
|
46
|
+
export declare const BirdSvg: {
|
|
47
|
+
name: string;
|
|
48
|
+
};
|
|
49
|
+
export declare const FrogExpressions: {
|
|
50
|
+
name: string;
|
|
51
|
+
};
|
|
52
|
+
export declare const WhaleFollow: {
|
|
53
|
+
name: string;
|
|
54
|
+
};
|
|
55
|
+
export default dtlib;
|