diff --git a/packages/cell/index.wxml b/packages/cell/index.wxml index fed768e2..7d7d746d 100644 --- a/packages/cell/index.wxml +++ b/packages/cell/index.wxml @@ -1,4 +1,5 @@ + {{ title }} diff --git a/packages/cell/index.wxs b/packages/cell/index.wxs new file mode 100644 index 00000000..e3500c43 --- /dev/null +++ b/packages/cell/index.wxs @@ -0,0 +1,17 @@ +/* eslint-disable */ +var style = require('../wxs/style.wxs'); +var addUnit = require('../wxs/add-unit.wxs'); + +function titleStyle(data) { + return style([ + { + 'max-width': addUnit(data.titleWidth), + 'min-width': addUnit(data.titleWidth), + }, + data.titleStyle, + ]); +} + +module.exports = { + titleStyle: titleStyle, +};