@melt-js/comps-vue2 2026.11.6 → 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.
Files changed (75) hide show
  1. package/README.md +125 -52
  2. package/hel_dist/cdn/example-esm.html +1 -0
  3. package/hel_dist/cdn/example-umd.html +1 -0
  4. package/hel_dist/cdn/index.esm.mjs +36 -0
  5. package/hel_dist/cdn/index.umd.cjs +53 -0
  6. package/hel_dist/cdn/manifest.json +39 -0
  7. package/hel_dist/css/chunk-024e925a.3afab805.css +1 -0
  8. package/hel_dist/css/chunk-024e925a.3afab805.css.gz +0 -0
  9. package/hel_dist/css/chunk-1fed66ce.3afab805.css +1 -0
  10. package/hel_dist/css/chunk-1fed66ce.3afab805.css.gz +0 -0
  11. package/hel_dist/entry.js +20 -4
  12. package/hel_dist/hel-meta.json +78 -23
  13. package/hel_dist/index.html +1 -1
  14. package/hel_dist/js/app.d6543d1d.js +1 -0
  15. package/hel_dist/js/chunk-024e925a.a9f359ef.js +1 -0
  16. package/hel_dist/js/chunk-024e925a.a9f359ef.js.gz +0 -0
  17. package/hel_dist/js/chunk-1fed66ce.6383207e.js +1 -0
  18. package/hel_dist/js/chunk-1fed66ce.6383207e.js.gz +0 -0
  19. package/hel_dist/js/runtime.8e55f3d7.js +1 -0
  20. package/hel_dist/js/vendor.a5bc9dd1.js +1 -0
  21. package/hel_dist/js/vendor.a5bc9dd1.js.gz +0 -0
  22. package/hel_proxy/entry.js +20 -4
  23. package/hel_proxy_es/assets/components/App.propsSchema.json +13 -0
  24. package/hel_proxy_es/assets/components/BirdSvg/propsSchema.json +29 -0
  25. package/hel_proxy_es/assets/components/Butterflies3d/propsSchema.json +50 -0
  26. package/hel_proxy_es/assets/components/CatFace/propsSchema.json +40 -0
  27. package/hel_proxy_es/assets/components/FrogExpressions/propsSchema.json +13 -0
  28. package/hel_proxy_es/assets/components/HelloWorld.propsSchema.json +13 -0
  29. package/hel_proxy_es/assets/components/TierRanking/propsSchema.json +87 -0
  30. package/hel_proxy_es/assets/components/WhaleFollow/propsSchema.json +61 -0
  31. package/hel_proxy_es/entry.js +12 -4
  32. package/hel_proxy_es/types/components/App.propsSchema.json +13 -0
  33. package/hel_proxy_es/types/components/BirdSvg/propsSchema.json +29 -0
  34. package/hel_proxy_es/types/components/Butterflies3d/propsSchema.json +50 -0
  35. package/hel_proxy_es/types/components/CatFace/propsSchema.json +40 -0
  36. package/hel_proxy_es/types/components/FrogExpressions/propsSchema.json +13 -0
  37. package/hel_proxy_es/types/components/HelloWorld.propsSchema.json +13 -0
  38. package/hel_proxy_es/types/components/TierRanking/propsSchema.json +87 -0
  39. package/hel_proxy_es/types/components/WhaleFollow/propsSchema.json +61 -0
  40. package/hel_proxy_es/types/configs/subApp.d.ts +1 -0
  41. package/hel_proxy_es/types/entrance/libTypes.d.ts +55 -0
  42. package/package.json +117 -88
  43. package/hel_dist/css/chunk-f032efe6.332a9b03.css +0 -1
  44. package/hel_dist/js/app~493df0b3.39d7ea1f.js +0 -16
  45. package/hel_dist/js/app~493df0b3.39d7ea1f.js.map +0 -1
  46. package/hel_dist/js/chunk-f032efe6.d73e0465.js +0 -2
  47. package/hel_dist/js/chunk-f032efe6.d73e0465.js.map +0 -1
  48. package/scripts/check.js +0 -13
  49. package/scripts/meta.js +0 -21
  50. package/scripts/prepublishOnly.js +0 -26
  51. package/src/assets/logo.png +0 -0
  52. package/src/components/App.vue +0 -32
  53. package/src/components/Butterflies3d/assets/clouds_back.jpg +0 -0
  54. package/src/components/Butterflies3d/assets/clouds_front.jpg +0 -0
  55. package/src/components/Butterflies3d/assets/clouds_left.jpg +0 -0
  56. package/src/components/Butterflies3d/assets/clouds_right.jpg +0 -0
  57. package/src/components/Butterflies3d/assets/clouds_top.jpg +0 -0
  58. package/src/components/Butterflies3d/assets/wing-pattern.gif +0 -0
  59. package/src/components/Butterflies3d/index.vue +0 -245
  60. package/src/components/Butterflies3d/source/README.md +0 -17
  61. package/src/components/Butterflies3d/source/index.html +0 -305
  62. package/src/components/Butterflies3d/source/reset.css +0 -1
  63. package/src/components/Butterflies3d/source/style.css +0 -831
  64. package/src/components/Butterflies3d/style.css +0 -295
  65. package/src/components/HelloWorld.vue +0 -37
  66. package/src/components/TierRanking/index.vue +0 -1012
  67. package/src/components/TierRanking/ranking.css +0 -650
  68. package/src/components/TierRanking/source/ranking.css +0 -657
  69. package/src/components/TierRanking/source/ranking.html +0 -1532
  70. package/src/components/index.js +0 -18
  71. package/src/configs/subApp.js +0 -9
  72. package/src/entrance/libProperties.js +0 -10
  73. package/src/entrance/libTypes.ts +0 -34
  74. package/src/loadApp.js +0 -20
  75. package/src/main.js +0 -25
