<commit_before><script>
import Dialog from './Dialog'
import prefix from '../mixins/prefix'

export default {
  name: 'veui-embedded',
  mixins: [prefix],
  inheritAttrs: false,
  render (h) {
    let data = {
      attrs: {
        // attrs 都直接透传到 Dialog 去
        ...this.$attrs,
        overlayClass: {
          [this.$c('embedded')]: true
        },
        inline: true
      },
      // nativeOn 直接在 embedded 上注册到 dom ，不需透传
      on: this.$listeners,
      scopedSlots: this.$scopedSlots
    }

    return h(
      Dialog,
      data,
      Object.keys(this.$slots).map(slot =>
        h('template', { slot }, this.$slots[slot])
      )
    )
  }
}
</script><commit_msg>fix: lock certain props for embedded<commit_after><script>
import Dialog from './Dialog'
import prefix from '../mixins/prefix'

export default {
  name: 'veui-embedded',
  mixins: [prefix],
  inheritAttrs: false,
  render (h) {
    let data = {
      attrs: {
        // attrs 都直接透传到 Dialog 去
        ...this.$attrs,
        overlayClass: {
          [this.$c('embedded')]: true
        },
        inline: true,
        outsideClosable: false,
        draggable: false,
        escapable: false,
        modal: false
      },
      // nativeOn 直接在 embedded 上注册到 dom ，不需透传
      on: this.$listeners,
      scopedSlots: this.$scopedSlots
    }

    return h(
      Dialog,
      data,
      Object.keys(this.$slots).map(slot =>
        h('template', { slot }, this.$slots[slot])
      )
    )
  }
}
</script>
{'fraction_non_alphanumeric': 0.1409305461901551, 'fraction_numerical': 0.0, 'mean_word_length': 1.921259842519685, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5616783', 'n_tokens_mistral': 507, 'n_tokens_neox': 509, 'n_words': 114}