diff --git a/package.json b/package.json index 7209320c..99d83c4b 100644 --- a/package.json +++ b/package.json @@ -49,22 +49,22 @@ "@types/node": "18.19.61", "@typescript-eslint/eslint-plugin": "^5.62.0", "@typescript-eslint/parser": "^5.62.0", - "@vitejs/plugin-vue": "^5.2.1", - "@vitest/coverage-v8": "^2.1.8", + "@vitejs/plugin-vue": "^5.2.3", + "@vitest/coverage-v8": "^2.1.9", "@vue/compiler-sfc": "^3.5.13", "c8": "^7.14.0", "commitizen": "^4.3.1", "conventional-changelog-cli": "^4.1.0", "cosmiconfig": "^8.3.6", "cz-conventional-changelog": "^3.3.0", - "element-plus": "^2.9.3", + "element-plus": "^2.9.7", "enquirer": "^2.4.1", "eslint": "^8.57.1", "eslint-config-tencent": "^1.1.2", "eslint-plugin-import": "^2.31.0", "eslint-plugin-prettier": "^4.2.1", "eslint-plugin-simple-import-sort": "^10.0.0", - "eslint-plugin-vue": "^9.32.0", + "eslint-plugin-vue": "^9.33.0", "execa": "^4.1.0", "highlight.js": "^11.11.1", "husky": "^7.0.4", @@ -73,19 +73,19 @@ "minimist": "^1.2.8", "picocolors": "^1.1.1", "prettier": "^2.8.8", - "recast": "^0.20.5", + "recast": "^0.23.11", "rimraf": "^3.0.2", - "rollup": "^4.31.0", - "rollup-plugin-dts": "^6.1.1", - "semver": "^7.6.3", + "rollup": "^4.38.0", + "rollup-plugin-dts": "^6.2.1", + "semver": "^7.7.1", "serialize-javascript": "^6.0.2", "shx": "^0.3.4", - "typescript": "^5.7.3", - "vite": "^6.2.3", - "vitepress": "^1.6.1", - "vitest": "^3.0.2", + "typescript": "^5.8.2", + "vite": "^6.2.4", + "vitepress": "^1.6.3", + "vitest": "^3.1.1", "vue": "^3.5.13", - "vue-tsc": "^2.2.0" + "vue-tsc": "^2.2.8" }, "config": { "commitizen": { diff --git a/packages/cli/package.json b/packages/cli/package.json index 31b2ec36..435aac9f 100644 --- a/packages/cli/package.json +++ b/packages/cli/package.json @@ -31,7 +31,7 @@ "esbuild": "^0.21.5", "fs-extra": "^11.2.0", "picocolors": "^1.1.1", - "recast": "^0.23.9", + "recast": "^0.23.11", "tslib": "^2.8.0" }, "devDependencies": { diff --git a/packages/cli/tsconfig.build.json b/packages/cli/tsconfig.build.json index abcf57dd..e43fa27d 100644 --- a/packages/cli/tsconfig.build.json +++ b/packages/cli/tsconfig.build.json @@ -7,6 +7,7 @@ "rootDir": "./src", "outDir": "./lib", "declaration": true, + "types": ["node"], }, "include": ["./src"], diff --git a/packages/design/src/Autocomplete.vue b/packages/design/src/Autocomplete.vue index 0f6f6a6b..e485669f 100644 --- a/packages/design/src/Autocomplete.vue +++ b/packages/design/src/Autocomplete.vue @@ -42,7 +42,7 @@ const ui = getDesignConfig('components')?.autocomplete; const uiComponent = ui?.component || 'el-autocomplete'; -const uiProps = computed(() => ui?.props(props) || props); +const uiProps = computed(() => ui?.props(props) || props); const emit = defineEmits(['change', 'select', 'update:modelValue']); diff --git a/packages/design/src/Badge.vue b/packages/design/src/Badge.vue index e99f43c1..fe3a4ca5 100644 --- a/packages/design/src/Badge.vue +++ b/packages/design/src/Badge.vue @@ -19,5 +19,5 @@ const props = defineProps(); const ui = getDesignConfig('components')?.badge; const uiComponent = ui?.component || 'el-badge'; -const uiProps = computed(() => ui?.props(props) || props); +const uiProps = computed(() => ui?.props(props) || props); diff --git a/packages/design/src/Button.vue b/packages/design/src/Button.vue index db51d0ee..54b4d2aa 100644 --- a/packages/design/src/Button.vue +++ b/packages/design/src/Button.vue @@ -22,7 +22,7 @@ const ui = getDesignConfig('components')?.button; const uiComponent = ui?.component || 'el-button'; -const uiProps = computed(() => ui?.props(props) || props); +const uiProps = computed(() => ui?.props(props) || props); const emit = defineEmits(['click']); diff --git a/packages/design/src/Card.vue b/packages/design/src/Card.vue index fa9706c7..27329dc7 100644 --- a/packages/design/src/Card.vue +++ b/packages/design/src/Card.vue @@ -26,5 +26,5 @@ const ui = getDesignConfig('components')?.card; const uiComponent = ui?.component || 'el-card'; -const uiProps = computed(() => ui?.props(props) || props); +const uiProps = computed(() => ui?.props(props) || props); diff --git a/packages/design/src/Cascader.vue b/packages/design/src/Cascader.vue index b474fa58..b5e5707b 100644 --- a/packages/design/src/Cascader.vue +++ b/packages/design/src/Cascader.vue @@ -25,7 +25,7 @@ const ui = getDesignConfig('components')?.cascader; const uiComponent = ui?.component || 'el-cascader'; -const uiProps = computed(() => ui?.props(props) || props); +const uiProps = computed(() => ui?.props(props) || props); const cascader = ref(); diff --git a/packages/design/src/Checkbox.vue b/packages/design/src/Checkbox.vue index 010b6ff6..c350a200 100644 --- a/packages/design/src/Checkbox.vue +++ b/packages/design/src/Checkbox.vue @@ -31,7 +31,7 @@ const ui = getDesignConfig('components')?.checkbox; const uiComponent = ui?.component || 'el-checkbox'; -const uiProps = computed(() => ui?.props(props) || props); +const uiProps = computed(() => ui?.props(props) || props); const emit = defineEmits(['change', 'update:modelValue']); diff --git a/packages/design/src/CheckboxGroup.vue b/packages/design/src/CheckboxGroup.vue index 02879789..166bddbd 100644 --- a/packages/design/src/CheckboxGroup.vue +++ b/packages/design/src/CheckboxGroup.vue @@ -26,7 +26,7 @@ const ui = getDesignConfig('components')?.checkboxGroup; const uiComponent = ui?.component || 'el-checkbox-group'; -const uiProps = computed(() => ui?.props(props) || props); +const uiProps = computed(() => ui?.props(props) || props); const emit = defineEmits(['change', 'update:modelValue']); diff --git a/packages/design/src/Col.vue b/packages/design/src/Col.vue index 0d7e9cc9..bc973292 100644 --- a/packages/design/src/Col.vue +++ b/packages/design/src/Col.vue @@ -20,5 +20,5 @@ const ui = getDesignConfig('components')?.col; const uiComponent = ui?.component || 'el-col'; -const uiProps = computed(() => ui?.props(props) || props); +const uiProps = computed(() => ui?.props(props) || props); diff --git a/packages/design/src/Collapse.vue b/packages/design/src/Collapse.vue index c4927357..61e3d66a 100644 --- a/packages/design/src/Collapse.vue +++ b/packages/design/src/Collapse.vue @@ -26,7 +26,7 @@ const ui = getDesignConfig('components')?.collapse; const uiComponent = ui?.component || 'el-collapse'; -const uiProps = computed(() => ui?.props(props) || props); +const uiProps = computed(() => ui?.props(props) || props); const emit = defineEmits(['change', 'update:modelValue']); diff --git a/packages/design/src/CollapseItem.vue b/packages/design/src/CollapseItem.vue index bb991e8f..d85bf4ad 100644 --- a/packages/design/src/CollapseItem.vue +++ b/packages/design/src/CollapseItem.vue @@ -32,7 +32,7 @@ const ui = getDesignConfig('components')?.collapseItem; const uiComponent = ui?.component || 'el-collapse-item'; -const uiProps = computed(() => ui?.props(props) || props); +const uiProps = computed(() => ui?.props(props) || props); const emit = defineEmits(['change', 'update:modelValue']); diff --git a/packages/design/src/ColorPicker.vue b/packages/design/src/ColorPicker.vue index 81384289..aac60d3a 100644 --- a/packages/design/src/ColorPicker.vue +++ b/packages/design/src/ColorPicker.vue @@ -28,7 +28,7 @@ const ui = getDesignConfig('components')?.colorPicker; const uiComponent = ui?.component || 'el-color-picker'; -const uiProps = computed(() => ui?.props(props) || props); +const uiProps = computed(() => ui?.props(props) || props); const emit = defineEmits(['change', 'update:modelValue']); diff --git a/packages/design/src/DatePicker.vue b/packages/design/src/DatePicker.vue index e16d5040..55a85bb8 100644 --- a/packages/design/src/DatePicker.vue +++ b/packages/design/src/DatePicker.vue @@ -27,7 +27,7 @@ const ui = getDesignConfig('components')?.datePicker; const uiComponent = ui?.component || 'el-date-picker'; -const uiProps = computed(() => ui?.props(props) || props); +const uiProps = computed(() => ui?.props(props) || props); const emit = defineEmits(['change', 'update:modelValue']); diff --git a/packages/design/src/Dialog.vue b/packages/design/src/Dialog.vue index 4261c81e..2f9263a1 100644 --- a/packages/design/src/Dialog.vue +++ b/packages/design/src/Dialog.vue @@ -32,7 +32,7 @@ const ui = getDesignConfig('components')?.dialog; const uiComponent = ui?.component || 'el-dialog'; -const uiProps = computed(() => ui?.props(props) || props); +const uiProps = computed(() => ui?.props(props) || props); const closeHandler = (...args: any[]) => { emit('close', ...args); diff --git a/packages/design/src/Divider.vue b/packages/design/src/Divider.vue index 108bcf86..ba494ce3 100644 --- a/packages/design/src/Divider.vue +++ b/packages/design/src/Divider.vue @@ -20,5 +20,5 @@ const ui = getDesignConfig('components')?.divider; const uiComponent = ui?.component || 'el-divider'; -const uiProps = computed(() => ui?.props(props) || props); +const uiProps = computed(() => ui?.props(props) || props); diff --git a/packages/design/src/Drawer.vue b/packages/design/src/Drawer.vue index b2d0724a..5239071d 100644 --- a/packages/design/src/Drawer.vue +++ b/packages/design/src/Drawer.vue @@ -40,7 +40,7 @@ const ui = getDesignConfig('components')?.drawer; const uiComponent = ui?.component || 'el-drawer'; -const uiProps = computed(() => ui?.props(props) || props); +const uiProps = computed(() => ui?.props(props) || props); const drawer = ref(); diff --git a/packages/design/src/Dropdown.vue b/packages/design/src/Dropdown.vue index 19d92699..34b9a8a6 100644 --- a/packages/design/src/Dropdown.vue +++ b/packages/design/src/Dropdown.vue @@ -24,7 +24,7 @@ const ui = getDesignConfig('components')?.dropdown; const uiComponent = ui?.component || 'el-dropdown'; -const uiProps = computed(() => ui?.props(props) || props); +const uiProps = computed(() => ui?.props(props) || props); const emit = defineEmits(['command']); diff --git a/packages/design/src/DropdownItem.vue b/packages/design/src/DropdownItem.vue index eef0d0a2..275274d3 100644 --- a/packages/design/src/DropdownItem.vue +++ b/packages/design/src/DropdownItem.vue @@ -20,5 +20,5 @@ const ui = getDesignConfig('components')?.dropdownItem; const uiComponent = ui?.component || 'el-dropdown-item'; -const uiProps = computed(() => ui?.props(props) || props); +const uiProps = computed(() => ui?.props(props) || props); diff --git a/packages/design/src/Form.vue b/packages/design/src/Form.vue index df823ee6..18b32cd3 100644 --- a/packages/design/src/Form.vue +++ b/packages/design/src/Form.vue @@ -26,7 +26,7 @@ const ui = getDesignConfig('components')?.form; const uiComponent = ui?.component || 'el-form'; -const uiProps = computed(() => ui?.props(props) || props); +const uiProps = computed(() => ui?.props(props) || props); const form = ref(); diff --git a/packages/design/src/FormItem.vue b/packages/design/src/FormItem.vue index 14654c1a..ea892bb7 100644 --- a/packages/design/src/FormItem.vue +++ b/packages/design/src/FormItem.vue @@ -23,5 +23,5 @@ const ui = getDesignConfig('components')?.formItem; const uiComponent = ui?.component || 'el-form-item'; -const uiProps = computed(() => ui?.props(props) || props); +const uiProps = computed(() => ui?.props(props) || props); diff --git a/packages/design/src/Icon.vue b/packages/design/src/Icon.vue index 0f25233a..c588dd6d 100644 --- a/packages/design/src/Icon.vue +++ b/packages/design/src/Icon.vue @@ -17,5 +17,5 @@ defineOptions({ const ui = getDesignConfig('components')?.icon; const uiComponent = ui?.component || 'el-icon'; const props = defineProps(); -const uiProps = computed(() => ui?.props(props) || props); +const uiProps = computed(() => ui?.props(props) || props); diff --git a/packages/design/src/Input.vue b/packages/design/src/Input.vue index 1bbf0e4a..b666d979 100644 --- a/packages/design/src/Input.vue +++ b/packages/design/src/Input.vue @@ -39,7 +39,7 @@ const ui = getDesignConfig('components')?.input; const uiComponent = ui?.component || 'el-input'; -const uiProps = computed(() => ui?.props(props) || props); +const uiProps = computed(() => ui?.props(props) || props); const emit = defineEmits(['change', 'input', 'update:modelValue']); diff --git a/packages/design/src/InputNumber.vue b/packages/design/src/InputNumber.vue index a32537b8..066e7653 100644 --- a/packages/design/src/InputNumber.vue +++ b/packages/design/src/InputNumber.vue @@ -25,7 +25,7 @@ const ui = getDesignConfig('components')?.inputNumber; const uiComponent = ui?.component || 'el-input-number'; -const uiProps = computed(() => ui?.props(props) || props); +const uiProps = computed(() => ui?.props(props) || props); const emit = defineEmits(['change', 'input', 'update:modelValue']); diff --git a/packages/design/src/Option.vue b/packages/design/src/Option.vue index cef34aec..3cd5bda1 100644 --- a/packages/design/src/Option.vue +++ b/packages/design/src/Option.vue @@ -20,5 +20,5 @@ const ui = getDesignConfig('components')?.option; const uiComponent = ui?.component || 'el-option'; -const uiProps = computed(() => ui?.props(props) || props); +const uiProps = computed(() => ui?.props(props) || props); diff --git a/packages/design/src/OptionGroup.vue b/packages/design/src/OptionGroup.vue index 69ada78e..c76864a2 100644 --- a/packages/design/src/OptionGroup.vue +++ b/packages/design/src/OptionGroup.vue @@ -20,7 +20,7 @@ const ui = getDesignConfig('components')?.optionGroup; const uiComponent = ui?.component || 'el-option-group'; -const uiProps = computed(() => ui?.props(props) || props); +const uiProps = computed(() => ui?.props(props) || props); const optionGroup = ref(); diff --git a/packages/design/src/Pagination.vue b/packages/design/src/Pagination.vue index fbdd3d9f..4975877c 100644 --- a/packages/design/src/Pagination.vue +++ b/packages/design/src/Pagination.vue @@ -27,7 +27,7 @@ const ui = getDesignConfig('components')?.pagination; const uiComponent = ui?.component || 'el-pagination'; -const uiProps = computed(() => ui?.props(props) || props); +const uiProps = computed(() => ui?.props(props) || props); const handleSizeChange = (...args: any[]) => { emit('size-change', ...args); diff --git a/packages/design/src/Radio.vue b/packages/design/src/Radio.vue index 042e0f75..ca2ba654 100644 --- a/packages/design/src/Radio.vue +++ b/packages/design/src/Radio.vue @@ -20,5 +20,5 @@ const ui = getDesignConfig('components')?.radio; const uiComponent = ui?.component || 'el-radio'; -const uiProps = computed(() => ui?.props(props) || props); +const uiProps = computed(() => ui?.props(props) || props); diff --git a/packages/design/src/RadioButton.vue b/packages/design/src/RadioButton.vue index b6523bcb..9dc67bf7 100644 --- a/packages/design/src/RadioButton.vue +++ b/packages/design/src/RadioButton.vue @@ -20,5 +20,5 @@ const ui = getDesignConfig('components')?.radioButton; const uiComponent = ui?.component || 'el-radio-button'; -const uiProps = computed(() => ui?.props(props) || props); +const uiProps = computed(() => ui?.props(props) || props); diff --git a/packages/design/src/RadioGroup.vue b/packages/design/src/RadioGroup.vue index 3ff37193..ad303e90 100644 --- a/packages/design/src/RadioGroup.vue +++ b/packages/design/src/RadioGroup.vue @@ -26,7 +26,7 @@ const ui = getDesignConfig('components')?.radioGroup; const uiComponent = ui?.component || 'el-radio-group'; -const uiProps = computed(() => ui?.props(props) || props); +const uiProps = computed(() => ui?.props(props) || props); const emit = defineEmits(['change', 'update:modelValue']); diff --git a/packages/design/src/Select.vue b/packages/design/src/Select.vue index 27372c3d..959ba56e 100644 --- a/packages/design/src/Select.vue +++ b/packages/design/src/Select.vue @@ -31,7 +31,7 @@ const ui = getDesignConfig('components')?.select; const uiComponent = ui?.component || 'el-select'; -const uiProps = computed(() => ui?.props(props) || props); +const uiProps = computed(() => ui?.props(props) || props); const select = ref(); diff --git a/packages/design/src/Step.vue b/packages/design/src/Step.vue index 4c3d8bb7..f5b68f10 100644 --- a/packages/design/src/Step.vue +++ b/packages/design/src/Step.vue @@ -26,5 +26,5 @@ const ui = getDesignConfig('components')?.step; const uiComponent = ui?.component || 'el-step'; -const uiProps = computed(() => ui?.props(props) || props); +const uiProps = computed(() => ui?.props(props) || props); diff --git a/packages/design/src/Steps.vue b/packages/design/src/Steps.vue index 02f71f75..daa9aab9 100644 --- a/packages/design/src/Steps.vue +++ b/packages/design/src/Steps.vue @@ -20,5 +20,5 @@ const ui = getDesignConfig('components')?.steps; const uiComponent = ui?.component || 'el-steps'; -const uiProps = computed(() => ui?.props(props) || props); +const uiProps = computed(() => ui?.props(props) || props); diff --git a/packages/design/src/Switch.vue b/packages/design/src/Switch.vue index 1ec8f337..ad4bb305 100644 --- a/packages/design/src/Switch.vue +++ b/packages/design/src/Switch.vue @@ -28,7 +28,7 @@ const ui = getDesignConfig('components')?.switch; const uiComponent = ui?.component || 'el-switch'; -const uiProps = computed(() => ui?.props(props) || props); +const uiProps = computed(() => ui?.props(props) || props); const emit = defineEmits(['change', 'update:modelValue']); diff --git a/packages/design/src/TabPane.vue b/packages/design/src/TabPane.vue index 92635375..16c48354 100644 --- a/packages/design/src/TabPane.vue +++ b/packages/design/src/TabPane.vue @@ -26,5 +26,5 @@ const ui = getDesignConfig('components')?.tabPane; const uiComponent = ui?.component || 'el-tab-pane'; -const uiProps = computed(() => ui?.props(props) || props); +const uiProps = computed(() => ui?.props(props) || props); diff --git a/packages/design/src/Table.vue b/packages/design/src/Table.vue index 31f49608..73d8190c 100644 --- a/packages/design/src/Table.vue +++ b/packages/design/src/Table.vue @@ -33,7 +33,7 @@ const ui = getDesignConfig('components')?.table; const uiComponent = ui?.component || 'el-table'; -const uiProps = computed(() => ui?.props(props) || props); +const uiProps = computed(() => ui?.props(props) || props); const emit = defineEmits(['select', 'sort-change', 'expand-change', 'cell-click']); diff --git a/packages/design/src/TableColumn.vue b/packages/design/src/TableColumn.vue index a7ea5401..eb4be119 100644 --- a/packages/design/src/TableColumn.vue +++ b/packages/design/src/TableColumn.vue @@ -23,5 +23,5 @@ const ui = getDesignConfig('components')?.tableColumn; const uiComponent = ui?.component || 'el-table-column'; -const uiProps = computed(() => ui?.props(props) || props); +const uiProps = computed(() => ui?.props(props) || props); diff --git a/packages/design/src/Tabs.vue b/packages/design/src/Tabs.vue index 51159829..36688591 100644 --- a/packages/design/src/Tabs.vue +++ b/packages/design/src/Tabs.vue @@ -30,7 +30,7 @@ const ui = getDesignConfig('components')?.tabs; const uiComponent = ui?.component || 'el-tabs'; -const uiProps = computed(() => ui?.props(props) || props); +const uiProps = computed(() => ui?.props(props) || props); const emit = defineEmits(['tab-click', 'tab-add', 'tab-remove', 'update:model-value']); diff --git a/packages/design/src/Tag.vue b/packages/design/src/Tag.vue index 1234b831..886d5766 100644 --- a/packages/design/src/Tag.vue +++ b/packages/design/src/Tag.vue @@ -20,5 +20,5 @@ const ui = getDesignConfig('components')?.tag; const uiComponent = ui?.component || 'el-tag'; -const uiProps = computed(() => ui?.props(props) || props); +const uiProps = computed(() => ui?.props(props) || props); diff --git a/packages/design/src/TimePicker.vue b/packages/design/src/TimePicker.vue index 05f84f80..7abe0f45 100644 --- a/packages/design/src/TimePicker.vue +++ b/packages/design/src/TimePicker.vue @@ -25,7 +25,7 @@ const ui = getDesignConfig('components')?.timePicker; const uiComponent = ui?.component || 'el-time-picker'; -const uiProps = computed(() => ui?.props(props) || props); +const uiProps = computed(() => ui?.props(props) || props); const emit = defineEmits(['change', 'update:modelValue']); diff --git a/packages/design/src/Tooltip.vue b/packages/design/src/Tooltip.vue index cada3ac1..6afbc530 100644 --- a/packages/design/src/Tooltip.vue +++ b/packages/design/src/Tooltip.vue @@ -23,5 +23,5 @@ const ui = getDesignConfig('components')?.tooltip; const uiComponent = ui?.component || 'el-tooltip'; -const uiProps = computed(() => ui?.props(props) || props); +const uiProps = computed(() => ui?.props(props) || props); diff --git a/packages/design/src/Tree.vue b/packages/design/src/Tree.vue index 85d3240c..6b9e75e5 100644 --- a/packages/design/src/Tree.vue +++ b/packages/design/src/Tree.vue @@ -35,7 +35,7 @@ const ui = getDesignConfig('components')?.tree; const uiComponent = ui?.component || 'el-tree'; -const uiProps = computed(() => ui?.props(props) || props); +const uiProps = computed(() => ui?.props(props) || props); const emit = defineEmits([ 'node-click', diff --git a/packages/design/src/Upload.vue b/packages/design/src/Upload.vue index 8ba2f53c..441d1462 100644 --- a/packages/design/src/Upload.vue +++ b/packages/design/src/Upload.vue @@ -29,7 +29,7 @@ const ui = getDesignConfig('components')?.upload; const uiComponent = ui?.component || 'el-upload'; -const uiProps = computed(() => ui?.props(props) || props); +const uiProps = computed(() => ui?.props(props) || props); const upload = ref(); diff --git a/packages/editor/src/components/ContentMenu.vue b/packages/editor/src/components/ContentMenu.vue index ee6bcb7d..428413e2 100644 --- a/packages/editor/src/components/ContentMenu.vue +++ b/packages/editor/src/components/ContentMenu.vue @@ -37,7 +37,7 @@