123456789101112131415161718192021222324252627282930313233 |
- <template>
- <toolbar-container :fields="fields" v-on="$listeners" />
- </template>
- <script>
- import TYPE from '@/const/type';
- export default {
- name: 'TrendingToolbar',
- data() {
- return {
- fields: [
- {
- type: 'text',
- name: 'name',
- label: '关键字'
- },
- {
- type: 'select',
- name: 'isShow',
- label: '显示/隐藏',
- options: TYPE,
- format: val => (val !== null && val !== '' ? !!val : null),
- defaultValue: 1
- }
- ]
- };
- }
- };
- </script>
- <style type="scss" scoped></style>
|