Skip to content

Commit 125c4d7

Browse files
committed
更新依赖
1 parent 6ea1fd7 commit 125c4d7

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+1428
-203
lines changed

.storybook/main.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@ module.exports = {
1818
use: ['style-loader', 'css-loader', 'sass-loader'],
1919
include: path.resolve(__dirname, '../'),
2020
});
21+
config.module.rules.push( {
22+
test: /\.txt$/i,
23+
use: 'raw-loader',
24+
});
2125
config.resolve.plugins = [
2226
...(config.resolve.plugins || []),
2327
new TsconfigPathsPlugin({

.storybook/preview.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,14 @@
11
import {MINIMAL_VIEWPORTS} from '@storybook/addon-viewport';
2-
2+
import {app} from '@storybook/vue3';
33
import 'animate.css'
44
import '@widget-js/vue3/dist/mingcute_icon/font/Mingcute.css';
5+
import 'element-plus/dist/index.css'
6+
7+
import ElementPlus from 'element-plus'
8+
import {createPinia} from "pinia";
9+
import '../src/common/dayjs-extend';
510

11+
app.use(ElementPlus).use(createPinia());
612
const customViewports = {
713
widget1x1: {
814
name: '组件1x1',

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ pnpm storybook
5454

5555
### 创建自己的组件
5656
```shell
57-
pnpm widget
57+
pnpm widget create
5858
```
5959

6060
### 组件列表

components.d.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,17 @@ export {}
77

88
declare module '@vue/runtime-core' {
99
export interface GlobalComponents {
10+
ElButton: typeof import('element-plus/es')['ElButton']
11+
ElDatePicker: typeof import('element-plus/es')['ElDatePicker']
12+
ElForm: typeof import('element-plus/es')['ElForm']
13+
ElFormItem: typeof import('element-plus/es')['ElFormItem']
14+
ElInput: typeof import('element-plus/es')['ElInput']
15+
ElInputNumber: typeof import('element-plus/es')['ElInputNumber']
16+
ElRadio: typeof import('element-plus/es')['ElRadio']
17+
ElRadioGroup: typeof import('element-plus/es')['ElRadioGroup']
18+
ElScrollbar: typeof import('element-plus/es')['ElScrollbar']
19+
ElTable: typeof import('element-plus/es')['ElTable']
20+
ElTableColumn: typeof import('element-plus/es')['ElTableColumn']
1021
RouterLink: typeof import('vue-router')['RouterLink']
1122
RouterView: typeof import('vue-router')['RouterView']
1223
}

package.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
"dependencies": {
2929
"@vueuse/core": "^9.4.0",
3030
"@vueuse/integrations": "^9.6.0",
31-
"@widget-js/core": "^0.1.14",
31+
"@widget-js/core": "^0.1.15",
3232
"@widget-js/vue3": "^0.0.11",
3333
"animate.css": "^4.1.1",
3434
"axios": "^1.1.3",
@@ -40,6 +40,8 @@
4040
"element-plus": "^2.2.26",
4141
"lodash": "^4.17.21",
4242
"lunar-typescript": "^1.2.23",
43+
"lyric-resolver": "^0.1.6",
44+
"pinia": "^2.0.23",
4345
"vue": "^3.2.30",
4446
"vue-i18n": "^9.2.2",
4547
"vue-router": "^4.0.3"
@@ -70,7 +72,8 @@
7072
"@vue/cli-service": "~5.0.0",
7173
"@vue/compiler-sfc": "^3.2.45",
7274
"@vue/eslint-config-typescript": "^9.1.0",
73-
"@widget-js/cli": "^1.0.4",
75+
"@widget-js/cli": "^1.0.5",
76+
"@widget-js/webpack-plugin": "^1.0.1",
7477
"archiver": "^5.3.1",
7578
"babel-loader": "^8.3.0",
7679
"css-loader": "^6.7.2",

public/audio/hangup.m4a

4.86 KB
Binary file not shown.

public/audio/ringtone.m4a

42.6 KB
Binary file not shown.

public/audio/voice_squidward.m4a

603 KB
Binary file not shown.

script/registerWidgetPackage.js

Lines changed: 0 additions & 22 deletions
This file was deleted.

script/requireWidgets.js

Lines changed: 0 additions & 33 deletions
This file was deleted.

0 commit comments

Comments
 (0)