Giter Club home page Giter Club logo

Comments (8)

watsonhaw5566 avatar watsonhaw5566 commented on May 23, 2024

还有在维护的,但是不会做大更新了,精力有限,如果遇到问题你可以提 issue 。

from remax.

Tinyuen avatar Tinyuen commented on May 23, 2024

@watsonhaw5566 头条小程序,新的api是没办法支持么,比如 canvas 的 canvasToTempFilePath,今年3月份官网新增的,我看包里面都没有导出这个方法,有啥办法直接获取到原始小程序的上下文对象么,比如 tt

from remax.

watsonhaw5566 avatar watsonhaw5566 commented on May 23, 2024

啥办法直接获取到原始小程序的上下文对象么,比如 tt

tt.函数名 可以直接使用的,你试一下。麻烦你 canvasToTempFilePath 发一下这个 api 的接口我看看,
我抽空更新一下,字节这里我也没有使用,所以对一些新接口更新会有所延迟。

from remax.

Tinyuen avatar Tinyuen commented on May 23, 2024

@watsonhaw5566 感谢大佬,我昨天试过了,项目里面是可以直接使用tt的,没啥毛病倒是,顶多是类型自己 在 global declare 下。 我现在是直接从 tt.canvasToTempFilePath 调用的。
文档地址:https://open.feishu.cn/document/uYjL24iN/ukjMy4SOyIjL5IjM/canvastotempfilepath

因为是今年3月出来的api,可能要有些没有同步过来,不过能直接用tt,其实问题也不大

from remax.

watsonhaw5566 avatar watsonhaw5566 commented on May 23, 2024

@Tinyuen 由于之前头条的api 的大致于微信的相同 ,所以类型上复用了@types/wechat-miniprogram。
头条的小程序现在都还没有 typescript 的 @types 类型 ,我抽空再新增一下你提的这几个api。即时加了还是类型提示不完整。
(貌似他们现在都还没支持ts开发,我之前在社区问过他们ts开发的问题。)

这几个都是新增的吗?

image

from remax.

Tinyuen avatar Tinyuen commented on May 23, 2024

@watsonhaw5566 感觉可以搜下,我没有全使用,基本上今年3月份之后新增的 api 应该是都没有的。不过这样一直追随着他人的版本更新,你们维护成本确实蛮高的。

from remax.

watsonhaw5566 avatar watsonhaw5566 commented on May 23, 2024

@watsonhaw5566 感觉可以搜下,我没有全使用,基本上今年3月份之后新增的 api 应该是都没有的。不过这样一直追随着他人的版本更新,你们维护成本确实蛮高的。

其实还好,主要是没有 types 类型就很麻烦,加了也只是一个导出,并没有IDE类型提示的。让开源项目去重新写一个 types 也不太现实。

from remax.

Tenodec avatar Tenodec commented on May 23, 2024

还有在维护的,但是不会做大更新了,精力有限,如果遇到问题你可以提 issue 。

那就是社区在维护了吗

from remax.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.