1 |
- (self["webpackChunkuview2_0_cli"]=self["webpackChunkuview2_0_cli"]||[]).push([[2465],{30205:function(e,c,a){var t=a(28594);t.__esModule&&(t=t.default),"string"===typeof t&&(t=[[e.id,t,""]]),t.locals&&(e.exports=t.locals);var n=a(56).Z;n("647df3b4",t,!0,{sourceMap:!1,shadowMode:!1})},77340:function(e,c,a){"use strict";a.r(c),a.d(c,{default:function(){return k}});var t,n={uCheckboxGroup:a(14161).Z,uCheckbox:a(25276).Z},l=function(){var e=this,c=e.$createElement,a=e._self._c||c;return a("v-uni-view",{staticClass:"u-page"},[a("v-uni-view",{staticClass:"u-demo-block"},[a("v-uni-text",{staticClass:"u-demo-block__title"},[e._v("基本案例")]),a("v-uni-text",{staticClass:"u-block__title"},[e._v("苹果、香蕉和橙子哪个最甜?")]),a("v-uni-view",{staticClass:"u-demo-block__content"},[a("v-uni-view",{staticClass:"u-page__checkbox-item"},[a("u-checkbox-group",{attrs:{placement:"column"},on:{change:function(c){arguments[0]=c=e.$handleEvent(c),e.checkboxChange.apply(void 0,arguments)}},model:{value:e.checkboxValue1,callback:function(c){e.checkboxValue1=c},expression:"checkboxValue1"}},e._l(e.checkboxList1,(function(e,c){return a("u-checkbox",{key:c,attrs:{customStyle:{marginBottom:"8px"},label:e.name,name:e.name}})})),1)],1)],1)],1),a("v-uni-view",{staticClass:"u-demo-block"},[a("v-uni-text",{staticClass:"u-demo-block__title"},[e._v("自定义形状")]),a("v-uni-text",{staticClass:"u-block__title"},[e._v("中国四大名著是?")]),a("v-uni-view",{staticClass:"u-demo-block__content"},[a("v-uni-view",{staticClass:"u-page__checkbox-item"},[a("u-checkbox-group",{attrs:{placement:"column",shape:"square"},on:{change:function(c){arguments[0]=c=e.$handleEvent(c),e.checkboxChange.apply(void 0,arguments)}},model:{value:e.checkboxValue2,callback:function(c){e.checkboxValue2=c},expression:"checkboxValue2"}},e._l(e.checkboxList2,(function(e,c){return a("u-checkbox",{key:c,attrs:{customStyle:{marginBottom:"8px"},label:e.name,name:e.name}})})),1)],1)],1)],1),a("v-uni-view",{staticClass:"u-demo-block"},[a("v-uni-text",{staticClass:"u-demo-block__title"},[e._v("是否禁用")]),a("v-uni-text",{staticClass:"u-block__title"},[e._v("下面什么东西不能吃?")]),a("v-uni-view",{staticClass:"u-demo-block__content"},[a("v-uni-view",{staticClass:"u-page__checkbox-item"},[a("u-checkbox-group",{attrs:{placement:"column"},on:{change:function(c){arguments[0]=c=e.$handleEvent(c),e.checkboxChange.apply(void 0,arguments)}},model:{value:e.checkboxValue3,callback:function(c){e.checkboxValue3=c},expression:"checkboxValue3"}},e._l(e.checkboxList3,(function(e,c){return a("u-checkbox",{key:c,attrs:{customStyle:{marginBottom:"8px"},label:e.name,name:e.name,disabled:0===c}})})),1)],1)],1)],1),a("v-uni-view",{staticClass:"u-demo-block"},[a("v-uni-text",{staticClass:"u-demo-block__title"},[e._v("是否禁止点击提示语选中复选框")]),a("v-uni-text",{staticClass:"u-block__title"},[e._v("北宋四大家是谁?")]),a("v-uni-view",{staticClass:"u-demo-block__content"},[a("v-uni-view",{staticClass:"u-page__checkbox-item"},[a("u-checkbox-group",{attrs:{placement:"column",labelDisabled:!0},on:{change:function(c){arguments[0]=c=e.$handleEvent(c),e.checkboxChange.apply(void 0,arguments)}},model:{value:e.checkboxValue4,callback:function(c){e.checkboxValue4=c},expression:"checkboxValue4"}},e._l(e.checkboxList4,(function(e,c){return a("u-checkbox",{key:c,attrs:{customStyle:{marginBottom:"8px"},label:e.name,name:e.name}})})),1)],1)],1)],1),a("v-uni-view",{staticClass:"u-demo-block"},[a("v-uni-text",{staticClass:"u-demo-block__title"},[e._v("自定义颜色")]),a("v-uni-text",{staticClass:"u-block__title"},[e._v("哪个颜色最好看?")]),a("v-uni-view",{staticClass:"u-demo-block__content"},[a("v-uni-view",{staticClass:"u-page__checkbox-item"},[a("u-checkbox-group",{attrs:{placement:"column",activeColor:"#19be6b"},on:{change:function(c){arguments[0]=c=e.$handleEvent(c),e.checkboxChange.apply(void 0,arguments)}},model:{value:e.checkboxValue5,callback:function(c){e.checkboxValue5=c},expression:"checkboxValue5"}},e._l(e.checkboxList5,(function(e,c){return a("u-checkbox",{key:c,attrs:{customStyle:{marginBottom:"8px"},label:e.name,name:e.name}})})),1)],1)],1)],1),a("v-uni-view",{staticClass:"u-demo-block"},[a("v-uni-text",{staticClass:"u-demo-block__title"},[e._v("横向排列形式")]),a("v-uni-text",{staticClass:"u-block__title"},[e._v("什么东西不能飞?")]),a("v-uni-view",{staticClass:"u-demo-block__content"},[a("v-uni-view",{staticClass:"u-page__checkbox-item"},[a("u-checkbox-group",{on:{change:function(c){arguments[0]=c=e.$handleEvent(c),e.checkboxChange.apply(void 0,arguments)}},model:{value:e.checkboxValue6,callback:function(c){e.checkboxValue6=c},expression:"checkboxValue6"}},e._l(e.checkboxList6,(function(e,c){return a("u-checkbox",{key:c,attrs:{customStyle:{marginRight:"16px"},label:e.name,name:e.name}})})),1)],1)],1)],1),a("v-uni-view",{staticClass:"u-demo-block"},[a("v-uni-text",{staticClass:"u-demo-block__title"},[e._v("横向两端排列形式")]),a("v-uni-text",{staticClass:"u-block__title"},[e._v("什么东西不能吃?")]),a("v-uni-view",[a("v-uni-view",{staticClass:"u-page__checkbox-item"},[a("u-checkbox-group",{attrs:{borderBottom:!0,placement:"column",iconPlacement:"right"},on:{change:function(c){arguments[0]=c=e.$handleEvent(c),e.checkboxChange.apply(void 0,arguments)}},model:{value:e.checkboxValue7,callback:function(c){e.checkboxValue7=c},expression:"checkboxValue7"}},e._l(e.checkboxList7,(function(e,c){return a("u-checkbox",{key:c,attrs:{customStyle:{marginBottom:"16px"},label:e.name,name:e.name}})})),1)],1)],1)],1)],1)},o=[],i={data:function(){return{checkboxList1:[{name:"苹果",disabled:!1},{name:"香蕉",disabled:!1},{name:"橙子",disabled:!1}],checkboxValue1:["苹果","橙子"],checkboxList2:[{name:"西游记",disabled:!1},{name:"红楼梦",disabled:!1},{name:"三国演义",disabled:!1},{name:"水浒传",disabled:!1}],checkboxValue2:["西游记","红楼梦","三国演义","水浒传"],checkboxList3:[{name:"冬瓜",disabled:!1},{name:"西瓜",disabled:!1},{name:"黄瓜",disabled:!1},{name:"傻瓜",disabled:!1}],checkboxValue3:["傻瓜"],checkboxList4:[{name:"黄庭坚",disabled:!1},{name:"欧阳修",disabled:!1},{name:"苏小宝",disabled:!1},{name:"王安石",disabled:!1}],checkboxValue4:["黄庭坚","欧阳修","王安石"],checkboxList5:[{name:"红色",disabled:!1},{name:"黄色",disabled:!1},{name:"绿色",disabled:!1},{name:"蓝色",disabled:!1}],checkboxValue5:["绿色"],checkboxList6:[{name:"小鸟",disabled:!1},{name:"游艇",disabled:!1},{name:"轮船",disabled:!1},{name:"飞机",disabled:!1}],checkboxValue6:["游艇","轮船"],checkboxList7:[{name:"汽车",disabled:!1},{name:"蒸汽机",disabled:!1},{name:"猪肉",disabled:!1},{name:"抄手",disabled:!1}],checkboxValue7:["汽车","蒸汽机"]}},watch:{checkboxValue1:function(e,c){}},methods:{checkboxChange:function(e){}}},s=i,u=(a(30205),a(69453)),b=(0,u.Z)(s,l,o,!1,null,"3c3c947e",null,!1,n,t),k=b.exports},28594:function(e,c,a){"use strict";a.r(c);var t=a(43481),n=a.n(t),l=a(2400),o=a.n(l),i=o()(n());i.push([e.id,'@charset "UTF-8";/**\n * 下方引入的为uView UI的集成样式文件,为scss预处理器,其中包含了一些"u-"开头的自定义变量\n * 使用的时候,请将下面的一行复制到您的uniapp项目根目录的uni.scss中即可\n * uView自定义的css类名和scss变量,均以"u-"开头,不会造成冲突,请放心使用\n */',""]),c["default"]=i}}]);
|