This commit is contained in:
2023-08-11 10:45:20 +08:00
commit 161ca982f3
31850 changed files with 2706500 additions and 0 deletions

1
node_modules/vant/es/checkbox-group/index.css generated vendored Normal file
View File

@ -0,0 +1 @@
.van-checkbox-group--horizontal{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-flex-wrap:wrap;flex-wrap:wrap}

64
node_modules/vant/es/checkbox-group/index.js generated vendored Normal file
View File

@ -0,0 +1,64 @@
import { createNamespace } from '../utils';
import { FieldMixin } from '../mixins/field';
import { ParentMixin } from '../mixins/relation';
var _createNamespace = createNamespace('checkbox-group'),
createComponent = _createNamespace[0],
bem = _createNamespace[1];
export default createComponent({
mixins: [ParentMixin('vanCheckbox'), FieldMixin],
props: {
max: [Number, String],
disabled: Boolean,
direction: String,
iconSize: [Number, String],
checkedColor: String,
value: {
type: Array,
default: function _default() {
return [];
}
}
},
watch: {
value: function value(val) {
this.$emit('change', val);
}
},
methods: {
// @exposed-api
toggleAll: function toggleAll(options) {
if (options === void 0) {
options = {};
}
if (typeof options === 'boolean') {
options = {
checked: options
};
}
var _options = options,
checked = _options.checked,
skipDisabled = _options.skipDisabled;
var children = this.children.filter(function (item) {
if (item.disabled && skipDisabled) {
return item.checked;
}
return checked != null ? checked : !item.checked;
});
var names = children.map(function (item) {
return item.name;
});
this.$emit('input', names);
}
},
render: function render() {
var h = arguments[0];
return h("div", {
"class": bem([this.direction])
}, [this.slots()]);
}
});

8
node_modules/vant/es/checkbox-group/index.less generated vendored Normal file
View File

@ -0,0 +1,8 @@
@import '../style/var';
.van-checkbox-group {
&--horizontal {
display: flex;
flex-wrap: wrap;
}
}

2
node_modules/vant/es/checkbox-group/style/index.js generated vendored Normal file
View File

@ -0,0 +1,2 @@
import '../../style/base.css';
import '../index.css';

2
node_modules/vant/es/checkbox-group/style/less.js generated vendored Normal file
View File

@ -0,0 +1,2 @@
import '../../style/base.less';
import '../index.less';