@cloudbase/weda-ui-mp 3.24.0 → 3.25.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -5,6 +5,7 @@
5
5
  }
6
6
 
7
7
  .wd-form-obj-root {
8
+ --wd-card-heder-pd-bordered: 1rem;
8
9
  display: flex;
9
10
  }
10
11
  .wd-form-obj-root .wd-form-obj {
@@ -33,6 +34,11 @@
33
34
  .wd-form-obj-root .wd-form-item-wrap {
34
35
  width: 100%;
35
36
  }
37
+ .wd-form-obj-root .wd-form-item-wrap.wd-form-item-wrap__vertical {
38
+ display: flex;
39
+ flex-direction: column;
40
+ width: 100%;
41
+ }
36
42
  .wd-form-obj-root .wd-form-item-wrap .wd-form-item-wrap__control {
37
43
  overflow: unset;
38
44
  }
@@ -12,6 +12,10 @@ Component({
12
12
  type: String,
13
13
  value: 'obj',
14
14
  },
15
+ isRoot: {
16
+ type: Boolean,
17
+ value: true,
18
+ },
15
19
  },
16
20
  data: {
17
21
  item: `${WD_PREFIX}-form-item`,
@@ -1,7 +1,19 @@
1
1
  <view class="{{cls}}" id="{{id}}" style="{{style}}">
2
- <view class="{{itemWrap}}">
2
+ <view class="{{itemWrap}} {{itemWrap}}__vertical">
3
3
 
4
4
  <block wx:if="{{mode==='table'||mode==='custom'}}">
5
+ <block wx:if="{{labelVisible&&isRoot}}">
6
+ <view class="{{labelCls}}" style="{{labelStyle}}">
7
+ <label>
8
+ <text class="{{itemWrap}}__label-text {{labelRoot}}-text">{{label}}</text>
9
+ <block wx:if="{{labelTips}}">
10
+ <text class="{{itemWrap}}__label-explain">
11
+ <wd-icon name="td:help-circle"></wd-icon>
12
+ </text>
13
+ </block>
14
+ </label>
15
+ </view>
16
+ </block>
5
17
  <view class="{{itemWrap}}__control">
6
18
  <view class="{{controlWrapCls}} wd-form-obj-item-wrap__control-wrap">
7
19
  <block wx:if="{{readOnly}}">
@@ -5,3 +5,9 @@
5
5
  .wd-mp-form-obj-disabled {
6
6
  pointer-events: none;
7
7
  }
8
+
9
+ .wd-form-obj-root.wd-mp-form-obj-root .wd-form-item-wrap.wd-form-item-wrap__vertical {
10
+ display: flex;
11
+ flex-direction: column;
12
+ width: 100%;
13
+ }
@@ -29,6 +29,10 @@ Component({
29
29
  type: String,
30
30
  value: 'obj',
31
31
  },
32
+ isRoot: {
33
+ type: Boolean,
34
+ value: true,
35
+ },
32
36
  },
33
37
  data: {
34
38
  status: 'edit',
@@ -5,6 +5,7 @@
5
5
  }
6
6
 
7
7
  .wd-form-obj-root {
8
+ --wd-card-heder-pd-bordered: 1rem;
8
9
  display: flex;
9
10
  }
10
11
  .wd-form-obj-root .wd-form-obj {
@@ -33,6 +34,11 @@
33
34
  .wd-form-obj-root .wd-form-item-wrap {
34
35
  width: 100%;
35
36
  }
37
+ .wd-form-obj-root .wd-form-item-wrap.wd-form-item-wrap__vertical {
38
+ display: flex;
39
+ flex-direction: column;
40
+ width: 100%;
41
+ }
36
42
  .wd-form-obj-root .wd-form-item-wrap .wd-form-item-wrap__control {
37
43
  overflow: unset;
38
44
  }
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "miniprogram": "./",
4
4
  "packageManager": "yarn@3.0.2",
5
5
  "dependencies": {},
6
- "version": "3.24.0",
6
+ "version": "3.25.0",
7
7
  "main": "./",
8
8
  "publishConfig": {
9
9
  "access": "public"