mwl-components 0.0.23 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -42,6 +42,85 @@ app.mount('#app')
42
42
 
43
43
  ### 如果你不想 全局注册element-plus 你要在注册组件库前,单独注册组件库使用的element-plus组件
44
44
 
45
+ ```sh
46
+ import 'element-plus/dist/index.css'
47
+ import 'element-plus/theme-chalk/dark/css-vars.css' //暗黑模式
48
+
49
+ import mwlComponents from 'mwl-components'
50
+ import 'mwl-components/dist/mwl-components.css'
51
+ import {
52
+ ElForm,
53
+ ElFormItem,
54
+ ElInput,
55
+ ElSelect,
56
+ ElSelectV2,
57
+ ElTreeSelect,
58
+ ElOption,
59
+ ElDatePicker,
60
+ ElSwitch,
61
+ ElCascader,
62
+ ElCheckbox,
63
+ ElRadio,
64
+ ElRadioGroup,
65
+ ElCheckboxGroup,
66
+ ElInputNumber,
67
+ ElTable,
68
+ ElTableColumn,
69
+ ElButton,
70
+ ElMenu,
71
+ ElSubMenu,
72
+ ElMenuItem,
73
+ ElPagination,
74
+ ElDialog,
75
+ ElScrollbar,
76
+ ElCard,
77
+ ElTooltip,
78
+ ElIcon
79
+ } from 'element-plus'
80
+ ```
81
+
82
+ ```sh
83
+ const components = [
84
+ ElForm,
85
+ ElFormItem,
86
+ ElInput,
87
+ ElSelect,
88
+ ElSelectV2,
89
+ ElTreeSelect,
90
+ ElOption,
91
+ ElDatePicker,
92
+ ElSwitch,
93
+ ElCascader,
94
+ ElCheckbox,
95
+ ElRadio,
96
+ ElRadioGroup,
97
+ ElCheckboxGroup,
98
+ ElInputNumber,
99
+ ElTable,
100
+ ElTableColumn,
101
+ ElButton,
102
+ ElMenu,
103
+ ElSubMenu,
104
+ ElMenuItem,
105
+ ElPagination,
106
+ ElDialog,
107
+ ElScrollbar,
108
+ ElCard,
109
+ ElTooltip,
110
+ ElIcon
111
+ ]
112
+ ```
113
+
114
+ ```sh
115
+ export const installs = (app: any) => {
116
+ // app.use(ElementPlus)
117
+ components.forEach((component) => {
118
+ app.component(component.name, component)
119
+ })
120
+ app.use(mwlComponents)
121
+ }
122
+ ```
123
+
45
124
  ⚠️ **注意::** 主项目使用 ”插件按需导入“ 的无效,请使用手动按需导入
46
125
 
47
126
  #### 组件包括如果
@@ -79,7 +158,7 @@ import { ElTable, ElTableColumn, ElButton } from 'element-plus'
79
158
  EasyForm
80
159
 
81
160
  ```sh
82
- import { ElForm, ElFormItem, ElInput, ElSelect, ElOption, ElDatePicker, ElSwitch, ElCascader, ElCheckbox, ElRadio, ElRadioGroup, ElCheckboxGroup, ElInputNumber } from 'element-plus'
161
+ import { ElForm, ElFormItem, ElInput, ElSelect, ElSelectV2, ElTreeSelect, ElOption, ElDatePicker, ElSwitch, ElCascader, ElCheckbox, ElRadio, ElRadioGroup, ElCheckboxGroup, ElInputNumber } from 'element-plus'
83
162
  ```
84
163
 
85
164
  ## 打包配置问题