解决冲突

This commit is contained in:
胡尧
2025-02-20 13:51:24 +08:00
55 changed files with 760 additions and 751 deletions

View File

@@ -0,0 +1,3 @@
.model-viewer-in-list {
width: 150px;
}

View File

@@ -64,11 +64,16 @@ StepViewer.supportedTypes = ["binary"];
StepViewer.props = {
...standardFieldProps,
url: {type: String, optional: true},
isInList: {type: Boolean, optional: true},
};
StepViewer.extractProps = ({attrs}) => {
const modifiedAttrs = JSON.parse(attrs.modifiers || '{}');
return {
url: attrs.options.url,
isInList: modifiedAttrs.isInList,
};
};

View File

@@ -5,6 +5,7 @@
<t t-if="props.value">
<model-viewer
t-att-class="props.isInList ? 'model-viewer-in-list' : ''"
t-att-src='props.url'
name="3D model"
alt="3D model"