Blame view

src/components/color-picker/recommend-colors.vue 465 Bytes
9af2f01c   梁灏   update ColorPicker
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
  <template>
      <div>
          <template v-for="(item, index) in list">
              <span><em :style="{'background': item}"></em></span>
              <br v-if="(index + 1) % 10 === 0 && index !== 0 && (index + 1) !== list.length">
          </template>
      </div>
  </template>
  <script>
      export default {
          props: {
              list: Array
          },
          data () {
              return {
  
              };
          },
          methods: {
  
          }
      };
  </script>