mirror of
https://gitee.com/beecue/fastbee.git
synced 2025-12-18 00:45:55 +08:00
智慧宿舍系统小程序
This commit is contained in:
@@ -0,0 +1,58 @@
|
||||
'use strict';
|
||||
Object.defineProperty(exports, '__esModule', { value: true });
|
||||
var component_1 = require('../common/component');
|
||||
var relation_1 = require('../common/relation');
|
||||
var link_1 = require('../mixins/link');
|
||||
component_1.VantComponent({
|
||||
relation: relation_1.useParent('grid'),
|
||||
classes: ['content-class', 'icon-class', 'text-class'],
|
||||
mixins: [link_1.link],
|
||||
props: {
|
||||
icon: String,
|
||||
iconColor: String,
|
||||
dot: Boolean,
|
||||
info: null,
|
||||
badge: null,
|
||||
text: String,
|
||||
useSlot: Boolean,
|
||||
},
|
||||
data: {
|
||||
viewStyle: '',
|
||||
},
|
||||
mounted: function () {
|
||||
this.updateStyle();
|
||||
},
|
||||
methods: {
|
||||
updateStyle: function () {
|
||||
if (!this.parent) {
|
||||
return;
|
||||
}
|
||||
var _a = this.parent,
|
||||
data = _a.data,
|
||||
children = _a.children;
|
||||
var columnNum = data.columnNum,
|
||||
border = data.border,
|
||||
square = data.square,
|
||||
gutter = data.gutter,
|
||||
clickable = data.clickable,
|
||||
center = data.center,
|
||||
direction = data.direction,
|
||||
iconSize = data.iconSize;
|
||||
this.setData({
|
||||
center: center,
|
||||
border: border,
|
||||
square: square,
|
||||
gutter: gutter,
|
||||
clickable: clickable,
|
||||
direction: direction,
|
||||
iconSize: iconSize,
|
||||
index: children.indexOf(this),
|
||||
columnNum: columnNum,
|
||||
});
|
||||
},
|
||||
onClick: function () {
|
||||
this.$emit('click');
|
||||
this.jumpLink();
|
||||
},
|
||||
},
|
||||
});
|
||||
Reference in New Issue
Block a user