diff --git a/examples/routers/cell.vue b/examples/routers/cell.vue index 4b7b3f6d..557debba 100644 --- a/examples/routers/cell.vue +++ b/examples/routers/cell.vue @@ -3,7 +3,7 @@ - + diff --git a/src/components/cell/cell.vue b/src/components/cell/cell.vue index cb483b09..8cf81738 100644 --- a/src/components/cell/cell.vue +++ b/src/components/cell/cell.vue @@ -25,7 +25,7 @@
- +
@@ -83,6 +83,41 @@ } ]; }, + // 3.4.0, global setting customArrow 有值时,arrow 赋值空 + arrowType () { + let type = 'ios-arrow-forward'; + + if (this.$IVIEW) { + if (this.$IVIEW.cell.customArrow) { + type = ''; + } else if (this.$IVIEW.cell.arrow) { + type = this.$IVIEW.cell.arrow; + } + } + return type; + }, + // 3.4.0, global setting + customArrowType () { + let type = ''; + + if (this.$IVIEW) { + if (this.$IVIEW.cell.customArrow) { + type = this.$IVIEW.cell.customArrow; + } + } + return type; + }, + // 3.4.0, global setting + arrowSize () { + let size = ''; + + if (this.$IVIEW) { + if (this.$IVIEW.cell.arrowSize) { + size = this.$IVIEW.cell.arrowSize; + } + } + return size; + } }, methods: { handleClickItem (event, new_window) { diff --git a/src/index.js b/src/index.js index a85aa591..21d2c753 100644 --- a/src/index.js +++ b/src/index.js @@ -170,9 +170,14 @@ const install = function(Vue, opts = {}) { size: opts.size || '', transfer: 'transfer' in opts ? opts.transfer : '', select: { - arrow: opts.select ? opts.select.arrow ? opts.select.arrow : '' : '', // 下拉箭头图标 - customArrow: opts.select ? opts.select.customArrow ? opts.select.customArrow : '' : '', // 自定义下拉箭头图标,优先显示 - arrowSize: opts.select ? opts.select.arrowSize ? opts.select.arrowSize : '' : '' // 下拉箭头字号 + arrow: opts.select ? opts.select.arrow ? opts.select.arrow : '' : '', + customArrow: opts.select ? opts.select.customArrow ? opts.select.customArrow : '' : '', + arrowSize: opts.select ? opts.select.arrowSize ? opts.select.arrowSize : '' : '' + }, + cell: { + arrow: opts.cell ? opts.cell.arrow ? opts.cell.arrow : '' : '', + customArrow: opts.cell ? opts.cell.customArrow ? opts.cell.customArrow : '' : '', + arrowSize: opts.cell ? opts.cell.arrowSize ? opts.cell.arrowSize : '' : '' } };