This commit is contained in:
haomingming
2023-03-06 17:57:39 +08:00
parent 3794faceae
commit 1066e37c96
4230 changed files with 193453 additions and 0 deletions
+1
View File
@@ -0,0 +1 @@
export {};
+24
View File
@@ -0,0 +1,24 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var component_1 = require("../common/component");
var relation_1 = require("../common/relation");
(0, component_1.VantComponent)({
field: true,
relation: (0, relation_1.useChildren)('radio'),
props: {
value: {
type: null,
observer: 'updateChildren',
},
direction: String,
disabled: {
type: Boolean,
observer: 'updateChildren',
},
},
methods: {
updateChildren: function () {
this.children.forEach(function (child) { return child.updateFromParent(); });
},
},
});
+3
View File
@@ -0,0 +1,3 @@
{
"component": true
}
+5
View File
@@ -0,0 +1,5 @@
<wxs src="../wxs/utils.wxs" module="utils" />
<view class="{{ utils.bem('radio-group', [direction]) }}">
<slot></slot>
</view>
+1
View File
@@ -0,0 +1 @@
@import '../common/index.wxss';.van-radio-group--horizontal{display:flex;flex-wrap:wrap}