Skip to content

Commit 7383550

Browse files
authored
fix(Calendar): renaming the class keyword (#3781)
1 parent e50a2cf commit 7383550

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/calendar/calendar-header.wxml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<wxs src="../common/utils.wxs" module="_" />
22

33
<template name="calendar-header">
4-
<view class="{{class}} {{classPrefix}} {{switchMode !== 'none' ? classPrefix + '__with-action' : ''}}" id="{{tId}}">
4+
<view class="{{tClass}} {{classPrefix}} {{switchMode !== 'none' ? classPrefix + '__with-action' : ''}}" id="{{tId}}">
55
<view class="{{classPrefix}}__action" wx:if="{{switchMode !== 'none'}}">
66
<view
77
wx:if="{{switchMode === 'year-month'}}"

src/calendar/template.wxml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
<template
4141
wx:if="{{switchMode === 'none'}}"
4242
is="calendar-header"
43-
data="{{class: classPrefix + '__month', classPrefix: classPrefix + '-header', tId: 'year_' + item.year + '_month_' + item.month, switchMode, ...actionButtons, title: _this.getMonthTitle(item.year, realLocalText.months[item.month], realLocalText.monthTitle) }}"
43+
data="{{tClass: classPrefix + '__month', classPrefix: classPrefix + '-header', tId: 'year_' + item.year + '_month_' + item.month, switchMode, ...actionButtons, title: _this.getMonthTitle(item.year, realLocalText.months[item.month], realLocalText.monthTitle) }}"
4444
/>
4545
<view class="{{classPrefix}}__dates">
4646
<view wx:for="{{(item.weekdayOfFirstDay - firstDayOfWeek + 7) % 7}}" wx:key="index" />

0 commit comments

Comments
 (0)