With the rapid development of technology, front-end development technology is changing with each passing day. In this context, Jeesite Vue3 has attracted a lot of attention as a front-end framework based on Vue3, Vite, ANT-DESIGN-VUE, TypeScript, and Vue's VBEN Admin. With its advanced technology stack and rich functional modules, it provides a fast, efficient, and powerful development platform for beginners and team developers.
The tech stack of Jeesite Vue3
The tech stack of Jeesite Vue3 includes Vue3, Vite, ANT-DESIGN-VUE, TypeScript, and Vue VBEN Admin. These technologies are currently leaders in front-end development, and when combined, they provide developers with a robust and modern development environment.
As a popular front-end framework, Vue3 greatly improves development efficiency with its component-based development method and concise API. Vite is a modern front-end build tool that provides fast cold starts and instant hot updates to make the development process smoother. ant-design-vue is a vue implementation of ant design, which provides a set of high-quality UI components that make the interface design more beautiful and easy to use. TypeScript is a superset of J**Ascript, which improves quality through static type checking and a rich type system. Finally, Vue VBEN Admin is a high-quality back-office management system template that provides a ready-made solution for the development of medium to large projects.
Improvements from vben admin:
More refined interface details are optimized and improved, which is very suitable for information management background.
Theme style improvements, different layout styles, menu and permission experience optimization.
Activity status activation and loading optimization improvements for top menus, delimited menus, and hybrid menus.
Tree tables can be encapsulated asynchronously to improve the performance of unfolded and folded tree tables by layer.
The tree structure adds quick refresh, dynamic tree generation, and hierarchical independent and non-independent data return compatibility.
Added the function of displaying the left tree and the right table, collapsing the left tree, and added the default icon of the tree component.
The form component adapts to a variety of data formats**, especially multi-select strings to arrays.
Various convenient attributes and form components are added to the form, and the drop-down box and tree selection support label name echoing.
Form component, improve the algorithm of folding form action, and intelligent layout.
* More components, actions, support landscape display operation, more convenient.
* Components, sub-table editing improvements, ** column sorting and reset improvements optimization.
Added a dictionary component, which supports displaying to ** columns, form component drop-down boxes, radio boxes, etc.
Dictionary tags support tags, such as tag, badge, custom class, style, etc., to display styles.
It is more convenient to support the caching of tab pages, and do not reload the page content when switching tabs.
Tab interface beautification, icon display, right-click on any tab, quick refresh, etc.
Global axios improvements, compatibility with various data formats, timeout message reminder improvements.
The function has improved permission authentication and is compatible with both local and background routes.
and so on, experience optimization, dark layout detail optimization.
The vue side is completely open source, and you will fall in love with it when you use it, which is so convenient.
Define many components, very intimate component attributes and small functions, in line with Jeesite's previous design ideas, lists and forms with data-driven views, greatly simplify the development of business functions, and the annotation decomposition is detailed in the [Source Code Analysis] at the bottom of this page
Why do you want to do a data-driven view? Front-end backward compatibility has always been the biggest problem, and having a set of standards will help a lot to upgrade the framework. For example, you can upgrade the front-end at a very small cost and with very small changes to the business; The data-driven view can better pave the way for future custom drag-and-drop forms, and the data storage structure is clearer and easier to maintain.
Note: Please read the source code parsing, the comments on the form view and the list view carefully, complex forms can be used in conjunction with multiple forms.
If you don't have nodejs 16, **Address:
Verify node -vIf yarn is not installed, the installation is performed (yarn v1 is required.)x)
npm i -g yarn validates yarn -vFetch**.
git clone jeesite-vueNote: Do not put in Chinese or whitespace directories.
Install dependencies.
yarn config set registry installAccess to the development environment (Mode 1).
yarn serveThe development environment will load a large number of files, which is convenient for debugging, please be patient.
Run access after compiling and packaging (Method 2).
yarn previewAfter compiling and packaging, these files will be integrated, so the access performance will be greatly improved, and the production environment can open gzip
Package the publisher.
yarn buildAfter the packaging is completed, a dist folder will be generated in the root directory and nginx will be published.
For details, see Deploying to a Live Server.
Address: The basictree tree component uses actual combat analysis.
In modern front-end development, tree components are a common UI element, especially in back-end management systems, which can help users better build hierarchical menu buttons. This article will explain in detail how to use a tree component called basictree and how to use it.
The renderings are as follows:
The implementation is as follows
First, let's take a brief look at the basic properties of the basictree component. This component supports the following properties:title: Sets the title of the tree component.
search: whether to enable the search function.
Whether or not to display the toolbar.
showicon: whether to display the icon in front of the node.
treedata: sets an array of tree data.
defaultexpandlevel: the level to be expanded by default.
Through these attributes, we can customize the configuration of tree components to meet different business needs.
Next, let's look at a specific example. In this example, we'll use Vue 3 and TypeScript, combined with a page container component called PageWrapper and a BasicTree tree component to create a simple tree menu.
In the template section, we define a pagewrapper component and nest a basictree component within it. We pass in some of the necessary properties, such as title, search, showicon, treedata, and defaultexpandlevel. At the same time, we also listen to a select event to handle the logic when a node is selected.
In the script section, we first imported the necessary components and utility functions. We then define an array of tree data called CompanyTreeData, which contains the hierarchy of the menu. Next, we define a handleselect function that handles the logic when a node is selected. In this example, we simply print out the key of the selected node.
With this example, we can see that the basictree component is very simple and intuitive to use. We only need to pass in the appropriate properties to customize the configuration of the tree component. At the same time, by listening to events, we can easily handle the user interaction logic.
Conclusion
As a future-leading front-end framework, Jeesite Vue3 provides a new development experience for front-end developers with its advanced technology stack and rich functional modules. It allows beginners to get started quickly, while also providing great support for team developers. Whether it's a small project or a medium to large project, Jeesite VUE3 provides ready-to-use solutions and rich examples to make the development process more efficient.
The BasicTree Tree component is a powerful and easy-to-use UI component that meets a common need in a back-end management system. By mastering its properties and event handling methods, we can easily build a tree-structured interface that meets business needs and improve the user experience and interactivity of the system.
Hopefully, this technical blog will help you understand the use of basictree components! If you have any questions or something you need to know more, please feel free to ask.
Attached is the address of the jeesite-vue document
Attached is the address of the jeesite-vue framework
Attached is the address of the jeesite-vue framework server