├── .editorconfig ├── .eslintignore ├── .eslintrc.cjs ├── .gitignore ├── .husky └── .vscode │ └── settings.json ├── .lintstagedrc ├── .prettierrc.json ├── LICENSE ├── README.md ├── README.zh-CN.md ├── auto-imports.d.ts ├── images ├── 6221709887502_.pic.jpg ├── 6231709887502_.pic.jpg ├── 6241709887502_.pic.jpg ├── 6251709887502_.pic.jpg └── demo_20240912.png ├── index.html ├── lib ├── assets │ └── icon │ │ ├── file_ai.svg │ │ ├── file_audio.svg │ │ ├── file_cad.svg │ │ ├── file_csv.svg │ │ ├── file_default.svg │ │ ├── file_excel.svg │ │ ├── file_html.svg │ │ ├── file_img.svg │ │ ├── file_pdf.svg │ │ ├── file_ppt.svg │ │ ├── file_project.svg │ │ ├── file_ps.svg │ │ ├── file_rar.svg │ │ ├── file_revit.svg │ │ ├── file_txt.svg │ │ ├── file_txt_1.svg │ │ ├── file_video.svg │ │ ├── file_visio.svg │ │ ├── file_word.svg │ │ ├── file_ydoc.svg │ │ └── file_yxls.svg ├── auto-imports.d.ts ├── components │ ├── alert │ │ ├── index.ts │ │ └── src │ │ │ ├── LewAlert.vue │ │ │ └── props.ts │ ├── avatar │ │ ├── index.ts │ │ └── src │ │ │ ├── LewAvatar.vue │ │ │ └── props.ts │ ├── back-top │ │ ├── index.ts │ │ └── src │ │ │ ├── LewBackTop.vue │ │ │ └── props.ts │ ├── badge │ │ ├── index.ts │ │ └── src │ │ │ ├── LewBadge.vue │ │ │ └── props.ts │ ├── breadcrumb │ │ ├── index.ts │ │ └── src │ │ │ ├── LewBreadcrumb.vue │ │ │ └── props.ts │ ├── button │ │ ├── __test__ │ │ │ └── button.test.tsx │ │ ├── index.ts │ │ └── src │ │ │ ├── LewButton.vue │ │ │ └── props.ts │ ├── cascader │ │ ├── index.ts │ │ └── src │ │ │ ├── LewCascader.vue │ │ │ └── props.ts │ ├── checkbox │ │ ├── index.ts │ │ └── src │ │ │ ├── LewCheckbox.vue │ │ │ ├── LewCheckboxGroup.vue │ │ │ └── props.ts │ ├── collapse │ │ ├── index.ts │ │ └── src │ │ │ ├── LewCollapse.vue │ │ │ ├── LewCollapseItem.vue │ │ │ ├── LewCollapseTransition.vue │ │ │ └── props.ts │ ├── color-picker │ │ ├── index.ts │ │ └── src │ │ │ ├── LewColorPicker.vue │ │ │ └── props.ts │ ├── date-picker │ │ ├── index.ts │ │ └── src │ │ │ ├── LewDate.vue │ │ │ ├── LewDatePicker.vue │ │ │ ├── date.ts │ │ │ └── props.ts │ ├── date-range-picker │ │ ├── index.ts │ │ └── src │ │ │ ├── LewDateRange.vue │ │ │ ├── LewDateRangePicker.vue │ │ │ └── props.ts │ ├── desc │ │ ├── index.ts │ │ └── src │ │ │ ├── LewDesc.vue │ │ │ ├── LewDescItem.vue │ │ │ └── props.ts │ ├── drawer │ │ ├── index.ts │ │ └── src │ │ │ ├── LewDrawer.vue │ │ │ └── props.ts │ ├── dropdown │ │ ├── index.ts │ │ └── src │ │ │ ├── LewDropdown.vue │ │ │ └── props.ts │ ├── empty │ │ ├── icon │ │ │ ├── icon_404.svg │ │ │ ├── icon_address.svg │ │ │ ├── icon_article.svg │ │ │ ├── icon_car.svg │ │ │ ├── icon_comment.svg │ │ │ ├── icon_goods.svg │ │ │ ├── icon_likes.svg │ │ │ ├── icon_network.svg │ │ │ ├── icon_order.svg │ │ │ └── icon_search.svg │ │ ├── index.ts │ │ └── src │ │ │ ├── LewEmpty.vue │ │ │ └── props.ts │ ├── expand │ │ ├── index.ts │ │ └── src │ │ │ ├── LewExpand.vue │ │ │ └── props.ts │ ├── flex │ │ ├── index.ts │ │ └── src │ │ │ ├── LewFlex.vue │ │ │ └── props.ts │ ├── form │ │ ├── index.ts │ │ └── src │ │ │ ├── LewForm.vue │ │ │ ├── LewFormItem.vue │ │ │ ├── LewGetLabelWidth.vue │ │ │ ├── RequiredIcon.vue │ │ │ └── props.ts │ ├── image │ │ ├── index.ts │ │ └── src │ │ │ ├── LewImage.vue │ │ │ ├── image_fail_icon.svg │ │ │ └── props.ts │ ├── index.ts │ ├── input-number │ │ ├── index.ts │ │ └── src │ │ │ ├── LewInputNumber.vue │ │ │ └── props.ts │ ├── input-table │ │ ├── index.ts │ │ └── src │ │ │ ├── FormModal.vue │ │ │ ├── LewInputTable.vue │ │ │ └── props.ts │ ├── input-tag │ │ ├── index.ts │ │ └── src │ │ │ ├── LewInputTag.vue │ │ │ └── props.ts │ ├── input-tree │ │ ├── index.ts │ │ └── src │ │ │ ├── LewInputTree.vue │ │ │ └── props.ts │ ├── input │ │ ├── index.ts │ │ └── src │ │ │ ├── LewInput.vue │ │ │ └── props.ts │ ├── mark │ │ ├── index.ts │ │ └── src │ │ │ ├── LewMark.vue │ │ │ └── props.ts │ ├── menu-tree │ │ ├── index.ts │ │ └── src │ │ │ ├── LewMenuTree.vue │ │ │ ├── LewMenuTreeItem.vue │ │ │ └── props.ts │ ├── menu │ │ ├── index.ts │ │ └── src │ │ │ ├── LewMenu.vue │ │ │ └── props.ts │ ├── modal │ │ ├── index.ts │ │ └── src │ │ │ ├── LewModal.vue │ │ │ └── props.ts │ ├── pagination │ │ ├── index.ts │ │ └── src │ │ │ ├── LewPagination.vue │ │ │ └── props.ts │ ├── popok │ │ ├── index.ts │ │ └── src │ │ │ ├── LewPopok.vue │ │ │ └── props.ts │ ├── popover │ │ ├── index.ts │ │ └── src │ │ │ ├── LewPopover.vue │ │ │ └── props.ts │ ├── radio │ │ ├── index.ts │ │ └── src │ │ │ ├── LewRadio.vue │ │ │ ├── LewRadioGroup.vue │ │ │ └── props.ts │ ├── rate │ │ ├── index.ts │ │ └── src │ │ │ ├── LewRate.vue │ │ │ └── props.ts │ ├── result │ │ ├── index.ts │ │ └── src │ │ │ ├── LewResult.vue │ │ │ └── props.ts │ ├── select-multiple │ │ ├── index.ts │ │ └── src │ │ │ ├── LewSelectMultiple.vue │ │ │ └── props.ts │ ├── select │ │ ├── index.ts │ │ └── src │ │ │ ├── LewSelect.vue │ │ │ ├── props.ts │ │ │ └── util.ts │ ├── slider-range │ │ ├── index.ts │ │ └── src │ │ │ ├── LewSliderRange.vue │ │ │ └── props.ts │ ├── slider │ │ ├── index.ts │ │ └── src │ │ │ ├── LewSlider.vue │ │ │ └── props.ts │ ├── steps │ │ ├── index.ts │ │ └── src │ │ │ ├── LewSteps.vue │ │ │ └── props.ts │ ├── switch │ │ ├── index.ts │ │ └── src │ │ │ ├── LewSwitch.vue │ │ │ └── props.ts │ ├── table │ │ ├── index.ts │ │ └── src │ │ │ ├── LewTable.vue │ │ │ ├── SortIcon.vue │ │ │ └── props.ts │ ├── tabs │ │ ├── index.ts │ │ └── src │ │ │ ├── LewTabs.vue │ │ │ └── props.ts │ ├── tag │ │ ├── index.ts │ │ └── src │ │ │ ├── LewTag.vue │ │ │ └── props.ts │ ├── text-trim │ │ ├── index.ts │ │ └── src │ │ │ ├── LewTextTrim.vue │ │ │ ├── props.ts │ │ │ └── text-trim.ts │ ├── textarea │ │ ├── index.ts │ │ └── src │ │ │ ├── LewTextarea.vue │ │ │ └── props.ts │ ├── title │ │ ├── index.ts │ │ └── src │ │ │ ├── LewTitle.vue │ │ │ └── props.ts │ ├── tree-select │ │ ├── index.ts │ │ └── src │ │ │ ├── LewTreeSelect.vue │ │ │ └── props.ts │ ├── tree │ │ ├── index.ts │ │ └── src │ │ │ ├── LewTree.vue │ │ │ ├── props.ts │ │ │ └── tree2list.ts │ └── upload │ │ ├── index.ts │ │ └── src │ │ ├── LewUpload.vue │ │ ├── LewUploadByCard.vue │ │ ├── LewUploadByList.vue │ │ └── props.ts ├── constants │ └── index.ts ├── directives │ ├── backtop │ │ ├── index.ts │ │ └── src │ │ │ └── index.ts │ ├── context-menu │ │ ├── index.ts │ │ └── src │ │ │ ├── LewContextMenu.vue │ │ │ └── index.ts │ ├── hover-menu │ │ ├── index.ts │ │ └── src │ │ │ └── index.ts │ ├── index.ts │ ├── loading │ │ ├── index.ts │ │ ├── src │ │ │ └── index.ts │ │ └── styles │ │ │ └── index.scss │ └── tooltip │ │ ├── index.ts │ │ └── src │ │ └── index.ts ├── docs │ ├── App.vue │ ├── assets │ │ ├── images │ │ │ ├── icon │ │ │ │ ├── blank.svg │ │ │ │ ├── cascader.svg │ │ │ │ ├── checkbox-group.svg │ │ │ │ ├── checkbox.svg │ │ │ │ ├── color-picker.svg │ │ │ │ ├── date-picker.svg │ │ │ │ ├── date-range-picker.svg │ │ │ │ ├── input-number.svg │ │ │ │ ├── input-tag.svg │ │ │ │ ├── input.svg │ │ │ │ ├── radio-group.svg │ │ │ │ ├── rate.svg │ │ │ │ ├── select-multiple.svg │ │ │ │ ├── select.svg │ │ │ │ ├── slider-range.svg │ │ │ │ ├── slider.svg │ │ │ │ ├── switch.svg │ │ │ │ ├── tabs.svg │ │ │ │ ├── textarea.svg │ │ │ │ └── upload.svg │ │ │ └── logo.png │ │ └── style │ │ │ ├── hljs.scss │ │ │ └── main.scss │ ├── auto-imports.d.ts │ ├── axios │ │ ├── config.ts │ │ ├── http.ts │ │ └── index.ts │ ├── docs │ │ ├── alert │ │ │ ├── DemoAlert.vue │ │ │ ├── api │ │ │ │ ├── index.ts │ │ │ │ └── props.ts │ │ │ ├── demo │ │ │ │ ├── DemoAlert1.vue │ │ │ │ ├── DemoAlert2.vue │ │ │ │ ├── DemoAlert3.vue │ │ │ │ └── index.ts │ │ │ └── index.ts │ │ ├── avatar │ │ │ ├── DemoAvatar.vue │ │ │ ├── api │ │ │ │ ├── index.ts │ │ │ │ └── props.ts │ │ │ ├── demo │ │ │ │ ├── DemoAvatar1.vue │ │ │ │ ├── DemoAvatar2.vue │ │ │ │ ├── DemoAvatar3.vue │ │ │ │ ├── DemoAvatar4.vue │ │ │ │ └── index.ts │ │ │ └── index.ts │ │ ├── back-top │ │ │ ├── DemoBackTop.vue │ │ │ ├── api │ │ │ │ ├── events.ts │ │ │ │ ├── index.ts │ │ │ │ └── props.ts │ │ │ ├── demo │ │ │ │ ├── DemoBackTop1.vue │ │ │ │ ├── DemoBackTop2.vue │ │ │ │ ├── DemoBackTop3.vue │ │ │ │ └── index.ts │ │ │ └── index.ts │ │ ├── badge │ │ │ ├── DemoBadge.vue │ │ │ ├── api │ │ │ │ ├── index.ts │ │ │ │ └── props.ts │ │ │ ├── demo │ │ │ │ ├── DemoBadge1.vue │ │ │ │ ├── DemoBadge2.vue │ │ │ │ ├── DemoBadge3.vue │ │ │ │ ├── DemoBadge4.vue │ │ │ │ ├── DemoBadge5.vue │ │ │ │ └── index.ts │ │ │ └── index.ts │ │ ├── breadcrumb │ │ │ ├── DemoBreadcrumb.vue │ │ │ ├── api │ │ │ │ ├── breadcrumbOptions.ts │ │ │ │ ├── events.ts │ │ │ │ ├── index.ts │ │ │ │ └── props.ts │ │ │ ├── demo │ │ │ │ ├── DemoBreadcrumb1.vue │ │ │ │ ├── DemoBreadcrumb2.vue │ │ │ │ ├── DemoBreadcrumb3.vue │ │ │ │ └── index.ts │ │ │ └── index.ts │ │ ├── button │ │ │ ├── DemoButton.vue │ │ │ ├── api │ │ │ │ ├── index.ts │ │ │ │ └── props.ts │ │ │ ├── demo │ │ │ │ ├── DemoButton1.vue │ │ │ │ ├── DemoButton2.vue │ │ │ │ ├── DemoButton3.vue │ │ │ │ ├── DemoButton4.vue │ │ │ │ ├── DemoButton5.vue │ │ │ │ ├── DemoButton6.vue │ │ │ │ └── index.ts │ │ │ └── index.ts │ │ ├── cascader │ │ │ ├── DemoCascader.vue │ │ │ ├── api │ │ │ │ ├── index.ts │ │ │ │ ├── model.ts │ │ │ │ ├── options.ts │ │ │ │ └── props.ts │ │ │ ├── demo │ │ │ │ ├── DemoCascader1.vue │ │ │ │ ├── DemoCascader2.vue │ │ │ │ ├── DemoCascader3.vue │ │ │ │ ├── DemoCascader4.vue │ │ │ │ ├── DemoCascader5.vue │ │ │ │ ├── DemoCascader6.vue │ │ │ │ ├── DemoCascader7.vue │ │ │ │ ├── DemoCascader8.vue │ │ │ │ └── index.ts │ │ │ └── index.ts │ │ ├── checkbox │ │ │ ├── DemoCheckbox.vue │ │ │ ├── api │ │ │ │ ├── checkboxEvents.ts │ │ │ │ ├── checkboxModel.ts │ │ │ │ ├── checkboxProps.ts │ │ │ │ ├── events.ts │ │ │ │ ├── index.ts │ │ │ │ ├── model.ts │ │ │ │ ├── options.ts │ │ │ │ └── props.ts │ │ │ ├── demo │ │ │ │ ├── DemoCheckbox1.vue │ │ │ │ ├── DemoCheckbox2.vue │ │ │ │ ├── DemoCheckbox3.vue │ │ │ │ ├── DemoCheckbox4.vue │ │ │ │ ├── DemoCheckbox5.vue │ │ │ │ ├── DemoCheckbox6.vue │ │ │ │ ├── DemoCheckbox7.vue │ │ │ │ └── index.ts │ │ │ └── index.ts │ │ ├── collapse │ │ │ ├── DemoCollapse.vue │ │ │ ├── api │ │ │ │ ├── collapseItemModel.ts │ │ │ │ ├── collapseItemProps.ts │ │ │ │ ├── index.ts │ │ │ │ ├── model.ts │ │ │ │ └── props.ts │ │ │ ├── demo │ │ │ │ ├── DemoCollapse1.vue │ │ │ │ ├── DemoCollapse2.vue │ │ │ │ ├── DemoCollapse3.vue │ │ │ │ └── index.ts │ │ │ └── index.ts │ │ ├── color-picker │ │ │ ├── DemoCollapse.vue │ │ │ ├── api │ │ │ │ ├── index.ts │ │ │ │ ├── model.ts │ │ │ │ └── props.ts │ │ │ ├── demo │ │ │ │ ├── DemoColorPicker1.vue │ │ │ │ ├── DemoColorPicker2.vue │ │ │ │ ├── DemoColorPicker3.vue │ │ │ │ ├── DemoColorPicker4.vue │ │ │ │ ├── DemoColorPicker5.vue │ │ │ │ └── index.ts │ │ │ └── index.ts │ │ ├── context-menu │ │ │ ├── DemoContextMenu.vue │ │ │ ├── api │ │ │ │ ├── index.ts │ │ │ │ ├── options.ts │ │ │ │ └── props.ts │ │ │ ├── demo │ │ │ │ ├── DemoContextMenu1.vue │ │ │ │ ├── DemoContextMenu2.vue │ │ │ │ ├── DemoContextMenu3.vue │ │ │ │ ├── DemoContextMenu4.vue │ │ │ │ └── index.ts │ │ │ └── index.ts │ │ ├── date-picker │ │ │ ├── DemoDatePicker.vue │ │ │ ├── api │ │ │ │ ├── events.ts │ │ │ │ ├── index.ts │ │ │ │ ├── model.ts │ │ │ │ └── props.ts │ │ │ ├── demo │ │ │ │ ├── DemoDatePicker1.vue │ │ │ │ ├── DemoDatePicker2.vue │ │ │ │ ├── DemoDatePicker3.vue │ │ │ │ ├── DemoDatePicker4.vue │ │ │ │ ├── DemoDatePicker5.vue │ │ │ │ ├── DemoDatePicker6.vue │ │ │ │ └── index.ts │ │ │ └── index.ts │ │ ├── date-range-picker │ │ │ ├── DemoDateRangePicker.vue │ │ │ ├── api │ │ │ │ ├── events.ts │ │ │ │ ├── index.ts │ │ │ │ ├── model.ts │ │ │ │ └── props.ts │ │ │ ├── demo │ │ │ │ ├── DemoDateRangePicker1.vue │ │ │ │ ├── DemoDateRangePicker2.vue │ │ │ │ ├── DemoDateRangePicker3.vue │ │ │ │ └── index.ts │ │ │ └── index.ts │ │ ├── desc │ │ │ ├── DemoDesc.vue │ │ │ ├── api │ │ │ │ ├── descItemProps.ts │ │ │ │ ├── index.ts │ │ │ │ └── props.ts │ │ │ ├── demo │ │ │ │ ├── DemoDesc1.vue │ │ │ │ ├── DemoDesc2.vue │ │ │ │ ├── DemoDesc3.vue │ │ │ │ ├── DemoDesc4.vue │ │ │ │ ├── desc_20241128_380ff83.json │ │ │ │ └── index.ts │ │ │ └── index.ts │ │ ├── dialog │ │ │ ├── DemoDialog.vue │ │ │ ├── api │ │ │ │ ├── events.ts │ │ │ │ ├── index.ts │ │ │ │ └── props.ts │ │ │ ├── demo │ │ │ │ ├── DemoDialog1.vue │ │ │ │ ├── DemoDialog2.vue │ │ │ │ └── index.ts │ │ │ └── index.ts │ │ ├── drawer │ │ │ ├── DemoDrawer.vue │ │ │ ├── api │ │ │ │ ├── index.ts │ │ │ │ ├── model.ts │ │ │ │ └── props.ts │ │ │ ├── demo │ │ │ │ ├── DemoDrawer1.vue │ │ │ │ ├── DemoDrawer2.vue │ │ │ │ ├── DemoDrawer3.vue │ │ │ │ ├── DemoDrawer4.vue │ │ │ │ └── index.ts │ │ │ └── index.ts │ │ ├── dropdown │ │ │ ├── DemoDropdown.vue │ │ │ ├── api │ │ │ │ ├── events.ts │ │ │ │ ├── index.ts │ │ │ │ └── props.ts │ │ │ ├── demo │ │ │ │ ├── DemoDropdown1.vue │ │ │ │ ├── DemoDropdown2.vue │ │ │ │ ├── DemoDropdown3.vue │ │ │ │ └── index.ts │ │ │ └── index.ts │ │ ├── empty │ │ │ ├── DemoEmpty.vue │ │ │ ├── api │ │ │ │ ├── index.ts │ │ │ │ └── props.ts │ │ │ ├── demo │ │ │ │ ├── DemoEmpty1.vue │ │ │ │ └── index.ts │ │ │ └── index.ts │ │ ├── flex │ │ │ ├── DemoFlex.vue │ │ │ ├── api │ │ │ │ ├── index.ts │ │ │ │ └── props.ts │ │ │ ├── demo │ │ │ │ ├── DemoFlex1.vue │ │ │ │ ├── DemoFlex2.vue │ │ │ │ ├── DemoFlex3.vue │ │ │ │ └── index.ts │ │ │ └── index.ts │ │ ├── form │ │ │ ├── DemoForm.vue │ │ │ ├── api │ │ │ │ ├── events.ts │ │ │ │ ├── formItemProps.ts │ │ │ │ ├── index.ts │ │ │ │ ├── methods.ts │ │ │ │ └── props.ts │ │ │ ├── demo │ │ │ │ ├── DemoForm1.vue │ │ │ │ ├── DemoForm2.vue │ │ │ │ ├── DemoForm3.vue │ │ │ │ ├── DemoForm4.vue │ │ │ │ ├── DemoForm5.vue │ │ │ │ ├── form_20240714_155154_quvi8vkan.json │ │ │ │ ├── form_20240928_66b84e16.json │ │ │ │ └── index.ts │ │ │ └── index.ts │ │ ├── icon │ │ │ ├── DemoIcon.vue │ │ │ └── index.ts │ │ ├── image │ │ │ ├── DemoImage.vue │ │ │ ├── api │ │ │ │ ├── index.ts │ │ │ │ └── props.ts │ │ │ ├── demo │ │ │ │ ├── DemoImage1.vue │ │ │ │ ├── DemoImage2.vue │ │ │ │ ├── DemoImage3.vue │ │ │ │ └── index.ts │ │ │ └── index.ts │ │ ├── index.ts │ │ ├── input-number │ │ │ ├── DemoInputNumber.vue │ │ │ ├── api │ │ │ │ ├── index.ts │ │ │ │ ├── model.ts │ │ │ │ └── props.ts │ │ │ ├── demo │ │ │ │ ├── DemoInputNumber1.vue │ │ │ │ ├── DemoInputNumber2.vue │ │ │ │ ├── DemoInputNumber3.vue │ │ │ │ ├── DemoInputNumber4.vue │ │ │ │ ├── DemoInputNumber5.vue │ │ │ │ └── index.ts │ │ │ └── index.ts │ │ ├── input-table │ │ │ ├── DemoInputTable.vue │ │ │ ├── api │ │ │ │ ├── index.ts │ │ │ │ └── props.ts │ │ │ ├── demo │ │ │ │ ├── DemoInputTable1.vue │ │ │ │ ├── DemoInputTable2.vue │ │ │ │ ├── DemoInputTable3.vue │ │ │ │ └── index.ts │ │ │ └── index.ts │ │ ├── input-tag │ │ │ ├── DemoInputTag.vue │ │ │ ├── api │ │ │ │ ├── events.ts │ │ │ │ ├── index.ts │ │ │ │ ├── model.ts │ │ │ │ └── props.ts │ │ │ ├── demo │ │ │ │ ├── DemoInputTag1.vue │ │ │ │ ├── DemoInputTag2.vue │ │ │ │ ├── DemoInputTag3.vue │ │ │ │ ├── DemoInputTag4.vue │ │ │ │ ├── DemoInputTag5.vue │ │ │ │ ├── DemoInputTag6.vue │ │ │ │ ├── DemoInputTag7.vue │ │ │ │ ├── DemoInputTag8.vue │ │ │ │ └── index.ts │ │ │ └── index.ts │ │ ├── input │ │ │ ├── DemoInput.vue │ │ │ ├── api │ │ │ │ ├── events.ts │ │ │ │ ├── index.ts │ │ │ │ ├── model.ts │ │ │ │ └── props.ts │ │ │ ├── demo │ │ │ │ ├── DemoInput1.vue │ │ │ │ ├── DemoInput10.vue │ │ │ │ ├── DemoInput11.vue │ │ │ │ ├── DemoInput2.vue │ │ │ │ ├── DemoInput3.vue │ │ │ │ ├── DemoInput4.vue │ │ │ │ ├── DemoInput5.vue │ │ │ │ ├── DemoInput6.vue │ │ │ │ ├── DemoInput7.vue │ │ │ │ ├── DemoInput8.vue │ │ │ │ ├── DemoInput9.vue │ │ │ │ └── index.ts │ │ │ └── index.ts │ │ ├── loading │ │ │ ├── DemoLoading.vue │ │ │ ├── api │ │ │ │ ├── index.ts │ │ │ │ └── props.ts │ │ │ ├── demo │ │ │ │ ├── DemoLoading1.vue │ │ │ │ └── index.ts │ │ │ └── index.ts │ │ ├── magic-number │ │ │ ├── DemoMagicNumber.vue │ │ │ └── index.ts │ │ ├── mark │ │ │ ├── DemoMark.vue │ │ │ ├── api │ │ │ │ ├── index.ts │ │ │ │ └── props.ts │ │ │ ├── demo │ │ │ │ ├── DemoMark1.vue │ │ │ │ └── index.ts │ │ │ └── index.ts │ │ ├── menu-tree │ │ │ ├── DemoMenuTree.vue │ │ │ ├── api │ │ │ │ ├── index.ts │ │ │ │ ├── menuTreeItem.ts │ │ │ │ ├── model.ts │ │ │ │ └── props.ts │ │ │ ├── demo │ │ │ │ ├── DemoMenuTree1.vue │ │ │ │ ├── DemoMenuTree2.vue │ │ │ │ ├── DemoMenuTree3.vue │ │ │ │ ├── DemoMenuTree4.vue │ │ │ │ ├── DemoMenuTree5.vue │ │ │ │ └── index.ts │ │ │ └── index.ts │ │ ├── menu │ │ │ ├── DemoMenu.vue │ │ │ ├── api │ │ │ │ ├── index.ts │ │ │ │ ├── model.ts │ │ │ │ ├── options.ts │ │ │ │ └── props.ts │ │ │ ├── demo │ │ │ │ ├── DemoMenu1.vue │ │ │ │ └── index.ts │ │ │ └── index.ts │ │ ├── message │ │ │ ├── DemoMessage.vue │ │ │ ├── api │ │ │ │ ├── events.ts │ │ │ │ ├── index.ts │ │ │ │ └── props.ts │ │ │ ├── demo │ │ │ │ ├── DemoMessage1.vue │ │ │ │ ├── DemoMessage2.vue │ │ │ │ ├── DemoMessage3.vue │ │ │ │ └── index.ts │ │ │ └── index.ts │ │ ├── modal │ │ │ ├── DemoModal.vue │ │ │ ├── api │ │ │ │ ├── index.ts │ │ │ │ ├── model.ts │ │ │ │ └── props.ts │ │ │ ├── demo │ │ │ │ ├── DemoModal1.vue │ │ │ │ ├── DemoModal2.vue │ │ │ │ ├── DemoModal3.vue │ │ │ │ ├── DemoModal4.vue │ │ │ │ └── index.ts │ │ │ └── index.ts │ │ ├── notification │ │ │ ├── DemoNotification.vue │ │ │ ├── api │ │ │ │ ├── index.ts │ │ │ │ └── props.ts │ │ │ ├── demo │ │ │ │ ├── DemoNotification1.vue │ │ │ │ ├── DemoNotification2.vue │ │ │ │ └── index.ts │ │ │ └── index.ts │ │ ├── pagination │ │ │ ├── DemoPagination.vue │ │ │ ├── api │ │ │ │ ├── events.ts │ │ │ │ ├── index.ts │ │ │ │ ├── model.ts │ │ │ │ └── props.ts │ │ │ ├── demo │ │ │ │ ├── DemoPagination1.vue │ │ │ │ ├── DemoPagination2.vue │ │ │ │ ├── DemoPagination3.vue │ │ │ │ └── index.ts │ │ │ └── index.ts │ │ ├── popok │ │ │ ├── DemoPopok.vue │ │ │ ├── api │ │ │ │ ├── index.ts │ │ │ │ └── props.ts │ │ │ ├── demo │ │ │ │ ├── DemoPopok1.vue │ │ │ │ ├── DemoPopok2.vue │ │ │ │ └── index.ts │ │ │ └── index.ts │ │ ├── popover │ │ │ ├── DemoPopover.vue │ │ │ ├── api │ │ │ │ ├── index.ts │ │ │ │ ├── props.ts │ │ │ │ └── slots.ts │ │ │ ├── demo │ │ │ │ ├── DemoPopover1.vue │ │ │ │ └── index.ts │ │ │ └── index.ts │ │ ├── radio │ │ │ ├── DemoRadio.vue │ │ │ ├── api │ │ │ │ ├── events.ts │ │ │ │ ├── index.ts │ │ │ │ ├── model.ts │ │ │ │ ├── props.ts │ │ │ │ └── radioOptions.ts │ │ │ ├── demo │ │ │ │ ├── DemoRadio1.vue │ │ │ │ ├── DemoRadio2.vue │ │ │ │ ├── DemoRadio3.vue │ │ │ │ ├── DemoRadio4.vue │ │ │ │ ├── DemoRadio5.vue │ │ │ │ ├── DemoRadio6.vue │ │ │ │ └── index.ts │ │ │ └── index.ts │ │ ├── rate │ │ │ ├── DemoRate.vue │ │ │ ├── api │ │ │ │ ├── index.ts │ │ │ │ ├── model.ts │ │ │ │ └── props.ts │ │ │ ├── demo │ │ │ │ ├── DemoRate1.vue │ │ │ │ ├── DemoRate2.vue │ │ │ │ ├── DemoRate3.vue │ │ │ │ ├── DemoRate4.vue │ │ │ │ └── index.ts │ │ │ └── index.ts │ │ ├── result │ │ │ ├── DemoResult.vue │ │ │ ├── api │ │ │ │ ├── index.ts │ │ │ │ ├── props.ts │ │ │ │ └── slots.ts │ │ │ ├── demo │ │ │ │ ├── DemoResult1.vue │ │ │ │ └── index.ts │ │ │ └── index.ts │ │ ├── select-multiple │ │ │ ├── DemoSelectMultiple.vue │ │ │ ├── api │ │ │ │ ├── events.ts │ │ │ │ ├── index.ts │ │ │ │ ├── model.ts │ │ │ │ ├── options.ts │ │ │ │ ├── props.ts │ │ │ │ └── slots.ts │ │ │ ├── demo │ │ │ │ ├── DemoSelectMultiple1.vue │ │ │ │ ├── DemoSelectMultiple2.vue │ │ │ │ ├── DemoSelectMultiple3.vue │ │ │ │ ├── DemoSelectMultiple4.vue │ │ │ │ ├── DemoSelectMultiple5.vue │ │ │ │ ├── DemoSelectMultiple6.vue │ │ │ │ ├── DemoSelectMultiple7.vue │ │ │ │ ├── DemoSelectMultiple8.vue │ │ │ │ └── index.ts │ │ │ └── index.ts │ │ ├── select │ │ │ ├── DemoSelect.vue │ │ │ ├── api │ │ │ │ ├── events.ts │ │ │ │ ├── index.ts │ │ │ │ ├── model.ts │ │ │ │ ├── options.ts │ │ │ │ ├── props.ts │ │ │ │ └── slots.ts │ │ │ ├── demo │ │ │ │ ├── DemoSelect1.vue │ │ │ │ ├── DemoSelect2.vue │ │ │ │ ├── DemoSelect3.vue │ │ │ │ ├── DemoSelect4.vue │ │ │ │ ├── DemoSelect5.vue │ │ │ │ ├── DemoSelect6.vue │ │ │ │ ├── DemoSelect7.vue │ │ │ │ ├── DemoSelect8.vue │ │ │ │ └── index.ts │ │ │ └── index.ts │ │ ├── slider-range │ │ │ ├── DemoSliderRange.vue │ │ │ ├── api │ │ │ │ ├── index.ts │ │ │ │ ├── model.ts │ │ │ │ └── props.ts │ │ │ ├── demo │ │ │ │ ├── DemoSliderRange1.vue │ │ │ │ ├── DemoSliderRange2.vue │ │ │ │ ├── DemoSliderRange3.vue │ │ │ │ ├── DemoSliderRange4.vue │ │ │ │ ├── DemoSliderRange5.vue │ │ │ │ ├── DemoSliderRange6.vue │ │ │ │ └── index.ts │ │ │ └── index.ts │ │ ├── slider │ │ │ ├── DemoSlider.vue │ │ │ ├── api │ │ │ │ ├── index.ts │ │ │ │ ├── model.ts │ │ │ │ └── props.ts │ │ │ ├── demo │ │ │ │ ├── DemoSlider1.vue │ │ │ │ ├── DemoSlider2.vue │ │ │ │ ├── DemoSlider3.vue │ │ │ │ ├── DemoSlider4.vue │ │ │ │ ├── DemoSlider5.vue │ │ │ │ ├── DemoSlider6.vue │ │ │ │ └── index.ts │ │ │ └── index.ts │ │ ├── space │ │ │ ├── DemoSpace.vue │ │ │ ├── api │ │ │ │ ├── index.ts │ │ │ │ └── props.ts │ │ │ ├── demo │ │ │ │ ├── DemoSpace1.vue │ │ │ │ ├── DemoSpace2.vue │ │ │ │ ├── DemoSpace3.vue │ │ │ │ └── index.ts │ │ │ └── index.ts │ │ ├── steps │ │ │ ├── DemoSteps.vue │ │ │ ├── api │ │ │ │ ├── index.ts │ │ │ │ ├── model.ts │ │ │ │ └── props.ts │ │ │ ├── demo │ │ │ │ ├── DemoSteps1.vue │ │ │ │ ├── DemoSteps2.vue │ │ │ │ ├── DemoSteps3.vue │ │ │ │ └── index.ts │ │ │ └── index.ts │ │ ├── switch │ │ │ ├── DemoSwitch.vue │ │ │ ├── api │ │ │ │ ├── events.ts │ │ │ │ ├── index.ts │ │ │ │ ├── model.ts │ │ │ │ └── props.ts │ │ │ ├── demo │ │ │ │ ├── DemoSwitch1.vue │ │ │ │ ├── DemoSwitch2.vue │ │ │ │ ├── DemoSwitch3.vue │ │ │ │ ├── DemoSwitch4.vue │ │ │ │ ├── DemoSwitch5.vue │ │ │ │ └── index.ts │ │ │ └── index.ts │ │ ├── table │ │ │ ├── DemoTable.vue │ │ │ ├── api │ │ │ │ ├── index.ts │ │ │ │ ├── model.ts │ │ │ │ ├── props.ts │ │ │ │ └── tableColumns.ts │ │ │ ├── demo │ │ │ │ ├── DemoTable1.vue │ │ │ │ ├── DemoTable10.vue │ │ │ │ ├── DemoTable2.vue │ │ │ │ ├── DemoTable3.vue │ │ │ │ ├── DemoTable4.vue │ │ │ │ ├── DemoTable5.vue │ │ │ │ ├── DemoTable6.vue │ │ │ │ ├── DemoTable7.vue │ │ │ │ ├── DemoTable8.vue │ │ │ │ ├── DemoTable9.vue │ │ │ │ ├── index.ts │ │ │ │ └── movie_hot_gaia.json │ │ │ └── index.ts │ │ ├── tabs │ │ │ ├── DemoTabs.vue │ │ │ ├── api │ │ │ │ ├── index.ts │ │ │ │ ├── model.ts │ │ │ │ ├── options.ts │ │ │ │ └── props.ts │ │ │ ├── demo │ │ │ │ ├── DemoTabs1.vue │ │ │ │ ├── DemoTabs2.vue │ │ │ │ ├── DemoTabs3.vue │ │ │ │ ├── DemoTabs4.vue │ │ │ │ ├── DemoTabs5.vue │ │ │ │ └── index.ts │ │ │ └── index.ts │ │ ├── tag │ │ │ ├── DemoTag.vue │ │ │ ├── api │ │ │ │ ├── index.ts │ │ │ │ └── props.ts │ │ │ ├── demo │ │ │ │ ├── DemoTag1.vue │ │ │ │ ├── DemoTag2.vue │ │ │ │ ├── DemoTag3.vue │ │ │ │ ├── DemoTag4.vue │ │ │ │ ├── DemoTag5.vue │ │ │ │ ├── DemoTag6.vue │ │ │ │ ├── DemoTag7.vue │ │ │ │ └── index.ts │ │ │ └── index.ts │ │ ├── text-trim │ │ │ ├── DemoTextTrim.vue │ │ │ ├── api │ │ │ │ ├── index.ts │ │ │ │ └── props.ts │ │ │ ├── demo │ │ │ │ ├── DemoTextTrim1.vue │ │ │ │ ├── DemoTextTrim2.vue │ │ │ │ ├── DemoTextTrim3.vue │ │ │ │ ├── DemoTextTrim4.vue │ │ │ │ └── index.ts │ │ │ └── index.ts │ │ ├── textarea │ │ │ ├── DemoTextarea.vue │ │ │ ├── api │ │ │ │ ├── events.ts │ │ │ │ ├── index.ts │ │ │ │ ├── model.ts │ │ │ │ └── props.ts │ │ │ ├── demo │ │ │ │ ├── DemoTextarea1.vue │ │ │ │ ├── DemoTextarea2.vue │ │ │ │ ├── DemoTextarea3.vue │ │ │ │ ├── DemoTextarea4.vue │ │ │ │ ├── DemoTextarea5.vue │ │ │ │ ├── DemoTextarea6.vue │ │ │ │ ├── DemoTextarea7.vue │ │ │ │ ├── DemoTextarea8.vue │ │ │ │ └── index.ts │ │ │ └── index.ts │ │ ├── title │ │ │ ├── DemoTitle.vue │ │ │ ├── api │ │ │ │ ├── index.ts │ │ │ │ └── props.ts │ │ │ ├── demo │ │ │ │ ├── DemoTitle1.vue │ │ │ │ ├── DemoTitle2.vue │ │ │ │ ├── DemoTitle3.vue │ │ │ │ └── index.ts │ │ │ └── index.ts │ │ ├── tooltip │ │ │ ├── DemoTooltip.vue │ │ │ ├── api │ │ │ │ ├── index.ts │ │ │ │ └── props.ts │ │ │ ├── demo │ │ │ │ ├── DemoTooltip1.vue │ │ │ │ ├── DemoTooltip2.vue │ │ │ │ └── index.ts │ │ │ └── index.ts │ │ ├── tree-select │ │ │ ├── DemoTreeSelect.vue │ │ │ ├── api │ │ │ │ ├── index.ts │ │ │ │ ├── model.ts │ │ │ │ ├── props.ts │ │ │ │ └── slots.ts │ │ │ ├── demo │ │ │ │ ├── DemoTreeSelect1.vue │ │ │ │ ├── DemoTreeSelect2.vue │ │ │ │ ├── DemoTreeSelect3.vue │ │ │ │ ├── DemoTreeSelect4.vue │ │ │ │ ├── DemoTreeSelect5.vue │ │ │ │ ├── DemoTreeSelect6.vue │ │ │ │ ├── DemoTreeSelect7.vue │ │ │ │ ├── DemoTreeSelect8.vue │ │ │ │ └── index.ts │ │ │ └── index.ts │ │ ├── tree │ │ │ ├── DemoTree.vue │ │ │ ├── api │ │ │ │ ├── index.ts │ │ │ │ ├── model.ts │ │ │ │ ├── props.ts │ │ │ │ ├── slots.ts │ │ │ │ └── treeDataSource.ts │ │ │ ├── demo │ │ │ │ ├── DemoTree1.vue │ │ │ │ ├── DemoTree2.vue │ │ │ │ ├── DemoTree3.vue │ │ │ │ ├── DemoTree4.vue │ │ │ │ ├── DemoTree5.vue │ │ │ │ ├── DemoTree6.vue │ │ │ │ ├── DemoTree7.vue │ │ │ │ ├── DemoTree8.vue │ │ │ │ └── index.ts │ │ │ └── index.ts │ │ └── upload │ │ │ ├── DemoUpload.vue │ │ │ ├── api │ │ │ ├── index.ts │ │ │ └── props.ts │ │ │ ├── demo │ │ │ ├── DemoUpload1.vue │ │ │ ├── DemoUpload2.vue │ │ │ ├── DemoUpload3.vue │ │ │ ├── DemoUpload4.vue │ │ │ ├── DemoUpload5.vue │ │ │ ├── DemoUpload6.vue │ │ │ ├── DemoUpload7.vue │ │ │ └── index.ts │ │ │ ├── index.ts │ │ │ └── uploadHelper.ts │ ├── env.d.ts │ ├── guide │ │ ├── Chat.vue │ │ ├── Install.vue │ │ ├── Log.vue │ │ ├── QA.vue │ │ ├── Start.vue │ │ ├── TodoList.vue │ │ ├── index.ts │ │ └── log │ │ │ ├── v1_0_24.vue │ │ │ └── v1_0_34.vue │ ├── layout │ │ ├── LewBg.vue │ │ ├── LewComponentInfo.vue │ │ ├── LewDemoBox.vue │ │ ├── LewDocsTables.vue │ │ ├── LewMain.vue │ │ ├── LewMenu.vue │ │ ├── LewRightNav.vue │ │ ├── TheHeader.vue │ │ └── TheSiderbar.vue │ ├── lib │ │ ├── data.ts │ │ └── utils.ts │ ├── locals │ │ ├── de.ts │ │ ├── en.ts │ │ ├── es.ts │ │ ├── fr.ts │ │ ├── index.ts │ │ ├── it.ts │ │ ├── ja.ts │ │ ├── ko.ts │ │ ├── pt.ts │ │ └── zh.ts │ ├── main.ts │ ├── router │ │ └── index.ts │ └── views │ │ ├── LewComponents.vue │ │ ├── LewGuide.vue │ │ ├── LewHome.vue │ │ ├── Playground.vue │ │ ├── desc-engine │ │ ├── components │ │ │ ├── ImportModal.vue │ │ │ ├── PreviewModal.vue │ │ │ ├── SetForm.vue │ │ │ ├── SetFormItem.vue │ │ │ └── SetOptionModal.vue │ │ ├── index.vue │ │ └── schema │ │ │ ├── base.ts │ │ │ ├── fields.ts │ │ │ ├── global.ts │ │ │ └── index.ts │ │ └── form-engine │ │ ├── components │ │ ├── PreviewModal.vue │ │ ├── SetForm.vue │ │ ├── SetFormItem.vue │ │ └── SetOptionModal.vue │ │ ├── index.vue │ │ └── schema │ │ ├── base.ts │ │ ├── compoments-menus.ts │ │ ├── components │ │ ├── cascader.ts │ │ ├── checkbox-group.ts │ │ ├── checkbox.ts │ │ ├── color-picker.ts │ │ ├── date-picker.ts │ │ ├── date-range-picker.ts │ │ ├── input-number.ts │ │ ├── input-tag.ts │ │ ├── input.ts │ │ ├── radio-group.ts │ │ ├── rate.ts │ │ ├── select-multiple.ts │ │ ├── select.ts │ │ ├── slider-range.ts │ │ ├── slider.ts │ │ ├── switch.ts │ │ ├── tabs.ts │ │ ├── textarea.ts │ │ └── upload.ts │ │ ├── global.ts │ │ └── index.ts ├── env.d.ts ├── hooks │ ├── index.ts │ └── src │ │ ├── useDOMCreate.ts │ │ └── useEventListener.ts ├── index.ts ├── locals │ ├── de.ts │ ├── en.ts │ ├── es.ts │ ├── fr.ts │ ├── index.ts │ ├── it.ts │ ├── ja.ts │ ├── ko.ts │ ├── pt.ts │ └── zh.ts ├── methods │ ├── dialog │ │ ├── index.ts │ │ └── src │ │ │ ├── LewDialog.vue │ │ │ ├── index.ts │ │ │ └── props.ts │ ├── index.ts │ ├── message │ │ ├── index.ts │ │ ├── src │ │ │ └── index.ts │ │ └── styles │ │ │ └── index.scss │ └── notification │ │ ├── index.ts │ │ ├── src │ │ └── index.ts │ │ └── styles │ │ └── index.scss ├── styles │ ├── index.scss │ ├── main.scss │ ├── reset.scss │ ├── tippy.scss │ └── var.scss ├── types │ └── index.ts └── utils │ ├── Icon.vue │ └── index.ts ├── package-lock.json ├── package.json ├── public ├── confetti.browser.min.js └── favicon.ico ├── tsconfig.json ├── tsconfig.node.json ├── vite.config.ts └── vitest.config.ts /.editorconfig: -------------------------------------------------------------------------------- 1 | root = true 2 | 3 | # Unix-style newlines with a newline ending every file 4 | [*] 5 | end_of_line = lf 6 | indent_size = 4 -------------------------------------------------------------------------------- /.eslintignore: -------------------------------------------------------------------------------- 1 | node_modules/ 2 | dist/ 3 | dist-zip/ 4 | index.html 5 | prettier.config.js 6 | .eslintrc.js -------------------------------------------------------------------------------- /.eslintrc.cjs: -------------------------------------------------------------------------------- 1 | /* eslint-env node */ 2 | require('@rushstack/eslint-patch/modern-module-resolution') 3 | 4 | module.exports = { 5 | root: true, 6 | extends: [ 7 | 'plugin:vue/vue3-essential', 8 | 'eslint:recommended', 9 | '@vue/eslint-config-typescript', 10 | '@vue/eslint-config-prettier/skip-formatting' 11 | ], 12 | rules: { 13 | 'vue/multi-word-component-names': 'off' 14 | }, 15 | parserOptions: { 16 | ecmaVersion: 'latest' 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Logs 2 | logs 3 | *.log 4 | npm-debug.log* 5 | yarn-debug.log* 6 | yarn-error.log* 7 | pnpm-debug.log* 8 | lerna-debug.log* 9 | 10 | node_modules 11 | dist 12 | dist-zip 13 | dist-ssr 14 | coverage 15 | *.local 16 | stats.html 17 | 18 | # Editor directories and files 19 | .vscode/* 20 | !.vscode/extensions.json 21 | .idea 22 | .DS_Store 23 | *.suo 24 | *.ntvs* 25 | *.njsproj 26 | *.sln 27 | *.sw? 28 | -------------------------------------------------------------------------------- /.husky/.vscode/settings.json: -------------------------------------------------------------------------------- 1 | { 2 | "nuxt.isNuxtApp": false 3 | } -------------------------------------------------------------------------------- /.lintstagedrc: -------------------------------------------------------------------------------- 1 | { 2 | "*.{js,jsx,less,md,json}": ["prettier --write"], 3 | "*.ts?(x)": ["prettier --parser=typescript --write", "eslint --quiet"] 4 | } 5 | -------------------------------------------------------------------------------- /.prettierrc.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "https://json.schemastore.org/prettierrc", 3 | "semi": false, 4 | "tabWidth": 2, 5 | "singleQuote": true, 6 | "printWidth": 80, 7 | "trailingComma": "none" 8 | } 9 | -------------------------------------------------------------------------------- /images/6221709887502_.pic.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lewkamtao/lew-ui/339ac387fde8d03b67a830b7649d332aa431d065/images/6221709887502_.pic.jpg -------------------------------------------------------------------------------- /images/6231709887502_.pic.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lewkamtao/lew-ui/339ac387fde8d03b67a830b7649d332aa431d065/images/6231709887502_.pic.jpg -------------------------------------------------------------------------------- /images/6241709887502_.pic.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lewkamtao/lew-ui/339ac387fde8d03b67a830b7649d332aa431d065/images/6241709887502_.pic.jpg -------------------------------------------------------------------------------- /images/6251709887502_.pic.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lewkamtao/lew-ui/339ac387fde8d03b67a830b7649d332aa431d065/images/6251709887502_.pic.jpg -------------------------------------------------------------------------------- /images/demo_20240912.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lewkamtao/lew-ui/339ac387fde8d03b67a830b7649d332aa431d065/images/demo_20240912.png -------------------------------------------------------------------------------- /lib/components/alert/index.ts: -------------------------------------------------------------------------------- 1 | export { default as LewAlert } from './src/LewAlert.vue' 2 | export * from './src/props' 3 | -------------------------------------------------------------------------------- /lib/components/avatar/index.ts: -------------------------------------------------------------------------------- 1 | export { default as LewAvatar } from './src/LewAvatar.vue' 2 | export * from './src/props' 3 | -------------------------------------------------------------------------------- /lib/components/back-top/index.ts: -------------------------------------------------------------------------------- 1 | export { default as LewBackTop } from './src/LewBackTop.vue' 2 | export * from './src/props' 3 | -------------------------------------------------------------------------------- /lib/components/badge/index.ts: -------------------------------------------------------------------------------- 1 | export { default as LewBadge } from './src/LewBadge.vue' 2 | export * from './src/props' 3 | -------------------------------------------------------------------------------- /lib/components/breadcrumb/index.ts: -------------------------------------------------------------------------------- 1 | export { default as LewBreadcrumb } from './src/LewBreadcrumb.vue' 2 | export * from './src/props' 3 | -------------------------------------------------------------------------------- /lib/components/button/index.ts: -------------------------------------------------------------------------------- 1 | export { default as LewButton } from './src/LewButton.vue' 2 | export * from './src/props' 3 | -------------------------------------------------------------------------------- /lib/components/cascader/index.ts: -------------------------------------------------------------------------------- 1 | export { default as LewCascader } from './src/LewCascader.vue' 2 | export * from './src/props' 3 | -------------------------------------------------------------------------------- /lib/components/checkbox/index.ts: -------------------------------------------------------------------------------- 1 | export { default as LewCheckbox } from './src/LewCheckbox.vue' 2 | export { default as LewCheckboxGroup } from './src/LewCheckboxGroup.vue' 3 | export * from './src/props' 4 | -------------------------------------------------------------------------------- /lib/components/collapse/index.ts: -------------------------------------------------------------------------------- 1 | export { default as LewCollapse } from './src/LewCollapse.vue' 2 | export { default as LewCollapseItem } from './src/LewCollapseItem.vue' 3 | export { default as LewCollapseTransition } from './src/LewCollapseTransition.vue' 4 | export * from './src/props' 5 | -------------------------------------------------------------------------------- /lib/components/collapse/src/LewCollapse.vue: -------------------------------------------------------------------------------- 1 | 15 | 16 | 21 | 22 | 30 | -------------------------------------------------------------------------------- /lib/components/color-picker/index.ts: -------------------------------------------------------------------------------- 1 | export { default as LewColorPicker } from './src/LewColorPicker.vue' 2 | export * from './src/props' 3 | -------------------------------------------------------------------------------- /lib/components/date-picker/index.ts: -------------------------------------------------------------------------------- 1 | export { default as LewDate } from './src/LewDate.vue' 2 | export { default as LewDatePicker } from './src/LewDatePicker.vue' 3 | export * from './src/props' 4 | -------------------------------------------------------------------------------- /lib/components/date-range-picker/index.ts: -------------------------------------------------------------------------------- 1 | export { default as LewDateRange } from './src/LewDateRange.vue' 2 | export { default as LewDateRangePicker } from './src/LewDateRangePicker.vue' 3 | export * from './src/props' 4 | -------------------------------------------------------------------------------- /lib/components/desc/index.ts: -------------------------------------------------------------------------------- 1 | export { default as LewDesc } from './src/LewDesc.vue' 2 | export { default as LewDescItem } from './src/LewDescItem.vue' 3 | export * from './src/props' 4 | -------------------------------------------------------------------------------- /lib/components/drawer/index.ts: -------------------------------------------------------------------------------- 1 | export { default as LewDrawer } from './src/LewDrawer.vue' 2 | export * from './src/props' 3 | -------------------------------------------------------------------------------- /lib/components/dropdown/index.ts: -------------------------------------------------------------------------------- 1 | export { default as LewDropdown } from './src/LewDropdown.vue' 2 | export * from './src/props' 3 | -------------------------------------------------------------------------------- /lib/components/empty/index.ts: -------------------------------------------------------------------------------- 1 | export { default as LewEmpty } from './src/LewEmpty.vue' 2 | export * from './src/props' 3 | -------------------------------------------------------------------------------- /lib/components/expand/index.ts: -------------------------------------------------------------------------------- 1 | export { default as LewExpand } from './src/LewExpand.vue' 2 | export * from './src/props' 3 | -------------------------------------------------------------------------------- /lib/components/expand/src/props.ts: -------------------------------------------------------------------------------- 1 | import type { ExtractPropTypes } from 'vue' 2 | 3 | export const expandProps = { 4 | collapseHeight: { 5 | type: [Number, String], 6 | default: '', 7 | description: `组件收起状态时的高度,可以是数字(单位为像素)或字符串(如 '50px'、'3rem' 等)` 8 | } 9 | } 10 | 11 | export type ExpandProps = ExtractPropTypes 12 | -------------------------------------------------------------------------------- /lib/components/flex/index.ts: -------------------------------------------------------------------------------- 1 | export { default as LewFlex } from './src/LewFlex.vue' 2 | export * from './src/props' 3 | -------------------------------------------------------------------------------- /lib/components/form/index.ts: -------------------------------------------------------------------------------- 1 | export { default as LewForm } from './src/LewForm.vue' 2 | export { default as LewFormItem } from './src/LewFormItem.vue' 3 | export * from './src/props' 4 | -------------------------------------------------------------------------------- /lib/components/image/index.ts: -------------------------------------------------------------------------------- 1 | export { default as LewImage } from './src/LewImage.vue' 2 | export * from './src/props' 3 | -------------------------------------------------------------------------------- /lib/components/input-number/index.ts: -------------------------------------------------------------------------------- 1 | export { default as LewInputNumber } from './src/LewInputNumber.vue' 2 | export * from './src/props' 3 | -------------------------------------------------------------------------------- /lib/components/input-table/index.ts: -------------------------------------------------------------------------------- 1 | export { default as LewInputTable } from './src/LewInputTable.vue' 2 | export * from './src/props' 3 | -------------------------------------------------------------------------------- /lib/components/input-tag/index.ts: -------------------------------------------------------------------------------- 1 | export { default as LewInputTag } from './src/LewInputTag.vue' 2 | export * from './src/props' 3 | -------------------------------------------------------------------------------- /lib/components/input-tree/index.ts: -------------------------------------------------------------------------------- 1 | export { default as LewInputTree } from './src/LewInputTree.vue' 2 | export * from './src/props' 3 | -------------------------------------------------------------------------------- /lib/components/input-tree/src/props.ts: -------------------------------------------------------------------------------- 1 | export const inputTreeProps = { 2 | type: { 3 | type: String, 4 | default: 'info', 5 | description: '结果类型,可选值为 success、warning、error、info' 6 | }, 7 | title: { 8 | type: String, 9 | default: '', 10 | description: '标题' 11 | }, 12 | content: { 13 | type: String, 14 | default: '', 15 | description: '内容' 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /lib/components/input/index.ts: -------------------------------------------------------------------------------- 1 | export { default as LewInput } from './src/LewInput.vue' 2 | export * from './src/props' 3 | -------------------------------------------------------------------------------- /lib/components/mark/index.ts: -------------------------------------------------------------------------------- 1 | export { default as LewMark } from './src/LewMark.vue' 2 | export * from './src/props' 3 | -------------------------------------------------------------------------------- /lib/components/menu-tree/index.ts: -------------------------------------------------------------------------------- 1 | export { default as LewMenuTree } from './src/LewMenuTree.vue' 2 | export { default as LewMenuTreeItem } from './src/LewMenuTreeItem.vue' 3 | export * from './src/props' 4 | -------------------------------------------------------------------------------- /lib/components/menu/index.ts: -------------------------------------------------------------------------------- 1 | export { default as LewMenu } from './src/LewMenu.vue' 2 | export * from './src/props' 3 | -------------------------------------------------------------------------------- /lib/components/modal/index.ts: -------------------------------------------------------------------------------- 1 | export { default as LewModal } from './src/LewModal.vue' 2 | export * from './src/props' 3 | -------------------------------------------------------------------------------- /lib/components/pagination/index.ts: -------------------------------------------------------------------------------- 1 | export { default as LewPagination } from './src/LewPagination.vue' 2 | export * from './src/props' 3 | -------------------------------------------------------------------------------- /lib/components/popok/index.ts: -------------------------------------------------------------------------------- 1 | export { default as LewPopok } from './src/LewPopok.vue' 2 | export * from './src/props' 3 | -------------------------------------------------------------------------------- /lib/components/popover/index.ts: -------------------------------------------------------------------------------- 1 | export { default as LewPopover } from './src/LewPopover.vue' 2 | export * from './src/props' 3 | -------------------------------------------------------------------------------- /lib/components/radio/index.ts: -------------------------------------------------------------------------------- 1 | export { default as LewRadioGroup } from './src/LewRadioGroup.vue' 2 | export * from './src/props' 3 | -------------------------------------------------------------------------------- /lib/components/rate/index.ts: -------------------------------------------------------------------------------- 1 | export { default as LewRate } from './src/LewRate.vue' 2 | export * from './src/props' 3 | -------------------------------------------------------------------------------- /lib/components/result/index.ts: -------------------------------------------------------------------------------- 1 | export { default as LewResult } from './src/LewResult.vue' 2 | export * from './src/props' 3 | -------------------------------------------------------------------------------- /lib/components/select-multiple/index.ts: -------------------------------------------------------------------------------- 1 | export { default as LewSelectMultiple } from './src/LewSelectMultiple.vue' 2 | export * from './src/props' 3 | -------------------------------------------------------------------------------- /lib/components/select/index.ts: -------------------------------------------------------------------------------- 1 | export { default as LewSelect } from './src/LewSelect.vue' 2 | export * from './src/props' 3 | -------------------------------------------------------------------------------- /lib/components/slider-range/index.ts: -------------------------------------------------------------------------------- 1 | export { default as LewSliderRange } from './src/LewSliderRange.vue' 2 | export * from './src/props' 3 | -------------------------------------------------------------------------------- /lib/components/slider/index.ts: -------------------------------------------------------------------------------- 1 | export { default as LewSlider } from './src/LewSlider.vue' 2 | export * from './src/props' 3 | -------------------------------------------------------------------------------- /lib/components/steps/index.ts: -------------------------------------------------------------------------------- 1 | export { default as LewSteps } from './src/LewSteps.vue' 2 | export * from './src/props' 3 | -------------------------------------------------------------------------------- /lib/components/switch/index.ts: -------------------------------------------------------------------------------- 1 | export { default as LewSwitch } from './src/LewSwitch.vue' 2 | export * from './src/props' 3 | -------------------------------------------------------------------------------- /lib/components/table/index.ts: -------------------------------------------------------------------------------- 1 | export { default as LewTable } from './src/LewTable.vue' 2 | export * from './src/props' 3 | -------------------------------------------------------------------------------- /lib/components/tabs/index.ts: -------------------------------------------------------------------------------- 1 | export { default as LewTabs } from './src/LewTabs.vue' 2 | export * from './src/props' 3 | -------------------------------------------------------------------------------- /lib/components/tag/index.ts: -------------------------------------------------------------------------------- 1 | export { default as LewTag } from './src/LewTag.vue' 2 | export * from './src/props' 3 | -------------------------------------------------------------------------------- /lib/components/text-trim/index.ts: -------------------------------------------------------------------------------- 1 | export { default as LewTextTrim } from './src/LewTextTrim.vue' 2 | export * from './src/props' 3 | -------------------------------------------------------------------------------- /lib/components/textarea/index.ts: -------------------------------------------------------------------------------- 1 | export { default as LewTextarea } from './src/LewTextarea.vue' 2 | export * from './src/props' 3 | -------------------------------------------------------------------------------- /lib/components/title/index.ts: -------------------------------------------------------------------------------- 1 | export { default as LewTitle } from './src/LewTitle.vue' 2 | export * from './src/props' 3 | -------------------------------------------------------------------------------- /lib/components/tree-select/index.ts: -------------------------------------------------------------------------------- 1 | export { default as LewTreeSelect } from './src/LewTreeSelect.vue' 2 | export * from './src/props' 3 | -------------------------------------------------------------------------------- /lib/components/tree/index.ts: -------------------------------------------------------------------------------- 1 | export { default as LewTree } from './src/LewTree.vue' 2 | export * from './src/props' 3 | -------------------------------------------------------------------------------- /lib/components/upload/index.ts: -------------------------------------------------------------------------------- 1 | export { default as LewUpload } from './src/LewUpload.vue' 2 | export * from './src/props' 3 | -------------------------------------------------------------------------------- /lib/directives/backtop/index.ts: -------------------------------------------------------------------------------- 1 | export { default as LewBacktop } from './src' 2 | -------------------------------------------------------------------------------- /lib/directives/context-menu/index.ts: -------------------------------------------------------------------------------- 1 | export { default as LewContextMenu } from './src/LewContextMenu.vue' 2 | export * from './src' 3 | -------------------------------------------------------------------------------- /lib/directives/hover-menu/index.ts: -------------------------------------------------------------------------------- 1 | export * from './src' 2 | -------------------------------------------------------------------------------- /lib/directives/index.ts: -------------------------------------------------------------------------------- 1 | export * from './tooltip' 2 | export * from './backtop' 3 | export * from './loading' 4 | export * from './context-menu' 5 | export * from './hover-menu' 6 | -------------------------------------------------------------------------------- /lib/directives/loading/index.ts: -------------------------------------------------------------------------------- 1 | export * from './src' 2 | -------------------------------------------------------------------------------- /lib/directives/tooltip/index.ts: -------------------------------------------------------------------------------- 1 | export * from './src' 2 | -------------------------------------------------------------------------------- /lib/docs/App.vue: -------------------------------------------------------------------------------- 1 | 4 | -------------------------------------------------------------------------------- /lib/docs/assets/images/icon/blank.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /lib/docs/assets/images/icon/checkbox-group.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 10 | -------------------------------------------------------------------------------- /lib/docs/assets/images/icon/checkbox.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 6 | 7 | -------------------------------------------------------------------------------- /lib/docs/assets/images/icon/color-picker.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 7 | 8 | 9 | 11 | 12 | -------------------------------------------------------------------------------- /lib/docs/assets/images/icon/input.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /lib/docs/assets/images/icon/radio-group.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 6 | -------------------------------------------------------------------------------- /lib/docs/assets/images/icon/rate.svg: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 | -------------------------------------------------------------------------------- /lib/docs/assets/images/icon/select.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 7 | -------------------------------------------------------------------------------- /lib/docs/assets/images/icon/slider.svg: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 9 | -------------------------------------------------------------------------------- /lib/docs/assets/images/icon/switch.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /lib/docs/assets/images/icon/upload.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /lib/docs/assets/images/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lewkamtao/lew-ui/339ac387fde8d03b67a830b7649d332aa431d065/lib/docs/assets/images/logo.png -------------------------------------------------------------------------------- /lib/docs/axios/config.ts: -------------------------------------------------------------------------------- 1 | export const BASE_URL = '/api_admin' 2 | export const TIME_OUT = 360000 3 | -------------------------------------------------------------------------------- /lib/docs/axios/http.ts: -------------------------------------------------------------------------------- 1 | import { BASE_URL, TIME_OUT } from './config' 2 | import xwlRequest from './index' 3 | 4 | // eslint-disable-next-line new-cap 5 | const xwlRequests = new xwlRequest({ 6 | baseURL: BASE_URL, 7 | timeout: TIME_OUT 8 | }) 9 | export default xwlRequests 10 | -------------------------------------------------------------------------------- /lib/docs/docs/alert/api/index.ts: -------------------------------------------------------------------------------- 1 | export { default as props } from './props' 2 | -------------------------------------------------------------------------------- /lib/docs/docs/alert/api/props.ts: -------------------------------------------------------------------------------- 1 | import { alertProps } from 'lew-ui' 2 | import { convertProps } from '@/lib/utils' 3 | 4 | export default { 5 | title: 'Props', 6 | columnsKey: 'props', 7 | data: convertProps(alertProps) 8 | } 9 | -------------------------------------------------------------------------------- /lib/docs/docs/alert/demo/DemoAlert1.vue: -------------------------------------------------------------------------------- 1 | 28 | -------------------------------------------------------------------------------- /lib/docs/docs/alert/demo/index.ts: -------------------------------------------------------------------------------- 1 | import DemoAlert1 from './DemoAlert1.vue' 2 | import DemoAlert2 from './DemoAlert2.vue' 3 | import DemoAlert3 from './DemoAlert3.vue' 4 | 5 | import DemoAlert1Code from './DemoAlert1.vue?raw' 6 | import DemoAlert2Code from './DemoAlert2.vue?raw' 7 | import DemoAlert3Code from './DemoAlert3.vue?raw' 8 | 9 | export const demoGroup = [DemoAlert1, DemoAlert2, DemoAlert3] 10 | 11 | export const codeGroup = [DemoAlert1Code, DemoAlert2Code, DemoAlert3Code] 12 | -------------------------------------------------------------------------------- /lib/docs/docs/alert/index.ts: -------------------------------------------------------------------------------- 1 | import DemoAlert from './DemoAlert.vue' 2 | 3 | export default DemoAlert 4 | -------------------------------------------------------------------------------- /lib/docs/docs/avatar/api/index.ts: -------------------------------------------------------------------------------- 1 | export { default as props } from './props' 2 | -------------------------------------------------------------------------------- /lib/docs/docs/avatar/api/props.ts: -------------------------------------------------------------------------------- 1 | import { avatarProps } from 'lew-ui' 2 | import { convertProps } from '@/lib/utils' 3 | 4 | export default { 5 | title: 'Props', 6 | columnsKey: 'props', 7 | data: convertProps(avatarProps) 8 | } 9 | -------------------------------------------------------------------------------- /lib/docs/docs/avatar/demo/DemoAvatar1.vue: -------------------------------------------------------------------------------- 1 | 20 | -------------------------------------------------------------------------------- /lib/docs/docs/avatar/demo/DemoAvatar3.vue: -------------------------------------------------------------------------------- 1 | 8 | -------------------------------------------------------------------------------- /lib/docs/docs/avatar/demo/DemoAvatar4.vue: -------------------------------------------------------------------------------- 1 | 15 | -------------------------------------------------------------------------------- /lib/docs/docs/avatar/demo/index.ts: -------------------------------------------------------------------------------- 1 | import DemoAvatar1 from './DemoAvatar1.vue' 2 | import DemoAvatar2 from './DemoAvatar2.vue' 3 | import DemoAvatar3 from './DemoAvatar3.vue' 4 | import DemoAvatar4 from './DemoAvatar4.vue' 5 | 6 | import DemoAvatar1Code from './DemoAvatar1.vue?raw' 7 | import DemoAvatar2Code from './DemoAvatar2.vue?raw' 8 | import DemoAvatar3Code from './DemoAvatar3.vue?raw' 9 | import DemoAvatar4Code from './DemoAvatar4.vue?raw' 10 | 11 | export const demoGroup = [DemoAvatar1, DemoAvatar2, DemoAvatar3, DemoAvatar4] 12 | 13 | export const codeGroup = [ 14 | DemoAvatar1Code, 15 | DemoAvatar2Code, 16 | DemoAvatar3Code, 17 | DemoAvatar4Code 18 | ] 19 | -------------------------------------------------------------------------------- /lib/docs/docs/avatar/index.ts: -------------------------------------------------------------------------------- 1 | import DemoAvatar from './DemoAvatar.vue' 2 | 3 | export default DemoAvatar 4 | -------------------------------------------------------------------------------- /lib/docs/docs/back-top/api/events.ts: -------------------------------------------------------------------------------- 1 | export default { 2 | title: 'Events', 3 | columnsKey: 'events', 4 | orderNum: 10, 5 | data: [ 6 | { 7 | name: 'click', 8 | description: '回到顶部事件回调', 9 | params: '() => event' 10 | } 11 | ] 12 | } 13 | -------------------------------------------------------------------------------- /lib/docs/docs/back-top/api/index.ts: -------------------------------------------------------------------------------- 1 | export { default as events } from './events' 2 | export { default as props } from './props' 3 | -------------------------------------------------------------------------------- /lib/docs/docs/back-top/api/props.ts: -------------------------------------------------------------------------------- 1 | import { backTopProps } from 'lew-ui' 2 | import { convertProps } from '@/lib/utils' 3 | 4 | export default { 5 | title: 'Props', 6 | columnsKey: 'props', 7 | orderNum: 1, 8 | data: convertProps(backTopProps) 9 | } 10 | -------------------------------------------------------------------------------- /lib/docs/docs/back-top/demo/DemoBackTop1.vue: -------------------------------------------------------------------------------- 1 | 7 | -------------------------------------------------------------------------------- /lib/docs/docs/back-top/demo/DemoBackTop2.vue: -------------------------------------------------------------------------------- 1 | 10 | 15 | -------------------------------------------------------------------------------- /lib/docs/docs/back-top/demo/DemoBackTop3.vue: -------------------------------------------------------------------------------- 1 | 6 | -------------------------------------------------------------------------------- /lib/docs/docs/back-top/demo/index.ts: -------------------------------------------------------------------------------- 1 | import DemoBackTop1 from './DemoBackTop1.vue' 2 | import DemoBackTop2 from './DemoBackTop2.vue' 3 | import DemoBackTop3 from './DemoBackTop3.vue' 4 | 5 | import DemoBackTop1Code from './DemoBackTop1.vue?raw' 6 | import DemoBackTop2Code from './DemoBackTop2.vue?raw' 7 | import DemoBackTop3Code from './DemoBackTop3.vue?raw' 8 | 9 | export const demoGroup = [DemoBackTop1, DemoBackTop2, DemoBackTop3] 10 | 11 | export const codeGroup = [DemoBackTop1Code, DemoBackTop2Code, DemoBackTop3Code] 12 | -------------------------------------------------------------------------------- /lib/docs/docs/back-top/index.ts: -------------------------------------------------------------------------------- 1 | import DemoBackTop from './DemoBackTop.vue' 2 | 3 | export default DemoBackTop 4 | -------------------------------------------------------------------------------- /lib/docs/docs/badge/api/index.ts: -------------------------------------------------------------------------------- 1 | export { default as props } from './props' 2 | -------------------------------------------------------------------------------- /lib/docs/docs/badge/api/props.ts: -------------------------------------------------------------------------------- 1 | import { badgeProps } from 'lew-ui' 2 | import { convertProps } from '@/lib/utils' 3 | 4 | export default { 5 | title: 'Props', 6 | columnsKey: 'props', 7 | data: convertProps(badgeProps) 8 | } 9 | -------------------------------------------------------------------------------- /lib/docs/docs/badge/demo/DemoBadge2.vue: -------------------------------------------------------------------------------- 1 | 4 | 17 | -------------------------------------------------------------------------------- /lib/docs/docs/badge/demo/DemoBadge3.vue: -------------------------------------------------------------------------------- 1 | 15 | -------------------------------------------------------------------------------- /lib/docs/docs/badge/demo/DemoBadge4.vue: -------------------------------------------------------------------------------- 1 | 10 | -------------------------------------------------------------------------------- /lib/docs/docs/badge/demo/DemoBadge5.vue: -------------------------------------------------------------------------------- 1 | 4 | 12 | -------------------------------------------------------------------------------- /lib/docs/docs/badge/index.ts: -------------------------------------------------------------------------------- 1 | import DemoBadge from './DemoBadge.vue' 2 | 3 | export default DemoBadge 4 | -------------------------------------------------------------------------------- /lib/docs/docs/breadcrumb/api/breadcrumbOptions.ts: -------------------------------------------------------------------------------- 1 | export default { 2 | title: 'BreadcrumbOptions', 3 | columnsKey: 'props', 4 | orderNum: 12, 5 | data: [ 6 | { 7 | name: 'label', 8 | type: 'String' 9 | }, 10 | { 11 | name: 'value', 12 | type: 'String' 13 | }, 14 | { 15 | name: 'active', 16 | description: '是否是选中状态', 17 | type: 'Boolean', 18 | default: 'false' 19 | } 20 | ] 21 | } 22 | -------------------------------------------------------------------------------- /lib/docs/docs/breadcrumb/api/events.ts: -------------------------------------------------------------------------------- 1 | export default { 2 | title: 'Events', 3 | columnsKey: 'events', 4 | orderNum: 20, 5 | data: [ 6 | { 7 | name: 'change', 8 | type: '() => event' 9 | } 10 | ] 11 | } 12 | -------------------------------------------------------------------------------- /lib/docs/docs/breadcrumb/api/index.ts: -------------------------------------------------------------------------------- 1 | export { default as props } from './props' 2 | export { default as events } from './events' 3 | export { default as breadcrumbOptions } from './breadcrumbOptions' 4 | -------------------------------------------------------------------------------- /lib/docs/docs/breadcrumb/api/props.ts: -------------------------------------------------------------------------------- 1 | import { breadcrumbProps } from 'lew-ui' 2 | import { convertProps } from '@/lib/utils' 3 | 4 | export default { 5 | title: 'Props', 6 | columnsKey: 'props', 7 | orderNum: 1, 8 | data: convertProps(breadcrumbProps) 9 | } 10 | -------------------------------------------------------------------------------- /lib/docs/docs/breadcrumb/demo/DemoBreadcrumb2.vue: -------------------------------------------------------------------------------- 1 | 26 | 27 | 30 | -------------------------------------------------------------------------------- /lib/docs/docs/breadcrumb/demo/index.ts: -------------------------------------------------------------------------------- 1 | import DemoBreadcrumb1 from './DemoBreadcrumb1.vue' 2 | import DemoBreadcrumb2 from './DemoBreadcrumb2.vue' 3 | import DemoBreadcrumb3 from './DemoBreadcrumb3.vue' 4 | 5 | import DemoBreadcrumb1Code from './DemoBreadcrumb1.vue?raw' 6 | import DemoBreadcrumb2Code from './DemoBreadcrumb2.vue?raw' 7 | import DemoBreadcrumb3Code from './DemoBreadcrumb3.vue?raw' 8 | 9 | export const demoGroup = [DemoBreadcrumb1, DemoBreadcrumb2, DemoBreadcrumb3] 10 | 11 | export const codeGroup = [ 12 | DemoBreadcrumb1Code, 13 | DemoBreadcrumb2Code, 14 | DemoBreadcrumb3Code 15 | ] 16 | -------------------------------------------------------------------------------- /lib/docs/docs/breadcrumb/index.ts: -------------------------------------------------------------------------------- 1 | import DemoBreadcrumb from './DemoBreadcrumb.vue' 2 | 3 | export default DemoBreadcrumb 4 | -------------------------------------------------------------------------------- /lib/docs/docs/button/api/index.ts: -------------------------------------------------------------------------------- 1 | export { default as props } from './props' 2 | -------------------------------------------------------------------------------- /lib/docs/docs/button/api/props.ts: -------------------------------------------------------------------------------- 1 | import { buttonProps } from 'lew-ui' 2 | import { convertProps } from '@/lib/utils' 3 | 4 | export default { 5 | title: 'Props', 6 | columnsKey: 'props', 7 | data: convertProps(buttonProps) 8 | } 9 | -------------------------------------------------------------------------------- /lib/docs/docs/button/demo/DemoButton1.vue: -------------------------------------------------------------------------------- 1 | 12 | -------------------------------------------------------------------------------- /lib/docs/docs/button/demo/DemoButton3.vue: -------------------------------------------------------------------------------- 1 | 4 | 5 | 16 | -------------------------------------------------------------------------------- /lib/docs/docs/button/demo/DemoButton4.vue: -------------------------------------------------------------------------------- 1 | 9 | -------------------------------------------------------------------------------- /lib/docs/docs/button/demo/DemoButton5.vue: -------------------------------------------------------------------------------- 1 | 7 | -------------------------------------------------------------------------------- /lib/docs/docs/button/demo/DemoButton6.vue: -------------------------------------------------------------------------------- 1 | 11 | 12 | 17 | -------------------------------------------------------------------------------- /lib/docs/docs/button/index.ts: -------------------------------------------------------------------------------- 1 | import DemoButton from './DemoButton.vue' 2 | 3 | export default DemoButton 4 | -------------------------------------------------------------------------------- /lib/docs/docs/cascader/api/index.ts: -------------------------------------------------------------------------------- 1 | export { default as props } from './props' 2 | export { default as model } from './model' 3 | export { default as options } from './options' 4 | -------------------------------------------------------------------------------- /lib/docs/docs/cascader/api/model.ts: -------------------------------------------------------------------------------- 1 | import { cascaderModel } from 'lew-ui' 2 | import { convertProps } from '@/lib/utils' 3 | 4 | export default { 5 | title: 'Model', 6 | columnsKey: 'model', 7 | orderNum: 10, 8 | data: convertProps(cascaderModel) 9 | } 10 | -------------------------------------------------------------------------------- /lib/docs/docs/cascader/api/options.ts: -------------------------------------------------------------------------------- 1 | export default { 2 | title: 'Options', 3 | columnsKey: 'props', 4 | data: [ 5 | { 6 | name: 'label', 7 | description: '选项组的标签', 8 | type: 'string', 9 | default: '-' 10 | }, 11 | { 12 | name: 'value', 13 | description: '值', 14 | type: 'string', 15 | default: '-' 16 | }, 17 | { 18 | name: 'isLeaf', 19 | description: '是否是叶子节点', 20 | type: 'boolean', 21 | default: '-' 22 | }, 23 | { 24 | name: 'children', 25 | description: '值', 26 | type: 'CascaderOptions', 27 | default: '-' 28 | }, 29 | { 30 | name: 'disabled', 31 | description: '禁用', 32 | type: 'boolean', 33 | default: '-' 34 | } 35 | ] 36 | } 37 | -------------------------------------------------------------------------------- /lib/docs/docs/cascader/api/props.ts: -------------------------------------------------------------------------------- 1 | import { cascaderProps } from 'lew-ui' 2 | import { convertProps } from '@/lib/utils' 3 | 4 | export default { 5 | title: 'Props', 6 | columnsKey: 'props', 7 | data: convertProps(cascaderProps) 8 | } 9 | -------------------------------------------------------------------------------- /lib/docs/docs/cascader/demo/DemoCascader2.vue: -------------------------------------------------------------------------------- 1 | 8 | 9 | 14 | -------------------------------------------------------------------------------- /lib/docs/docs/cascader/demo/DemoCascader6.vue: -------------------------------------------------------------------------------- 1 | 5 | 6 | 11 | -------------------------------------------------------------------------------- /lib/docs/docs/cascader/demo/DemoCascader7.vue: -------------------------------------------------------------------------------- 1 | 5 | 6 | 11 | -------------------------------------------------------------------------------- /lib/docs/docs/cascader/index.ts: -------------------------------------------------------------------------------- 1 | import DemoCascader from './DemoCascader.vue' 2 | 3 | export default DemoCascader 4 | -------------------------------------------------------------------------------- /lib/docs/docs/checkbox/api/checkboxEvents.ts: -------------------------------------------------------------------------------- 1 | export default { 2 | title: 'Events(Checkbox)', 3 | columnsKey: 'events', 4 | data: [ 5 | { 6 | name: 'change' 7 | } 8 | ] 9 | } 10 | -------------------------------------------------------------------------------- /lib/docs/docs/checkbox/api/checkboxModel.ts: -------------------------------------------------------------------------------- 1 | import { checkboxModel } from 'lew-ui' 2 | import { convertProps } from '@/lib/utils' 3 | 4 | export default { 5 | title: 'Model(Checkbox)', 6 | columnsKey: 'model', 7 | orderNum: 2, 8 | data: convertProps(checkboxModel) 9 | } 10 | -------------------------------------------------------------------------------- /lib/docs/docs/checkbox/api/checkboxProps.ts: -------------------------------------------------------------------------------- 1 | import { checkboxProps } from 'lew-ui' 2 | import { convertProps } from '@/lib/utils' 3 | 4 | export default { 5 | title: 'Props(Checkbox)', 6 | columnsKey: 'props', 7 | orderNum: 4, 8 | data: convertProps(checkboxProps) 9 | } 10 | -------------------------------------------------------------------------------- /lib/docs/docs/checkbox/api/events.ts: -------------------------------------------------------------------------------- 1 | export default { 2 | title: 'Events(CheckboxGroup)', 3 | columnsKey: 'events', 4 | data: [ 5 | { 6 | name: 'change' 7 | } 8 | ] 9 | } 10 | -------------------------------------------------------------------------------- /lib/docs/docs/checkbox/api/index.ts: -------------------------------------------------------------------------------- 1 | export { default as props } from './props' 2 | export { default as model } from './model' 3 | export { default as checkboxModel } from './checkboxModel' 4 | export { default as checkboxProps } from './checkboxProps' 5 | export { default as checkboxOptions } from './options' 6 | export { default as checkboxEvents } from './checkboxEvents' 7 | export { default as events } from './events' 8 | -------------------------------------------------------------------------------- /lib/docs/docs/checkbox/api/model.ts: -------------------------------------------------------------------------------- 1 | import { checkboxGroupModel } from 'lew-ui' 2 | import { convertProps } from '@/lib/utils' 3 | 4 | export default { 5 | title: 'Model(CheckboxGroup)', 6 | columnsKey: 'model', 7 | orderNum: 1, 8 | data: convertProps(checkboxGroupModel) 9 | } 10 | -------------------------------------------------------------------------------- /lib/docs/docs/checkbox/api/options.ts: -------------------------------------------------------------------------------- 1 | export default { 2 | title: 'Options', 3 | columnsKey: 'options', 4 | orderNum: 5, 5 | data: [ 6 | { 7 | name: 'label', 8 | description: '标题', 9 | type: 'string', 10 | default: '-' 11 | }, 12 | { 13 | name: 'value', 14 | description: '值', 15 | type: 'string', 16 | default: '' 17 | }, 18 | { 19 | name: 'disabled', 20 | description: '禁用', 21 | type: 'boolean', 22 | default: 'false' 23 | } 24 | ] 25 | } 26 | -------------------------------------------------------------------------------- /lib/docs/docs/checkbox/api/props.ts: -------------------------------------------------------------------------------- 1 | import { checkboxGroupProps } from 'lew-ui' 2 | import { convertProps } from '@/lib/utils' 3 | 4 | export default { 5 | title: 'Props(CheckboxGroup)', 6 | columnsKey: 'props', 7 | orderNum: 3, 8 | data: convertProps(checkboxGroupProps) 9 | } 10 | -------------------------------------------------------------------------------- /lib/docs/docs/checkbox/demo/DemoCheckbox1.vue: -------------------------------------------------------------------------------- 1 | 11 | 12 | 18 | -------------------------------------------------------------------------------- /lib/docs/docs/checkbox/demo/DemoCheckbox2.vue: -------------------------------------------------------------------------------- 1 | 11 | 12 | 19 | -------------------------------------------------------------------------------- /lib/docs/docs/checkbox/demo/DemoCheckbox3.vue: -------------------------------------------------------------------------------- 1 | 16 | 17 | 25 | -------------------------------------------------------------------------------- /lib/docs/docs/checkbox/demo/DemoCheckbox5.vue: -------------------------------------------------------------------------------- 1 | 16 | 17 | 25 | -------------------------------------------------------------------------------- /lib/docs/docs/checkbox/demo/DemoCheckbox7.vue: -------------------------------------------------------------------------------- 1 | 4 | 5 | 11 | -------------------------------------------------------------------------------- /lib/docs/docs/checkbox/index.ts: -------------------------------------------------------------------------------- 1 | import DemoCheckbox from './DemoCheckbox.vue' 2 | 3 | export default DemoCheckbox 4 | -------------------------------------------------------------------------------- /lib/docs/docs/collapse/api/collapseItemModel.ts: -------------------------------------------------------------------------------- 1 | import { collapseItemModel } from 'lew-ui' 2 | import { convertProps } from '@/lib/utils' 3 | 4 | export default { 5 | title: 'Model(CollapseItem)', 6 | columnsKey: 'model', 7 | orderNum: 2, 8 | data: convertProps(collapseItemModel) 9 | } 10 | -------------------------------------------------------------------------------- /lib/docs/docs/collapse/api/collapseItemProps.ts: -------------------------------------------------------------------------------- 1 | import { collapseItemProps } from 'lew-ui' 2 | import { convertProps } from '@/lib/utils' 3 | 4 | export default { 5 | title: 'Props(CollapseItem)', 6 | columnsKey: 'props', 7 | orderNum: 4, 8 | data: convertProps(collapseItemProps) 9 | } 10 | -------------------------------------------------------------------------------- /lib/docs/docs/collapse/api/index.ts: -------------------------------------------------------------------------------- 1 | export { default as props } from './props' 2 | export { default as model } from './model' 3 | export { default as collapseItemModel } from './collapseItemModel' 4 | export { default as collapseItemProps } from './collapseItemProps' 5 | -------------------------------------------------------------------------------- /lib/docs/docs/collapse/api/model.ts: -------------------------------------------------------------------------------- 1 | import { collapseModel } from 'lew-ui' 2 | import { convertProps } from '@/lib/utils' 3 | 4 | export default { 5 | title: 'Model', 6 | columnsKey: 'model', 7 | orderNum: 1, 8 | data: convertProps(collapseModel) 9 | } 10 | -------------------------------------------------------------------------------- /lib/docs/docs/collapse/api/props.ts: -------------------------------------------------------------------------------- 1 | import { collapseProps } from 'lew-ui' 2 | import { convertProps } from '@/lib/utils' 3 | 4 | export default { 5 | title: 'Props', 6 | columnsKey: 'props', 7 | orderNum: 3, 8 | data: convertProps(collapseProps) 9 | } 10 | -------------------------------------------------------------------------------- /lib/docs/docs/collapse/demo/index.ts: -------------------------------------------------------------------------------- 1 | import DemoCollapse1 from './DemoCollapse1.vue' 2 | import DemoCollapse2 from './DemoCollapse2.vue' 3 | import DemoCollapse3 from './DemoCollapse3.vue' 4 | 5 | import DemoCollapse1Code from './DemoCollapse1.vue?raw' 6 | import DemoCollapse2Code from './DemoCollapse2.vue?raw' 7 | import DemoCollapse3Code from './DemoCollapse3.vue?raw' 8 | 9 | export const demoGroup = [DemoCollapse1, DemoCollapse2, DemoCollapse3] 10 | 11 | export const codeGroup = [ 12 | DemoCollapse1Code, 13 | DemoCollapse2Code, 14 | DemoCollapse3Code 15 | ] 16 | -------------------------------------------------------------------------------- /lib/docs/docs/collapse/index.ts: -------------------------------------------------------------------------------- 1 | import DemoCollapse from './DemoCollapse.vue' 2 | 3 | export default DemoCollapse 4 | -------------------------------------------------------------------------------- /lib/docs/docs/color-picker/api/index.ts: -------------------------------------------------------------------------------- 1 | export { default as props } from './props' 2 | export { default as model } from './model' 3 | -------------------------------------------------------------------------------- /lib/docs/docs/color-picker/api/model.ts: -------------------------------------------------------------------------------- 1 | import { colorPickerModel } from 'lew-ui' 2 | import { convertProps } from '@/lib/utils' 3 | 4 | export default { 5 | title: 'Model', 6 | columnsKey: 'model', 7 | orderNum: 1, 8 | data: convertProps(colorPickerModel) 9 | } 10 | -------------------------------------------------------------------------------- /lib/docs/docs/color-picker/api/props.ts: -------------------------------------------------------------------------------- 1 | import { colorPickerProps } from 'lew-ui' 2 | import { convertProps } from '@/lib/utils' 3 | 4 | export default { 5 | title: 'Props', 6 | columnsKey: 'props', 7 | orderNum: 3, 8 | data: convertProps(colorPickerProps) 9 | } 10 | -------------------------------------------------------------------------------- /lib/docs/docs/color-picker/demo/DemoColorPicker1.vue: -------------------------------------------------------------------------------- 1 | 4 | 5 | 10 | -------------------------------------------------------------------------------- /lib/docs/docs/color-picker/demo/DemoColorPicker2.vue: -------------------------------------------------------------------------------- 1 | 4 | 5 | 12 | -------------------------------------------------------------------------------- /lib/docs/docs/color-picker/demo/DemoColorPicker3.vue: -------------------------------------------------------------------------------- 1 | 4 | 5 | 12 | -------------------------------------------------------------------------------- /lib/docs/docs/color-picker/demo/DemoColorPicker4.vue: -------------------------------------------------------------------------------- 1 | 4 | 5 | 10 | -------------------------------------------------------------------------------- /lib/docs/docs/color-picker/demo/DemoColorPicker5.vue: -------------------------------------------------------------------------------- 1 | 4 | 5 | 10 | -------------------------------------------------------------------------------- /lib/docs/docs/color-picker/index.ts: -------------------------------------------------------------------------------- 1 | import DemoCollapse from './DemoCollapse.vue' 2 | 3 | export default DemoCollapse 4 | -------------------------------------------------------------------------------- /lib/docs/docs/context-menu/api/index.ts: -------------------------------------------------------------------------------- 1 | export { default as props } from './props' 2 | export { default as options } from './options' 3 | -------------------------------------------------------------------------------- /lib/docs/docs/context-menu/api/props.ts: -------------------------------------------------------------------------------- 1 | import { contextMenuProps } from 'lew-ui' 2 | import { convertProps } from '@/lib/utils' 3 | 4 | export default { 5 | title: 'Props', 6 | columnsKey: 'props', 7 | orderNum: 1, 8 | data: convertProps(contextMenuProps) 9 | } 10 | -------------------------------------------------------------------------------- /lib/docs/docs/context-menu/index.ts: -------------------------------------------------------------------------------- 1 | import DemoContextMenu from './DemoContextMenu.vue' 2 | 3 | export default DemoContextMenu 4 | -------------------------------------------------------------------------------- /lib/docs/docs/date-picker/api/events.ts: -------------------------------------------------------------------------------- 1 | export default { 2 | title: 'Events', 3 | columnsKey: 'events', 4 | orderNum: 3, 5 | data: [ 6 | { 7 | name: 'change', 8 | description: '值改变触发', 9 | params: '() => value' 10 | }, 11 | { 12 | name: 'focus', 13 | description: '获取焦点时触发', 14 | params: '() => value' 15 | }, 16 | { 17 | name: 'blur', 18 | description: '选择框失去焦点时触发', 19 | params: '() => value' 20 | }, 21 | { 22 | name: 'clear', 23 | description: '点击清除按钮时触发', 24 | params: '() => value' 25 | } 26 | ] 27 | } 28 | -------------------------------------------------------------------------------- /lib/docs/docs/date-picker/api/index.ts: -------------------------------------------------------------------------------- 1 | export { default as props } from './props' 2 | export { default as model } from './model' 3 | export { default as events } from './events' 4 | -------------------------------------------------------------------------------- /lib/docs/docs/date-picker/api/model.ts: -------------------------------------------------------------------------------- 1 | import { datePickerModel } from 'lew-ui' 2 | import { convertProps } from '@/lib/utils' 3 | 4 | export default { 5 | title: 'Model', 6 | columnsKey: 'model', 7 | orderNum: 1, 8 | data: convertProps(datePickerModel) 9 | } 10 | -------------------------------------------------------------------------------- /lib/docs/docs/date-picker/api/props.ts: -------------------------------------------------------------------------------- 1 | import { datePickerProps } from 'lew-ui' 2 | import { convertProps } from '@/lib/utils' 3 | 4 | export default { 5 | title: 'Props', 6 | columnsKey: 'props', 7 | orderNum: 2, 8 | data: convertProps(datePickerProps) 9 | } 10 | -------------------------------------------------------------------------------- /lib/docs/docs/date-picker/demo/DemoDatePicker1.vue: -------------------------------------------------------------------------------- 1 | 4 | 5 | 8 | -------------------------------------------------------------------------------- /lib/docs/docs/date-picker/demo/DemoDatePicker2.vue: -------------------------------------------------------------------------------- 1 | 4 | 5 | 8 | -------------------------------------------------------------------------------- /lib/docs/docs/date-picker/demo/DemoDatePicker3.vue: -------------------------------------------------------------------------------- 1 | 8 | 9 | 17 | -------------------------------------------------------------------------------- /lib/docs/docs/date-picker/demo/DemoDatePicker4.vue: -------------------------------------------------------------------------------- 1 | 24 | 25 | 30 | -------------------------------------------------------------------------------- /lib/docs/docs/date-picker/demo/DemoDatePicker5.vue: -------------------------------------------------------------------------------- 1 | 8 | 9 | 18 | -------------------------------------------------------------------------------- /lib/docs/docs/date-picker/demo/DemoDatePicker6.vue: -------------------------------------------------------------------------------- 1 | 8 | 9 | 19 | -------------------------------------------------------------------------------- /lib/docs/docs/date-picker/index.ts: -------------------------------------------------------------------------------- 1 | import DemoDatePicker from './DemoDatePicker.vue' 2 | 3 | export default DemoDatePicker 4 | -------------------------------------------------------------------------------- /lib/docs/docs/date-range-picker/api/events.ts: -------------------------------------------------------------------------------- 1 | export default { 2 | title: 'Events', 3 | columnsKey: 'events', 4 | orderNum: 3, 5 | data: [ 6 | { 7 | name: 'change', 8 | description: '值改变触发', 9 | params: '() => value' 10 | }, 11 | { 12 | name: 'focus', 13 | description: '获取焦点时触发', 14 | params: '() => value' 15 | }, 16 | { 17 | name: 'blur', 18 | description: '选择框失去焦点时触发', 19 | params: '() => value' 20 | }, 21 | { 22 | name: 'clear', 23 | description: '点击清除按钮时触发', 24 | params: '() => value' 25 | } 26 | ] 27 | } 28 | -------------------------------------------------------------------------------- /lib/docs/docs/date-range-picker/api/index.ts: -------------------------------------------------------------------------------- 1 | export { default as props } from './props' 2 | export { default as model } from './model' 3 | export { default as events } from './events' 4 | -------------------------------------------------------------------------------- /lib/docs/docs/date-range-picker/api/model.ts: -------------------------------------------------------------------------------- 1 | import { datePickerModel } from 'lew-ui' 2 | import { convertProps } from '@/lib/utils' 3 | 4 | export default { 5 | title: 'Model', 6 | columnsKey: 'model', 7 | orderNum: 1, 8 | data: convertProps(datePickerModel) 9 | } 10 | -------------------------------------------------------------------------------- /lib/docs/docs/date-range-picker/api/props.ts: -------------------------------------------------------------------------------- 1 | import { dateRangePickerProps } from 'lew-ui' 2 | import { convertProps } from '@/lib/utils' 3 | 4 | export default { 5 | title: 'Props', 6 | columnsKey: 'props', 7 | orderNum: 2, 8 | data: convertProps(dateRangePickerProps) 9 | } 10 | -------------------------------------------------------------------------------- /lib/docs/docs/date-range-picker/demo/DemoDateRangePicker1.vue: -------------------------------------------------------------------------------- 1 | 4 | 5 | 12 | -------------------------------------------------------------------------------- /lib/docs/docs/date-range-picker/demo/DemoDateRangePicker2.vue: -------------------------------------------------------------------------------- 1 | 4 | 5 | 10 | -------------------------------------------------------------------------------- /lib/docs/docs/date-range-picker/demo/DemoDateRangePicker3.vue: -------------------------------------------------------------------------------- 1 | 4 | 5 | 11 | -------------------------------------------------------------------------------- /lib/docs/docs/date-range-picker/demo/index.ts: -------------------------------------------------------------------------------- 1 | import DemoDateRangePicker1 from './DemoDateRangePicker1.vue' 2 | import DemoDateRangePicker2 from './DemoDateRangePicker2.vue' 3 | import DemoDateRangePicker3 from './DemoDateRangePicker3.vue' 4 | import DemoDateRangePicker1Code from './DemoDateRangePicker1.vue?raw' 5 | import DemoDateRangePicker2Code from './DemoDateRangePicker2.vue?raw' 6 | import DemoDateRangePicker3Code from './DemoDateRangePicker3.vue?raw' 7 | 8 | export const demoGroup = [ 9 | DemoDateRangePicker1, 10 | DemoDateRangePicker2, 11 | DemoDateRangePicker3 12 | ] 13 | 14 | export const codeGroup = [ 15 | DemoDateRangePicker1Code, 16 | DemoDateRangePicker2Code, 17 | DemoDateRangePicker3Code 18 | ] 19 | -------------------------------------------------------------------------------- /lib/docs/docs/date-range-picker/index.ts: -------------------------------------------------------------------------------- 1 | import DemoDateRangePicker from './DemoDateRangePicker.vue' 2 | 3 | export default DemoDateRangePicker 4 | -------------------------------------------------------------------------------- /lib/docs/docs/desc/api/descItemProps.ts: -------------------------------------------------------------------------------- 1 | import { descItemProps } from 'lew-ui' 2 | import { convertProps } from '@/lib/utils' 3 | 4 | export default { 5 | title: 'descItemProps', 6 | columnsKey: 'props', 7 | orderNum: 12, 8 | data: convertProps(descItemProps) 9 | } 10 | -------------------------------------------------------------------------------- /lib/docs/docs/desc/api/index.ts: -------------------------------------------------------------------------------- 1 | export { default as props } from './props' 2 | export { default as descItemProps } from './descItemProps' 3 | -------------------------------------------------------------------------------- /lib/docs/docs/desc/api/props.ts: -------------------------------------------------------------------------------- 1 | import { descProps } from 'lew-ui' 2 | import { convertProps } from '@/lib/utils' 3 | 4 | export default { 5 | title: 'Props', 6 | columnsKey: 'props', 7 | orderNum: 10, 8 | data: convertProps(descProps) 9 | } 10 | -------------------------------------------------------------------------------- /lib/docs/docs/desc/demo/index.ts: -------------------------------------------------------------------------------- 1 | import DemoDesc1 from './DemoDesc1.vue' 2 | import DemoDesc2 from './DemoDesc2.vue' 3 | import DemoDesc3 from './DemoDesc3.vue' 4 | import DemoDesc4 from './DemoDesc4.vue' 5 | 6 | import DemoDesc1Code from './DemoDesc1.vue?raw' 7 | import DemoDesc2Code from './DemoDesc2.vue?raw' 8 | import DemoDesc3Code from './DemoDesc3.vue?raw' 9 | import DemoDesc4Code from './DemoDesc4.vue?raw' 10 | 11 | export const demoGroup = [DemoDesc1, DemoDesc2, DemoDesc3, DemoDesc4] 12 | 13 | export const codeGroup = [ 14 | DemoDesc1Code, 15 | DemoDesc2Code, 16 | DemoDesc3Code, 17 | DemoDesc4Code 18 | ] 19 | -------------------------------------------------------------------------------- /lib/docs/docs/desc/index.ts: -------------------------------------------------------------------------------- 1 | import DemoDesc from './DemoDesc.vue' 2 | 3 | export default DemoDesc 4 | -------------------------------------------------------------------------------- /lib/docs/docs/dialog/api/events.ts: -------------------------------------------------------------------------------- 1 | export default { 2 | title: 'Events', 3 | columnsKey: 'events', 4 | data: [ 5 | { 6 | name: 'ok', 7 | description: '确认回调', 8 | params: '() => {}' 9 | }, 10 | { 11 | name: 'cancel', 12 | description: '取消回调', 13 | params: '() => {}' 14 | } 15 | ] 16 | } 17 | -------------------------------------------------------------------------------- /lib/docs/docs/dialog/api/index.ts: -------------------------------------------------------------------------------- 1 | export { default as props } from './props' 2 | export { default as events } from './events' 3 | -------------------------------------------------------------------------------- /lib/docs/docs/dialog/api/props.ts: -------------------------------------------------------------------------------- 1 | import { dialogProps } from 'lew-ui' 2 | import { convertProps } from '@/lib/utils' 3 | 4 | export default { 5 | title: 'Props', 6 | columnsKey: 'props', 7 | orderNum: 10, 8 | data: convertProps(dialogProps) 9 | } 10 | -------------------------------------------------------------------------------- /lib/docs/docs/dialog/demo/DemoDialog2.vue: -------------------------------------------------------------------------------- 1 | 23 | 26 | -------------------------------------------------------------------------------- /lib/docs/docs/dialog/demo/index.ts: -------------------------------------------------------------------------------- 1 | import DemoDialog1 from './DemoDialog1.vue' 2 | import DemoDialog1Code from './DemoDialog1.vue?raw' 3 | import DemoDialog2 from './DemoDialog2.vue' 4 | import DemoDialog2Code from './DemoDialog2.vue?raw' 5 | 6 | export const demoGroup = [DemoDialog1, DemoDialog2] 7 | 8 | export const codeGroup = [DemoDialog1Code, DemoDialog2Code] 9 | -------------------------------------------------------------------------------- /lib/docs/docs/dialog/index.ts: -------------------------------------------------------------------------------- 1 | import DemoDialog from './DemoDialog.vue' 2 | 3 | export default DemoDialog 4 | -------------------------------------------------------------------------------- /lib/docs/docs/drawer/api/index.ts: -------------------------------------------------------------------------------- 1 | export { default as props } from './props' 2 | export { default as model } from './model' 3 | -------------------------------------------------------------------------------- /lib/docs/docs/drawer/api/model.ts: -------------------------------------------------------------------------------- 1 | import { drawerModel } from 'lew-ui' 2 | import { convertProps } from '@/lib/utils' 3 | 4 | export default { 5 | title: 'Model', 6 | columnsKey: 'model', 7 | orderNum: 1, 8 | data: convertProps(drawerModel) 9 | } 10 | -------------------------------------------------------------------------------- /lib/docs/docs/drawer/api/props.ts: -------------------------------------------------------------------------------- 1 | import { drawerProps } from 'lew-ui' 2 | import { convertProps } from '@/lib/utils' 3 | 4 | export default { 5 | title: 'Props', 6 | columnsKey: 'props', 7 | orderNum: 10, 8 | data: convertProps(drawerProps) 9 | } 10 | -------------------------------------------------------------------------------- /lib/docs/docs/drawer/demo/DemoDrawer4.vue: -------------------------------------------------------------------------------- 1 | 4 | 24 | -------------------------------------------------------------------------------- /lib/docs/docs/drawer/demo/index.ts: -------------------------------------------------------------------------------- 1 | import DemoDrawer1 from './DemoDrawer1.vue' 2 | import DemoDrawer2 from './DemoDrawer2.vue' 3 | import DemoDrawer3 from './DemoDrawer3.vue' 4 | import DemoDrawer4 from './DemoDrawer4.vue' 5 | 6 | import DemoDrawer1Code from './DemoDrawer1.vue?raw' 7 | import DemoDrawer2Code from './DemoDrawer2.vue?raw' 8 | import DemoDrawer3Code from './DemoDrawer3.vue?raw' 9 | import DemoDrawer4Code from './DemoDrawer4.vue?raw' 10 | 11 | export const demoGroup = [DemoDrawer1, DemoDrawer2, DemoDrawer3, DemoDrawer4] 12 | 13 | export const codeGroup = [ 14 | DemoDrawer1Code, 15 | DemoDrawer2Code, 16 | DemoDrawer3Code, 17 | DemoDrawer4Code 18 | ] 19 | -------------------------------------------------------------------------------- /lib/docs/docs/drawer/index.ts: -------------------------------------------------------------------------------- 1 | import DemoDrawer from './DemoDrawer.vue' 2 | 3 | export default DemoDrawer 4 | -------------------------------------------------------------------------------- /lib/docs/docs/dropdown/api/events.ts: -------------------------------------------------------------------------------- 1 | export default { 2 | title: 'Events', 3 | columnsKey: 'events', 4 | orderNum: 10, 5 | data: [ 6 | { 7 | name: 'show', 8 | type: 'function', 9 | default: '() => {}' 10 | }, 11 | { 12 | name: 'hide', 13 | type: 'function', 14 | default: '() => {}' 15 | }, 16 | { 17 | name: 'change', 18 | type: 'function', 19 | default: '() => {}' 20 | } 21 | ] 22 | } 23 | -------------------------------------------------------------------------------- /lib/docs/docs/dropdown/api/index.ts: -------------------------------------------------------------------------------- 1 | export { default as props } from './props' 2 | export { default as events } from './events' 3 | export { default as contextMenus } from '../../context-menu/api/options' 4 | -------------------------------------------------------------------------------- /lib/docs/docs/dropdown/api/props.ts: -------------------------------------------------------------------------------- 1 | import { dropdownProps } from 'lew-ui' 2 | import { convertProps } from '@/lib/utils' 3 | 4 | export default { 5 | title: 'Props', 6 | columnsKey: 'props', 7 | orderNum: 1, 8 | data: convertProps(dropdownProps) 9 | } 10 | -------------------------------------------------------------------------------- /lib/docs/docs/dropdown/demo/index.ts: -------------------------------------------------------------------------------- 1 | import DemoDropdown1 from './DemoDropdown1.vue' 2 | import DemoDropdown2 from './DemoDropdown2.vue' 3 | import DemoDropdown3 from './DemoDropdown3.vue' 4 | 5 | import DemoDropdown1Code from './DemoDropdown1.vue?raw' 6 | import DemoDropdown2Code from './DemoDropdown2.vue?raw' 7 | import DemoDropdown3Code from './DemoDropdown3.vue?raw' 8 | 9 | export const demoGroup = [DemoDropdown1, DemoDropdown2, DemoDropdown3] 10 | 11 | export const codeGroup = [ 12 | DemoDropdown1Code, 13 | DemoDropdown2Code, 14 | DemoDropdown3Code 15 | ] 16 | -------------------------------------------------------------------------------- /lib/docs/docs/dropdown/index.ts: -------------------------------------------------------------------------------- 1 | import DemoDropdown from './DemoDropdown.vue' 2 | 3 | export default DemoDropdown 4 | -------------------------------------------------------------------------------- /lib/docs/docs/empty/api/index.ts: -------------------------------------------------------------------------------- 1 | export { default as props } from './props' 2 | -------------------------------------------------------------------------------- /lib/docs/docs/empty/api/props.ts: -------------------------------------------------------------------------------- 1 | import { emptyProps } from 'lew-ui' 2 | import { convertProps } from '@/lib/utils' 3 | 4 | export default { 5 | title: 'Props', 6 | columnsKey: 'props', 7 | orderNum: 1, 8 | data: convertProps(emptyProps) 9 | } 10 | -------------------------------------------------------------------------------- /lib/docs/docs/empty/demo/DemoEmpty1.vue: -------------------------------------------------------------------------------- 1 | 2 | 3 | 17 | -------------------------------------------------------------------------------- /lib/docs/docs/empty/demo/index.ts: -------------------------------------------------------------------------------- 1 | import DemoEmpty1 from './DemoEmpty1.vue' 2 | 3 | import DemoEmpty1Code from './DemoEmpty1.vue?raw' 4 | 5 | export const demoGroup = [DemoEmpty1] 6 | 7 | export const codeGroup = [DemoEmpty1Code] 8 | -------------------------------------------------------------------------------- /lib/docs/docs/empty/index.ts: -------------------------------------------------------------------------------- 1 | import DemoEmpty from './DemoEmpty.vue' 2 | 3 | export default DemoEmpty 4 | -------------------------------------------------------------------------------- /lib/docs/docs/flex/api/index.ts: -------------------------------------------------------------------------------- 1 | export { default as props } from './props' 2 | -------------------------------------------------------------------------------- /lib/docs/docs/flex/api/props.ts: -------------------------------------------------------------------------------- 1 | import { flexProps } from 'lew-ui' 2 | import { convertProps } from '@/lib/utils' 3 | 4 | export default { 5 | title: 'Props', 6 | columnsKey: 'props', 7 | orderNum: 10, 8 | data: convertProps(flexProps) 9 | } 10 | -------------------------------------------------------------------------------- /lib/docs/docs/flex/demo/index.ts: -------------------------------------------------------------------------------- 1 | import DemoFlex1 from './DemoFlex1.vue' 2 | import DemoFlex2 from './DemoFlex2.vue' 3 | import DemoFlex3 from './DemoFlex3.vue' 4 | 5 | import DemoFlex1Code from './DemoFlex1.vue?raw' 6 | import DemoFlex2Code from './DemoFlex2.vue?raw' 7 | import DemoFlex3Code from './DemoFlex3.vue?raw' 8 | 9 | export const demoGroup = [DemoFlex1, DemoFlex2, DemoFlex3] 10 | 11 | export const codeGroup = [DemoFlex1Code, DemoFlex2Code, DemoFlex3Code] 12 | -------------------------------------------------------------------------------- /lib/docs/docs/flex/index.ts: -------------------------------------------------------------------------------- 1 | import DemoFlex from './DemoFlex.vue' 2 | 3 | export default DemoFlex 4 | -------------------------------------------------------------------------------- /lib/docs/docs/form/api/events.ts: -------------------------------------------------------------------------------- 1 | export default { 2 | title: 'Events', 3 | columnsKey: 'events', 4 | data: [ 5 | { 6 | name: 'mounted', 7 | description: '表单创建完成后触发,通常用于在对话框中初始化表单数据', 8 | type: '() => void' 9 | } 10 | ] 11 | } 12 | -------------------------------------------------------------------------------- /lib/docs/docs/form/api/formItemProps.ts: -------------------------------------------------------------------------------- 1 | import { formItemProps } from 'lew-ui' 2 | import { convertProps } from '@/lib/utils' 3 | 4 | export default { 5 | title: 'FormItemProps', 6 | columnsKey: 'props', 7 | orderNum: 12, 8 | data: convertProps(formItemProps) 9 | } 10 | -------------------------------------------------------------------------------- /lib/docs/docs/form/api/index.ts: -------------------------------------------------------------------------------- 1 | export { default as props } from './props' 2 | export { default as formItemProps } from './formItemProps' 3 | export { default as methods } from './methods' 4 | export { default as events } from './events' 5 | -------------------------------------------------------------------------------- /lib/docs/docs/form/api/methods.ts: -------------------------------------------------------------------------------- 1 | export default { 2 | title: 'Methods', 3 | columnsKey: 'methods', 4 | data: [ 5 | { 6 | name: 'getForm', 7 | description: '获取表单值', 8 | type: '() => {}' 9 | }, 10 | { 11 | name: 'setForm', 12 | description: '设置表单值', 13 | type: '() => {}' 14 | } 15 | ] 16 | } 17 | -------------------------------------------------------------------------------- /lib/docs/docs/form/api/props.ts: -------------------------------------------------------------------------------- 1 | import { formProps } from 'lew-ui' 2 | import { convertProps } from '@/lib/utils' 3 | 4 | export default { 5 | title: 'Props', 6 | columnsKey: 'props', 7 | orderNum: 10, 8 | data: convertProps(formProps) 9 | } 10 | -------------------------------------------------------------------------------- /lib/docs/docs/form/demo/DemoForm5.vue: -------------------------------------------------------------------------------- 1 | 5 | 6 | 11 | -------------------------------------------------------------------------------- /lib/docs/docs/form/demo/index.ts: -------------------------------------------------------------------------------- 1 | import DemoForm1 from './DemoForm1.vue' 2 | import DemoForm2 from './DemoForm2.vue' 3 | import DemoForm3 from './DemoForm3.vue' 4 | import DemoForm4 from './DemoForm4.vue' 5 | import DemoForm5 from './DemoForm5.vue' 6 | 7 | import DemoForm1Code from './DemoForm1.vue?raw' 8 | import DemoForm2Code from './DemoForm2.vue?raw' 9 | import DemoForm3Code from './DemoForm3.vue?raw' 10 | import DemoForm4Code from './DemoForm4.vue?raw' 11 | import DemoForm5Code from './DemoForm5.vue?raw' 12 | 13 | export const demoGroup = [DemoForm1, DemoForm2, DemoForm3, DemoForm4, DemoForm5] 14 | 15 | export const codeGroup = [ 16 | DemoForm1Code, 17 | DemoForm2Code, 18 | DemoForm3Code, 19 | DemoForm4Code, 20 | DemoForm5Code 21 | ] 22 | -------------------------------------------------------------------------------- /lib/docs/docs/form/index.ts: -------------------------------------------------------------------------------- 1 | import DemoForm from './DemoForm.vue' 2 | 3 | export default DemoForm 4 | -------------------------------------------------------------------------------- /lib/docs/docs/icon/index.ts: -------------------------------------------------------------------------------- 1 | import DemoIcon from './DemoIcon.vue' 2 | 3 | export default DemoIcon 4 | -------------------------------------------------------------------------------- /lib/docs/docs/image/api/index.ts: -------------------------------------------------------------------------------- 1 | export { default as props } from './props' 2 | -------------------------------------------------------------------------------- /lib/docs/docs/image/api/props.ts: -------------------------------------------------------------------------------- 1 | import { imageProps } from 'lew-ui' 2 | import { convertProps } from '@/lib/utils' 3 | 4 | export default { 5 | title: 'Props', 6 | columnsKey: 'props', 7 | data: convertProps(imageProps) 8 | } 9 | -------------------------------------------------------------------------------- /lib/docs/docs/image/demo/DemoImage1.vue: -------------------------------------------------------------------------------- 1 | 19 | -------------------------------------------------------------------------------- /lib/docs/docs/image/demo/DemoImage2.vue: -------------------------------------------------------------------------------- 1 | 4 | 5 | 14 | -------------------------------------------------------------------------------- /lib/docs/docs/image/demo/DemoImage3.vue: -------------------------------------------------------------------------------- 1 | 4 | -------------------------------------------------------------------------------- /lib/docs/docs/image/demo/index.ts: -------------------------------------------------------------------------------- 1 | import DemoImage1 from './DemoImage1.vue' 2 | import DemoImage2 from './DemoImage2.vue' 3 | import DemoImage3 from './DemoImage3.vue' 4 | 5 | import DemoImage1Code from './DemoImage1.vue?raw' 6 | import DemoImage2Code from './DemoImage2.vue?raw' 7 | import DemoImage3Code from './DemoImage3.vue?raw' 8 | 9 | export const demoGroup = [DemoImage1, DemoImage2, DemoImage3] 10 | 11 | export const codeGroup = [DemoImage1Code, DemoImage2Code, DemoImage3Code] 12 | -------------------------------------------------------------------------------- /lib/docs/docs/image/index.ts: -------------------------------------------------------------------------------- 1 | import DemoImage from './DemoImage.vue' 2 | 3 | export default DemoImage 4 | -------------------------------------------------------------------------------- /lib/docs/docs/index.ts: -------------------------------------------------------------------------------- 1 | import type { RouteRecordRaw } from 'vue-router' 2 | 3 | const modules = import.meta.glob('./*/index.ts') 4 | const capitalizeRegex = /(?:^|[\s_-]+)\w/g 5 | const routes: RouteRecordRaw[] = [] 6 | let tempName = '' 7 | 8 | for (const [path, module] of Object.entries(modules)) { 9 | tempName = path.replace(/^\.\/(.*)\/index.ts$/, '$1') 10 | tempName = tempName 11 | .replace(capitalizeRegex, (match) => match.toUpperCase()) 12 | .replaceAll('-', '') 13 | routes.push({ 14 | name: 'R-Lew' + tempName, 15 | path: '/' + tempName, 16 | component: module 17 | }) 18 | } 19 | 20 | export default routes 21 | -------------------------------------------------------------------------------- /lib/docs/docs/input-number/api/index.ts: -------------------------------------------------------------------------------- 1 | export { default as props } from './props' 2 | export { default as model } from './model' 3 | -------------------------------------------------------------------------------- /lib/docs/docs/input-number/api/model.ts: -------------------------------------------------------------------------------- 1 | import { inputNumberModel } from 'lew-ui' 2 | import { convertProps } from '@/lib/utils' 3 | 4 | export default { 5 | title: 'Model', 6 | columnsKey: 'model', 7 | orderNum: 10, 8 | data: convertProps(inputNumberModel) 9 | } 10 | -------------------------------------------------------------------------------- /lib/docs/docs/input-number/api/props.ts: -------------------------------------------------------------------------------- 1 | import { inputNumberProps } from 'lew-ui' 2 | import { convertProps } from '@/lib/utils' 3 | 4 | export default { 5 | title: 'Props', 6 | columnsKey: 'props', 7 | orderNum: 10, 8 | data: convertProps(inputNumberProps) 9 | } 10 | -------------------------------------------------------------------------------- /lib/docs/docs/input-number/demo/DemoInputNumber1.vue: -------------------------------------------------------------------------------- 1 | 4 | 11 | -------------------------------------------------------------------------------- /lib/docs/docs/input-number/demo/DemoInputNumber2.vue: -------------------------------------------------------------------------------- 1 | 4 | 9 | -------------------------------------------------------------------------------- /lib/docs/docs/input-number/demo/DemoInputNumber3.vue: -------------------------------------------------------------------------------- 1 | 4 | 5 | 10 | -------------------------------------------------------------------------------- /lib/docs/docs/input-number/demo/DemoInputNumber4.vue: -------------------------------------------------------------------------------- 1 | 4 | 5 | 15 | -------------------------------------------------------------------------------- /lib/docs/docs/input-number/demo/DemoInputNumber5.vue: -------------------------------------------------------------------------------- 1 | 4 | 5 | 11 | -------------------------------------------------------------------------------- /lib/docs/docs/input-number/index.ts: -------------------------------------------------------------------------------- 1 | import DemoInputNumber from './DemoInputNumber.vue' 2 | 3 | export default DemoInputNumber 4 | -------------------------------------------------------------------------------- /lib/docs/docs/input-table/api/index.ts: -------------------------------------------------------------------------------- 1 | export { default as props } from './props' 2 | -------------------------------------------------------------------------------- /lib/docs/docs/input-table/api/props.ts: -------------------------------------------------------------------------------- 1 | import { inputTableProps } from 'lew-ui' 2 | import { convertProps } from '@/lib/utils' 3 | 4 | export default { 5 | title: 'Props', 6 | columnsKey: 'props', 7 | orderNum: 10, 8 | data: convertProps(inputTableProps) 9 | } 10 | -------------------------------------------------------------------------------- /lib/docs/docs/input-table/demo/index.ts: -------------------------------------------------------------------------------- 1 | import DemoInputTable1 from './DemoInputTable1.vue' 2 | import DemoInputTable2 from './DemoInputTable2.vue' 3 | import DemoInputTable3 from './DemoInputTable3.vue' 4 | 5 | import DemoInputTable1Code from './DemoInputTable1.vue?raw' 6 | import DemoInputTable2Code from './DemoInputTable2.vue?raw' 7 | import DemoInputTable3Code from './DemoInputTable3.vue?raw' 8 | 9 | export const demoGroup = [DemoInputTable1, DemoInputTable2, DemoInputTable3] 10 | 11 | export const codeGroup = [ 12 | DemoInputTable1Code, 13 | DemoInputTable2Code, 14 | DemoInputTable3Code 15 | ] 16 | -------------------------------------------------------------------------------- /lib/docs/docs/input-table/index.ts: -------------------------------------------------------------------------------- 1 | import DemoInputTable from './DemoInputTable.vue' 2 | 3 | export default DemoInputTable 4 | -------------------------------------------------------------------------------- /lib/docs/docs/input-tag/api/events.ts: -------------------------------------------------------------------------------- 1 | export default { 2 | title: 'Events', 3 | columnsKey: 'events', 4 | data: [ 5 | // 'remove', 'change', 'clear', 'add' 6 | { 7 | name: 'change' 8 | }, 9 | { 10 | name: 'remove' 11 | }, 12 | 13 | { 14 | name: 'clear' 15 | }, 16 | { 17 | name: 'add' 18 | } 19 | ] 20 | } 21 | -------------------------------------------------------------------------------- /lib/docs/docs/input-tag/api/index.ts: -------------------------------------------------------------------------------- 1 | export { default as model } from './model' 2 | export { default as props } from './props' 3 | export { default as events } from './events' 4 | -------------------------------------------------------------------------------- /lib/docs/docs/input-tag/api/model.ts: -------------------------------------------------------------------------------- 1 | import { inputTagModel } from 'lew-ui' 2 | import { convertProps } from '@/lib/utils' 3 | 4 | export default { 5 | title: 'Model', 6 | columnsKey: 'model', 7 | orderNum: 1, 8 | data: convertProps(inputTagModel) 9 | } 10 | -------------------------------------------------------------------------------- /lib/docs/docs/input-tag/api/props.ts: -------------------------------------------------------------------------------- 1 | import { inputTagProps } from 'lew-ui' 2 | import { convertProps } from '@/lib/utils' 3 | 4 | export default { 5 | title: 'Props', 6 | columnsKey: 'props', 7 | orderNum: 10, 8 | data: convertProps(inputTagProps) 9 | } 10 | -------------------------------------------------------------------------------- /lib/docs/docs/input-tag/demo/DemoInputTag1.vue: -------------------------------------------------------------------------------- 1 | 4 | 7 | -------------------------------------------------------------------------------- /lib/docs/docs/input-tag/demo/DemoInputTag2.vue: -------------------------------------------------------------------------------- 1 | 4 | 11 | -------------------------------------------------------------------------------- /lib/docs/docs/input-tag/demo/DemoInputTag3.vue: -------------------------------------------------------------------------------- 1 | 4 | 7 | -------------------------------------------------------------------------------- /lib/docs/docs/input-tag/demo/DemoInputTag4.vue: -------------------------------------------------------------------------------- 1 | 4 | 7 | -------------------------------------------------------------------------------- /lib/docs/docs/input-tag/demo/DemoInputTag5.vue: -------------------------------------------------------------------------------- 1 | 4 | 7 | -------------------------------------------------------------------------------- /lib/docs/docs/input-tag/demo/DemoInputTag6.vue: -------------------------------------------------------------------------------- 1 | 4 | 7 | -------------------------------------------------------------------------------- /lib/docs/docs/input-tag/demo/DemoInputTag7.vue: -------------------------------------------------------------------------------- 1 | 4 | 7 | -------------------------------------------------------------------------------- /lib/docs/docs/input-tag/demo/DemoInputTag8.vue: -------------------------------------------------------------------------------- 1 | 4 | 7 | -------------------------------------------------------------------------------- /lib/docs/docs/input-tag/index.ts: -------------------------------------------------------------------------------- 1 | import DemoInputTag from './DemoInputTag.vue' 2 | 3 | export default DemoInputTag 4 | -------------------------------------------------------------------------------- /lib/docs/docs/input/api/events.ts: -------------------------------------------------------------------------------- 1 | export default { 2 | title: 'Events', 3 | columnsKey: 'events', 4 | data: [ 5 | { 6 | name: 'change' 7 | }, 8 | { 9 | name: 'blur' 10 | }, 11 | { 12 | name: 'focus' 13 | }, 14 | { 15 | name: 'clear' 16 | }, 17 | { 18 | name: 'ok' 19 | } 20 | ] 21 | } 22 | -------------------------------------------------------------------------------- /lib/docs/docs/input/api/index.ts: -------------------------------------------------------------------------------- 1 | export { default as props } from './props' 2 | export { default as model } from './model' 3 | export { default as events } from './events' 4 | -------------------------------------------------------------------------------- /lib/docs/docs/input/api/model.ts: -------------------------------------------------------------------------------- 1 | import { inputModel } from 'lew-ui' 2 | import { convertProps } from '@/lib/utils' 3 | 4 | export default { 5 | title: 'Model', 6 | columnsKey: 'model', 7 | orderNum: 10, 8 | data: convertProps(inputModel) 9 | } 10 | -------------------------------------------------------------------------------- /lib/docs/docs/input/api/props.ts: -------------------------------------------------------------------------------- 1 | import { inputProps } from 'lew-ui' 2 | import { convertProps } from '@/lib/utils' 3 | 4 | export default { 5 | title: 'Props', 6 | columnsKey: 'props', 7 | orderNum: 10, 8 | data: convertProps(inputProps) 9 | } 10 | -------------------------------------------------------------------------------- /lib/docs/docs/input/demo/DemoInput1.vue: -------------------------------------------------------------------------------- 1 | 4 | 5 | 8 | -------------------------------------------------------------------------------- /lib/docs/docs/input/demo/DemoInput10.vue: -------------------------------------------------------------------------------- 1 | 4 | 5 | 10 | -------------------------------------------------------------------------------- /lib/docs/docs/input/demo/DemoInput11.vue: -------------------------------------------------------------------------------- 1 | 7 | 8 | 13 | -------------------------------------------------------------------------------- /lib/docs/docs/input/demo/DemoInput3.vue: -------------------------------------------------------------------------------- 1 | 5 | 6 | 22 | -------------------------------------------------------------------------------- /lib/docs/docs/input/demo/DemoInput4.vue: -------------------------------------------------------------------------------- 1 | 6 | 7 | 26 | -------------------------------------------------------------------------------- /lib/docs/docs/input/demo/DemoInput5.vue: -------------------------------------------------------------------------------- 1 | 4 | 5 | 16 | -------------------------------------------------------------------------------- /lib/docs/docs/input/demo/DemoInput6.vue: -------------------------------------------------------------------------------- 1 | 4 | 5 | 15 | -------------------------------------------------------------------------------- /lib/docs/docs/input/demo/DemoInput7.vue: -------------------------------------------------------------------------------- 1 | 4 | 5 | 10 | -------------------------------------------------------------------------------- /lib/docs/docs/input/demo/DemoInput8.vue: -------------------------------------------------------------------------------- 1 | 4 | 5 | 10 | -------------------------------------------------------------------------------- /lib/docs/docs/input/demo/DemoInput9.vue: -------------------------------------------------------------------------------- 1 | 4 | 5 | 10 | -------------------------------------------------------------------------------- /lib/docs/docs/input/index.ts: -------------------------------------------------------------------------------- 1 | import DemoInput from './DemoInput.vue' 2 | 3 | export default DemoInput 4 | -------------------------------------------------------------------------------- /lib/docs/docs/loading/api/index.ts: -------------------------------------------------------------------------------- 1 | export { default as props } from './props' 2 | -------------------------------------------------------------------------------- /lib/docs/docs/loading/api/props.ts: -------------------------------------------------------------------------------- 1 | export default { 2 | title: 'Props', 3 | columnsKey: 'props', 4 | data: [ 5 | { 6 | name: 'tip', 7 | description: '提示内容', 8 | type: 'string', 9 | default: '-' 10 | }, 11 | { 12 | name: 'placement', 13 | description: '位置', 14 | type: 'string', 15 | default: '-' 16 | }, 17 | { 18 | name: 'trigger', 19 | description: '触发方式', 20 | type: 'hover | click', 21 | default: 'hover' 22 | }, 23 | { 24 | name: 'allowHTML', 25 | description: '是否支持HTML', 26 | type: 'boolean', 27 | default: 'false' 28 | } 29 | ] 30 | } 31 | -------------------------------------------------------------------------------- /lib/docs/docs/loading/demo/index.ts: -------------------------------------------------------------------------------- 1 | import DemoLoading1 from './DemoLoading1.vue' 2 | 3 | import DemoLoading1Code from './DemoLoading1.vue?raw' 4 | 5 | export const demoGroup = [DemoLoading1] 6 | 7 | export const codeGroup = [DemoLoading1Code] 8 | -------------------------------------------------------------------------------- /lib/docs/docs/loading/index.ts: -------------------------------------------------------------------------------- 1 | import DemoLoading from './DemoLoading.vue' 2 | 3 | export default DemoLoading 4 | -------------------------------------------------------------------------------- /lib/docs/docs/magic-number/index.ts: -------------------------------------------------------------------------------- 1 | import DemoMagicNumber from './DemoMagicNumber.vue' 2 | 3 | export default DemoMagicNumber 4 | -------------------------------------------------------------------------------- /lib/docs/docs/mark/api/index.ts: -------------------------------------------------------------------------------- 1 | export { default as props } from './props' 2 | -------------------------------------------------------------------------------- /lib/docs/docs/mark/api/props.ts: -------------------------------------------------------------------------------- 1 | import { markProps } from 'lew-ui' 2 | import { convertProps } from '@/lib/utils' 3 | 4 | export default { 5 | title: 'Props', 6 | columnsKey: 'props', 7 | orderNum: 10, 8 | data: convertProps(markProps) 9 | } 10 | -------------------------------------------------------------------------------- /lib/docs/docs/mark/demo/DemoMark1.vue: -------------------------------------------------------------------------------- 1 | 19 | 20 | 26 | -------------------------------------------------------------------------------- /lib/docs/docs/mark/demo/index.ts: -------------------------------------------------------------------------------- 1 | import DemoMark1 from './DemoMark1.vue' 2 | 3 | import DemoMark1Code from './DemoMark1.vue?raw' 4 | 5 | export const demoGroup = [DemoMark1] 6 | 7 | export const codeGroup = [DemoMark1Code] 8 | -------------------------------------------------------------------------------- /lib/docs/docs/mark/index.ts: -------------------------------------------------------------------------------- 1 | import DemoMark from './DemoMark.vue' 2 | 3 | export default DemoMark 4 | -------------------------------------------------------------------------------- /lib/docs/docs/menu-tree/api/index.ts: -------------------------------------------------------------------------------- 1 | export { default as props } from './props' 2 | export { default as model } from './model' 3 | export { default as menuTreeItem } from './menuTreeItem' 4 | -------------------------------------------------------------------------------- /lib/docs/docs/menu-tree/api/model.ts: -------------------------------------------------------------------------------- 1 | import { menuTreeModel } from 'lew-ui' 2 | import { convertProps } from '@/lib/utils' 3 | 4 | export default { 5 | title: 'Model', 6 | columnsKey: 'model', 7 | orderNum: 1, 8 | data: convertProps(menuTreeModel) 9 | } 10 | -------------------------------------------------------------------------------- /lib/docs/docs/menu-tree/api/props.ts: -------------------------------------------------------------------------------- 1 | import { menuTreeProps } from 'lew-ui' 2 | import { convertProps } from '@/lib/utils' 3 | 4 | export default { 5 | title: 'Props', 6 | columnsKey: 'props', 7 | orderNum: 3, 8 | data: convertProps(menuTreeProps) 9 | } 10 | -------------------------------------------------------------------------------- /lib/docs/docs/menu-tree/index.ts: -------------------------------------------------------------------------------- 1 | import DemoMenuTree from './DemoMenuTree.vue' 2 | 3 | export default DemoMenuTree 4 | -------------------------------------------------------------------------------- /lib/docs/docs/menu/api/index.ts: -------------------------------------------------------------------------------- 1 | export { default as props } from './props' 2 | export { default as options } from './options' 3 | export { default as model } from './model' 4 | -------------------------------------------------------------------------------- /lib/docs/docs/menu/api/model.ts: -------------------------------------------------------------------------------- 1 | import { menuModel, menuProps } from 'lew-ui' 2 | import { convertProps } from '@/lib/utils' 3 | 4 | export default { 5 | title: 'Model', 6 | columnsKey: 'model', 7 | orderNum: 10, 8 | data: convertProps(menuModel) 9 | } 10 | -------------------------------------------------------------------------------- /lib/docs/docs/menu/api/props.ts: -------------------------------------------------------------------------------- 1 | import { menuProps } from 'lew-ui' 2 | import { convertProps } from '@/lib/utils' 3 | 4 | export default { 5 | title: 'Props', 6 | columnsKey: 'props', 7 | orderNum: 10, 8 | data: convertProps(menuProps) 9 | } 10 | -------------------------------------------------------------------------------- /lib/docs/docs/menu/demo/index.ts: -------------------------------------------------------------------------------- 1 | import DemoMenu1 from './DemoMenu1.vue' 2 | 3 | import DemoMenu1Code from './DemoMenu1.vue?raw' 4 | 5 | export const demoGroup = [DemoMenu1] 6 | 7 | export const codeGroup = [DemoMenu1Code] 8 | -------------------------------------------------------------------------------- /lib/docs/docs/menu/index.ts: -------------------------------------------------------------------------------- 1 | import DemoMenu from './DemoMenu.vue' 2 | 3 | export default DemoMenu 4 | -------------------------------------------------------------------------------- /lib/docs/docs/message/api/events.ts: -------------------------------------------------------------------------------- 1 | export default { 2 | title: 'Events', 3 | columnsKey: 'events', 4 | orderNum: 5, 5 | data: [ 6 | { 7 | name: 'close', 8 | description: '关闭触发', 9 | type: 'function', 10 | default: '() => {}' 11 | } 12 | ] 13 | } 14 | -------------------------------------------------------------------------------- /lib/docs/docs/message/api/index.ts: -------------------------------------------------------------------------------- 1 | export { default as props } from './props' 2 | export { default as events } from './events' 3 | -------------------------------------------------------------------------------- /lib/docs/docs/message/api/props.ts: -------------------------------------------------------------------------------- 1 | export default { 2 | title: 'Props', 3 | columnsKey: 'props', 4 | orderNum: 1, 5 | data: [ 6 | { 7 | name: 'type', 8 | description: '消息类型', 9 | type: 'success | warning | error | info | normal', 10 | default: "'normal'" 11 | }, 12 | { 13 | name: 'content', 14 | description: '消息文字', 15 | type: 'string', 16 | default: '--' 17 | }, 18 | { 19 | name: 'duration', 20 | description: '时长', 21 | type: 'number', 22 | default: '3000' 23 | } 24 | ] 25 | } 26 | -------------------------------------------------------------------------------- /lib/docs/docs/message/demo/DemoMessage2.vue: -------------------------------------------------------------------------------- 1 | 14 | 15 | 21 | -------------------------------------------------------------------------------- /lib/docs/docs/message/demo/index.ts: -------------------------------------------------------------------------------- 1 | import DemoMessage1 from './DemoMessage1.vue' 2 | import DemoMessage2 from './DemoMessage2.vue' 3 | import DemoMessage3 from './DemoMessage3.vue' 4 | 5 | import DemoMessage1Code from './DemoMessage1.vue?raw' 6 | import DemoMessage2Code from './DemoMessage2.vue?raw' 7 | import DemoMessage3Code from './DemoMessage3.vue?raw' 8 | 9 | export const demoGroup = [DemoMessage1, DemoMessage2, DemoMessage3] 10 | 11 | export const codeGroup = [DemoMessage1Code, DemoMessage2Code, DemoMessage3Code] 12 | -------------------------------------------------------------------------------- /lib/docs/docs/message/index.ts: -------------------------------------------------------------------------------- 1 | import DemoMessage from './DemoMessage.vue' 2 | 3 | export default DemoMessage 4 | -------------------------------------------------------------------------------- /lib/docs/docs/modal/api/index.ts: -------------------------------------------------------------------------------- 1 | export { default as props } from './props' 2 | export { default as model } from './model' 3 | -------------------------------------------------------------------------------- /lib/docs/docs/modal/api/model.ts: -------------------------------------------------------------------------------- 1 | import { modalModel } from 'lew-ui' 2 | import { convertProps } from '@/lib/utils' 3 | 4 | export default { 5 | title: 'Model', 6 | columnsKey: 'model', 7 | orderNum: 1, 8 | data: convertProps(modalModel) 9 | } 10 | -------------------------------------------------------------------------------- /lib/docs/docs/modal/api/props.ts: -------------------------------------------------------------------------------- 1 | import { modalProps } from 'lew-ui' 2 | import { convertProps } from '@/lib/utils' 3 | 4 | export default { 5 | title: 'Props', 6 | columnsKey: 'props', 7 | orderNum: 10, 8 | data: convertProps(modalProps) 9 | } 10 | -------------------------------------------------------------------------------- /lib/docs/docs/modal/demo/index.ts: -------------------------------------------------------------------------------- 1 | import DemoModal1 from './DemoModal1.vue' 2 | import DemoModal2 from './DemoModal2.vue' 3 | import DemoModal3 from './DemoModal3.vue' 4 | import DemoModal4 from './DemoModal4.vue' 5 | 6 | import DemoModal1Code from './DemoModal1.vue?raw' 7 | import DemoModal2Code from './DemoModal2.vue?raw' 8 | import DemoModal3Code from './DemoModal3.vue?raw' 9 | import DemoModal4Code from './DemoModal4.vue?raw' 10 | 11 | export const demoGroup = [DemoModal1, DemoModal2, DemoModal3, DemoModal4] 12 | 13 | export const codeGroup = [ 14 | DemoModal1Code, 15 | DemoModal2Code, 16 | DemoModal3Code, 17 | DemoModal4Code 18 | ] 19 | -------------------------------------------------------------------------------- /lib/docs/docs/modal/index.ts: -------------------------------------------------------------------------------- 1 | import DemoModal from './DemoModal.vue' 2 | 3 | export default DemoModal 4 | -------------------------------------------------------------------------------- /lib/docs/docs/notification/api/index.ts: -------------------------------------------------------------------------------- 1 | export { default as props } from './props' 2 | -------------------------------------------------------------------------------- /lib/docs/docs/notification/api/props.ts: -------------------------------------------------------------------------------- 1 | export default { 2 | title: 'Props', 3 | columnsKey: 'props', 4 | data: [ 5 | { 6 | name: 'type', 7 | description: '提示类型', 8 | type: 'success | warning | error | info | normal', 9 | default: '3000' 10 | }, 11 | { 12 | name: 'title', 13 | description: '标题', 14 | type: 'array', 15 | default: '[]' 16 | }, 17 | { 18 | name: 'content', 19 | description: '内容', 20 | type: 'array', 21 | default: '[]' 22 | }, 23 | { 24 | name: 'delay', 25 | description: '延迟时间', 26 | type: 'array', 27 | default: '[]' 28 | } 29 | ] 30 | } 31 | -------------------------------------------------------------------------------- /lib/docs/docs/notification/demo/index.ts: -------------------------------------------------------------------------------- 1 | import DemoNotification1 from './DemoNotification1.vue' 2 | 3 | import DemoNotification1Code from './DemoNotification1.vue?raw' 4 | 5 | import DemoNotification2 from './DemoNotification2.vue' 6 | 7 | import DemoNotification2Code from './DemoNotification2.vue?raw' 8 | 9 | export const demoGroup = [DemoNotification1, DemoNotification2] 10 | 11 | export const codeGroup = [DemoNotification1Code, DemoNotification2Code] 12 | -------------------------------------------------------------------------------- /lib/docs/docs/notification/index.ts: -------------------------------------------------------------------------------- 1 | import DemoNotification from './DemoNotification.vue' 2 | 3 | export default DemoNotification 4 | -------------------------------------------------------------------------------- /lib/docs/docs/pagination/api/events.ts: -------------------------------------------------------------------------------- 1 | export default { 2 | title: 'Events', 3 | columnsKey: 'events', 4 | data: [ 5 | { 6 | name: 'change', 7 | description: '值变化', 8 | params: '() => void' 9 | } 10 | ] 11 | } 12 | -------------------------------------------------------------------------------- /lib/docs/docs/pagination/api/index.ts: -------------------------------------------------------------------------------- 1 | export { default as props } from './props' 2 | export { default as model } from './model' 3 | export { default as events } from './events' 4 | -------------------------------------------------------------------------------- /lib/docs/docs/pagination/api/model.ts: -------------------------------------------------------------------------------- 1 | import { paginationModel } from 'lew-ui' 2 | import { convertProps } from '@/lib/utils' 3 | 4 | export default { 5 | title: 'Model', 6 | columnsKey: 'model', 7 | orderNum: 1, 8 | data: convertProps(paginationModel) 9 | } 10 | -------------------------------------------------------------------------------- /lib/docs/docs/pagination/api/props.ts: -------------------------------------------------------------------------------- 1 | import { paginationProps } from 'lew-ui' 2 | import { convertProps } from '@/lib/utils' 3 | 4 | export default { 5 | title: 'Props', 6 | columnsKey: 'props', 7 | orderNum: 10, 8 | data: convertProps(paginationProps) 9 | } 10 | -------------------------------------------------------------------------------- /lib/docs/docs/pagination/demo/DemoPagination2.vue: -------------------------------------------------------------------------------- 1 | 4 | 5 | 29 | -------------------------------------------------------------------------------- /lib/docs/docs/pagination/demo/index.ts: -------------------------------------------------------------------------------- 1 | import DemoPagination1 from './DemoPagination1.vue' 2 | import DemoPagination2 from './DemoPagination2.vue' 3 | import DemoPagination3 from './DemoPagination3.vue' 4 | 5 | import DemoPagination1Code from './DemoPagination1.vue?raw' 6 | import DemoPagination2Code from './DemoPagination2.vue?raw' 7 | import DemoPagination3Code from './DemoPagination3.vue?raw' 8 | 9 | export const demoGroup = [DemoPagination1, DemoPagination2, DemoPagination3] 10 | 11 | export const codeGroup = [ 12 | DemoPagination1Code, 13 | DemoPagination2Code, 14 | DemoPagination3Code 15 | ] 16 | -------------------------------------------------------------------------------- /lib/docs/docs/pagination/index.ts: -------------------------------------------------------------------------------- 1 | import DemoPagination from './DemoPagination.vue' 2 | 3 | export default DemoPagination 4 | -------------------------------------------------------------------------------- /lib/docs/docs/popok/api/index.ts: -------------------------------------------------------------------------------- 1 | export { default as props } from './props' 2 | -------------------------------------------------------------------------------- /lib/docs/docs/popok/api/props.ts: -------------------------------------------------------------------------------- 1 | import { popokProps } from 'lew-ui' 2 | import { convertProps } from '@/lib/utils' 3 | 4 | export default { 5 | title: 'Props', 6 | columnsKey: 'props', 7 | orderNum: 10, 8 | data: convertProps(popokProps) 9 | } 10 | -------------------------------------------------------------------------------- /lib/docs/docs/popok/demo/DemoPopok2.vue: -------------------------------------------------------------------------------- 1 | 11 | 12 | 24 | -------------------------------------------------------------------------------- /lib/docs/docs/popok/demo/index.ts: -------------------------------------------------------------------------------- 1 | import DemoPopok1 from './DemoPopok1.vue' 2 | import DemoPopok2 from './DemoPopok2.vue' 3 | 4 | import DemoPopok1Code from './DemoPopok1.vue?raw' 5 | import DemoPopok2Code from './DemoPopok2.vue?raw' 6 | 7 | export const demoGroup = [DemoPopok1, DemoPopok2] 8 | 9 | export const codeGroup = [DemoPopok1Code, DemoPopok2Code] 10 | -------------------------------------------------------------------------------- /lib/docs/docs/popok/index.ts: -------------------------------------------------------------------------------- 1 | import DemoPopok from './DemoPopok.vue' 2 | 3 | export default DemoPopok 4 | -------------------------------------------------------------------------------- /lib/docs/docs/popover/api/index.ts: -------------------------------------------------------------------------------- 1 | export { default as props } from './props' 2 | export { default as slots } from './slots' 3 | -------------------------------------------------------------------------------- /lib/docs/docs/popover/api/props.ts: -------------------------------------------------------------------------------- 1 | import { popoverProps } from 'lew-ui' 2 | import { convertProps } from '@/lib/utils' 3 | 4 | export default { 5 | title: 'Props', 6 | columnsKey: 'props', 7 | orderNum: 10, 8 | data: convertProps(popoverProps) 9 | } 10 | -------------------------------------------------------------------------------- /lib/docs/docs/popover/api/slots.ts: -------------------------------------------------------------------------------- 1 | export default { 2 | title: 'Slots', 3 | columnsKey: 'slots', 4 | data: [ 5 | { 6 | name: 'trigger', 7 | description: '触发的节点', 8 | params: '-' 9 | }, 10 | { 11 | name: 'popover-body', 12 | description: '触发展示的内容主体', 13 | params: '-' 14 | } 15 | ] 16 | } 17 | -------------------------------------------------------------------------------- /lib/docs/docs/popover/demo/index.ts: -------------------------------------------------------------------------------- 1 | import DemoPopover1 from './DemoPopover1.vue' 2 | 3 | import DemoPopover1Code from './DemoPopover1.vue?raw' 4 | 5 | export const demoGroup = [DemoPopover1] 6 | 7 | export const codeGroup = [DemoPopover1Code] 8 | -------------------------------------------------------------------------------- /lib/docs/docs/popover/index.ts: -------------------------------------------------------------------------------- 1 | import DemoPopover from './DemoPopover.vue' 2 | 3 | export default DemoPopover 4 | -------------------------------------------------------------------------------- /lib/docs/docs/radio/api/events.ts: -------------------------------------------------------------------------------- 1 | export default { 2 | title: 'Events', 3 | columnsKey: 'events', 4 | orderNum: 10, 5 | data: [ 6 | { 7 | name: 'change' 8 | } 9 | ] 10 | } 11 | -------------------------------------------------------------------------------- /lib/docs/docs/radio/api/index.ts: -------------------------------------------------------------------------------- 1 | export { default as props } from './props' 2 | export { default as model } from './model' 3 | export { default as radioOptions } from './radioOptions' 4 | export { default as events } from './events' 5 | -------------------------------------------------------------------------------- /lib/docs/docs/radio/api/model.ts: -------------------------------------------------------------------------------- 1 | import { radioGroupModel } from 'lew-ui' 2 | import { convertProps } from '@/lib/utils' 3 | 4 | export default { 5 | title: 'Model', 6 | columnsKey: 'model', 7 | orderNum: 1, 8 | data: convertProps(radioGroupModel) 9 | } 10 | -------------------------------------------------------------------------------- /lib/docs/docs/radio/api/props.ts: -------------------------------------------------------------------------------- 1 | import { radioGroupProps } from 'lew-ui' 2 | import { convertProps } from '@/lib/utils' 3 | 4 | export default { 5 | title: 'Props (RadioGroup)', 6 | columnsKey: 'props', 7 | orderNum: 2, 8 | data: convertProps(radioGroupProps) 9 | } 10 | -------------------------------------------------------------------------------- /lib/docs/docs/radio/api/radioOptions.ts: -------------------------------------------------------------------------------- 1 | export default { 2 | title: 'Options', 3 | columnsKey: 'props', 4 | orderNum: 5, 5 | data: [ 6 | { 7 | name: 'label', 8 | description: '标题', 9 | type: 'string', 10 | default: '-' 11 | }, 12 | { 13 | name: 'value', 14 | description: '值', 15 | type: 'string', 16 | default: '-' 17 | }, 18 | { 19 | name: 'disabled', 20 | description: '禁用', 21 | type: 'boolean', 22 | default: 'false' 23 | } 24 | ] 25 | } 26 | -------------------------------------------------------------------------------- /lib/docs/docs/radio/demo/DemoRadio1.vue: -------------------------------------------------------------------------------- 1 | 12 | 13 | 16 | -------------------------------------------------------------------------------- /lib/docs/docs/radio/demo/DemoRadio2.vue: -------------------------------------------------------------------------------- 1 | 11 | 12 | 19 | -------------------------------------------------------------------------------- /lib/docs/docs/radio/demo/DemoRadio3.vue: -------------------------------------------------------------------------------- 1 | 12 | 13 | 21 | -------------------------------------------------------------------------------- /lib/docs/docs/radio/demo/DemoRadio4.vue: -------------------------------------------------------------------------------- 1 | 12 | 13 | 21 | -------------------------------------------------------------------------------- /lib/docs/docs/radio/demo/DemoRadio5.vue: -------------------------------------------------------------------------------- 1 | 12 | 13 | 21 | -------------------------------------------------------------------------------- /lib/docs/docs/radio/demo/DemoRadio6.vue: -------------------------------------------------------------------------------- 1 | 12 | 13 | 21 | -------------------------------------------------------------------------------- /lib/docs/docs/radio/index.ts: -------------------------------------------------------------------------------- 1 | import DemoRadio from './DemoRadio.vue' 2 | 3 | export default DemoRadio 4 | -------------------------------------------------------------------------------- /lib/docs/docs/rate/api/index.ts: -------------------------------------------------------------------------------- 1 | export { default as props } from './props' 2 | export { default as model } from './model' 3 | -------------------------------------------------------------------------------- /lib/docs/docs/rate/api/model.ts: -------------------------------------------------------------------------------- 1 | import { rateModel } from 'lew-ui' 2 | import { convertProps } from '@/lib/utils' 3 | 4 | export default { 5 | title: 'Model', 6 | columnsKey: 'model', 7 | orderNum: 1, 8 | data: convertProps(rateModel) 9 | } 10 | -------------------------------------------------------------------------------- /lib/docs/docs/rate/api/props.ts: -------------------------------------------------------------------------------- 1 | import { rateProps } from 'lew-ui' 2 | import { convertProps } from '@/lib/utils' 3 | 4 | export default { 5 | title: 'Props', 6 | columnsKey: 'props', 7 | orderNum: 10, 8 | data: convertProps(rateProps) 9 | } 10 | -------------------------------------------------------------------------------- /lib/docs/docs/rate/demo/DemoRate1.vue: -------------------------------------------------------------------------------- 1 | 4 | 5 | 8 | -------------------------------------------------------------------------------- /lib/docs/docs/rate/demo/DemoRate2.vue: -------------------------------------------------------------------------------- 1 | 4 | 5 | 8 | -------------------------------------------------------------------------------- /lib/docs/docs/rate/demo/DemoRate3.vue: -------------------------------------------------------------------------------- 1 | 4 | 5 | 8 | -------------------------------------------------------------------------------- /lib/docs/docs/rate/demo/DemoRate4.vue: -------------------------------------------------------------------------------- 1 | 5 | 6 | 9 | -------------------------------------------------------------------------------- /lib/docs/docs/rate/demo/index.ts: -------------------------------------------------------------------------------- 1 | import DemoRate1 from './DemoRate1.vue' 2 | import DemoRate2 from './DemoRate2.vue' 3 | import DemoRate3 from './DemoRate3.vue' 4 | import DemoRate4 from './DemoRate4.vue' 5 | 6 | import DemoRate1Code from './DemoRate1.vue?raw' 7 | import DemoRate2Code from './DemoRate2.vue?raw' 8 | import DemoRate3Code from './DemoRate3.vue?raw' 9 | import DemoRate4Code from './DemoRate4.vue?raw' 10 | 11 | export const demoGroup = [DemoRate1, DemoRate2, DemoRate3, DemoRate4] 12 | 13 | export const codeGroup = [ 14 | DemoRate1Code, 15 | DemoRate2Code, 16 | DemoRate3Code, 17 | DemoRate4Code 18 | ] 19 | -------------------------------------------------------------------------------- /lib/docs/docs/rate/index.ts: -------------------------------------------------------------------------------- 1 | import DemoRate from './DemoRate.vue' 2 | 3 | export default DemoRate 4 | -------------------------------------------------------------------------------- /lib/docs/docs/result/api/index.ts: -------------------------------------------------------------------------------- 1 | export { default as props } from './props' 2 | export { default as slots } from './slots' 3 | -------------------------------------------------------------------------------- /lib/docs/docs/result/api/props.ts: -------------------------------------------------------------------------------- 1 | import { resultProps } from 'lew-ui' 2 | import { convertProps } from '@/lib/utils' 3 | 4 | export default { 5 | title: 'Props', 6 | columnsKey: 'props', 7 | orderNum: 10, 8 | data: convertProps(resultProps) 9 | } 10 | -------------------------------------------------------------------------------- /lib/docs/docs/result/api/slots.ts: -------------------------------------------------------------------------------- 1 | export default { 2 | title: 'Slots', 3 | columnsKey: 'slots', 4 | data: [ 5 | { 6 | name: 'handle', 7 | description: '操作按钮', 8 | params: '-' 9 | } 10 | ] 11 | } 12 | -------------------------------------------------------------------------------- /lib/docs/docs/result/demo/index.ts: -------------------------------------------------------------------------------- 1 | import DemoResult1 from './DemoResult1.vue' 2 | 3 | import DemoResult1Code from './DemoResult1.vue?raw' 4 | 5 | export const demoGroup = [DemoResult1] 6 | 7 | export const codeGroup = [DemoResult1Code] 8 | -------------------------------------------------------------------------------- /lib/docs/docs/result/index.ts: -------------------------------------------------------------------------------- 1 | import DemoResult from './DemoResult.vue' 2 | 3 | export default DemoResult 4 | -------------------------------------------------------------------------------- /lib/docs/docs/select-multiple/api/events.ts: -------------------------------------------------------------------------------- 1 | export default { 2 | title: 'Events', 3 | columnsKey: 'events', 4 | data: [ 5 | { 6 | name: 'change', 7 | description: '值变化', 8 | params: '() => void' 9 | }, 10 | { 11 | name: 'blur', 12 | description: '失焦', 13 | params: '() => void' 14 | }, 15 | { 16 | name: 'focus', 17 | description: '聚焦', 18 | params: '() => void' 19 | } 20 | ] 21 | } 22 | -------------------------------------------------------------------------------- /lib/docs/docs/select-multiple/api/index.ts: -------------------------------------------------------------------------------- 1 | export { default as props } from './props' 2 | export { default as model } from './model' 3 | export { default as options } from './options' 4 | export { default as events } from './events' 5 | export { default as slot } from './slots' 6 | -------------------------------------------------------------------------------- /lib/docs/docs/select-multiple/api/model.ts: -------------------------------------------------------------------------------- 1 | import { selectMultipleModel } from 'lew-ui' 2 | import { convertProps } from '@/lib/utils' 3 | 4 | export default { 5 | title: 'Model', 6 | columnsKey: 'model', 7 | orderNum: 1, 8 | data: convertProps(selectMultipleModel) 9 | } 10 | -------------------------------------------------------------------------------- /lib/docs/docs/select-multiple/api/options.ts: -------------------------------------------------------------------------------- 1 | export default { 2 | title: 'Options', 3 | columnsKey: 'props', 4 | data: [ 5 | { 6 | name: 'label', 7 | description: '选项组的标签', 8 | type: 'string', 9 | default: '-' 10 | }, 11 | { 12 | name: 'value', 13 | description: '值', 14 | type: 'string | number', 15 | default: '-' 16 | }, 17 | { 18 | name: 'disabled', 19 | description: '禁用选项', 20 | type: 'boolean', 21 | default: false 22 | } 23 | ] 24 | } 25 | -------------------------------------------------------------------------------- /lib/docs/docs/select-multiple/api/props.ts: -------------------------------------------------------------------------------- 1 | import { selectMultipleProps } from 'lew-ui' 2 | import { convertProps } from '@/lib/utils' 3 | 4 | export default { 5 | title: 'Props', 6 | columnsKey: 'props', 7 | orderNum: 10, 8 | data: convertProps(selectMultipleProps) 9 | } 10 | -------------------------------------------------------------------------------- /lib/docs/docs/select-multiple/api/slots.ts: -------------------------------------------------------------------------------- 1 | export default { 2 | title: 'Slots', 3 | columnsKey: 'slots', 4 | data: [ 5 | { 6 | name: 'item', 7 | description: '选项自定义内容', 8 | params: 'Options' 9 | }, 10 | { 11 | name: 'empty', 12 | description: '无选项时显示的内容', 13 | params: 'Options' 14 | } 15 | ] 16 | } 17 | -------------------------------------------------------------------------------- /lib/docs/docs/select-multiple/index.ts: -------------------------------------------------------------------------------- 1 | import DemoSelectMultiple from './DemoSelectMultiple.vue' 2 | 3 | export default DemoSelectMultiple 4 | -------------------------------------------------------------------------------- /lib/docs/docs/select/api/events.ts: -------------------------------------------------------------------------------- 1 | export default { 2 | title: 'Events', 3 | columnsKey: 'events', 4 | data: [ 5 | { 6 | name: 'change', 7 | description: '值变化', 8 | params: '() => void' 9 | }, 10 | { 11 | name: 'blur', 12 | description: '失焦', 13 | params: '() => void' 14 | }, 15 | { 16 | name: 'focus', 17 | description: '聚焦', 18 | params: '() => void' 19 | } 20 | ] 21 | } 22 | -------------------------------------------------------------------------------- /lib/docs/docs/select/api/index.ts: -------------------------------------------------------------------------------- 1 | export { default as props } from './props' 2 | export { default as model } from './model' 3 | export { default as selectOptions } from './options' 4 | export { default as events } from './events' 5 | export { default as slot } from './slots' 6 | -------------------------------------------------------------------------------- /lib/docs/docs/select/api/model.ts: -------------------------------------------------------------------------------- 1 | import { selectModel } from 'lew-ui' 2 | import { convertProps } from '@/lib/utils' 3 | 4 | export default { 5 | title: 'Model', 6 | columnsKey: 'model', 7 | orderNum: 1, 8 | data: convertProps(selectModel) 9 | } 10 | -------------------------------------------------------------------------------- /lib/docs/docs/select/api/options.ts: -------------------------------------------------------------------------------- 1 | export default { 2 | title: 'Options', 3 | columnsKey: 'props', 4 | data: [ 5 | { 6 | name: 'label', 7 | description: '选项组的标签', 8 | type: 'string', 9 | default: '-' 10 | }, 11 | { 12 | name: 'value', 13 | description: '值', 14 | type: 'string | number', 15 | default: '-' 16 | }, 17 | { 18 | name: 'disabled', 19 | description: '禁用选项', 20 | type: 'boolean', 21 | default: false 22 | } 23 | ] 24 | } 25 | -------------------------------------------------------------------------------- /lib/docs/docs/select/api/props.ts: -------------------------------------------------------------------------------- 1 | import { selectProps } from 'lew-ui' 2 | import { convertProps } from '@/lib/utils' 3 | 4 | export default { 5 | title: 'Props', 6 | columnsKey: 'props', 7 | orderNum: 10, 8 | data: convertProps(selectProps) 9 | } 10 | -------------------------------------------------------------------------------- /lib/docs/docs/select/api/slots.ts: -------------------------------------------------------------------------------- 1 | export default { 2 | title: 'Slots', 3 | columnsKey: 'slots', 4 | data: [ 5 | { 6 | name: 'item', 7 | params: 'Options' 8 | }, 9 | { 10 | name: 'empty', 11 | params: 'Options' 12 | } 13 | ] 14 | } 15 | -------------------------------------------------------------------------------- /lib/docs/docs/select/demo/DemoSelect1.vue: -------------------------------------------------------------------------------- 1 | 12 | 13 | 22 | -------------------------------------------------------------------------------- /lib/docs/docs/select/demo/DemoSelect5.vue: -------------------------------------------------------------------------------- 1 | 13 | 14 | 23 | -------------------------------------------------------------------------------- /lib/docs/docs/select/demo/DemoSelect6.vue: -------------------------------------------------------------------------------- 1 | 13 | 14 | 23 | -------------------------------------------------------------------------------- /lib/docs/docs/select/demo/DemoSelect7.vue: -------------------------------------------------------------------------------- 1 | 5 | 6 | 19 | 32 | -------------------------------------------------------------------------------- /lib/docs/docs/select/index.ts: -------------------------------------------------------------------------------- 1 | import DemoSelect from './DemoSelect.vue' 2 | 3 | export default DemoSelect 4 | -------------------------------------------------------------------------------- /lib/docs/docs/slider-range/api/index.ts: -------------------------------------------------------------------------------- 1 | export { default as props } from './props' 2 | export { default as model } from './model' 3 | -------------------------------------------------------------------------------- /lib/docs/docs/slider-range/api/model.ts: -------------------------------------------------------------------------------- 1 | import { sliderRangeModel } from 'lew-ui' 2 | import { convertProps } from '@/lib/utils' 3 | 4 | export default { 5 | title: 'Model', 6 | columnsKey: 'model', 7 | orderNum: 10, 8 | data: convertProps(sliderRangeModel) 9 | } 10 | -------------------------------------------------------------------------------- /lib/docs/docs/slider-range/api/props.ts: -------------------------------------------------------------------------------- 1 | import { sliderProps } from 'lew-ui' 2 | import { convertProps } from '@/lib/utils' 3 | 4 | export default { 5 | title: 'Props', 6 | columnsKey: 'props', 7 | orderNum: 10, 8 | data: convertProps(sliderProps) 9 | } 10 | -------------------------------------------------------------------------------- /lib/docs/docs/slider-range/demo/DemoSliderRange2.vue: -------------------------------------------------------------------------------- 1 | 4 | 5 | 27 | -------------------------------------------------------------------------------- /lib/docs/docs/slider-range/demo/DemoSliderRange3.vue: -------------------------------------------------------------------------------- 1 | 4 | 5 | 29 | -------------------------------------------------------------------------------- /lib/docs/docs/slider-range/demo/DemoSliderRange4.vue: -------------------------------------------------------------------------------- 1 | 4 | 5 | 27 | -------------------------------------------------------------------------------- /lib/docs/docs/slider-range/demo/DemoSliderRange5.vue: -------------------------------------------------------------------------------- 1 | 4 | 5 | 27 | -------------------------------------------------------------------------------- /lib/docs/docs/slider-range/demo/DemoSliderRange6.vue: -------------------------------------------------------------------------------- 1 | 4 | 5 | 37 | -------------------------------------------------------------------------------- /lib/docs/docs/slider-range/index.ts: -------------------------------------------------------------------------------- 1 | import DemoSliderRange from './DemoSliderRange.vue' 2 | 3 | export default DemoSliderRange 4 | -------------------------------------------------------------------------------- /lib/docs/docs/slider/api/index.ts: -------------------------------------------------------------------------------- 1 | export { default as props } from './props' 2 | export { default as model } from './model' 3 | -------------------------------------------------------------------------------- /lib/docs/docs/slider/api/model.ts: -------------------------------------------------------------------------------- 1 | import { sliderModel } from 'lew-ui' 2 | import { convertProps } from '@/lib/utils' 3 | 4 | export default { 5 | title: 'Model', 6 | columnsKey: 'model', 7 | orderNum: 10, 8 | data: convertProps(sliderModel) 9 | } 10 | -------------------------------------------------------------------------------- /lib/docs/docs/slider/api/props.ts: -------------------------------------------------------------------------------- 1 | import { sliderProps } from 'lew-ui' 2 | import { convertProps } from '@/lib/utils' 3 | 4 | export default { 5 | title: 'Props', 6 | columnsKey: 'props', 7 | orderNum: 10, 8 | data: convertProps(sliderProps) 9 | } 10 | -------------------------------------------------------------------------------- /lib/docs/docs/slider/demo/DemoSlider2.vue: -------------------------------------------------------------------------------- 1 | 4 | 5 | 28 | -------------------------------------------------------------------------------- /lib/docs/docs/slider/demo/DemoSlider3.vue: -------------------------------------------------------------------------------- 1 | 4 | 5 | 28 | -------------------------------------------------------------------------------- /lib/docs/docs/slider/demo/DemoSlider4.vue: -------------------------------------------------------------------------------- 1 | 4 | 5 | 26 | -------------------------------------------------------------------------------- /lib/docs/docs/slider/demo/DemoSlider5.vue: -------------------------------------------------------------------------------- 1 | 4 | 5 | 26 | -------------------------------------------------------------------------------- /lib/docs/docs/slider/index.ts: -------------------------------------------------------------------------------- 1 | import DemoSlider from './DemoSlider.vue' 2 | 3 | export default DemoSlider 4 | -------------------------------------------------------------------------------- /lib/docs/docs/space/api/index.ts: -------------------------------------------------------------------------------- 1 | export { default as props } from './props' 2 | -------------------------------------------------------------------------------- /lib/docs/docs/space/api/props.ts: -------------------------------------------------------------------------------- 1 | export default { 2 | title: 'Props', 3 | columnsKey: 'props', 4 | data: [ 5 | { 6 | name: 'size', 7 | description: '标题尺寸大小', 8 | type: 'number', 9 | default: 24 10 | }, 11 | { 12 | name: 'bold', 13 | description: '粗体值', 14 | type: '100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900', 15 | default: 500 16 | } 17 | ] 18 | } 19 | -------------------------------------------------------------------------------- /lib/docs/docs/space/demo/DemoSpace2.vue: -------------------------------------------------------------------------------- 1 | 11 | -------------------------------------------------------------------------------- /lib/docs/docs/space/demo/DemoSpace3.vue: -------------------------------------------------------------------------------- 1 | 11 | -------------------------------------------------------------------------------- /lib/docs/docs/space/demo/index.ts: -------------------------------------------------------------------------------- 1 | import DemoSpace1 from './DemoSpace1.vue' 2 | import DemoSpace2 from './DemoSpace2.vue' 3 | import DemoSpace3 from './DemoSpace3.vue' 4 | 5 | import DemoSpace1Code from './DemoSpace1.vue?raw' 6 | import DemoSpace2Code from './DemoSpace2.vue?raw' 7 | import DemoSpace3Code from './DemoSpace3.vue?raw' 8 | 9 | export const demoGroup = [DemoSpace1, DemoSpace2, DemoSpace3] 10 | 11 | export const codeGroup = [DemoSpace1Code, DemoSpace2Code, DemoSpace3Code] 12 | -------------------------------------------------------------------------------- /lib/docs/docs/space/index.ts: -------------------------------------------------------------------------------- 1 | import DemoSpace from './DemoSpace.vue' 2 | 3 | export default DemoSpace 4 | -------------------------------------------------------------------------------- /lib/docs/docs/steps/api/index.ts: -------------------------------------------------------------------------------- 1 | export { default as props } from './props' 2 | export { default as model } from './model' 3 | -------------------------------------------------------------------------------- /lib/docs/docs/steps/api/model.ts: -------------------------------------------------------------------------------- 1 | import { stepsModel } from 'lew-ui' 2 | import { convertProps } from '@/lib/utils' 3 | 4 | export default { 5 | title: 'Model', 6 | columnsKey: 'model', 7 | orderNum: 1, 8 | data: convertProps(stepsModel) 9 | } 10 | -------------------------------------------------------------------------------- /lib/docs/docs/steps/api/props.ts: -------------------------------------------------------------------------------- 1 | import { stepsProps } from 'lew-ui' 2 | import { convertProps } from '@/lib/utils' 3 | 4 | export default { 5 | title: 'Props', 6 | columnsKey: 'props', 7 | orderNum: 10, 8 | data: convertProps(stepsProps) 9 | } 10 | -------------------------------------------------------------------------------- /lib/docs/docs/steps/demo/index.ts: -------------------------------------------------------------------------------- 1 | import DemoSteps1 from './DemoSteps1.vue' 2 | import DemoSteps2 from './DemoSteps2.vue' 3 | import DemoSteps3 from './DemoSteps3.vue' 4 | 5 | import DemoSteps1Code from './DemoSteps1.vue?raw' 6 | import DemoSteps2Code from './DemoSteps2.vue?raw' 7 | import DemoSteps3Code from './DemoSteps3.vue?raw' 8 | 9 | export const demoGroup = [DemoSteps1, DemoSteps2, DemoSteps3] 10 | 11 | export const codeGroup = [DemoSteps1Code, DemoSteps2Code, DemoSteps3Code] 12 | -------------------------------------------------------------------------------- /lib/docs/docs/steps/index.ts: -------------------------------------------------------------------------------- 1 | import DemoSteps from './DemoSteps.vue' 2 | 3 | export default DemoSteps 4 | -------------------------------------------------------------------------------- /lib/docs/docs/switch/api/events.ts: -------------------------------------------------------------------------------- 1 | export default { 2 | title: 'Events', 3 | columnsKey: 'events', 4 | data: [ 5 | { 6 | name: 'change', 7 | description: '值变化', 8 | params: '() => void' 9 | } 10 | ] 11 | } 12 | -------------------------------------------------------------------------------- /lib/docs/docs/switch/api/index.ts: -------------------------------------------------------------------------------- 1 | export { default as props } from './props' 2 | export { default as model } from './model' 3 | export { default as events } from './events' 4 | -------------------------------------------------------------------------------- /lib/docs/docs/switch/api/model.ts: -------------------------------------------------------------------------------- 1 | import { switchModel } from 'lew-ui' 2 | import { convertProps } from '@/lib/utils' 3 | 4 | export default { 5 | title: 'Model', 6 | columnsKey: 'model', 7 | orderNum: 1, 8 | data: convertProps(switchModel) 9 | } 10 | -------------------------------------------------------------------------------- /lib/docs/docs/switch/api/props.ts: -------------------------------------------------------------------------------- 1 | import { switchProps } from 'lew-ui' 2 | import { convertProps } from '@/lib/utils' 3 | 4 | export default { 5 | title: 'Props', 6 | columnsKey: 'props', 7 | orderNum: 10, 8 | data: convertProps(switchProps) 9 | } 10 | -------------------------------------------------------------------------------- /lib/docs/docs/switch/demo/DemoSwitch1.vue: -------------------------------------------------------------------------------- 1 | 7 | 8 | 15 | -------------------------------------------------------------------------------- /lib/docs/docs/switch/demo/DemoSwitch2.vue: -------------------------------------------------------------------------------- 1 | 9 | 10 | 13 | -------------------------------------------------------------------------------- /lib/docs/docs/switch/demo/DemoSwitch4.vue: -------------------------------------------------------------------------------- 1 | 5 | 6 | 12 | -------------------------------------------------------------------------------- /lib/docs/docs/switch/demo/DemoSwitch5.vue: -------------------------------------------------------------------------------- 1 | 5 | 6 | 12 | -------------------------------------------------------------------------------- /lib/docs/docs/switch/index.ts: -------------------------------------------------------------------------------- 1 | import DemoSwitch from './DemoSwitch.vue' 2 | 3 | export default DemoSwitch 4 | -------------------------------------------------------------------------------- /lib/docs/docs/table/api/index.ts: -------------------------------------------------------------------------------- 1 | export { default as props } from './props' 2 | export { default as tableColumns } from './tableColumns' 3 | export { default as model } from './model' 4 | -------------------------------------------------------------------------------- /lib/docs/docs/table/api/model.ts: -------------------------------------------------------------------------------- 1 | import { tableModel } from 'lew-ui' 2 | import { convertProps } from '@/lib/utils' 3 | 4 | export default { 5 | title: 'Model', 6 | columnsKey: 'model', 7 | orderNum: 10, 8 | data: convertProps(tableModel) 9 | } 10 | -------------------------------------------------------------------------------- /lib/docs/docs/table/api/props.ts: -------------------------------------------------------------------------------- 1 | import { tableProps } from 'lew-ui' 2 | import { convertProps } from '@/lib/utils' 3 | 4 | export default { 5 | title: 'Props', 6 | columnsKey: 'props', 7 | orderNum: 10, 8 | data: convertProps(tableProps) 9 | } 10 | -------------------------------------------------------------------------------- /lib/docs/docs/table/index.ts: -------------------------------------------------------------------------------- 1 | import DemoTable from './DemoTable.vue' 2 | 3 | export default DemoTable 4 | -------------------------------------------------------------------------------- /lib/docs/docs/tabs/api/index.ts: -------------------------------------------------------------------------------- 1 | export { default as props } from './props' 2 | export { default as model } from './model' 3 | export { default as options } from './options' 4 | -------------------------------------------------------------------------------- /lib/docs/docs/tabs/api/model.ts: -------------------------------------------------------------------------------- 1 | import { tabsModel } from 'lew-ui' 2 | import { convertProps } from '@/lib/utils' 3 | 4 | export default { 5 | title: 'Model', 6 | columnsKey: 'model', 7 | orderNum: 10, 8 | data: convertProps(tabsModel) 9 | } 10 | -------------------------------------------------------------------------------- /lib/docs/docs/tabs/api/options.ts: -------------------------------------------------------------------------------- 1 | export default { 2 | title: 'Options', 3 | columnsKey: 'props', 4 | data: [ 5 | { 6 | name: 'label', 7 | description: '文本内容', 8 | type: 'string', 9 | default: '-' 10 | }, 11 | { 12 | name: 'value', 13 | description: '值', 14 | type: 'string', 15 | default: '-' 16 | } 17 | ] 18 | } 19 | -------------------------------------------------------------------------------- /lib/docs/docs/tabs/api/props.ts: -------------------------------------------------------------------------------- 1 | import { tabsProps } from 'lew-ui' 2 | import { convertProps } from '@/lib/utils' 3 | 4 | export default { 5 | title: 'Props', 6 | columnsKey: 'props', 7 | orderNum: 10, 8 | data: convertProps(tabsProps) 9 | } 10 | -------------------------------------------------------------------------------- /lib/docs/docs/tabs/demo/DemoTabs1.vue: -------------------------------------------------------------------------------- 1 | 17 | 18 | 21 | -------------------------------------------------------------------------------- /lib/docs/docs/tabs/demo/DemoTabs5.vue: -------------------------------------------------------------------------------- 1 | 20 | 21 | 24 | -------------------------------------------------------------------------------- /lib/docs/docs/tabs/demo/index.ts: -------------------------------------------------------------------------------- 1 | import DemoTabs1 from './DemoTabs1.vue' 2 | import DemoTabs2 from './DemoTabs2.vue' 3 | import DemoTabs3 from './DemoTabs3.vue' 4 | import DemoTabs4 from './DemoTabs4.vue' 5 | import DemoTabs5 from './DemoTabs5.vue' 6 | 7 | import DemoTabs1Code from './DemoTabs1.vue?raw' 8 | import DemoTabs2Code from './DemoTabs2.vue?raw' 9 | import DemoTabs3Code from './DemoTabs3.vue?raw' 10 | import DemoTabs4Code from './DemoTabs4.vue?raw' 11 | import DemoTabs5Code from './DemoTabs5.vue?raw' 12 | 13 | export const demoGroup = [DemoTabs1, DemoTabs2, DemoTabs3, DemoTabs4, DemoTabs5] 14 | 15 | export const codeGroup = [ 16 | DemoTabs1Code, 17 | DemoTabs2Code, 18 | DemoTabs3Code, 19 | DemoTabs4Code, 20 | DemoTabs5Code 21 | ] 22 | -------------------------------------------------------------------------------- /lib/docs/docs/tabs/index.ts: -------------------------------------------------------------------------------- 1 | import DemoTabs from './DemoTabs.vue' 2 | 3 | export default DemoTabs 4 | -------------------------------------------------------------------------------- /lib/docs/docs/tag/api/index.ts: -------------------------------------------------------------------------------- 1 | export { default as props } from './props' 2 | -------------------------------------------------------------------------------- /lib/docs/docs/tag/api/props.ts: -------------------------------------------------------------------------------- 1 | import { tagProps } from 'lew-ui' 2 | import { convertProps } from '@/lib/utils' 3 | 4 | export default { 5 | title: 'Props', 6 | columnsKey: 'props', 7 | data: convertProps(tagProps) 8 | } 9 | -------------------------------------------------------------------------------- /lib/docs/docs/tag/demo/DemoTag1.vue: -------------------------------------------------------------------------------- 1 | 4 | -------------------------------------------------------------------------------- /lib/docs/docs/tag/demo/DemoTag2.vue: -------------------------------------------------------------------------------- 1 | 8 | -------------------------------------------------------------------------------- /lib/docs/docs/tag/demo/DemoTag3.vue: -------------------------------------------------------------------------------- 1 | 8 | -------------------------------------------------------------------------------- /lib/docs/docs/tag/demo/DemoTag5.vue: -------------------------------------------------------------------------------- 1 | 4 | -------------------------------------------------------------------------------- /lib/docs/docs/tag/demo/DemoTag6.vue: -------------------------------------------------------------------------------- 1 | 6 | 9 | -------------------------------------------------------------------------------- /lib/docs/docs/tag/index.ts: -------------------------------------------------------------------------------- 1 | import DemoTag from './DemoTag.vue' 2 | 3 | export default DemoTag 4 | -------------------------------------------------------------------------------- /lib/docs/docs/text-trim/api/index.ts: -------------------------------------------------------------------------------- 1 | export { default as props } from './props' 2 | -------------------------------------------------------------------------------- /lib/docs/docs/text-trim/api/props.ts: -------------------------------------------------------------------------------- 1 | import { textTrimProps } from 'lew-ui' 2 | import { convertProps } from '@/lib/utils' 3 | 4 | export default { 5 | title: 'Props', 6 | columnsKey: 'props', 7 | data: convertProps(textTrimProps) 8 | } 9 | -------------------------------------------------------------------------------- /lib/docs/docs/text-trim/demo/DemoTextTrim1.vue: -------------------------------------------------------------------------------- 1 | 8 | -------------------------------------------------------------------------------- /lib/docs/docs/text-trim/demo/DemoTextTrim2.vue: -------------------------------------------------------------------------------- 1 | 10 | -------------------------------------------------------------------------------- /lib/docs/docs/text-trim/demo/DemoTextTrim4.vue: -------------------------------------------------------------------------------- 1 | 6 | -------------------------------------------------------------------------------- /lib/docs/docs/text-trim/demo/index.ts: -------------------------------------------------------------------------------- 1 | import DemoTextTrim1 from './DemoTextTrim1.vue' 2 | import DemoTextTrim1Code from './DemoTextTrim1.vue?raw' 3 | import DemoTextTrim2 from './DemoTextTrim2.vue' 4 | import DemoTextTrim2Code from './DemoTextTrim2.vue?raw' 5 | import DemoTextTrim3 from './DemoTextTrim3.vue' 6 | import DemoTextTrim3Code from './DemoTextTrim3.vue?raw' 7 | import DemoTextTrim4 from './DemoTextTrim4.vue' 8 | import DemoTextTrim4Code from './DemoTextTrim4.vue?raw' 9 | 10 | export const demoGroup = [ 11 | DemoTextTrim1, 12 | DemoTextTrim2, 13 | DemoTextTrim3, 14 | DemoTextTrim4 15 | ] 16 | 17 | export const codeGroup = [ 18 | DemoTextTrim1Code, 19 | DemoTextTrim2Code, 20 | DemoTextTrim3Code, 21 | DemoTextTrim4Code 22 | ] 23 | -------------------------------------------------------------------------------- /lib/docs/docs/text-trim/index.ts: -------------------------------------------------------------------------------- 1 | import DemoTextTrim from './DemoTextTrim.vue' 2 | 3 | export default DemoTextTrim 4 | -------------------------------------------------------------------------------- /lib/docs/docs/textarea/api/index.ts: -------------------------------------------------------------------------------- 1 | export { default as model } from './model' 2 | export { default as props } from './props' 3 | export { default as events } from './events' 4 | -------------------------------------------------------------------------------- /lib/docs/docs/textarea/api/model.ts: -------------------------------------------------------------------------------- 1 | import { textareaModel } from 'lew-ui' 2 | import { convertProps } from '@/lib/utils' 3 | 4 | export default { 5 | title: 'Model', 6 | columnsKey: 'model', 7 | orderNum: 1, 8 | data: convertProps(textareaModel) 9 | } 10 | -------------------------------------------------------------------------------- /lib/docs/docs/textarea/api/props.ts: -------------------------------------------------------------------------------- 1 | import { textareaProps } from 'lew-ui' 2 | import { convertProps } from '@/lib/utils' 3 | 4 | export default { 5 | title: 'Props', 6 | columnsKey: 'props', 7 | orderNum: 1, 8 | data: convertProps(textareaProps) 9 | } 10 | -------------------------------------------------------------------------------- /lib/docs/docs/textarea/demo/DemoTextarea1.vue: -------------------------------------------------------------------------------- 1 | 4 | 5 | 8 | -------------------------------------------------------------------------------- /lib/docs/docs/textarea/demo/DemoTextarea2.vue: -------------------------------------------------------------------------------- 1 | 4 | 5 | 15 | -------------------------------------------------------------------------------- /lib/docs/docs/textarea/demo/DemoTextarea3.vue: -------------------------------------------------------------------------------- 1 | 4 | 5 | 8 | -------------------------------------------------------------------------------- /lib/docs/docs/textarea/demo/DemoTextarea4.vue: -------------------------------------------------------------------------------- 1 | 4 | 5 | 8 | -------------------------------------------------------------------------------- /lib/docs/docs/textarea/demo/DemoTextarea5.vue: -------------------------------------------------------------------------------- 1 | 4 | 5 | 8 | -------------------------------------------------------------------------------- /lib/docs/docs/textarea/demo/DemoTextarea6.vue: -------------------------------------------------------------------------------- 1 | 4 | 5 | 8 | -------------------------------------------------------------------------------- /lib/docs/docs/textarea/demo/DemoTextarea7.vue: -------------------------------------------------------------------------------- 1 | 7 | 8 | 11 | -------------------------------------------------------------------------------- /lib/docs/docs/textarea/demo/DemoTextarea8.vue: -------------------------------------------------------------------------------- 1 | 4 | 5 | 27 | -------------------------------------------------------------------------------- /lib/docs/docs/textarea/index.ts: -------------------------------------------------------------------------------- 1 | import DemoTextarea from './DemoTextarea.vue' 2 | 3 | export default DemoTextarea 4 | -------------------------------------------------------------------------------- /lib/docs/docs/title/api/index.ts: -------------------------------------------------------------------------------- 1 | export { default as Props } from './props' 2 | -------------------------------------------------------------------------------- /lib/docs/docs/title/api/props.ts: -------------------------------------------------------------------------------- 1 | import { titleProps } from 'lew-ui' 2 | import { convertProps } from '@/lib/utils' 3 | 4 | export default { 5 | title: 'Props', 6 | columnsKey: 'props', 7 | data: convertProps(titleProps) 8 | } 9 | -------------------------------------------------------------------------------- /lib/docs/docs/title/demo/DemoTitle1.vue: -------------------------------------------------------------------------------- 1 | 8 | -------------------------------------------------------------------------------- /lib/docs/docs/title/demo/DemoTitle2.vue: -------------------------------------------------------------------------------- 1 | 8 | -------------------------------------------------------------------------------- /lib/docs/docs/title/demo/DemoTitle3.vue: -------------------------------------------------------------------------------- 1 | 8 | -------------------------------------------------------------------------------- /lib/docs/docs/title/demo/index.ts: -------------------------------------------------------------------------------- 1 | import DemoTitle1 from './DemoTitle1.vue' 2 | import DemoTitle2 from './DemoTitle2.vue' 3 | import DemoTitle3 from './DemoTitle3.vue' 4 | 5 | import DemoTitle1Code from './DemoTitle1.vue?raw' 6 | import DemoTitle2Code from './DemoTitle2.vue?raw' 7 | import DemoTitle3Code from './DemoTitle3.vue?raw' 8 | 9 | export const demoGroup = [DemoTitle1, DemoTitle2, DemoTitle3] 10 | 11 | export const codeGroup = [DemoTitle1Code, DemoTitle2Code, DemoTitle3Code] 12 | -------------------------------------------------------------------------------- /lib/docs/docs/title/index.ts: -------------------------------------------------------------------------------- 1 | import DemoTitle from './DemoTitle.vue' 2 | 3 | export default DemoTitle 4 | -------------------------------------------------------------------------------- /lib/docs/docs/tooltip/api/index.ts: -------------------------------------------------------------------------------- 1 | export { default as props } from './props' 2 | -------------------------------------------------------------------------------- /lib/docs/docs/tooltip/demo/index.ts: -------------------------------------------------------------------------------- 1 | import DemoTooltip1 from './DemoTooltip1.vue' 2 | import DemoTooltip2 from './DemoTooltip2.vue' 3 | 4 | import DemoTooltip1Code from './DemoTooltip1.vue?raw' 5 | import DemoTooltip2Code from './DemoTooltip2.vue?raw' 6 | 7 | export const demoGroup = [DemoTooltip1, DemoTooltip2] 8 | 9 | export const codeGroup = [DemoTooltip1Code, DemoTooltip2Code] 10 | -------------------------------------------------------------------------------- /lib/docs/docs/tooltip/index.ts: -------------------------------------------------------------------------------- 1 | import DemoTooltip from './DemoTooltip.vue' 2 | 3 | export default DemoTooltip 4 | -------------------------------------------------------------------------------- /lib/docs/docs/tree-select/api/index.ts: -------------------------------------------------------------------------------- 1 | export { default as props } from './props' 2 | export { default as slots } from './slots' 3 | export { default as model } from './model' 4 | -------------------------------------------------------------------------------- /lib/docs/docs/tree-select/api/model.ts: -------------------------------------------------------------------------------- 1 | import { treeSelectModel } from 'lew-ui' 2 | import { convertProps } from '@/lib/utils' 3 | 4 | export default { 5 | title: 'Model', 6 | columnsKey: 'model', 7 | data: convertProps(treeSelectModel) 8 | } 9 | -------------------------------------------------------------------------------- /lib/docs/docs/tree-select/api/props.ts: -------------------------------------------------------------------------------- 1 | import { treeSelectProps } from 'lew-ui' 2 | import { convertProps } from '@/lib/utils' 3 | 4 | export default { 5 | title: 'Props', 6 | columnsKey: 'props', 7 | data: convertProps(treeSelectProps) 8 | } 9 | -------------------------------------------------------------------------------- /lib/docs/docs/tree-select/api/slots.ts: -------------------------------------------------------------------------------- 1 | export default { 2 | title: 'Slots', 3 | columnsKey: 'slots', 4 | data: [ 5 | { 6 | name: 'handle', 7 | description: '操作按钮', 8 | params: '-' 9 | } 10 | ] 11 | } 12 | -------------------------------------------------------------------------------- /lib/docs/docs/tree-select/demo/DemoTreeSelect3.vue: -------------------------------------------------------------------------------- 1 | 10 | 11 | 27 | -------------------------------------------------------------------------------- /lib/docs/docs/tree-select/demo/DemoTreeSelect4.vue: -------------------------------------------------------------------------------- 1 | 10 | 11 | 22 | -------------------------------------------------------------------------------- /lib/docs/docs/tree-select/demo/DemoTreeSelect5.vue: -------------------------------------------------------------------------------- 1 | 10 | 11 | 23 | -------------------------------------------------------------------------------- /lib/docs/docs/tree-select/index.ts: -------------------------------------------------------------------------------- 1 | import DemoTreeSelect from './DemoTreeSelect.vue' 2 | 3 | export default DemoTreeSelect 4 | -------------------------------------------------------------------------------- /lib/docs/docs/tree/api/index.ts: -------------------------------------------------------------------------------- 1 | export { default as model } from './model' 2 | export { default as props } from './props' 3 | export { default as slots } from './slots' 4 | export { default as treeDataSource } from './treeDataSource' 5 | -------------------------------------------------------------------------------- /lib/docs/docs/tree/api/model.ts: -------------------------------------------------------------------------------- 1 | import { treeModel } from 'lew-ui' 2 | import { convertProps } from '@/lib/utils' 3 | 4 | export default { 5 | title: 'Model', 6 | columnsKey: 'model', 7 | data: convertProps(treeModel) 8 | } 9 | -------------------------------------------------------------------------------- /lib/docs/docs/tree/api/props.ts: -------------------------------------------------------------------------------- 1 | import { treeProps } from 'lew-ui' 2 | import { convertProps } from '@/lib/utils' 3 | 4 | export default { 5 | title: 'Props', 6 | columnsKey: 'props', 7 | data: convertProps(treeProps) 8 | } 9 | -------------------------------------------------------------------------------- /lib/docs/docs/tree/api/slots.ts: -------------------------------------------------------------------------------- 1 | export default { 2 | title: 'Slots', 3 | columnsKey: 'slots', 4 | data: [ 5 | { 6 | name: 'handle', 7 | description: '操作按钮', 8 | params: '-' 9 | } 10 | ] 11 | } 12 | -------------------------------------------------------------------------------- /lib/docs/docs/tree/demo/DemoTree1.vue: -------------------------------------------------------------------------------- 1 | 23 | 24 | 33 | -------------------------------------------------------------------------------- /lib/docs/docs/tree/demo/DemoTree2.vue: -------------------------------------------------------------------------------- 1 | 23 | 24 | 33 | -------------------------------------------------------------------------------- /lib/docs/docs/tree/index.ts: -------------------------------------------------------------------------------- 1 | import DemoTree from './DemoTree.vue' 2 | 3 | export default DemoTree 4 | -------------------------------------------------------------------------------- /lib/docs/docs/upload/api/index.ts: -------------------------------------------------------------------------------- 1 | export { default as props } from './props' 2 | -------------------------------------------------------------------------------- /lib/docs/docs/upload/api/props.ts: -------------------------------------------------------------------------------- 1 | import { uploadProps } from 'lew-ui' 2 | import { convertProps } from '@/lib/utils' 3 | 4 | export default { 5 | title: 'Props', 6 | columnsKey: 'props', 7 | orderNum: 10, 8 | data: convertProps(uploadProps) 9 | } 10 | -------------------------------------------------------------------------------- /lib/docs/docs/upload/demo/DemoUpload1.vue: -------------------------------------------------------------------------------- 1 | 7 | 8 | 13 | -------------------------------------------------------------------------------- /lib/docs/docs/upload/demo/DemoUpload2.vue: -------------------------------------------------------------------------------- 1 | 7 | 8 | 18 | -------------------------------------------------------------------------------- /lib/docs/docs/upload/demo/DemoUpload3.vue: -------------------------------------------------------------------------------- 1 | 7 | 8 | 17 | -------------------------------------------------------------------------------- /lib/docs/docs/upload/demo/DemoUpload4.vue: -------------------------------------------------------------------------------- 1 | 7 | 8 | 19 | -------------------------------------------------------------------------------- /lib/docs/docs/upload/demo/DemoUpload5.vue: -------------------------------------------------------------------------------- 1 | 7 | 8 | 13 | -------------------------------------------------------------------------------- /lib/docs/docs/upload/demo/DemoUpload6.vue: -------------------------------------------------------------------------------- 1 | 6 | 7 | 12 | -------------------------------------------------------------------------------- /lib/docs/docs/upload/index.ts: -------------------------------------------------------------------------------- 1 | import DemoUpload from './DemoUpload.vue' 2 | 3 | export default DemoUpload 4 | -------------------------------------------------------------------------------- /lib/docs/env.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | 3 | declare module '*.vue' { 4 | import type { DefineComponent } from 'vue' 5 | // eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/ban-types 6 | const component: DefineComponent<{}, {}, any> 7 | export default component 8 | } 9 | 10 | declare module 'highlight.js' 11 | declare const hljs 12 | declare const LewMessage 13 | declare const LewDialog 14 | 15 | declare const LewNotification: (typeof import('../directives'))['LewNotification'] 16 | 17 | declare interface Window { 18 | LewContextMenu: LewContextMenu 19 | LewHoverMenu: LewHoverMenu 20 | LewNotification: LewNotification 21 | LewDialog: LewDialog 22 | LewMessage: LewMessage 23 | } 24 | -------------------------------------------------------------------------------- /lib/docs/guide/Install.vue: -------------------------------------------------------------------------------- 1 | 13 | -------------------------------------------------------------------------------- /lib/docs/guide/Log.vue: -------------------------------------------------------------------------------- 1 | 5 | 6 | 14 | 26 | -------------------------------------------------------------------------------- /lib/docs/guide/TodoList.vue: -------------------------------------------------------------------------------- 1 | 11 | 17 | -------------------------------------------------------------------------------- /lib/docs/guide/index.ts: -------------------------------------------------------------------------------- 1 | import type { RouteRecordRaw } from 'vue-router' 2 | 3 | const modules = import.meta.glob('./*.vue') 4 | const routes: RouteRecordRaw[] = [] 5 | let tempName = '' 6 | 7 | for (const [path, module] of Object.entries(modules)) { 8 | tempName = path.replace('./', '').replace('.vue', '') 9 | routes.push({ 10 | name: 'R-Lew' + tempName, 11 | path: '/' + tempName, 12 | component: module 13 | }) 14 | } 15 | 16 | export default routes 17 | -------------------------------------------------------------------------------- /lib/docs/layout/LewComponentInfo.vue: -------------------------------------------------------------------------------- 1 | 10 | 11 | 19 | -------------------------------------------------------------------------------- /lib/docs/views/Playground.vue: -------------------------------------------------------------------------------- 1 | 8 | 9 | 14 | 31 | -------------------------------------------------------------------------------- /lib/docs/views/desc-engine/schema/base.ts: -------------------------------------------------------------------------------- 1 | export const baseSchema = [ 2 | { 3 | label: '字段标识', 4 | as: 'input', 5 | field: 'field' 6 | }, 7 | { 8 | label: '标题', 9 | as: 'input', 10 | field: 'label' 11 | }, 12 | { 13 | label: '提示信息', 14 | as: 'textarea', 15 | direction: 'y', 16 | field: 'tips' 17 | }, 18 | { 19 | label: '方向', 20 | as: 'tabs', 21 | field: 'direction', 22 | componentWidth: 'auto', 23 | props: { 24 | itemWidth: '50px', 25 | options: [ 26 | { label: '水平', value: 'x' }, 27 | { label: '垂直', value: 'y' } 28 | ] 29 | } 30 | } 31 | ] 32 | -------------------------------------------------------------------------------- /lib/docs/views/desc-engine/schema/fields.ts: -------------------------------------------------------------------------------- 1 | export const fieldsSchema = [ 2 | { 3 | label: '字段', 4 | as: 'input', 5 | field: 'label', 6 | componentWidth: 'auto' 7 | } 8 | ] 9 | -------------------------------------------------------------------------------- /lib/docs/views/desc-engine/schema/index.ts: -------------------------------------------------------------------------------- 1 | export * from './global' 2 | export * from './fields' 3 | export * from './base' 4 | -------------------------------------------------------------------------------- /lib/docs/views/form-engine/schema/base.ts: -------------------------------------------------------------------------------- 1 | export const baseSchema = [ 2 | { 3 | label: '字段标识', 4 | as: 'input', 5 | field: 'field' 6 | }, 7 | { 8 | label: '标题', 9 | as: 'input', 10 | field: 'label' 11 | }, 12 | { 13 | label: '是否必填', 14 | as: 'switch', 15 | field: 'required' 16 | }, 17 | { 18 | label: '是否只读', 19 | as: 'switch', 20 | field: 'readonly' 21 | }, 22 | { 23 | label: '是否禁用', 24 | as: 'switch', 25 | field: 'disabled' 26 | }, 27 | { 28 | label: '校验规则', 29 | as: 'textarea', 30 | direction: 'y', 31 | tips: '参考 Yup 官方文档', 32 | field: 'rule' 33 | }, 34 | { 35 | label: '提示信息', 36 | as: 'textarea', 37 | direction: 'y', 38 | field: 'tips' 39 | } 40 | ] 41 | -------------------------------------------------------------------------------- /lib/docs/views/form-engine/schema/components/checkbox.ts: -------------------------------------------------------------------------------- 1 | export default [ 2 | { 3 | label: '标签名称', 4 | as: 'input', 5 | field: 'label' 6 | }, 7 | { 8 | label: '是否为块状', 9 | as: 'switch', 10 | field: 'block' 11 | }, 12 | { 13 | label: '是否为圆形', 14 | as: 'switch', 15 | field: 'round' 16 | }, 17 | { 18 | label: '图标开启', 19 | as: 'switch', 20 | tips: '图标开启,仅在块状时生效', 21 | field: 'iconable' 22 | } 23 | ] 24 | -------------------------------------------------------------------------------- /lib/docs/views/form-engine/schema/components/color-picker.ts: -------------------------------------------------------------------------------- 1 | export default [ 2 | { 3 | label: '占位提示', 4 | as: 'input', 5 | field: 'placeholder' 6 | }, 7 | { 8 | label: '宽度', 9 | as: 'input-number', 10 | componentWidth: 100, 11 | props: { min: 150, max: 500, align: 'center', placeholder: '宽度' }, 12 | field: 'width' 13 | } 14 | ] 15 | -------------------------------------------------------------------------------- /lib/docs/views/form-engine/schema/components/date-picker.ts: -------------------------------------------------------------------------------- 1 | export default [ 2 | { 3 | label: '占位提示', 4 | as: 'input', 5 | field: 'placeholder', 6 | props: { 7 | placeholder: '请选择日期' 8 | } 9 | }, 10 | { 11 | label: '日期格式', 12 | as: 'input', 13 | field: 'valueFormat', 14 | props: { 15 | placeholder: 'YYYY-MM-DD' 16 | } 17 | }, 18 | { 19 | label: '是否可清空', 20 | as: 'switch', 21 | field: 'clearable' 22 | } 23 | ] 24 | -------------------------------------------------------------------------------- /lib/docs/views/form-engine/schema/components/date-range-picker.ts: -------------------------------------------------------------------------------- 1 | export default [ 2 | { 3 | label: '开始日期提示', 4 | as: 'input', 5 | field: 'placeholderStart', 6 | props: { 7 | placeholder: '开始日期' 8 | } 9 | }, 10 | { 11 | label: '结束日期提示', 12 | as: 'input', 13 | field: 'placeholderEnd', 14 | props: { 15 | placeholder: '结束日期' 16 | } 17 | }, 18 | { 19 | label: '日期格式', 20 | as: 'input', 21 | field: 'valueFormat', 22 | props: { 23 | placeholder: 'YYYY-MM-DD' 24 | } 25 | }, 26 | { 27 | label: '是否可清空', 28 | as: 'switch', 29 | field: 'clearable' 30 | } 31 | ] 32 | -------------------------------------------------------------------------------- /lib/docs/views/form-engine/schema/components/input-tag.ts: -------------------------------------------------------------------------------- 1 | export default [ 2 | { 3 | label: '占位提示', 4 | as: 'input', 5 | field: 'placeholder' 6 | }, 7 | { 8 | label: '是否可清空', 9 | as: 'switch', 10 | field: 'clearable' 11 | }, 12 | { 13 | label: '允许重复值', 14 | as: 'switch', 15 | field: 'allowDuplicates' 16 | } 17 | ] 18 | -------------------------------------------------------------------------------- /lib/docs/views/form-engine/schema/components/rate.ts: -------------------------------------------------------------------------------- 1 | export default [ 2 | { 3 | label: '评分总数', 4 | as: 'input-number', 5 | field: 'count', 6 | componentWidth: 110, 7 | props: { 8 | min: 3, 9 | max: 10, 10 | align: 'center', 11 | placeholder: '评分总数' 12 | } 13 | }, 14 | { 15 | label: '评分提示', 16 | as: 'textarea', 17 | field: 'tips', 18 | tips: '使用逗号分隔每个等级的提示文字', 19 | direction: 'y', 20 | props: { 21 | placeholder: '例如: 很差,较差,一般,良好,优秀' 22 | } 23 | } 24 | ] 25 | -------------------------------------------------------------------------------- /lib/docs/views/form-engine/schema/components/slider-range.ts: -------------------------------------------------------------------------------- 1 | export default [ 2 | { 3 | label: '配置', 4 | as: 'input-table', 5 | field: 'options', 6 | direction: 'y' 7 | }, 8 | { 9 | label: '最小值', 10 | as: 'input-number', 11 | componentWidth: 100, 12 | field: 'min' 13 | }, 14 | { 15 | label: '最大值', 16 | as: 'input-number', 17 | componentWidth: 100, 18 | field: 'max' 19 | }, 20 | { 21 | label: '步长', 22 | as: 'input-number', 23 | componentWidth: 100, 24 | props: { 25 | align: 'center' 26 | }, 27 | field: 'step' 28 | } 29 | ] 30 | -------------------------------------------------------------------------------- /lib/docs/views/form-engine/schema/components/slider.ts: -------------------------------------------------------------------------------- 1 | export default [ 2 | { 3 | label: '配置', 4 | as: 'input-table', 5 | field: 'options', 6 | direction: 'y' 7 | }, 8 | { 9 | label: '最小值', 10 | as: 'input-number', 11 | componentWidth: 100, 12 | field: 'min' 13 | }, 14 | { 15 | label: '最大值', 16 | as: 'input-number', 17 | componentWidth: 100, 18 | field: 'max' 19 | }, 20 | { 21 | label: '步长', 22 | as: 'input-number', 23 | componentWidth: 100, 24 | props: { 25 | align: 'center' 26 | }, 27 | field: 'step' 28 | } 29 | ] 30 | -------------------------------------------------------------------------------- /lib/docs/views/form-engine/schema/components/switch.ts: -------------------------------------------------------------------------------- 1 | export default [ 2 | { 3 | label: '形状', 4 | as: 'tabs', 5 | field: 'round', 6 | props: { 7 | itemWidth: '50px', 8 | options: [ 9 | { 10 | label: '圆角', 11 | value: 1 12 | }, 13 | { 14 | label: '方形', 15 | value: 0 16 | } 17 | ] 18 | } 19 | } 20 | ] 21 | -------------------------------------------------------------------------------- /lib/docs/views/form-engine/schema/global.ts: -------------------------------------------------------------------------------- 1 | export const globalSchema = [ 2 | { 3 | label: '尺寸', 4 | as: 'tabs', 5 | field: 'size', 6 | componentWidth: 'auto', 7 | props: { 8 | itemWidth: '50px', 9 | options: [ 10 | { label: '小', value: 'small' }, 11 | { label: '中', value: 'medium' }, 12 | { label: '大', value: 'large' } 13 | ] 14 | } 15 | }, 16 | { 17 | label: '标签方向', 18 | as: 'tabs', 19 | field: 'direction', 20 | componentWidth: 'auto', 21 | props: { 22 | itemWidth: '50px', 23 | options: [ 24 | { label: '水平', value: 'x' }, 25 | { label: '垂直', value: 'y' } 26 | ] 27 | } 28 | } 29 | ] 30 | -------------------------------------------------------------------------------- /lib/docs/views/form-engine/schema/index.ts: -------------------------------------------------------------------------------- 1 | export * from './compoments-menus' 2 | export * from './base' 3 | export * from './global' 4 | -------------------------------------------------------------------------------- /lib/hooks/index.ts: -------------------------------------------------------------------------------- 1 | export { useDOMCreate } from './src/useDOMCreate' 2 | export { useEventListener } from './src/useEventListener' 3 | -------------------------------------------------------------------------------- /lib/hooks/src/useDOMCreate.ts: -------------------------------------------------------------------------------- 1 | export function useDOMCreate(nodeId: string): void { 2 | const node = document.getElementById(nodeId) 3 | if (node) { 4 | return 5 | } else { 6 | const newNode = document.createElement('div') 7 | newNode.id = nodeId 8 | document.body.appendChild(newNode) 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /lib/hooks/src/useEventListener.ts: -------------------------------------------------------------------------------- 1 | import { onMounted, onUnmounted } from 'vue' 2 | 3 | export function useEventListener( 4 | target: EventTarget, 5 | event: string, 6 | callback: EventListenerOrEventListenerObject 7 | ): void { 8 | onMounted(() => target.addEventListener(event, callback, true)) 9 | onUnmounted(() => target.removeEventListener(event, callback, true)) 10 | } 11 | -------------------------------------------------------------------------------- /lib/methods/dialog/index.ts: -------------------------------------------------------------------------------- 1 | export * from './src' 2 | -------------------------------------------------------------------------------- /lib/methods/index.ts: -------------------------------------------------------------------------------- 1 | export * from './message' 2 | export * from './dialog' 3 | export * from './notification' 4 | -------------------------------------------------------------------------------- /lib/methods/message/index.ts: -------------------------------------------------------------------------------- 1 | export { default as LewMessage } from './src' 2 | -------------------------------------------------------------------------------- /lib/methods/notification/index.ts: -------------------------------------------------------------------------------- 1 | export * from './src' 2 | -------------------------------------------------------------------------------- /lib/styles/index.scss: -------------------------------------------------------------------------------- 1 | @use './reset.scss' as *; 2 | @use './main.scss' as *; 3 | @use './var.scss' as *; 4 | @use './tippy.scss' as *; 5 | -------------------------------------------------------------------------------- /lib/types/index.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * 主题色类型 3 | */ 4 | export type LewThemeColor = 5 | | 'black' 6 | | 'blue' 7 | | 'brown' 8 | | 'cyan' 9 | | 'gray' 10 | | 'green' 11 | | 'indigo' 12 | | 'mint' 13 | | 'orange' 14 | | 'pink' 15 | | 'purple' 16 | | 'red' 17 | | 'teal' 18 | | 'yellow' 19 | 20 | /** 21 | * 状态色类型 22 | */ 23 | export type LewStatusColor = 24 | | 'error' 25 | | 'success' 26 | | 'warning' 27 | | 'info' 28 | | 'normal' 29 | | 'primary' 30 | 31 | /** 32 | * 颜色类型 = 主题色 + 状态色 33 | */ 34 | export type LewColor = LewThemeColor | LewStatusColor 35 | 36 | /** 37 | * 尺寸类型 38 | */ 39 | export type LewSize = 'small' | 'medium' | 'large' 40 | 41 | /** 42 | * 方向类型 43 | */ 44 | export type LewDirection = 'x' | 'y' 45 | -------------------------------------------------------------------------------- /public/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lewkamtao/lew-ui/339ac387fde8d03b67a830b7649d332aa431d065/public/favicon.ico -------------------------------------------------------------------------------- /tsconfig.node.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "composite": true, 4 | "skipLibCheck": true, 5 | "module": "ESNext", 6 | "moduleResolution": "bundler", 7 | "allowSyntheticDefaultImports": true 8 | }, 9 | "include": ["vite.config.ts"] 10 | } 11 | -------------------------------------------------------------------------------- /vitest.config.ts: -------------------------------------------------------------------------------- 1 | import { defineConfig } from 'vitest/config' 2 | import Vue from '@vitejs/plugin-vue' 3 | import VueJsx from '@vitejs/plugin-vue-jsx' 4 | 5 | export default defineConfig({ 6 | plugins: [Vue(), VueJsx()], 7 | optimizeDeps: { 8 | disabled: true 9 | }, 10 | test: { 11 | clearMocks: true, 12 | environment: 'jsdom', 13 | transformMode: { 14 | web: [/\.[jt]sx$/] 15 | } 16 | } 17 | }) 18 | --------------------------------------------------------------------------------