# 拖拽测试 **Repository Path**: p3k/drag-test ## Basic Information - **Project Name**: 拖拽测试 - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-05-04 - **Last Updated**: 2021-05-10 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ## 开发 ```bash # 克隆项目 git clone https://git.code.tencent.com/ssch-front/sshc-tenant-admin.git # 进入项目目录 cd sshc-tenant-admin # 建议不要直接使用 cnpm 安装依赖,会有各种诡异的 bug。可以通过如下操作解决 npm 下载速度慢的问题 npm install -g cnpm --registry=http://registry.npm.taobao.org # 安装依赖 cnpm install # 启动服务 npm run dev ``` 浏览器访问 http://localhost:80 ## 发布 ```bash # 构建测试环境 npm run build:sit # 构建生产环境 npm run build:prod ``` ## Const Plugin > ./components/constPlugin.js ### 1. 添加 新的常量 NewConst 加入到 ConstVariable 对象中 ```javascript const ConstVariable = { OldValue:'some thing', NewConst:'new value' } ``` ### 2.使用 - 在 template 中使用 NewConst ```vue

{{ $getConst('NewConst')}}

``` - 在 script 中使用 ```vue this.$getConst('NewConst') ``` # 插件 ## Const Plugin > ./components/constPlugin.js ### 1. 添加 新的常量 NewConst 加入到 ConstVariable 对象中 ```javascript const ConstVariable = { OldValue:'some thing', NewConst:'new value' } ``` ### 2.使用 - 在 template 中使用 NewConst ```vue

{{ $getConst('NewConst')}}

``` - 在 script 中使用 ```vue this.$getConst('NewConst') ```