feat: 组件生命周期事件

This commit is contained in:
潘潘
2022-10-11 18:31:29 +08:00
parent c84f6d9c33
commit 92339dae28
12 changed files with 348 additions and 6 deletions
@@ -29,6 +29,7 @@
:themeSetting="themeSetting"
:themeColor="themeColor"
:style="{ ...getSizeStyle(item.attr) }"
v-on="useLifeHandler(item)"
></component>
</div>
</template>
@@ -41,7 +42,7 @@ import { CreateComponentGroupType } from '@/packages/index.d'
import { chartColors } from '@/settings/chartThemes/index'
import { animationsClass, getFilterStyle, getTransformStyle, getBlendModeStyle } from '@/utils'
import { getSizeStyle, getComponentAttrStyle, getStatusStyle } from '../../utils'
import { useLifeHandler } from '@/hooks'
const props = defineProps({
localStorageInfo: {
type: Object as PropType<ChartEditStorageType>,