Browse Source

refactor: 将常量单独出来

qufenxi
alan 6 years ago
parent
commit
9996539b5d
  1. 1
      private/constants.ts
  2. 2
      src/app/link_set/right/right_title/right.title.component.ts
  3. 5
      src/app/link_set/select/select.service.ts
  4. 2
      tsconfig.json
  5. 1
      webpack.config.js

1
private/constants.ts

@ -0,0 +1 @@
export const OTHER_CONNECT = 'other';

2
src/app/link_set/right/right_title/right.title.component.ts

@ -1,7 +1,7 @@
import {WidgetType, Left, Label, Button} from '@ui/index';
import RightTitleModel from '../../link-set.model';
import {LinkType} from '@ui/type';
import {OTHER_CONNECT} from '../../select/select.service';
import {OTHER_CONNECT} from '@private/constants';
const className = 'fr.component.right.title';
const Widget: WidgetType = {
_store() {

5
src/app/link_set/select/select.service.ts

@ -1,9 +1,6 @@
import {LinkType} from '@ui/type';
import pluginListConstant from '../../app.constant';
/**
*
*/
export const OTHER_CONNECT = 'other';
import {OTHER_CONNECT} from '@private/constants';
export const databaseTyle = [
{

2
tsconfig.json

@ -17,6 +17,8 @@
"@types": ["src/ui/index"],
"@shared/*": ["src/shared/*"],
"@shared": ["src/shared"],
"@private/*": ["private/*"],
"@private": ["private"],
}
},
"include": [

1
webpack.config.js

@ -24,6 +24,7 @@ module.exports = env => {
"@ui": path.resolve("src/ui"),
"@types": path.resolve("types"),
"@shared": path.resolve("src/shared"),
"@private": path.resolve("private"),
}
},
plugins: [htmlWebpackPlugin, new MiniCssExtractPlugin({filename: `style.css`}), new CopyPlugin([

Loading…
Cancel
Save