Bläddra i källkod

前后端融合

luoyifan 3 år sedan
förälder
incheckning
a41314c94a
3 ändrade filer med 10 tillägg och 1 borttagningar
  1. 6 0
      doc/index.md
  2. 3 1
      package.json
  3. 1 0
      tsconfig.json

+ 6 - 0
doc/index.md

@@ -0,0 +1,6 @@
+# 上下左右布局
+```js
+export default {
+    layout: 'border'
+}
+```

+ 3 - 1
package.json

@@ -4,9 +4,11 @@
   "description": "yvan low-code development platformSuppas.",
   "license": "Apache",
   "main": "dist/yvan-ext.js",
+  "typings": "dist/index.d.ts",
   "scripts": {
     "clean": "rimraf dist/",
-    "dev": "rollup -w -c build/rollup.amd.js --environment NODE_ENV:development"
+    "dev": "rollup -w -c build/rollup.amd.js --environment NODE_ENV:development",
+    "tsd": "tsc --emitDeclarationOnly"
   },
   "devDependencies": {
     "@rollup/plugin-json": "^4.1.0",

+ 1 - 0
tsconfig.json

@@ -8,6 +8,7 @@
     "allowJs": true,
     "checkJs": true,
     "importHelpers": true,
+    "declaration": true,
     "experimentalDecorators": true,
     "emitDecoratorMetadata": true,
     "esModuleInterop": true,