Skip to content

Commit 7345a45

Browse files
committed
feat: pro-table
1 parent c081761 commit 7345a45

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

packages/pro-table/package.json

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"name": "@ant-design-vue/pro-table",
3-
"version": "0.0.1",
2+
"name": "pro-table-ant-design-vue",
3+
"version": "0.0.4",
44
"scripts": {
55
"dev": "vite",
66
"build": "vue-tsc --noEmit && vite build",
@@ -17,28 +17,27 @@
1717
],
1818
"types": "./dist",
1919
"style": "./dist/style.css",
20-
"main": "./dist/pro-table.umd.js",
21-
"module": "./dist/pro-table.es.js",
20+
"main": "./dist/pro-table-ant-design-vue.umd.js",
21+
"module": "./dist/pro-table-ant-design-vue.es.js",
2222
"exports": {
2323
".": {
24-
"import": "./dist/pro-table.es.js",
25-
"require": "./dist/pro-table.umd.js"
24+
"import": "./dist/pro-table-ant-design-vue.es.js",
25+
"require": "./dist/pro-table-ant-design-vue.umd.js"
2626
},
2727
"./dist/style.css": "./dist/style.css",
2828
"./dist/style.less": "./dist/style.less"
2929
},
3030
"dependencies": {
3131
"@ant-design/icons-vue": "^6.1.0",
32-
"@ant-design-vue/pro-form": "workspace:^0.1.1",
33-
"@ant-design-vue/pro-utils": "workspace:^0.0.0",
32+
"@ant-design-vue/pro-form": "^0.1.1",
3433
"lodash-es": "^4.17.21",
3534
"screenfull": "^6.0.2"
3635
},
3736
"devDependencies": {
38-
"@ant-design-vue/pro-layout": "workspace:^3.2.3",
37+
"@ant-design-vue/pro-layout": "^3.2.3",
3938
"@rollup/plugin-typescript": "^8.3.2",
4039
"@rushstack/eslint-patch": "^1.1.3",
41-
"@shared/vite-plugin-less-copy": "workspace:^0.0.0",
40+
"@shared/vite-plugin-less-copy": "^0.0.0",
4241
"@types/jsdom": "^16.2.14",
4342
"@types/lodash-es": "^4.17.6",
4443
"@types/node": "^16.11.27",

packages/pro-table/src/components/Form/index.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,11 @@ const SearchForm = defineComponent({
4545
value: item[0],
4646
};
4747
})}
48+
{...column}
4849
/>
4950
);
5051
} else if (column.valueType === 'date') {
51-
return <ProFormDatePicker name={column.dataIndex as string} label={column.title as string} />;
52+
return <ProFormDatePicker name={column.dataIndex as string} label={column.title as string} {...column} />;
5253
} else {
5354
return (
5455
<ProFormText

0 commit comments

Comments
 (0)