Li Kui

Results 9 comments of Li Kui

要是没有国际化我应该不会选vben-admin

another solution: ```ts type First = T extends [infer F, ...infer _] ? F : never ```

`[T] extends [never]` stop it being distributive ➡[Conditional Types - Checking extends never only works sometimes](https://github.com/Microsoft/TypeScript/issues/23182#issuecomment-379091887)

my solution , check each value recursively ```typescript type Includes = T extends [infer First, ...infer Rest] ? Equal extends true ? true : Includes : false ```

https://antdv.com/components/transfer/#Transfer 我看了下源码,`targetKeys`是写死的。 ``` { field: 'field14', component: 'Transfer', label: '穿梭框', colProps: { span: 8, }, componentProps: { render: (item) => item.label, dataSource: citiesOptionsData.guangdong, targetKeys: ['1'], }, }, ```

发现一个可以绕过的方式, ```js setOptions({ tooltip: { trigger: 'item', }, //color: ['#14b8a6', '#F1F1F1'], series: [ { name: '访问来源', type: 'pie', radius: '80%', center: ['50%', '50%'], color: ['#14b8a6', '#F1F1F1'],//将color放在series内 data: [ { value:...

以下是echarts的demo,设置theme为light是显示是正常的 ![image](https://user-images.githubusercontent.com/90845831/157885752-77975f70-c4e6-4917-a304-ac6fbb084f98.png) https://jsfiddle.net/jtacs6z3/ 以下为theme为light时的截图 ![image](https://user-images.githubusercontent.com/90845831/157886792-b895b5a4-cc63-4fb9-a151-66342d542b7b.png) 以下是theme为dark时的截图 ![image](https://user-images.githubusercontent.com/90845831/157887086-be611953-245c-4104-aa81-21db94ae2077.png) 重现代码如下: https://github.com/likui628/vue-vben-admin/tree/issue%231704