Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

A component calling method, apparatus, device and storage medium

A technology of components and sub-components, applied in the field of computer software applications, can solve the problems that components and APIs cannot meet the needs of developers, reduce development efficiency, and reinvent the wheel, so as to meet the needs of business development and improve development efficiency.

Active Publication Date: 2022-04-22
SHENZHEN LEXIN SOFTWARE TECH CO LTD
View PDF9 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] Although Weex itself contains some built-in components and APIs (Application Programming Interface, application programming interface), for daily business development, the components and APIs that come with Weex are far from meeting the needs of developers.
When developers use Weex for development, the phenomenon of "reinventing the wheel" often occurs, which reduces development efficiency
At the same time, the existing Weex needs to update the entire component library when updating the component library. After the update, users cannot use the old version of the sub-components

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • A component calling method, apparatus, device and storage medium
  • A component calling method, apparatus, device and storage medium
  • A component calling method, apparatus, device and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0027] Figure 1a It is a flow chart of a component calling method provided by Embodiment 1 of the present invention. This embodiment is applicable to calling subcomponents in a pre-built Weex public component library. The method can be executed by a component calling device, which can be performed by It can be realized by means of software and / or hardware, and can generally be integrated in computer equipment. Correspondingly, such as Figure 1a As shown, the method includes the following operations:

[0028] S110. Install and configure a pre-built Weex common component library.

[0029] Wherein, the Weex public component library includes at least two types of sub-components; the update operation between the Weex public component library and the sub-components, and the update operation between the sub-components are independent of each other.

[0030] In the embodiment of the present invention, the Weex public component library is a pre-built component library, and the entir...

Embodiment 2

[0040] Figure 2a It is a flowchart of a component calling method provided by Embodiment 2 of the present invention. This embodiment is embodied on the basis of the above-mentioned embodiments. The specific implementation of the subcomponents in the common component library. Correspondingly, such as Figure 2a As shown, the method of this embodiment may include:

[0041] S210. Install and configure a pre-built Weex common component library.

[0042] S220. Fill the component object, name, version number, and setting symbol corresponding to the subcomponent at the set position in the code statement of the set format to form a code statement to be executed.

[0043] Wherein, the setting location may be a location where code content needs to be modified correspondingly when calling different sub-components, and the setting symbol may be a user-defined symbol, such as "~, @ or &".

[0044] In the embodiment of the present invention, code content such as component object, name, ...

Embodiment 3

[0066] image 3 It is a schematic diagram of a component invoking device provided by Embodiment 3 of the present invention, such as image 3 As shown, the device includes: a component library installation module 310 and a subcomponent calling module 320, wherein:

[0067]Component storehouse installation module 310, is used for installing and disposing pre-built Weex public component storehouse, wherein, described Weex public storehouse comprises at least two types of subassemblies; update operations, and update operations between said subcomponents are independent of each other;

[0068] The subcomponent calling module 320 is used to call the subcomponents in the Weex public component library through the formatted code statement.

[0069] The embodiment of the present invention calls the subcomponents in the Weex public component library by installing and configuring the pre-built Weex public component library through a formatted code statement, wherein the Weex public comp...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The embodiment of the present invention discloses a component calling method, device, device and storage medium. The method includes: installing and configuring a pre-built Weex public component library, wherein the Weex public component library includes at least two types of Components; the update operation between the Weex public component library and the sub-components, and the update operation between the sub-components are independent of each other; the sub-components in the Weex public component library are called by the formatted code statement . The technical solutions of the embodiments of the present invention can meet the business development requirements of developers and improve development efficiency.

Description

technical field [0001] The embodiments of the present invention relate to the technical field of computer software applications, and in particular to a method, device, device and storage medium for invoking a component. Background technique [0002] Weex is an open source cross-platform page rendering solution. Its principle is to write platform-independent page rendering rules defined by Weex through templated JavaScript, compile them into standard JavaScript script files through webpack and embed them into the integrated Weex SDK (Software Development Kit, software development kit) in mobile applications. Execute the JavaScript script in the mobile application through the JavaScript runtime to dynamically generate the native controls corresponding to the mobile platform to achieve the same user experience as the native application. Weex can perfectly balance performance and dynamics, allowing mobile developers to write Native-level performance experience through simple fr...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Patents(China)
IPC IPC(8): G06F8/38G06F8/30G06F8/35
CPCG06F8/315G06F8/35G06F8/38
Inventor 吴经纬李文彬黄琳
Owner SHENZHEN LEXIN SOFTWARE TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products