feat: 新增自带动画demo
parent
40f981864a
commit
dab5968681
@ -0,0 +1,7 @@
|
||||
<svg t="1673619783393" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="5654" width="200" height="200">
|
||||
<rect x="0" y="155" width="1000" height="600" fill="#000000" stroke="#FFFFFF" stroke-width="4"></rect>
|
||||
<line x1="80" y1="150" x2="920" y2="150" stroke="#000000" stroke-width="90"></line>
|
||||
<rect transform="rotate(180,500,360)" x="20" y="0" width="960" height="400">
|
||||
<animate attributeName="height" from="0" to="400" dur="5s" repeatCount="indefinite"/>
|
||||
</rect>
|
||||
</svg>
|
After Width: | Height: | Size: 518 B |
@ -0,0 +1,8 @@
|
||||
import { IConfigComponentGroup } from '../../types';
|
||||
import { reservoir_svg_file } from './reservoir';
|
||||
|
||||
export const have_animation_group: IConfigComponentGroup = {
|
||||
groupType: 'have_animation',
|
||||
title: '自带动画',
|
||||
list: [reservoir_svg_file]
|
||||
};
|
@ -0,0 +1,19 @@
|
||||
import { EConfigItemPropsType, EDoneJsonType, IConfigItem } from '../../../types';
|
||||
|
||||
export const reservoir_svg_file: IConfigItem = {
|
||||
name: 'reservoir',
|
||||
title: '蓄水池',
|
||||
type: EDoneJsonType.File,
|
||||
config: {
|
||||
can_zoom: true,
|
||||
have_anchor: true,
|
||||
actual_rect: true
|
||||
},
|
||||
props: {
|
||||
fill: {
|
||||
title: '水流颜色',
|
||||
type: EConfigItemPropsType.Color,
|
||||
val: '#37cfe7'
|
||||
}
|
||||
}
|
||||
};
|
@ -1,8 +1,10 @@
|
||||
import { IConfigComponentGroup } from '../types';
|
||||
import { stateful_group } from './stateful';
|
||||
import { stateless_group } from './stateless';
|
||||
import { have_animation_group } from './have-animation';
|
||||
|
||||
export const power_system_config_center: IConfigComponentGroup[] = Object.seal([
|
||||
export const svgfile_config_center: IConfigComponentGroup[] = Object.seal([
|
||||
stateful_group,
|
||||
stateless_group
|
||||
stateless_group,
|
||||
have_animation_group
|
||||
]);
|
||||
|
Loading…
Reference in New Issue