feat: update layout

This commit is contained in:
Qiuxia Fan
2021-12-22 19:21:10 +08:00
parent d98280c427
commit aa196251f6
9 changed files with 390 additions and 237 deletions

View File

@@ -38,7 +38,7 @@ declare global {
};
// vue
declare type PropType<T> = VuePropType<T>;
export declare type PropType<T> = VuePropType<T>;
declare type VueNode = VNodeChild | JSX.Element;
export type Writable<T> = {

View File

@@ -14,8 +14,18 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
declare module "vue-drag-resize" {
declare module "vue-grid-layout" {
import Vue from "vue";
export class VueDragResize extends Vue {}
export class GridLayout extends Vue {}
export class GridItem extends Vue {}
export interface GridItemData {
x: number;
y: number;
w: number;
h: number;
i: string;
}
}