import globalComponents from './globals'
for (var key in globalComponents) {
const componentConfig = require(globalComponents[key]);
Vue.component(key, componentConfig.default || componentConfig)
}
SyntaxError: Cannot use import statement outside a module
%umiSliders getSlideListBySliderName('default', 'main')%
<?php if(is_array($variables) && key_exists('items', $variables) && key_exists('nodes:item', $variables['items'])): ?>
<?php foreach ($variables['items']['nodes:item'] as $item): ?>
....
<?php endforeach; ?>
<?php endif; ?>
<?php if(isset($variables['items']['nodes:item'])): ?>
<?php foreach ($variables['items']['nodes:item'] as $item): ?>
....
<?php endforeach; ?>
<?php endif; ?>