cosey 0.3.0 → 0.3.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.
@@ -51,7 +51,7 @@ const isFixedColumn = (index, fixed, store, realColumns) => {
51
51
  const getFixedColumnsClass = (namespace, index, fixed, store, realColumns, offset = 0) => {
52
52
  const classes = [];
53
53
  const { direction, start, after } = isFixedColumn(index, fixed, store, realColumns);
54
- if (direction && start && after) {
54
+ if (direction) {
55
55
  const isLeft = direction === "left";
56
56
  classes.push(`${namespace}-fixed-column--${direction}`);
57
57
  if (isLeft && after + offset === unref(store.states.fixedLeafColumnsLength) - 1) {
@@ -213,7 +213,9 @@ var stdin_default = /* @__PURE__ */defineComponent({
213
213
  });
214
214
  const footerWrapper2 = ref(null);
215
215
  const scrollHander = event => {
216
- footerWrapper2.value.scrollLeft = event.target.scrollLeft;
216
+ if (footerWrapper2.value) {
217
+ footerWrapper2.value.scrollLeft = event.target.scrollLeft;
218
+ }
217
219
  };
218
220
  const bindScrollEvent = () => {
219
221
  document.querySelector(`.${tableId} .el-scrollbar__wrap`)?.addEventListener("scroll", scrollHander);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cosey",
3
- "version": "0.3.0",
3
+ "version": "0.3.2",
4
4
  "description": "基于 Vue3 + vite 的后台管理系统框架",
5
5
  "type": "module",
6
6
  "main": "index.js",