Skip to content

Commit

Permalink
Merge pull request #23 from Liberty-liu/test/Generate_field_data
Browse files Browse the repository at this point in the history
  • Loading branch information
Liberty-liu authored Aug 15, 2023
2 parents d2e8c85 + ae243d9 commit b23d24a
Show file tree
Hide file tree
Showing 4 changed files with 1,155 additions and 2 deletions.
3 changes: 2 additions & 1 deletion examples/views/formEditorConfig.vue
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,8 @@ const sector = computed(() => {
} else {
result = _.find(all.value, { id: value0.value })
}
return result
console.log(result?.columns?.[0])
return result?.columns?.[0] || result
})
const handleListener = async ({ type, data }) => {
console.log(type)
Expand Down
3 changes: 2 additions & 1 deletion packages/utils/nanoid.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { nanoid } from 'nanoid'
import { nanoid as nanoidAlias } from 'nanoid'
const nanoid = () => import.meta.env.MODE === 'test' ? '{{test-id-nanoid}}' : nanoidAlias()
export {
nanoid
}
Loading

0 comments on commit b23d24a

Please sign in to comment.