package/scripts/check.js DELETED
@@ -1,13 +0,0 @@
1
- /*
2
- |--------------------------------------------------------------------------
3
- |
4
- | 此脚本在流水线上会被触发,用于校验组名是否和应用里的组名保持一致
5
- |
6
- |--------------------------------------------------------------------------
7
- */
8
- const path = require('path');
9
- const helDevUtils = require('hel-dev-utils');
10
- const pkg = require('../package.json');
11
-
12
- const fileFullPath = path.join(__dirname, '../src/configs/subApp');
13
- helDevUtils.check(pkg, { fileFullPath, checkEnv: false });
package/scripts/meta.js DELETED
@@ -1,21 +0,0 @@
1
- /*
2
- |--------------------------------------------------------------------------
3
- |
4
- | 生成meta
5
- |
6
- |--------------------------------------------------------------------------
7
- */
8
- const process = require('process');
9
- const path = require('path');
10
- const helDevUtils = require('hel-dev-utils');
11
- const packageJson = require('../package.json');
12
- const appInfo = require('../appInfo');
13
-
14
- helDevUtils.extractHelMetaJson({
15
- appInfo,
16
- buildDirFullPath: path.join(__dirname, '../hel_dist'),
17
- packageJson,
18
- }).catch(err => {
19
- console.error(err);
20
- process.exit(-1);
21
- });
@@ -1,26 +0,0 @@
1
- /*
2
- |--------------------------------------------------------------------------
3
- | npm publush 前检查根目录下 package.json 的版本号是否和 hel_dist/hel-meta.json 一致
4
- |--------------------------------------------------------------------------
5
- */
6
-
7
- const chalk = require('chalk');
8
- const pkg = require('../package.json');
9
- const fs = require('fs');
10
- const path = require('path');
11
- const helDistPath = path.resolve(__dirname, '../hel_dist/hel-meta.json');
12
- const existHelMeata = fs.existsSync(helDistPath);
13
-
14
- // 检查是否执行npm run build 打包命令
15
- if (!existHelMeata) {
16
- console.log(chalk.red("Run the 'npm run build' command first.\n"));
17
- process.exit(1);
18
- }
19
- const { app } = JSON.parse(fs.readFileSync(helDistPath, 'utf-8'));
20
- // 检查根目录下 package.json 的版本号是否和 hel_dist/hel-meta.json 一致
21
- if (app?.build_version !== pkg.version) {
22
- console.log(
23
- chalk.red('The package.json version number and the hel_dist/hel-meta.json version number must be the same.\n')
24
- );
25
- process.exit(1);
26
- }
Binary file
@@ -1,32 +0,0 @@
1
- <template>
2
- <div id="app">
3
- <img alt="Vue logo" src="../assets/logo.png" />
4
- <h2>name: {{name}}</h2>
5
- <HelloWorld msg="Welcome to view project hel-tpl-remote-vue-comp ( from unpkg deploy )" />
6
- </div>
7
- </template>
8
-
9
- <script>
10
- import HelloWorld from "./HelloWorld.vue";
11
-
12
- export default {
13
- name: "App",
14
- components: {
15
- HelloWorld,
16
- },
17
- props: {
18
- name: String,
19
- },
20
- };
21
- </script>
22
-
23
- <style scoped>
24
- #app {
25
- font-family: Avenir, Helvetica, Arial, sans-serif;
26
- -webkit-font-smoothing: antialiased;
27
- -moz-osx-font-smoothing: grayscale;
28
- text-align: center;
29
- color: #2c3e50;
30
- margin-top: 60px;
31
- }
32
- </style>
@@ -1,245 +0,0 @@
1
- <template>
2
- <div
3
- class="butterflies-3d"
4
- :class="{ 'is-paused': paused }"
5
- role="img"
6
- aria-label="3D 蝴蝶在云层中飞舞的动画"
7
- >
8
- <!--
9
- 翅膀纹理与蝴蝶轮廓:id 由实例 uid 生成,
10
- 同一个页面里挂载多个实例时不会互相覆盖。
11
- -->
12
- <svg class="svg-defs" aria-hidden="true" focusable="false">
13
- <defs>
14
- <pattern
15
- :id="patternId"
16
- width="1"
17
- height="1"
18
- viewBox="0 0 100 100"
19
- preserveAspectRatio="none"
20
- >
21
- <image
22
- :xlink:href="resolvedWingTexture"
23
- width="100"
24
- height="100"
25
- preserveAspectRatio="none"
26
- />
27
- </pattern>
28
-
29
- <g :id="shapeId">
30
- <path
31
- class="path"
32
- clip-rule="evenodd"
33
- d="M8.65,2.85c0.934-0.2,2.15-0.333,3.65-0.4c1.534-0.1,2.667-0.083,3.4,0.05
34
- c1.533,0.267,3.45,0.767,5.75,1.5c2.466,0.8,4.35,1.617,5.65,2.45c2.066,1.2,3.883,2.383,5.45,3.55c2.567,2.1,4.35,3.8,5.35,5.1
35
- l2.1,2.5c0.933,1.167,1.517,1.983,1.75,2.45c0.333,0.767,1.083,2.117,2.25,4.05c0.233,0.467,0.717,1.683,1.45,3.65
36
- c0.733,2.067,1.2,3.45,1.4,4.15c0.467,1.733,0.917,3.767,1.35,6.1l0.4,3.85l-0.25-3.4c-0.6-5.967-1.267-10.25-2-12.85
37
- c-0.733-2.434-2.167-5.467-4.3-9.1c-0.966-1.667-1.566-3-1.8-4c-0.233-0.933-0.1-1.267,0.4-1c1.3,0.733,2.917,3.867,4.85,9.4
38
- c1.667,4.7,2.85,11.2,3.55,19.5c0.567,6.934,0.667,11.917,0.3,14.95l0.2,0.05c0.231,0,0.348-0.05,0.35-0.15v0.05l0.1,0.05v27.4
39
- c-0.032-0.018-0.065-0.035-0.1-0.05v-0.05c-0.7,0.267-0.983,0.117-0.85-0.45c0.067-0.333,0.017-0.817-0.15-1.45
40
- c-0.2-0.6-0.316-0.983-0.35-1.15l-0.5-1.65c-0.533-2.967-0.833-5.034-0.9-6.2c-0.1-1.533-0.133-2.4-0.1-2.6
41
- c0-0.933,0.167-1.667,0.5-2.2c0.567-0.9,0.684-1.75,0.35-2.55c-0.167-0.367-0.367-0.6-0.6-0.7c-0.333-0.133-0.517,0.283-0.55,1.25
42
- c-0.033,1.533-0.167,2.9-0.4,4.1c-0.1,2.3-0.267,3.684-0.5,4.15c-0.333,0.667-1.25,2.95-2.75,6.85c-1.167,2.8-2.233,4.817-3.2,6.05
43
- c-0.9,1.2-1.583,2.1-2.05,2.7c-0.8,1-1.434,1.667-1.9,2c-2.067,1.333-3.633,2.067-4.7,2.2c-3.033,0.267-4.95,0.317-5.75,0.15
44
- c-0.8-0.167-1.383-0.217-1.75-0.15c-0.533,0.1-1.033,0.45-1.5,1.05c-0.5,0.667-1.217,1.284-2.15,1.85
45
- c-0.934,0.567-1.85,0.934-2.75,1.1c-2.467,0.433-4.45,0.25-5.95-0.55c-0.7-0.4-1.467-1.15-2.3-2.25c-0.6-0.867-1.033-1.567-1.3-2.1
46
- c-0.267-0.667-0.483-1.483-0.65-2.45c-0.3-1.467-0.383-2.717-0.25-3.75c0.267-1.9,0.45-3.05,0.55-3.45
47
- c0.233-1.233,0.566-2.333,1-3.3C9.25,77.45,9.767,76.4,10,76c0.667-1.233,1.55-2.583,2.65-4.05c1.1-1.434,2.184-2.583,3.25-3.45
48
- c0.367-0.3,1.15-0.867,2.35-1.7c0.767-0.566,1.917-1.25,3.45-2.05c1.733-0.933,3.267-1.633,4.6-2.1
49
- c2.133-0.733,4.534-1.467,7.2-2.2c0.467-0.1,1.517-0.3,3.15-0.6c0.967-0.233,0.4-0.4-1.7-0.5c-2.434-0.1-4.534-0.3-6.3-0.6
50
- c-1.566-0.267-3.383-0.7-5.45-1.3c-2.8-0.8-4.467-1.317-5-1.55c-1.567-0.667-3.2-1.75-4.9-3.25c-1.733-1.533-3-3.1-3.8-4.7
51
- c-0.533-1.067-0.967-2.434-1.3-4.1c-0.233-1.067-0.3-2.133-0.2-3.2c0.133-0.833,0.183-1.3,0.15-1.4v-0.6
52
- c-2.467-3.233-3.983-5.433-4.55-6.6c-0.533-1.033-0.883-1.833-1.05-2.4c-0.3-0.867-0.466-1.85-0.5-2.95
53
- c-0.033-2.367,0.034-4.117,0.2-5.25c0.3-1.034,0.483-1.8,0.55-2.3c0.167-0.867,0.034-1.533-0.4-2c-0.6-0.7-1.133-1.517-1.6-2.45
54
- c-0.566-1.133-0.833-2.117-0.8-2.95c0.033-1.333,0.167-2.367,0.4-3.1c0.367-1.267,1.05-2.267,2.05-3
55
- C4.417,4.25,6.483,3.317,8.65,2.85z"
56
- />
57
- </g>
58
- </defs>
59
- </svg>
60
-
61
- <!-- 天空兜底背景:天空盒图片加载前 / 旋转到边缘时不露出宿主页面 -->
62
- <div class="background" aria-hidden="true"></div>
63
-
64
- <div class="scene3d" aria-hidden="true">
65
- <!-- 天空盒:六面贴图拼成的立方体,慢速绕 Y 轴自转 -->
66
- <div class="cube skybox" :style="skyboxStyle">
67
- <div class="scale">
68
- <div class="face front"></div>
69
- <div class="face back"></div>
70
- <div class="face right"></div>
71
- <div class="face left"></div>
72
- <div class="face top"></div>
73
- <div class="face bottom"></div>
74
- </div>
75
- </div>
76
-
77
- <!--
78
- 每只蝴蝶都是同一套 3D 图层:容器绕 Y 轴公转 → 姿态 → 缩放 →
79
- 平移 → 上下飘动(fluttering)→ 翅膀扇动。
80
- -->
81
- <div
82
- v-for="butterfly in items"
83
- :key="butterfly.key"
84
- class="butterfly_container"
85
- :class="butterfly.sizeClass"
86
- :style="butterfly.containerStyle"
87
- >
88
- <div class="layer rotate3d">
89
- <div class="layer scale">
90
- <div class="layer translate3d">
91
- <div class="layer translate3d-1" :style="butterfly.flutterStyle">
92
- <figure class="butterfly">
93
- <svg class="wing left" viewBox="0 0 50 100" :style="butterfly.wingStyle">
94
- <use :xlink:href="'#' + shapeId" :style="wingFillStyle" />
95
- </svg>
96
- <svg class="wing right" viewBox="0 0 50 100" :style="butterfly.wingStyle">
97
- <use :xlink:href="'#' + shapeId" :style="wingFillStyle" />
98
- </svg>
99
- </figure>
100
- </div>
101
- </div>
102
- </div>
103
- </div>
104
- </div>
105
- </div>
106
- </div>
107
- </template>
108
-
109
- <script>
110
- /**
111
- * 3D 蝴蝶飞舞(Vue 2 组件)
112
- *
113
- * 抽取自 https://github.com/luo0412/night-demo-codepen-gulp-2019 的
114
- * gulp3-jquery-melt-ie8-mpa/_melt/ch2-effects/03-animal/butterflies-3d/index.html:
115
- * - 原始 HTML / CSS 见同目录 source/(保留出处,不在构建中使用)
116
- * - 原页面用 7 段重复的内联 style 摆放蝴蝶,这里改为数据驱动:
117
- * props.butterflies 里的每一项对应一只蝴蝶(尺寸、公转周期、扇翅周期、偏移)
118
- * - 原 CSS 里的 body/html 规则、-moz-/-ms-/-o- 前缀与无效的 FlipH 已清理,
119
- * 皮肤与关键帧数值保持不变;根节点负责裁剪,不再依赖整页 overflow:hidden
120
- * - 天空盒贴图、翅膀纹理都改为同目录 assets/ 下的本地文件(原纹理在 CodePen S3 上,
121
- * 已失效),不再请求外部图片
122
- * - 轮廓 / 纹理的 id 按实例 uid 生成,同一页面可安全挂载多个实例
123
- *
124
- * 对外:props = butterflies / paused / speed / wingTexture
125
- * 纯 CSS 动画驱动,无定时器,卸载即停止。
126
- */
127
-
128
- import defaultWingTexture from './assets/wing-pattern.gif';
129
-
130
- const DEFAULT_BUTTERFLIES = [
131
- // 大只:10s 公转、0.5s 扇一次
132
- { size: '', duration: 10, wingDuration: 0.5 },
133
- // 大只:5s 公转,往左上偏
134
- { size: '', duration: 5, wingDuration: 0.75, marginTop: -150, marginLeft: 140 },
135
- // 半尺寸:5s 公转
136
- { size: 'half', duration: 5, wingDuration: 0.75, marginTop: -10, marginLeft: 50 },
137
- // 半尺寸:20s 公转、1s 扇一次
138
- { size: 'half', duration: 20, wingDuration: 1, marginTop: 20 },
139
- // 半尺寸:20s 公转,往右下偏
140
- { size: 'half', duration: 20, wingDuration: 1.2, marginTop: 100, marginLeft: 50 },
141
- // 三分之一:20s 公转,0.35s 快扇
142
- { size: 'third', duration: 20, wingDuration: 0.35, marginTop: 150 },
143
- // 三分之一:4s 公转(飞得最快),往右上偏
144
- { size: 'third', duration: 4, wingDuration: 0.45, marginTop: -250, marginLeft: 300 }
145
- ];
146
-
147
- // 公转、飘动这些没有单独配置的动画沿用源码里的默认周期
148
- const SKYBOX_DURATION = 40;
149
- const FLUTTER_DURATION = 10;
150
-
151
- const ALLOWED_SIZES = ['half', 'third', 'quarter'];
152
-
153
- // 允许 marginTop / marginLeft 传数字(px)或字符串(原样使用)
154
- function toLength(value) {
155
- if (value === undefined || value === null || value === '') return undefined;
156
- return typeof value === 'number' ? value + 'px' : String(value);
157
- }
158
-
159
- export default {
160
- name: 'Butterflies3d',
161
- props: {
162
- // 每只蝴蝶的配置:{ size, duration, wingDuration, marginTop, marginLeft }
163
- // - size: '' | 'half' | 'third' | 'quarter'
164
- // - duration: 绕 Y 轴公转一圈的秒数
165
- // - wingDuration: 翅膀扇动一个来回的秒数
166
- // - marginTop / marginLeft: 相对舞台中心的偏移,数字按 px 处理
167
- butterflies: {
168
- type: Array,
169
- default: () => DEFAULT_BUTTERFLIES.map((butterfly) => ({ ...butterfly }))
170
- },
171
- // 暂停全部动画(公转、飘动、扇翅、天空盒)
172
- paused: {
173
- type: Boolean,
174
- default: false
175
- },
176
- // 全局速度倍率:2 表示快一倍,0.5 表示慢一倍,会被限制在 0.1 ~ 10
177
- speed: {
178
- type: Number,
179
- default: 1
180
- },
181
- // 自定义翅膀纹理;不传则用内置的本地纹理
182
- wingTexture: {
183
- type: String,
184
- default: ''
185
- }
186
- },
187
- computed: {
188
- safeSpeed() {
189
- const speed = Number(this.speed);
190
- if (!Number.isFinite(speed) || speed <= 0) return 1;
191
- return Math.min(10, Math.max(0.1, speed));
192
- },
193
- resolvedWingTexture() {
194
- return this.wingTexture || defaultWingTexture;
195
- },
196
- // 用实例 uid 生成唯一 id,避免多实例互相抢 defs
197
- patternId() {
198
- return 'butterflies-3d-pattern-' + this._uid;
199
- },
200
- shapeId() {
201
- return 'butterflies-3d-shape-' + this._uid;
202
- },
203
- wingFillStyle() {
204
- return { fill: 'url(#' + this.patternId + ')' };
205
- },
206
- skyboxStyle() {
207
- return { animationDuration: SKYBOX_DURATION / this.safeSpeed + 's' };
208
- },
209
- // 把外部配置归一化成模板直接可用的样式对象
210
- items() {
211
- return this.normalizeButterflies(this.butterflies);
212
- }
213
- },
214
- methods: {
215
- normalizeButterflies(list) {
216
- if (!Array.isArray(list)) return [];
217
- return list.map((item, index) => {
218
- const butterfly = item || {};
219
- const size = ALLOWED_SIZES.indexOf(butterfly.size) > -1 ? butterfly.size : '';
220
- const duration = Number(butterfly.duration) > 0 ? Number(butterfly.duration) : 10;
221
- const wingDuration =
222
- Number(butterfly.wingDuration) > 0 ? Number(butterfly.wingDuration) : 0.5;
223
-
224
- return {
225
- key: index,
226
- sizeClass: size ? 'scale_' + size : '',
227
- containerStyle: {
228
- marginTop: toLength(butterfly.marginTop),
229
- marginLeft: toLength(butterfly.marginLeft),
230
- animationDuration: duration / this.safeSpeed + 's'
231
- },
232
- wingStyle: {
233
- animationDuration: wingDuration / this.safeSpeed + 's'
234
- },
235
- flutterStyle: {
236
- animationDuration: FLUTTER_DURATION / this.safeSpeed + 's'
237
- }
238
- };
239
- });
240
- }
241
- }
242
- };
243
- </script>
244
-
245
- <style scoped src="./style.css"></style>
@@ -1,17 +0,0 @@
1
- # 原始来源
2
-
3
- - 页面:<https://github.com/luo0412/night-demo-codepen-gulp-2019/blob/master/gulp3-jquery-melt-ie8-mpa/_melt/ch2-effects/03-animal/butterflies-3d/index.html>
4
- - 本目录的 `index.html`、`style.css`、`reset.css` 原样拷贝自上述仓库的
5
- `butterflies-3d/index.html` 与 `butterflies-3d/css/`,仅用于保留出处,不参与组件构建。
6
-
7
- 改写为 Vue 2 组件(`../index.vue` + `../style.css`)时的处理:
8
-
9
- - `body` / `html` 的整页尺寸与 `overflow: hidden` 改到组件根节点 `.butterflies-3d` 上,组件不再影响宿主页面。
10
- - 天空盒贴图 `clouds_*.jpg` 移到 `../assets/` 并压缩(512×512,JPEG quality 82)。
11
- - 翅膀纹理原地址 `https://s3-us-west-2.amazonaws.com/s.cdpn.io/78881/pattern_141.gif` 已返回 403,
12
- 这里改用 Internet Archive 的快照(12×48 GIF),保存为 `../assets/wing-pattern.gif`。
13
- - 去掉 `-moz-` / `-ms-` / `-o-` 前缀和无效的 `FlipH` 滤镜,保留原始变换、关键帧与尺寸数值。
14
- - 原页面里 7 只蝴蝶的重复内联 `animation-duration` / `margin-*` 改为 `butterflies` prop。
15
- - 原页面的 `<var class="...">` 图层改为 `<div class="layer ...">`,便于阅读与组件复用。
16
- - `reset.css` 是页面级 reset,组件不引入;组件自身的布局完全由 `../style.css` 负责。
17
- - 轮廓 / 纹理的 id 由实例 uid 生成,同一页面可以挂载多个组件实例。