@cloudbase/weda-ui 3.13.1 → 3.13.3

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.
@@ -196,15 +196,6 @@ declare const config: {
196
196
  description: string;
197
197
  }];
198
198
  readonly events: readonly [{
199
- readonly detail: import("@sinclair/typebox").TObject<{
200
- value: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString> & {
201
- title: string;
202
- };
203
- }>;
204
- readonly name: string;
205
- readonly title: string;
206
- readonly description: string;
207
- }, {
208
199
  readonly name: "change";
209
200
  readonly title: "值改变";
210
201
  readonly detail: import("@sinclair/typebox").TObject<{
@@ -1,5 +1,5 @@
1
1
  import { defineConfig, Type, Tuple } from '../type-utils';
2
- import { FORM_ITEM_DATA, FORM_ITEM_EVENTS, FORM_ITEM_METHODS, FORM_ITEM_META, ItemData, pickWithXCategory, X_CATEGORY, getFormItemDataTitle, } from '../type-utils/type-form';
2
+ import { FORM_ITEM_DATA, FORM_ITEM_METHODS, FORM_ITEM_META, ItemData, pickWithXCategory, X_CATEGORY, getFormItemDataTitle, } from '../type-utils/type-form';
3
3
  import { getClasses } from '../type-utils/classes';
4
4
  import { templateInitNameWithId } from './common/init-name-with-id';
5
5
  const SELECT = pickWithXCategory(FORM_ITEM_DATA, [
@@ -141,11 +141,6 @@ const config = defineConfig({
141
141
  FORM_ITEM_METHODS.clearValidate,
142
142
  ],
143
143
  events: [
144
- {
145
- ...{},
146
- ...FORM_ITEM_EVENTS.change,
147
- detail: paramValueType,
148
- },
149
144
  {
150
145
  name: 'change',
151
146
  title: '值改变',
@@ -104,11 +104,16 @@ declare const config: {
104
104
  visible: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
105
105
  readOnly: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
106
106
  }>;
107
- classes: {
107
+ classes: ({
108
108
  name: string;
109
109
  selector: string;
110
110
  description: string;
111
- }[];
111
+ } | {
112
+ name: string;
113
+ selector: string;
114
+ description: string;
115
+ code: string;
116
+ })[];
112
117
  methods: {
113
118
  name: string;
114
119
  label: string;
@@ -122,24 +122,58 @@ const classes = [
122
122
  ...getFormItemClasses('upload-image', { isInput: false }),
123
123
  ...[
124
124
  {
125
- name: '图片上传前的容器样式',
125
+ name: 'PC端图片上传点击区域容器样式',
126
+ selector: `.weda-uploader-btn__box`,
127
+ description: 'PC端图片上传点击区域容器样式',
128
+ code: `
129
+ :scope .weda-uploader-btn__box {
130
+ background: #fafafa;
131
+ border:1px dashed #d9d9d9 !important;
132
+ border-radius: 10px;
133
+ }
134
+ `,
135
+ },
136
+ {
137
+ name: 'H5、小程序端图片上传点击区域容器样式',
126
138
  selector: `.weui-uploader__input-box`,
127
- description: '图片上传前的背景框样式',
139
+ description: 'H5、小程序端图片上传点击区域容器样式',
140
+ code: `
141
+ :scope .weui-uploader__input-box {
142
+ background: #fff;
143
+ border:1px dashed #d9d9d9;
144
+ }
145
+ `,
128
146
  },
129
147
  {
130
- name: '图片上传的 + 号竖线样式',
148
+ name: 'H5、小程序端图片上传的 + 号竖线样式',
131
149
  selector: `.weui-uploader__input-box::before `,
132
150
  description: '图片上传的 + 号竖线样式',
151
+ code: `
152
+ :scope .weui-uploader__input-box::before {
153
+ background: #fff;
154
+ content: '+';
155
+ width: 10px;
156
+ top:40%;
157
+ }
158
+ `,
133
159
  },
134
160
  {
135
- name: '图片上传的 + 号横线样式',
161
+ name: 'H5、小程序端图片上传的 + 号横线样式',
136
162
  selector: `.weui-uploader__input-box::after `,
137
163
  description: '图片上传的 + 号横线样式',
164
+ code: `
165
+ :scope .weui-uploader__input-box::after {
166
+ background: #fff;
167
+ width: 50px;
168
+ content: '上传图片';
169
+ font-size: 12px;
170
+ }
171
+ `,
138
172
  },
139
173
  {
140
- name: '图片上传后的容器样式',
174
+ name: 'H5、小程序端图片展示容器样式',
141
175
  selector: `weui-uploader__file`,
142
- description: '图片上传后的容器样式',
176
+ description: 'H5、小程序端图片展示容器样式',
143
177
  },
144
178
  ],
145
179
  ];
@@ -14455,15 +14455,6 @@ export declare const components: {
14455
14455
  description: string;
14456
14456
  }];
14457
14457
  readonly events: readonly [{
14458
- readonly detail: import("@sinclair/typebox").TObject<{
14459
- value: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString> & {
14460
- title: string;
14461
- };
14462
- }>;
14463
- readonly name: string;
14464
- readonly title: string;
14465
- readonly description: string;
14466
- }, {
14467
14458
  readonly name: "change";
14468
14459
  readonly title: "值改变";
14469
14460
  readonly detail: import("@sinclair/typebox").TObject<{
@@ -15718,11 +15709,16 @@ export declare const components: {
15718
15709
  visible: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
15719
15710
  readOnly: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
15720
15711
  }>;
15721
- classes: {
15712
+ classes: ({
15722
15713
  name: string;
15723
15714
  selector: string;
15724
15715
  description: string;
15725
- }[];
15716
+ } | {
15717
+ name: string;
15718
+ selector: string;
15719
+ description: string;
15720
+ code: string;
15721
+ })[];
15726
15722
  methods: {
15727
15723
  name: string;
15728
15724
  label: string;
@@ -33990,15 +33986,6 @@ declare const _default: {
33990
33986
  description: string;
33991
33987
  }];
33992
33988
  readonly events: readonly [{
33993
- readonly detail: import("@sinclair/typebox").TObject<{
33994
- value: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString> & {
33995
- title: string;
33996
- };
33997
- }>;
33998
- readonly name: string;
33999
- readonly title: string;
34000
- readonly description: string;
34001
- }, {
34002
33989
  readonly name: "change";
34003
33990
  readonly title: "值改变";
34004
33991
  readonly detail: import("@sinclair/typebox").TObject<{
@@ -35253,11 +35240,16 @@ declare const _default: {
35253
35240
  visible: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
35254
35241
  readOnly: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
35255
35242
  }>;
35256
- classes: {
35243
+ classes: ({
35257
35244
  name: string;
35258
35245
  selector: string;
35259
35246
  description: string;
35260
- }[];
35247
+ } | {
35248
+ name: string;
35249
+ selector: string;
35250
+ description: string;
35251
+ code: string;
35252
+ })[];
35261
35253
  methods: {
35262
35254
  name: string;
35263
35255
  label: string;
@@ -134,7 +134,7 @@ export const getClasses = (classRoot, options = {}) => {
134
134
  input_edit: {
135
135
  name: `编辑态-${kind}样式`,
136
136
  selector: `${ROOT_SELECTOR} .wd-form-input-wrap`,
137
- description: '组件边框、边距样式',
137
+ description: '组件边框、边距样式、背景色、字体大小、字体颜色等',
138
138
  code: `
139
139
  :scope .wd-form-input-wrap {
140
140
  font-size: 20px;
@@ -1197,13 +1197,13 @@ export const FORM_ITEM_DATA = {
1197
1197
  title: '刷新按钮',
1198
1198
  description: '点击刷新下拉列表数据。仅选项来自关联关系字段时,支持配置刷新按钮,在编辑状态下展示。',
1199
1199
  'x-runtime-default': X_RUNTIME_DEFAULT.enableRelationalRefresh,
1200
- 'x-index': 165,
1200
+ 'x-index': 163,
1201
1201
  'x-category': X_CATEGORY.COMMON,
1202
1202
  }),
1203
1203
  enableRelationalSetting: Type.Boolean({
1204
1204
  title: '设置按钮',
1205
1205
  'x-runtime-default': X_RUNTIME_DEFAULT.enableRelationalSetting,
1206
- 'x-index': 166,
1206
+ 'x-index': 164,
1207
1207
  'x-category': X_CATEGORY.COMMON,
1208
1208
  description: '仅选项来自关联关系字段时,支持配置设置按钮,在编辑状态下展示。',
1209
1209
  'x-helper-text': '开启后响应事件为:onSettingButtonClick。',
@@ -1211,7 +1211,7 @@ export const FORM_ITEM_DATA = {
1211
1211
  enableRelationOptionJump: Type.Boolean({
1212
1212
  title: '下拉选项跳转按钮',
1213
1213
  'x-runtime-default': X_RUNTIME_DEFAULT.enableAddRelationButton,
1214
- 'x-index': 167,
1214
+ 'x-index': 165,
1215
1215
  'x-category': X_CATEGORY.COMMON,
1216
1216
  description: '仅选项来自关联关系字段时,支持配置下拉选项跳转按钮,在编辑状态下展示。',
1217
1217
  'x-helper-text': '开启后响应事件为:onRelationOptionJump。',
@@ -1219,7 +1219,7 @@ export const FORM_ITEM_DATA = {
1219
1219
  enableAddRelationButton: Type.Boolean({
1220
1220
  title: '新建按钮',
1221
1221
  'x-runtime-default': X_RUNTIME_DEFAULT.enableAddRelationButton,
1222
- 'x-index': 168,
1222
+ 'x-index': 166,
1223
1223
  'x-category': X_CATEGORY.COMMON,
1224
1224
  description: '仅选项来自关联关系字段时,支持配置新建按钮,在编辑状态下展示。',
1225
1225
  'x-helper-text': '开启后响应事件为:onAddRelationButtonClick。',
@@ -1234,13 +1234,13 @@ export const FORM_ITEM_DATA = {
1234
1234
  addRelationButtonText: Type.String({
1235
1235
  title: '新建按钮文案',
1236
1236
  'x-runtime-default': X_RUNTIME_DEFAULT.addRelationButtonText,
1237
- 'x-index': 169,
1237
+ 'x-index': 167,
1238
1238
  'x-category': X_CATEGORY.COMMON,
1239
1239
  }),
1240
1240
  enableRelationTag: Type.Boolean({
1241
1241
  title: '标签展示',
1242
1242
  'x-runtime-default': X_RUNTIME_DEFAULT.enableRelationTag,
1243
- 'x-index': 170,
1243
+ 'x-index': 168,
1244
1244
  'x-category': X_CATEGORY.COMMON,
1245
1245
  description: '仅选项来自关联关系字段时,支持配置组件在只读状态下以标签形式展示。',
1246
1246
  'x-helper-text': '开启后响应事件为:onRelationTagClick。',