首页 \ 问答 \ Drupal Commerce上的Drupal 7?(Drupal Commerce on Drupal 7? [closed])

Drupal Commerce上的Drupal 7?(Drupal Commerce on Drupal 7? [closed])

Drupal Commerce只会在Drupal 7核心上运行,

不支持后向核心版本像Drupal 6一样?


Will Drupal Commerce run only on Drupal 7 core,

and not support Backward core versions Like Drupal 6 ?


原文:https://stackoverflow.com/questions/11984142
更新时间:2022-06-19 06:06

最满意答案

Vue.use(BootstrapVue)以默认的长标签名称全局注册所有组件和指令。

当你这样做

Vue.component('bfg', bformGroup) // b-form-group 
Vue.component('bfin', bformInput) // b-form-input

您正在重新注册组件,但使用不同的标签名称。 所以有两个相同组件的副本。

使用Vue.use(BootstrapVue)来全局注册所有组件或手动导入您想要的组件,并如您不需要两个副本一样使用不同的标签名称进行注册

请参阅各个组件和指令


Vue.use(BootstrapVue) registers all the components and directives globally with their default long tag name.

When you do

Vue.component('bfg', bformGroup) // b-form-group 
Vue.component('bfin', bformInput) // b-form-input

You are registering the components again but with a different tag name. So there are two copies of the same component.

Either use Vue.use(BootstrapVue) to globally register all the components or manually import the component you want and register it as you are doing with a different tag name if you do not want two copies

See Individual components and directives

相关问答

更多
  • 你的index.vue的脚本标签应该包含你的components/index.js文件的内容。 您的索引组件应该导入Ch组件,并在它的Vue定义中使用它 您的索引模板应该有一个包含所有其他元素的DOM元素