From 859c650183a2cd754f50ddf32d843dee63f45307 Mon Sep 17 00:00:00 2001 From: prohorry-me Date: Thu, 23 Aug 2018 16:34:46 +0800 Subject: [PATCH] =?UTF-8?q?Vue=E8=A1=A8=E5=8D=95=20Vue=E7=9C=81=E5=B8=82?= =?UTF-8?q?=E5=8C=BA=E4=B8=89=E7=BA=A7=E8=81=94=E5=8A=A8=E9=80=89=E6=8B=A9?= =?UTF-8?q?=E7=BB=84=E4=BB=B6=20sweetalert=E6=8F=92=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- laravel/laravel5/3.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/laravel/laravel5/3.md b/laravel/laravel5/3.md index 0da146f..40cc3c3 100644 --- a/laravel/laravel5/3.md +++ b/laravel/laravel5/3.md @@ -193,14 +193,14 @@ # 在 windows.homestead 中用 Yarn 都得加参数 --no-bin-links ``` ----------------------------------------------------------------------------- - * 用 Vue 弄一个表单组件 resources/assets/js/components/UserAddressesCreateAndEdit.js [详情参考]() + * 用 Vue 弄一个表单组件 resources/assets/js/components/UserAddressesCreateAndEdit.js [详情参考](https://github.com/prohorry-me/laravel-shop/blob/master/resources/assets/js/components/UserAddressesCreateAndEdit.js) > 里面就三个数据:记录省市区(这三个数据和下面的省市区三级联动组件的省市区用Vue `v-model` 关联) > 同时有一个方法 `onDistrictChanged()` => 监听下面的组件的选择 change 事件 `@change="onDistrictChanged"` ----------------------------------------------------------------------------- * 用 Vue 搞一个省市区联动的组件 * 装一个叫 [china-area-data](https://github.com/airyland/china-area-data/blob/master/v3/data.js) 的包:里面是放的中国几乎全部省市区的信息 - * 新建一个 Vue 组件: resources/assets/js/components/SelectDistrict.js [详情参考]() + * 新建一个 Vue 组件: resources/assets/js/components/SelectDistrict.js [详情参考](https://github.com/prohorry-me/laravel-shop/blob/master/resources/assets/js/components/SelectDistrict.js) * 编辑 resources/assets/js/app.js ``` ... @@ -592,4 +592,4 @@ \App\Models\UserAddress::class => \App\Policies\UserAddressPolicy::class, // <= 添加这句 ]; ``` - * 在 UserAddressesController@edit update destroy 中授权 `$this->authorize('own', $user_address);` \ No newline at end of file + * 在 UserAddressesController@edit update destroy 中授权 `$this->authorize('own', $user_address);`