ct-component-plus 0.0.13 → 0.0.16

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.13",
4
+ "version": "0.0.16",
5
5
  "type": "module",
6
6
  "main": "packages/components/index.js",
7
7
  "files": [
@@ -36,6 +36,7 @@ const cascaderRef = ref(null);
36
36
  const checkedText = ref("");
37
37
  const propsShow = computed(() => {
38
38
  return {
39
+ emitPath: false,
39
40
  ...(props.props || {}),
40
41
  multiple: props.multiple || props.props?.multiple || false,
41
42
  label: props.mapObj?.label || "label",
@@ -208,7 +208,8 @@ onMounted(() => {});
208
208
  &:focus-within {
209
209
  --ct-search-box-border-color: var(--ct-color-primary);
210
210
  }
211
- .el-input__wrapper {
211
+ .el-input__wrapper,
212
+ .ct-year-select__wrapper {
212
213
  --el-select-input-focus-border-color: var(
213
214
  --ct-search-box-inner-border-color
214
215
  );
@@ -109,7 +109,7 @@ import { tableEmits, tableProps } from "./index";
109
109
  import TableSort from "./TableSort.vue";
110
110
  const props = defineProps(tableProps);
111
111
  const emit = defineEmits(tableEmits);
112
- const tableEmptyDom = inject("$tableEmptyDom");
112
+ const tableEmptyDom = inject("$tableEmptyDom", null);
113
113
 
114
114
  const ns = useNamespace("table");
115
115
  const tableRef = ref(null);
@@ -59,7 +59,13 @@ export const useBarEcharts = (type, option, data) => {
59
59
  { deep: true, immediate: true }
60
60
  );
61
61
  // 灵活配置并入option
62
- objectMerge(barOption.value, option);
62
+
63
+ watch(() => option, (val) => {
64
+ objectMerge(barOption.value, option);
65
+ },
66
+ {
67
+ deep: true, immediate: true
68
+ })
63
69
  return {
64
70
  barOption,
65
71
  itemTemplate
@@ -73,7 +73,12 @@ export const useLineEcharts = (type, option, data) => {
73
73
  { deep: true, immediate: true }
74
74
  );
75
75
  // 灵活配置并入option
76
- objectMerge(lineOption.value, option);
76
+ watch(() => option, (val) => {
77
+ objectMerge(lineOption.value, option);
78
+ }, {
79
+ deep: true, immediate: true
80
+ })
81
+
77
82
  return {
78
83
  lineOption,
79
84
  itemTemplate