Skip to content

Commit fd94caf

Browse files
committed
fix: change by review
1 parent ab745b9 commit fd94caf

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/common/component/MetaJsSlot.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
<tiny-input
2424
v-model="slot.params"
2525
class="use-slot-params"
26-
@change="validParams(index, paramsPropPath(index), slot)"
26+
@change="validParams(paramsPropPath(index), slot)"
2727
></tiny-input>
2828
</tiny-form-item>
2929
</div>
@@ -95,7 +95,7 @@ export default {
9595
const updateSlotParams = (slotData) => {
9696
emit('update:modelValue', slotData)
9797
98-
// 更新当前选中组件的根属性,不根新在jsslot中的数据非响应式
98+
// 更新当前选中组件的根属性,不更新在jsslot中的数据非响应式
9999
const [propsName] = path.split('.')
100100
const schema = useProperties().getSchema()
101101
schema.props[propsName] = JSON.parse(JSON.stringify(schema.props[propsName]))
@@ -155,7 +155,7 @@ export default {
155155
updateSlotParams({ ...(props.modelValue || {}), ...slotInfo })
156156
}
157157
158-
const validParams = (idx, paramsPath, slot) => {
158+
const validParams = (paramsPath, slot) => {
159159
slotRef.value.validateField([paramsPath], (error) => {
160160
if (!error) {
161161
slot.bind && setSlotParams(slot)

0 commit comments

Comments
 (0)