@alicloud/console-components-search 0.2.4 → 0.2.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/config/components-with-style.tsx +1 -1
- package/demos/demo1.demo.tsx +4 -1
- package/doc-dist/0.js +10 -10
- package/doc-dist/1.js +4 -4
- package/doc-dist/10.js +1 -1
- package/doc-dist/11.js +1 -1
- package/doc-dist/12.js +1 -1
- package/doc-dist/13.js +1 -1
- package/doc-dist/14.js +1 -1
- package/doc-dist/15.js +1 -1
- package/doc-dist/3.js +5 -5
- package/doc-dist/4.js +1 -1
- package/doc-dist/5.js +2 -2
- package/doc-dist/6.js +1 -1
- package/doc-dist/7.js +1 -1
- package/doc-dist/8.js +1 -1
- package/doc-dist/9.js +1 -1
- package/doc-dist/deps/main.css +1 -1
- package/doc-dist/deps/main.js +7 -7
- package/doc-dist/deps/main.os.css +1 -1
- package/doc-dist/index.js +3 -3
- package/doc-dist/log-deps-build.log +3 -3
- package/es/{modeSingleSingle → ComplexSearch}/InputPrefix.js +7 -0
- package/es/{modeSingleSingle/index2.js → ComplexSearch/index.js} +1 -1
- package/es/search.js +1 -1
- package/es/searchTagList/index.js +21 -11
- package/es/style.js +1 -1
- package/lib/{modeSingleSingle → ComplexSearch}/InputPrefix.d.ts +0 -0
- package/lib/{modeSingleSingle → ComplexSearch}/InputPrefix.js +7 -0
- package/lib/{modeSingleSingle/index2.d.ts → ComplexSearch/index.d.ts} +0 -0
- package/lib/{modeSingleSingle/index2.js → ComplexSearch/index.js} +1 -1
- package/lib/search.js +2 -2
- package/lib/searchTagList/index.js +21 -11
- package/lib/style.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export * from '@alicloud/console-components'
|
|
2
|
-
import '@alicloud/console-components/dist/
|
|
2
|
+
import '@alicloud/console-components/dist/xconsole.css'
|
package/demos/demo1.demo.tsx
CHANGED
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
import React from "react";
|
|
6
6
|
import { Search, SearchFilter } from "@alicloud/console-components-search";
|
|
7
|
+
import { ConfigProvider } from "@alicloud/console-components";
|
|
7
8
|
import { useState } from "react";
|
|
8
9
|
|
|
9
10
|
let options = [
|
|
@@ -94,6 +95,7 @@ let options2 = [
|
|
|
94
95
|
const [filters, setFilters] = useState<any>([]);
|
|
95
96
|
console.log(filters)
|
|
96
97
|
return (
|
|
98
|
+
<ConfigProvider>
|
|
97
99
|
<div>
|
|
98
100
|
<Search
|
|
99
101
|
defaultDataIndex="name"
|
|
@@ -129,7 +131,7 @@ let options2 = [
|
|
|
129
131
|
<SearchFilter
|
|
130
132
|
dataSource={[
|
|
131
133
|
{label: '实例名称', value: 'xxxxxx', dataIndex: 'name'},
|
|
132
|
-
{value: [
|
|
134
|
+
{value: [], dataIndex: 'tag'}
|
|
133
135
|
]}
|
|
134
136
|
onChange={(deletedFilter, remainFilters)=> {
|
|
135
137
|
console.log(deletedFilter, remainFilters);
|
|
@@ -137,6 +139,7 @@ let options2 = [
|
|
|
137
139
|
/>
|
|
138
140
|
</div>
|
|
139
141
|
</div>
|
|
142
|
+
</ConfigProvider>
|
|
140
143
|
);
|
|
141
144
|
};
|
|
142
145
|
|