conorg-vab-plus-sit 1.0.0 → 1.0.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 +49 -0
- package/lib/index.es.js +319 -320
- package/lib/index.umd.js +8 -8
- package/package.json +1 -1
package/README.md
CHANGED
@@ -151,3 +151,52 @@
|
|
151
151
|
}
|
152
152
|
}
|
153
153
|
```
|
154
|
+
|
155
|
+
## 使用
|
156
|
+
|
157
|
+
### npm
|
158
|
+
|
159
|
+
```bash
|
160
|
+
cnpm install conorg-vab-plus-sit
|
161
|
+
```
|
162
|
+
|
163
|
+
main.ts
|
164
|
+
|
165
|
+
```ts
|
166
|
+
import VabPlus from 'conorg-vab-plus-sit'
|
167
|
+
import 'conorg-vab-plus-sit/styles'
|
168
|
+
app.use(VabPlus)
|
169
|
+
```
|
170
|
+
|
171
|
+
### html 全量
|
172
|
+
|
173
|
+
```bash
|
174
|
+
|
175
|
+
<script src="http://vab-ui.conorg.cn/remote-comps/v1.0.1/index.umd.js"></script>
|
176
|
+
|
177
|
+
<link
|
178
|
+
rel="stylesheet"
|
179
|
+
href="http://vab-ui.conorg.cn/remote-comps/v1.0.1/index.css"
|
180
|
+
/>
|
181
|
+
|
182
|
+
window.renderElement({
|
183
|
+
id: "button-container",
|
184
|
+
component: "vab-button",
|
185
|
+
});
|
186
|
+
```
|
187
|
+
|
188
|
+
### html 按需
|
189
|
+
|
190
|
+
```bash
|
191
|
+
<script src="http://vab-ui.conorg.cn/remote-comps/v1.0.7/button/index.umd.js"></script>
|
192
|
+
|
193
|
+
<link
|
194
|
+
rel="stylesheet"
|
195
|
+
href="http://vab-ui.conorg.cn/remote-comps/v1.0.7/button/index.css"
|
196
|
+
/>
|
197
|
+
|
198
|
+
window.renderElement({
|
199
|
+
id: "button-container",
|
200
|
+
component: "vab-button",
|
201
|
+
});
|
202
|
+
```
|