

<script>
/* eslint-disable */
// sd-skip-auto-import
import util from"./util";import components from"./_import-components/sd-component-props-import";var _render=function t(){var e=this,o=e._self._c;return o("a-form-model",{ref:"form",class:e.$style.wrapper,attrs:{layout:"vertical",model:e.component},on:{validate:e.onValidate}},[o("sd-props-common",{attrs:{"hidden-props":e.componentModule.metaInfo.hiddenProps}},[o(e.componentModule.default,{ref:"propEditor",tag:"component"})],1)],1)};var staticRenderFns=[];_render._withStripped=true;export default{name:"SdComponentProps",components:components,mixins:[util.mixin],data(){return{validateStatus:{}}},computed:{componentModule(){return util.getComponentByID(this.component.attrFD.cid)},isValid(){for(const t in this.validateStatus)if(!this.validateStatus[t])return false;return true}},watch:{isValid(t){this.$emit("validate",t)},"component.attrFD.id":{handler(){this.$refs.propEditor?.beforeComponentInactive?.();this.validateStatus={};this.$nextTick((()=>{this.$refs.form.validate();this.$refs.propEditor.onComponentActivated?.()}))},immediate:true}},methods:{onValidate(t,e){this.$set(this.validateStatus,t,e)}},render:_render,staticRenderFns:staticRenderFns};</script>

<style module lang="scss">
@use '@/common/design' as *;
.wrapper {
  :global(.ant-btn-link) {
    padding: 0;
  }
}
</style>
