Skip to content

Commit

Permalink
feat: 当前组件引入wxs文件 (#5650)
Browse files Browse the repository at this point in the history
Co-authored-by: mobai <[email protected]>
  • Loading branch information
cyhwinner and mobai authored Dec 5, 2023
1 parent f98cf75 commit eeea4a8
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/calendar/calendar.wxml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
<wxs src="./index.wxs" module="computed" />
<wxs src="../wxs/utils.wxs" module="utils" />
<view class="van-calendar">
<header
title="{{ title }}"
Expand Down
1 change: 1 addition & 0 deletions packages/field/input.wxml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
<wxs src="../wxs/utils.wxs" module="utils" />
<input
id="{{ name }}"
class="{{ utils.bem('field__control', [inputAlign, { disabled, error }]) }} input-class"
Expand Down
2 changes: 2 additions & 0 deletions packages/field/textarea.wxml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
<wxs src="../wxs/utils.wxs" module="utils" />
<wxs src="./index.wxs" module="computed" />
<textarea
id="{{ name }}"
class="{{ utils.bem('field__control', [inputAlign, type, { disabled, error }]) }} input-class"
Expand Down
2 changes: 2 additions & 0 deletions packages/popup/popup.wxml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
<wxs src="../wxs/utils.wxs" module="utils" />
<wxs src="./index.wxs" module="computed" />
<view
wx:if="{{ inited }}"
class="custom-class {{ classes }} {{ utils.bem('popup', [position, { round, safe: safeAreaInsetBottom, safeTop: safeAreaInsetTop, safeTabBar: safeAreaTabBar }]) }}"
Expand Down

0 comments on commit eeea4a8

Please sign in to comment.