Tencent / tdesign-vue-starter

A starter-kit for TDesign Vue UI components.
https://tdesign.tencent.com/starter/vue/
MIT License
373 stars 92 forks source link

希望提供js版本 #241

Open MarkGor opened 1 year ago

MarkGor commented 1 year ago

这个功能解决了什么问题

後端,學了vue2後沒力卷ts和vue3了,希望能提供js版本的手腳架

你建议的方案是什么

希望能提供js版本的手腳架

github-actions[bot] commented 1 year ago

👋 @MarkGor,感谢给 TDesign 提出了 issue。 请根据 issue 模版确保背景信息的完善,我们将调查并尽快回复你。

github-actions[bot] commented 1 year ago

♥️ 有劳 @uyarn 尽快确认问题。 确认有效后将下一步计划和可能需要的时间回复给 @MarkGor 。

uyarn commented 1 year ago

会提供的

miller806 commented 1 year ago

执行npm run build报以下错:

> second@0.6.1 build
> vue-tsc --noEmit && vite build --mode release

src/utils/request/Axios.ts:66:44 - error TS2345: Argument of type '(config: AxiosRequestConfig) => AxiosRequestConfig<any>' is not assignable to parameter of type '(value: InternalAxiosRequestConfig<any>) => InternalAxiosRequestConfig<any> | Promise<InternalAxiosRequestConfig<any>>'.
  Type 'AxiosRequestConfig<any>' is not assignable to type 'InternalAxiosRequestConfig<any> | Promise<InternalAxiosRequestConfig<any>>'.
    Type 'AxiosRequestConfig<any>' is not assignable to type 'InternalAxiosRequestConfig<any>'.
      Types of property 'headers' are incompatible.
        Type 'AxiosHeaders | (Partial<RawAxiosHeaders & { Accept: AxiosHeaderValue; "Content-Length": AxiosHeaderValue; "User-Agent": AxiosHeaderValue; "Content-Encoding": AxiosHeaderValue; Authorization: AxiosHeaderValue; } & { ...; }> & Partial<...>)' is not assignable to type 'AxiosRequestHeaders'.
          Type 'Partial<RawAxiosHeaders & { Accept: AxiosHeaderValue; "Content-Length": AxiosHeaderValue; "User-Agent": AxiosHeaderValue; "Content-Encoding": AxiosHeaderValue; Authorization: AxiosHeaderValue; } & { ...; }> & Partial<...>' is not assignable to type 'AxiosRequestHeaders'.
            Type 'Partial<RawAxiosHeaders & { Accept: AxiosHeaderValue; "Content-Length": AxiosHeaderValue; "User-Agent": AxiosHeaderValue; "Content-Encoding": AxiosHeaderValue; Authorization: AxiosHeaderValue; } & { ...; }> & Partial<...>' is missing the following properties from type 'AxiosHeaders': set, has, clear, normalize, and 21 more.

66     this.instance.interceptors.request.use((config: AxiosRequestConfig) => {
                                              ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Found 1 error in src/utils/request/Axios.ts:66
zyp1573 commented 1 year ago

会提供的

请问有规划了吗,有预计上线时间吗

MarkGor commented 1 year ago

会提供的

请问有规划了吗,有预计上线时间吗

🐶 我已学会ts了.....