123456789101112131415161718192021222324252627282930313233343536373839404142 |
- <template>
- <view class="checkboxGroup">
- <view @tap.native="changeCheckboxGroup">
- <slot></slot>
- </view>
- </view>
- </template>
- <script>
- export default {
- data() {
- return {};
- },
- methods: {
- changeCheckboxGroup(e) {
- console.log(e);
- e.detail = e.target.dataset.item;
- this.$emit("update:value", e.target.dataset.value);
- this.$emit("change", e);
- },
- },
- props: {
- useIconSlot: {
- type: Boolean,
- default: false,
- },
- name: {
- type: String,
- default: "",
- },
- value: {
- type: String,
- default: "",
- },
- },
- };
- </script>
- <style lang="scss" scoped>
- .checkboxGroup {
- }
- </style>
|