Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
},
rate: {
type: 'rate',
label: '评分',
default: 2
}
}
});
export default {
components: {
fieldConfig,
blockConfig,
operationConfig
},
mixins: [ams.mixins.blockMixin],
data() {
return {
showAll: false,
type: '',
config: null,
defaults: null,
fields: [],
blocks: [],
operations: []
};
},
methods: {
afterReady() {
const { type, name, showAll } = this.block.options;
this.show(type, name);
this.blocks = Object.keys(window.AMS_CONFIG.block);