Skip to content

Commit 29924a6

Browse files
committed
添加 Tooltip 组件
1 parent c26bb7c commit 29924a6

36 files changed

+314
-182542
lines changed
8.23 KB
Loading
14.3 KB
Loading

docs/components.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -250,6 +250,7 @@ ActionButton::make("ActionName")
250250
->order(3) //排序 越大越靠前
251251
->icon("icon-class-name")//图标
252252
->message("确认操作提示信息")
253+
->tooltip("气泡提示")//无message时生效
253254
->handler("route")
254255
->uri("WeChat/manage/{app_id}")//路径,{xxx}会被自动替换成当前行的对应值,支持 ?x=x 参数
255256
->dialog(function($dialog){//返回dialog实例
@@ -261,8 +262,6 @@ $grid->actions(function (Grid\Actions $actions) {
261262
});
262263
```
263264

264-
265-
266265
Dialog代码示例
267266

268267
![image-20200331142220245](components.assets/image-20200331142220245.png)
@@ -381,6 +380,8 @@ Select::make()->filterable()->remote($remoteUrl)
381380

382381
### Cascader 级联选择器
383382

383+
![image-20200331154059916](components.assets/image-20200331154059916.png)
384+
384385
当一个数据集合有清晰的层级结构时,可通过级联选择器逐级查看并选择
385386

386387
基础用法
@@ -571,6 +572,8 @@ ColorPicker::make()
571572

572573
### Transfer 穿梭框
573574

575+
![image-20200331154547211](components.assets/image-20200331154547211.png)
576+
574577
```php
575578
Transfer::make()->data($permissionModel::get()->map(function ($item) {
576579
return TransferData::make($item->id, $item->name);

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77
"watch-poll": "npm run watch -- --watch-poll",
88
"hot": "cross-env NODE_ENV=development node_modules/webpack-dev-server/bin/webpack-dev-server.js --inline --hot --config=node_modules/laravel-mix/setup/webpack.config.js",
99
"prod": "npm run production",
10-
"production": "cross-env NODE_ENV=production node_modules/webpack/bin/webpack.js --no-progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js"
10+
"production": "cross-env NODE_ENV=production node_modules/webpack/bin/webpack.js --no-progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js",
11+
"start":"concurrently -r \"npm:watch*\""
1112
},
1213
"devDependencies": {
1314
"@chenfengyuan/vue-qrcode": "^1.0.2",

0 commit comments

Comments
 (0)