diff --git a/demo/package.json b/demo/package.json index 509b317..6423199 100644 --- a/demo/package.json +++ b/demo/package.json @@ -1,7 +1,7 @@ { "name": "lib-test", "description": "Demo lib test", - "version": "4.10.10", + "version": "4.10.11", "private": true, "scripts": { "dev": "vite" diff --git a/lib/vue-component-lib/utils.ts b/lib/vue-component-lib/utils.ts index 12c2e69..6ef20d2 100644 --- a/lib/vue-component-lib/utils.ts +++ b/lib/vue-component-lib/utils.ts @@ -14,10 +14,12 @@ 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; }, {}) : {}; @@ -25,9 +27,9 @@ export const createCommonRender = ( tagName, { ref: "wc", - domProps: vueElement.$props, + domProps, on: allListeners, - attrs: { ...attributes, "data-testid": tagName }, + attrs: { "data-testid": tagName }, }, [vueElement.$slots.default] ); diff --git a/package.json b/package.json index 980ffa2..f3d49a4 100644 --- a/package.json +++ b/package.json @@ -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", @@ -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",