Skip to content

Commit

Permalink
fix(design): 默认props
Browse files Browse the repository at this point in the history
  • Loading branch information
roymondchen committed May 30, 2023
1 parent 4314e4a commit 05dfd9d
Show file tree
Hide file tree
Showing 41 changed files with 47 additions and 47 deletions.
2 changes: 1 addition & 1 deletion packages/design/src/Autocomplete.vue
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ const ui = getConfig('components')?.autocomplete;
const uiComponent = ui?.component || 'el-autocomplete';
const uiProps = computed(() => ui?.props(props) || {});
const uiProps = computed(() => ui?.props(props) || props);
const emit = defineEmits(['change', 'select', 'update:modelValue']);
Expand Down
2 changes: 1 addition & 1 deletion packages/design/src/Badge.vue
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,5 @@ const props = defineProps<BadgeProps>();
const ui = getConfig('components')?.badge;
const uiComponent = ui?.component || 'el-badge';
const uiProps = computed(() => ui?.props(props) || {});
const uiProps = computed(() => ui?.props(props) || props);
</script>
2 changes: 1 addition & 1 deletion packages/design/src/Button.vue
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const ui = getConfig('components')?.button;
const uiComponent = ui?.component || 'el-button';
const uiProps = computed(() => ui?.props(props) || {});
const uiProps = computed(() => ui?.props(props) || props);
const emit = defineEmits(['click']);
Expand Down
2 changes: 1 addition & 1 deletion packages/design/src/Card.vue
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,5 @@ const ui = getConfig('components')?.card;
const uiComponent = ui?.component || 'el-card';
const uiProps = computed(() => ui?.props(props) || {});
const uiProps = computed(() => ui?.props(props) || props);
</script>
2 changes: 1 addition & 1 deletion packages/design/src/Cascader.vue
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const ui = getConfig('components')?.cascader;
const uiComponent = ui?.component || 'el-cascader';
const uiProps = computed(() => ui?.props(props) || {});
const uiProps = computed(() => ui?.props(props) || props);
const cascader = ref<any>();
Expand Down
2 changes: 1 addition & 1 deletion packages/design/src/Checkbox.vue
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ const ui = getConfig('components')?.checkbox;
const uiComponent = ui?.component || 'el-checkbox';
const uiProps = computed(() => ui?.props(props) || {});
const uiProps = computed(() => ui?.props(props) || props);
const emit = defineEmits(['change', 'update:modelValue']);
Expand Down
2 changes: 1 addition & 1 deletion packages/design/src/CheckboxGroup.vue
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ const ui = getConfig('components')?.checkboxGroup;
const uiComponent = ui?.component || 'el-checkbox-group';
const uiProps = computed(() => ui?.props(props) || {});
const uiProps = computed(() => ui?.props(props) || props);
const emit = defineEmits(['change', 'update:modelValue']);
Expand Down
2 changes: 1 addition & 1 deletion packages/design/src/Col.vue
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,5 @@ const ui = getConfig('components')?.col;
const uiComponent = ui?.component || 'el-col';
const uiProps = computed(() => ui?.props(props));
const uiProps = computed(() => ui?.props(props) || props);
</script>
2 changes: 1 addition & 1 deletion packages/design/src/Collapse.vue
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ const ui = getConfig('components')?.collapse;
const uiComponent = ui?.component || 'el-collapse';
const uiProps = computed(() => ui?.props(props) || {});
const uiProps = computed(() => ui?.props(props) || props);
const emit = defineEmits(['change', 'update:modelValue']);
Expand Down
2 changes: 1 addition & 1 deletion packages/design/src/CollapseItem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ const ui = getConfig('components')?.collapseItem;
const uiComponent = ui?.component || 'el-collapse-item';
const uiProps = computed(() => ui?.props(props) || {});
const uiProps = computed(() => ui?.props(props) || props);
const emit = defineEmits(['change', 'update:modelValue']);
Expand Down
2 changes: 1 addition & 1 deletion packages/design/src/ColorPicker.vue
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ const ui = getConfig('components')?.colorPicker;
const uiComponent = ui?.component || 'el-color-picker';
const uiProps = computed(() => ui?.props(props) || {});
const uiProps = computed(() => ui?.props(props) || props);
const emit = defineEmits(['change', 'update:modelValue']);
Expand Down
2 changes: 1 addition & 1 deletion packages/design/src/DatePicker.vue
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ const ui = getConfig('components')?.datePicker;
const uiComponent = ui?.component || 'el-date-picker';
const uiProps = computed(() => ui?.props(props) || {});
const uiProps = computed(() => ui?.props(props) || props);
const emit = defineEmits(['change', 'update:modelValue']);
Expand Down
6 changes: 3 additions & 3 deletions packages/design/src/Dialog.vue
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,13 @@ defineOptions({
const props = defineProps<DialogProps>();
const emit = defineEmits(['close', 'update:modelValue']);
const ui = getConfig('components')?.dialog;
const uiComponent = ui?.component || 'el-dialog';
const uiProps = computed(() => ui?.props(props) || {});
const emit = defineEmits(['close', 'update:modelValue']);
const uiProps = computed(() => ui?.props(props) || props);
const closeHandler = (...args: any[]) => {
emit('close', ...args);
Expand Down
2 changes: 1 addition & 1 deletion packages/design/src/Divider.vue
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,5 @@ const ui = getConfig('components')?.divider;
const uiComponent = ui?.component || 'el-divider';
const uiProps = computed(() => ui?.props(props) || {});
const uiProps = computed(() => ui?.props(props) || props);
</script>
2 changes: 1 addition & 1 deletion packages/design/src/Drawer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ const ui = getConfig('components')?.drawer;
const uiComponent = ui?.component || 'el-drawer';
const uiProps = computed(() => ui?.props(props) || {});
const uiProps = computed(() => ui?.props(props) || props);
const openHandler = (...args: any[]) => {
emit('open', ...args);
Expand Down
2 changes: 1 addition & 1 deletion packages/design/src/Dropdown.vue
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ const ui = getConfig('components')?.dropdown;
const uiComponent = ui?.component || 'el-dropdown';
const uiProps = computed(() => ui?.props(props) || {});
const uiProps = computed(() => ui?.props(props) || props);
const emit = defineEmits(['command']);
Expand Down
2 changes: 1 addition & 1 deletion packages/design/src/DropdownItem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,5 @@ const ui = getConfig('components')?.dropdownItem;
const uiComponent = ui?.component || 'el-dropdown-item';
const uiProps = computed(() => ui?.props(props) || {});
const uiProps = computed(() => ui?.props(props) || props);
</script>
2 changes: 1 addition & 1 deletion packages/design/src/Form.vue
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const ui = getConfig('components')?.form;
const uiComponent = ui?.component || 'el-form';
const uiProps = computed(() => ui?.props(props) || {});
const uiProps = computed(() => ui?.props(props) || props);
const form = ref<any>();
Expand Down
2 changes: 1 addition & 1 deletion packages/design/src/FormItem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,5 @@ const ui = getConfig('components')?.formItem;
const uiComponent = ui?.component || 'el-form-item';
const uiProps = computed(() => ui?.props(props) || {});
const uiProps = computed(() => ui?.props(props) || props);
</script>
2 changes: 1 addition & 1 deletion packages/design/src/Input.vue
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ const ui = getConfig('components')?.input;
const uiComponent = ui?.component || 'el-input';
const uiProps = computed(() => ui?.props(props) || {});
const uiProps = computed(() => ui?.props(props) || props);
const emit = defineEmits(['change', 'input', 'update:modelValue']);
Expand Down
2 changes: 1 addition & 1 deletion packages/design/src/InputNumber.vue
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const ui = getConfig('components')?.inputNumber;
const uiComponent = ui?.component || 'el-input-number';
const uiProps = computed(() => ui?.props(props) || {});
const uiProps = computed(() => ui?.props(props) || props);
const emit = defineEmits(['change', 'input', 'update:modelValue']);
Expand Down
2 changes: 1 addition & 1 deletion packages/design/src/Option.vue
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,5 @@ const ui = getConfig('components')?.option;
const uiComponent = ui?.component || 'el-option';
const uiProps = computed(() => ui?.props(props) || {});
const uiProps = computed(() => ui?.props(props) || props);
</script>
2 changes: 1 addition & 1 deletion packages/design/src/OptionGroup.vue
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const ui = getConfig('components')?.optionGroup;
const uiComponent = ui?.component || 'el-option-group';
const uiProps = computed(() => ui?.props(props) || {});
const uiProps = computed(() => ui?.props(props) || props);
const optionGroup = ref<any>();
</script>
6 changes: 3 additions & 3 deletions packages/design/src/Pagination.vue
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,13 @@ defineOptions({
const props = defineProps<PaginationProps>();
const emit = defineEmits(['size-change', 'current-change']);
const ui = getConfig('components')?.pagination;
const uiComponent = ui?.component || 'el-pagination';
const uiProps = computed(() => ui?.props(props) || {});
const emit = defineEmits(['size-change', 'current-change']);
const uiProps = computed(() => ui?.props(props) || props);
const handleSizeChange = (...args: any[]) => {
emit('size-change', ...args);
Expand Down
2 changes: 1 addition & 1 deletion packages/design/src/Popover.vue
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,5 @@ const ui = getConfig('components')?.popover;
const uiComponent = ui?.component || 'el-popover';
const uiProps = computed(() => ui?.props(props) || {});
const uiProps = computed(() => ui?.props(props) || props);
</script>
2 changes: 1 addition & 1 deletion packages/design/src/Radio.vue
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,5 @@ const ui = getConfig('components')?.radio;
const uiComponent = ui?.component || 'el-radio';
const uiProps = computed(() => ui?.props(props) || {});
const uiProps = computed(() => ui?.props(props) || props);
</script>
2 changes: 1 addition & 1 deletion packages/design/src/RadioButton.vue
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,5 @@ const ui = getConfig('components')?.radioButton;
const uiComponent = ui?.component || 'el-radio-button';
const uiProps = computed(() => ui?.props(props) || {});
const uiProps = computed(() => ui?.props(props) || props);
</script>
2 changes: 1 addition & 1 deletion packages/design/src/RadioGroup.vue
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ const ui = getConfig('components')?.radioGroup;
const uiComponent = ui?.component || 'el-radio-group';
const uiProps = computed(() => ui?.props(props) || {});
const uiProps = computed(() => ui?.props(props) || props);
const emit = defineEmits(['change', 'update:modelValue']);
Expand Down
6 changes: 3 additions & 3 deletions packages/design/src/Select.vue
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,13 @@ defineOptions({
const props = defineProps<SelectProps>();
const emit = defineEmits(['change', 'update:modelValue', 'visibleHandler']);
const ui = getConfig('components')?.select;
const uiComponent = ui?.component || 'el-select';
const uiProps = computed(() => ui?.props(props) || {});
const emit = defineEmits(['change', 'update:modelValue', 'visibleHandler']);
const uiProps = computed(() => ui?.props(props) || props);
const select = ref<any>();
Expand Down
2 changes: 1 addition & 1 deletion packages/design/src/Step.vue
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,5 @@ const ui = getConfig('components')?.step;
const uiComponent = ui?.component || 'el-step';
const uiProps = computed(() => ui?.props(props) || {});
const uiProps = computed(() => ui?.props(props) || props);
</script>
2 changes: 1 addition & 1 deletion packages/design/src/Steps.vue
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,5 @@ const ui = getConfig('components')?.steps;
const uiComponent = ui?.component || 'el-steps';
const uiProps = computed(() => ui?.props(props) || {});
const uiProps = computed(() => ui?.props(props) || props);
</script>
2 changes: 1 addition & 1 deletion packages/design/src/Switch.vue
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ const ui = getConfig('components')?.switch;
const uiComponent = ui?.component || 'el-switch';
const uiProps = computed(() => ui?.props(props) || {});
const uiProps = computed(() => ui?.props(props) || props);
const emit = defineEmits(['change', 'update:modelValue']);
Expand Down
2 changes: 1 addition & 1 deletion packages/design/src/TabPane.vue
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,5 @@ const ui = getConfig('components')?.tabPane;
const uiComponent = ui?.component || 'el-tab-pane';
const uiProps = computed(() => ui?.props(props) || {});
const uiProps = computed(() => ui?.props(props) || props);
</script>
2 changes: 1 addition & 1 deletion packages/design/src/Table.vue
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ const ui = getConfig('components')?.table;
const uiComponent = ui?.component || 'el-table';
const uiProps = computed(() => ui?.props(props) || {});
const uiProps = computed(() => ui?.props(props) || props);
const emit = defineEmits(['select', 'sort-change', 'expand-change', 'cell-click']);
Expand Down
2 changes: 1 addition & 1 deletion packages/design/src/TableColumn.vue
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,5 @@ const ui = getConfig('components')?.tableColumn;
const uiComponent = ui?.component || 'el-table-column';
const uiProps = computed(() => ui?.props(props) || {});
const uiProps = computed(() => ui?.props(props) || props);
</script>
2 changes: 1 addition & 1 deletion packages/design/src/Tabs.vue
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ const ui = getConfig('components')?.tabs;
const uiComponent = ui?.component || 'el-tabs';
const uiProps = computed(() => ui?.props(props) || {});
const uiProps = computed(() => ui?.props(props) || props);
const emit = defineEmits(['tab-click', 'tab-add', 'tab-remove', 'update:model-value']);
Expand Down
2 changes: 1 addition & 1 deletion packages/design/src/Tag.vue
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,5 @@ const ui = getConfig('components')?.tag;
const uiComponent = ui?.component || 'el-tag';
const uiProps = computed(() => ui?.props(props) || {});
const uiProps = computed(() => ui?.props(props) || props);
</script>
2 changes: 1 addition & 1 deletion packages/design/src/TimePicker.vue
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const ui = getConfig('components')?.timePicker;
const uiComponent = ui?.component || 'el-time-picker';
const uiProps = computed(() => ui?.props(props) || {});
const uiProps = computed(() => ui?.props(props) || props);
const emit = defineEmits(['change', 'update:modelValue']);
Expand Down
2 changes: 1 addition & 1 deletion packages/design/src/Tooltip.vue
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,5 @@ const ui = getConfig('components')?.tooltip;
const uiComponent = ui?.component || 'el-tooltip';
const uiProps = computed(() => ui?.props(props) || {});
const uiProps = computed(() => ui?.props(props) || props);
</script>
2 changes: 1 addition & 1 deletion packages/design/src/Tree.vue
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ const ui = getConfig('components')?.tree;
const uiComponent = ui?.component || 'el-tree';
const uiProps = computed(() => ui?.props(props) || {});
const uiProps = computed(() => ui?.props(props) || props);
const emit = defineEmits([
'node-click',
Expand Down
2 changes: 1 addition & 1 deletion packages/design/src/Upload.vue
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ const ui = getConfig('components')?.upload;
const uiComponent = ui?.component || 'el-upload';
const uiProps = computed(() => ui?.props(props) || {});
const uiProps = computed(() => ui?.props(props) || props);
const upload = ref<any>();
Expand Down

0 comments on commit 05dfd9d

Please sign in to comment.