ct-component-plus 2.2.14 → 2.2.15

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.
package/README.md CHANGED
@@ -1,3 +1,11 @@
1
+ # v2.2.15版本更新内容:
2
+
3
+ 1. 年份区间组件增加下拉透传rawAttr
4
+
5
+ # v2.2.14版本更新内容:
6
+
7
+ 1. 修改cascader组件的埋点默认值处理逻辑
8
+
1
9
  # v2.2.13版本更新内容:
2
10
 
3
11
  1. 分页下拉组件添加补充项配置
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "ct-component-plus",
3
3
  "private": false,
4
- "version": "2.2.14",
4
+ "version": "2.2.15",
5
5
  "type": "module",
6
6
  "main": "packages/components/index.js",
7
7
  "files": [
@@ -204,7 +204,6 @@ useBuriedParams(props, emit, {
204
204
  optionsShow.value,
205
205
  props.multiple ? showValue.value : [showValue.value],
206
206
  );
207
- console.log(data, "data", showValue.value);
208
207
  if (props.multiple) {
209
208
  return data;
210
209
  } else {
@@ -13,7 +13,7 @@
13
13
  :placeholder="startPlaceholder"
14
14
  :disabled="disabled"
15
15
  filterable
16
- v-bind="eventList0"
16
+ v-bind="selectEventList0"
17
17
  >
18
18
  <el-option
19
19
  v-for="item in yearList"
@@ -38,7 +38,7 @@
38
38
  filterable
39
39
  :disabled="disabled"
40
40
  :filter-method="filterHandleE"
41
- v-bind="eventList1"
41
+ v-bind="selectEventList1"
42
42
  >
43
43
  <el-option
44
44
  v-for="item in yearList"
@@ -187,6 +187,18 @@ const eventList1 = {
187
187
  onFocus(value, 1);
188
188
  },
189
189
  };
190
+ const selectEventList0 = computed(() => {
191
+ return {
192
+ ...(props.rawAttr || {}),
193
+ ...eventList0,
194
+ };
195
+ });
196
+ const selectEventList1 = computed(() => {
197
+ return {
198
+ ...(props.rawAttr || {}),
199
+ ...eventList1,
200
+ };
201
+ });
190
202
  const onChange = (value, index) => {
191
203
  emit("changeSelect", value, index);
192
204
  };