@cloudbase/weda-ui 3.13.1 → 3.13.2

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.
@@ -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
  ];
@@ -15718,11 +15718,16 @@ export declare const components: {
15718
15718
  visible: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
15719
15719
  readOnly: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
15720
15720
  }>;
15721
- classes: {
15721
+ classes: ({
15722
15722
  name: string;
15723
15723
  selector: string;
15724
15724
  description: string;
15725
- }[];
15725
+ } | {
15726
+ name: string;
15727
+ selector: string;
15728
+ description: string;
15729
+ code: string;
15730
+ })[];
15726
15731
  methods: {
15727
15732
  name: string;
15728
15733
  label: string;
@@ -35253,11 +35258,16 @@ declare const _default: {
35253
35258
  visible: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
35254
35259
  readOnly: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
35255
35260
  }>;
35256
- classes: {
35261
+ classes: ({
35257
35262
  name: string;
35258
35263
  selector: string;
35259
35264
  description: string;
35260
- }[];
35265
+ } | {
35266
+ name: string;
35267
+ selector: string;
35268
+ description: string;
35269
+ code: string;
35270
+ })[];
35261
35271
  methods: {
35262
35272
  name: string;
35263
35273
  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;