Skip to content

Commit

Permalink
build: compile 1.10.7
Browse files Browse the repository at this point in the history
  • Loading branch information
landluck committed Nov 18, 2022
1 parent 01a389c commit 4700001
Show file tree
Hide file tree
Showing 14 changed files with 24 additions and 10 deletions.
1 change: 1 addition & 0 deletions dist/action-sheet/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { VantComponent } from '../common/component';
import { button } from '../mixins/button';
VantComponent({
classes: ['list-class'],
mixins: [button],
props: {
show: Boolean,
Expand Down
4 changes: 2 additions & 2 deletions dist/action-sheet/index.wxml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
round="{{ round }}"
z-index="{{ zIndex }}"
overlay="{{ overlay }}"
custom-class="van-action-sheet"
custom-class="van-action-sheet custom-class"
safe-area-inset-bottom="{{ safeAreaInsetBottom }}"
close-on-click-overlay="{{ closeOnClickOverlay }}"
bind:close="onClickOverlay"
Expand All @@ -22,7 +22,7 @@
<view wx:if="{{ description }}" class="van-action-sheet__description van-hairline--bottom">
{{ description }}
</view>
<view wx:if="{{ actions && actions.length }}">
<view wx:if="{{ actions && actions.length }}" class="list-class">
<!-- button外包一层view,防止actions动态变化,导致渲染时button被打散 -->
<button
wx:for="{{ actions }}"
Expand Down
1 change: 1 addition & 0 deletions dist/dropdown-item/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { useParent } from '../common/relation';
import { VantComponent } from '../common/component';
VantComponent({
classes: ['item-title-class'],
field: true,
relation: useParent('dropdown-menu', function () {
this.updateDataFromParent();
Expand Down
4 changes: 2 additions & 2 deletions dist/dropdown-item/index.wxml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<view
wx:if="{{ showWrapper }}"
class="{{ utils.bem('dropdown-item', direction) }}"
class="{{ utils.bem('dropdown-item', direction) }} custom-class"
style="{{ wrapperStyle }}"
>
<van-popup
Expand Down Expand Up @@ -30,7 +30,7 @@
>
<view
slot="title"
class="van-dropdown-item__title"
class="van-dropdown-item__title item-title-class"
style="{{ item.value === value ? 'color:' + activeColor : '' }}"
>
{{ item.text }}
Expand Down
1 change: 1 addition & 0 deletions dist/dropdown-menu/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { addUnit, getRect, getSystemInfoSync } from '../common/utils';
let ARRAY = [];
VantComponent({
field: true,
classes: ['title-class'],
relation: useChildren('dropdown-item', function () {
this.updateItemListData();
}),
Expand Down
2 changes: 1 addition & 1 deletion dist/dropdown-menu/index.wxml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
bind:tap="onTitleTap"
>
<view
class="{{ item.titleClass }} {{ utils.bem('dropdown-menu__title', { active: item.showPopup, down: item.showPopup === (direction === 'down') }) }}"
class="{{ item.titleClass }} {{ utils.bem('dropdown-menu__title', { active: item.showPopup, down: item.showPopup === (direction === 'down') }) }} title-class"
style="{{ item.showPopup ? 'color:' + activeColor : '' }}"
>
<view class="van-ellipsis">
Expand Down
4 changes: 4 additions & 0 deletions dist/search/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ VantComponent({
field: true,
classes: ['field-class', 'input-class', 'cancel-class'],
props: {
value: {
type: String,
value: '',
},
label: String,
focus: Boolean,
error: Boolean,
Expand Down
1 change: 1 addition & 0 deletions lib/action-sheet/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
var component_1 = require("../common/component");
var button_1 = require("../mixins/button");
(0, component_1.VantComponent)({
classes: ['list-class'],
mixins: [button_1.button],
props: {
show: Boolean,
Expand Down
4 changes: 2 additions & 2 deletions lib/action-sheet/index.wxml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
round="{{ round }}"
z-index="{{ zIndex }}"
overlay="{{ overlay }}"
custom-class="van-action-sheet"
custom-class="van-action-sheet custom-class"
safe-area-inset-bottom="{{ safeAreaInsetBottom }}"
close-on-click-overlay="{{ closeOnClickOverlay }}"
bind:close="onClickOverlay"
Expand All @@ -22,7 +22,7 @@
<view wx:if="{{ description }}" class="van-action-sheet__description van-hairline--bottom">
{{ description }}
</view>
<view wx:if="{{ actions && actions.length }}">
<view wx:if="{{ actions && actions.length }}" class="list-class">
<!-- button外包一层view,防止actions动态变化,导致渲染时button被打散 -->
<button
wx:for="{{ actions }}"
Expand Down
1 change: 1 addition & 0 deletions lib/dropdown-item/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
var relation_1 = require("../common/relation");
var component_1 = require("../common/component");
(0, component_1.VantComponent)({
classes: ['item-title-class'],
field: true,
relation: (0, relation_1.useParent)('dropdown-menu', function () {
this.updateDataFromParent();
Expand Down
4 changes: 2 additions & 2 deletions lib/dropdown-item/index.wxml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<view
wx:if="{{ showWrapper }}"
class="{{ utils.bem('dropdown-item', direction) }}"
class="{{ utils.bem('dropdown-item', direction) }} custom-class"
style="{{ wrapperStyle }}"
>
<van-popup
Expand Down Expand Up @@ -30,7 +30,7 @@
>
<view
slot="title"
class="van-dropdown-item__title"
class="van-dropdown-item__title item-title-class"
style="{{ item.value === value ? 'color:' + activeColor : '' }}"
>
{{ item.text }}
Expand Down
1 change: 1 addition & 0 deletions lib/dropdown-menu/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ var utils_1 = require("../common/utils");
var ARRAY = [];
(0, component_1.VantComponent)({
field: true,
classes: ['title-class'],
relation: (0, relation_1.useChildren)('dropdown-item', function () {
this.updateItemListData();
}),
Expand Down
2 changes: 1 addition & 1 deletion lib/dropdown-menu/index.wxml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
bind:tap="onTitleTap"
>
<view
class="{{ item.titleClass }} {{ utils.bem('dropdown-menu__title', { active: item.showPopup, down: item.showPopup === (direction === 'down') }) }}"
class="{{ item.titleClass }} {{ utils.bem('dropdown-menu__title', { active: item.showPopup, down: item.showPopup === (direction === 'down') }) }} title-class"
style="{{ item.showPopup ? 'color:' + activeColor : '' }}"
>
<view class="van-ellipsis">
Expand Down
4 changes: 4 additions & 0 deletions lib/search/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ var version_1 = require("../common/version");
field: true,
classes: ['field-class', 'input-class', 'cancel-class'],
props: {
value: {
type: String,
value: '',
},
label: String,
focus: Boolean,
error: Boolean,
Expand Down

0 comments on commit 4700001

Please sign in to comment.