Skip to content

Commit

Permalink
chore(release): update versions to 4.10.11
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Sep 24, 2024
1 parent 270e028 commit 1f32546
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 8 deletions.
2 changes: 1 addition & 1 deletion demo/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "lib-test",
"description": "Demo lib test",
"version": "4.10.10",
"version": "4.10.11",
"private": true,
"scripts": {
"dev": "vite"
Expand Down
12 changes: 7 additions & 5 deletions lib/vue-component-lib/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,20 +14,22 @@ export const createCommonRender = (
},
};
}, vueElement.$listeners);
const attributes = vueElement.$props
const domProps = vueElement.$props
? Object.keys(vueElement.$props).reduce((attrs: any, prop: string) => {
const attributeName = toDashCase(prop);
attrs[attributeName] = vueElement.$props[prop];
// dashed-case
attrs[toDashCase(prop)] = vueElement.$props[prop];
// original-case
attrs[prop] = vueElement.$props[prop];
return attrs;
}, {})
: {};
return createElement(
tagName,
{
ref: "wc",
domProps: vueElement.$props,
domProps,
on: allListeners,
attrs: { ...attributes, "data-testid": tagName },
attrs: { "data-testid": tagName },
},
[vueElement.$slots.default]
);
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@revolist/vue-datagrid",
"version": "4.10.10",
"version": "4.10.11",
"description": "Vue 2 DataGrid Spreadsheet component with native Vue 2 render support",
"main": "./dist/vue2-datagrid.umd.cjs",
"module": "./dist/vue2-datagrid.mjs",
Expand Down Expand Up @@ -62,7 +62,7 @@
"homepage": "https://github.com/revolist/revogrid#readme",
"license": "MIT",
"dependencies": {
"@revolist/revogrid": "4.10.10"
"@revolist/revogrid": "4.10.11"
},
"devDependencies": {
"@vue/compiler-sfc": "^3.2.37",
Expand Down

0 comments on commit 1f32546

Please sign in to comment.