ct-component-plus 0.0.29 → 0.0.31

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "ct-component-plus",
3
3
  "private": false,
4
- "version": "0.0.29",
4
+ "version": "0.0.31",
5
5
  "type": "module",
6
6
  "main": "packages/components/index.js",
7
7
  "files": [
@@ -11,8 +11,7 @@
11
11
  ns.is('text', isText),
12
12
  ]"
13
13
  v-bind="$attrs"
14
- @click="handleClick"
15
- >
14
+ @click="handleClick">
16
15
  <span v-if="$slots.default" :class="[ns.e('text')]">
17
16
  <slot />
18
17
  </span>
@@ -52,7 +51,7 @@ defineExpose({
52
51
  ref: _ref,
53
52
  });
54
53
  </script>
55
- <style lang='less'>
54
+ <style lang="less">
56
55
  .ct-button {
57
56
  cursor: pointer;
58
57
  box-sizing: border-box;
@@ -114,7 +113,7 @@ defineExpose({
114
113
  }
115
114
  }
116
115
  &--text {
117
- background-color: #fff;
116
+ background-color: transparent;
118
117
  color: var(--ct-color-primary);
119
118
  &:hover:not(.is-disabled) {
120
119
  opacity: var(--button-hover-opacity);
@@ -124,7 +123,7 @@ defineExpose({
124
123
  }
125
124
  }
126
125
  &--text-plain {
127
- background-color: #fff;
126
+ background-color: transparent;
128
127
  color: var(--ct-color-black);
129
128
  &:hover:not(.is-disabled) {
130
129
  color: var(--ct-color-primary);
@@ -169,4 +168,4 @@ defineExpose({
169
168
  margin-left: 8px;
170
169
  }
171
170
  }
172
- </style>
171
+ </style>
@@ -118,20 +118,25 @@ const handleBuriedParams = (params) => {
118
118
  };
119
119
  const getComponentProps = (item) => {
120
120
  const bpKey = toFirstUpperCase(buriedParamsKey);
121
+ const attrObj = {
122
+ ...item,
123
+ };
124
+ delete attrObj.type;
121
125
  // const
122
126
  return {
123
- param: item.param,
124
- label: item.label,
127
+ ...attrObj,
128
+ // param: item.param,
129
+ // label: item.label,
130
+ // multiple: item.multiple,
131
+ // api: item.api,
132
+ // placeholder: item.placeholder,
133
+ // clearable: item.clearable,
134
+ // disabled: item.disabled,
135
+ // range: item.range,
136
+ // mapObj: item.mapObj,
125
137
  options: item.list,
126
- multiple: item.multiple,
127
- api: item.api,
128
- placeholder: item.placeholder,
129
- clearable: item.clearable,
130
- disabled: item.disabled,
131
- range: item.range,
132
- mapObj: item.mapObj,
133
138
  name: item.param, //用作插槽名
134
- rawAttr: item.rawAttr,
139
+ // rawAttr: item.rawAttr,
135
140
 
136
141
  ["on" + bpKey]: handleBuriedParams,
137
142
  };
@@ -1,4 +1,5 @@
1
1
  <template>
2
+ <!-- {{ rawAttr }}-- -->
2
3
  <el-select
3
4
  ref="selectRef"
4
5
  :class="[ns.b(), ns.is('multiple', multiple)]"
@@ -13,13 +14,11 @@
13
14
  :select-text="selectText"
14
15
  :popper-class="ns.e('popper')"
15
16
  @focus="showSearchPrefix"
16
- @blur="hideSearchPrefix"
17
- >
17
+ @blur="hideSearchPrefix">
18
18
  <template #prefix>
19
19
  <div
20
20
  :class="[ns.e('filterable-icon')]"
21
- v-if="filterable && !valueModel && showSearch"
22
- >
21
+ v-if="filterable && !valueModel && showSearch">
23
22
  <ct-icon name="search_line"></ct-icon>
24
23
  </div>
25
24
  <slot name="prefix"></slot>
@@ -49,8 +48,7 @@
49
48
  :key="item.value"
50
49
  :label="item.label"
51
50
  :value="item.value"
52
- :disabled="item.disabled"
53
- >
51
+ :disabled="item.disabled">
54
52
  <slot name="option" :item="item" :index="index">
55
53
  <span>{{ item.label }}</span>
56
54
  </slot>
@@ -289,7 +287,7 @@ defineExpose({
289
287
  checkedAll,
290
288
  });
291
289
  </script>
292
- <style lang='less'>
290
+ <style lang="less">
293
291
  .ct-select {
294
292
  width: 214px;
295
293
  &__top {
@@ -366,4 +364,4 @@ defineExpose({
366
364
  }
367
365
  }
368
366
  }
369
- </style>
367
+ </style>