@alicloud/console-components-search 0.1.3 → 0.2.2

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.
Files changed (66) hide show
  1. package/README.md +104 -131
  2. package/demos/demo1.demo.tsx +100 -90
  3. package/doc-dist/0.js +1917 -16
  4. package/doc-dist/1.js +16 -1917
  5. package/doc-dist/10.js +1 -1
  6. package/doc-dist/11.js +1 -1
  7. package/doc-dist/12.js +1 -1
  8. package/doc-dist/13.js +1 -1
  9. package/doc-dist/14.js +1 -1
  10. package/doc-dist/15.js +1 -1
  11. package/doc-dist/3.js +5 -5
  12. package/doc-dist/4.js +1 -1
  13. package/doc-dist/5.js +2 -2
  14. package/doc-dist/6.js +1 -1
  15. package/doc-dist/7.js +1 -1
  16. package/doc-dist/8.js +1 -1
  17. package/doc-dist/9.js +1 -1
  18. package/doc-dist/deps/main.css +1 -1
  19. package/doc-dist/deps/main.js +8 -8
  20. package/doc-dist/deps/main.os.css +1 -1
  21. package/doc-dist/index.js +3 -3
  22. package/doc-dist/log-deps-build.log +3 -3
  23. package/es/constants.js +4 -1
  24. package/es/index.js +1 -1
  25. package/es/modeSingleSingle/InputPrefix.js +29 -0
  26. package/es/modeSingleSingle/index2.js +369 -0
  27. package/es/search.js +2 -3
  28. package/es/searchTagList/PureTag.js +57 -0
  29. package/es/searchTagList/index.js +30 -14
  30. package/es/style.js +2 -2
  31. package/lib/constants.d.ts +2 -0
  32. package/lib/constants.js +6 -2
  33. package/lib/index.d.ts +2 -1
  34. package/lib/index.js +1 -1
  35. package/lib/modeSingleSingle/InputPrefix.d.ts +2 -0
  36. package/lib/modeSingleSingle/InputPrefix.js +43 -0
  37. package/lib/modeSingleSingle/index2.d.ts +4 -0
  38. package/lib/modeSingleSingle/index2.js +400 -0
  39. package/lib/search.js +2 -4
  40. package/lib/searchTagList/PureTag.d.ts +14 -0
  41. package/lib/searchTagList/PureTag.js +71 -0
  42. package/lib/searchTagList/index.d.ts +3 -1
  43. package/lib/searchTagList/index.js +31 -15
  44. package/lib/style.js +2 -2
  45. package/lib/types/IRcSearchProps.type.d.ts +22 -21
  46. package/lib/types/IRcSearchTagItemProps.type.d.ts +2 -2
  47. package/lib/types/IRcSearchTagListProps.type.d.ts +9 -5
  48. package/package.json +2 -1
  49. package/demos/demo2.demo.tsx +0 -81
  50. package/demos/demo3.demo.tsx +0 -90
  51. package/demos/demo4.demo.tsx +0 -137
  52. package/dist/index.css +0 -1
  53. package/dist/index.js +0 -60
  54. package/doc-dist/16.js +0 -6
  55. package/doc-dist/17.js +0 -6
  56. package/doc-dist/18.js +0 -6
  57. package/doc-dist/19.js +0 -6
  58. package/doc-dist/20.js +0 -6
  59. package/docs/markdown-render.doc.md +0 -21
  60. package/docs/test.doc.md +0 -8
  61. package/es/modeSingleMulti/index.js +0 -868
  62. package/es/modeSingleSingle/index.js +0 -201
  63. package/lib/modeSingleMulti/index.d.ts +0 -2
  64. package/lib/modeSingleMulti/index.js +0 -894
  65. package/lib/modeSingleSingle/index.d.ts +0 -2
  66. package/lib/modeSingleSingle/index.js +0 -226
package/doc-dist/16.js DELETED
@@ -1,6 +0,0 @@
1
-
2
- if (!window.__CONSOLE_OS_GLOBAL_HOOK__){window.__CONSOLE_OS_GLOBAL_VARS_={};window.__CONSOLE_OS_GLOBAL_HOOK__ = function(id, resolver) {resolver(undefined, undefined, undefined, {window: window,location: location,history: history,document: document})};window.__CONSOLE_OS_GLOBAL_HOOK__.standalone = true}
3
- window.__CONSOLE_OS_GLOBAL_HOOK__("console-fe-test-rc-search-doc", function(require, module, exports, context){ var window = context.window;var location = context.location;var history = context.history;var document = context.document;with(window.__CONSOLE_OS_GLOBAL_VARS_) {
4
-
5
- (window["webpackJsonpconsole-fe-test-rc-search-doc"]=window["webpackJsonpconsole-fe-test-rc-search-doc"]||[]).push([[16],{688:function(e,t,n){"use strict";n.r(t),n.d(t,"typeInfo",(function(){return o}));var o={name:"IRcSearchOptionsProps",documentation:"",properties:[{name:"label",typeText:" string",documentation:"字段展示名称"},{name:"dataIndex",typeText:" string",documentation:"字段表单key"},{name:"template",typeText:" string",documentation:"字段,交互组件类型(input/select/multiple)<br />\n - input:搜索框<br />\n - select:单选<br />\n - multiple:多选<br />"},{name:"templateProps",typeText:" any",documentation:"定义传给表单项的属性\ntemplateProps.placeholder\ntemplateProps.dataSource"},{name:"groupName",typeText:" string",documentation:""}]}}}]);
6
- }})
package/doc-dist/17.js DELETED
@@ -1,6 +0,0 @@
1
-
2
- if (!window.__CONSOLE_OS_GLOBAL_HOOK__){window.__CONSOLE_OS_GLOBAL_VARS_={};window.__CONSOLE_OS_GLOBAL_HOOK__ = function(id, resolver) {resolver(undefined, undefined, undefined, {window: window,location: location,history: history,document: document})};window.__CONSOLE_OS_GLOBAL_HOOK__.standalone = true}
3
- window.__CONSOLE_OS_GLOBAL_HOOK__("console-fe-test-rc-search-doc", function(require, module, exports, context){ var window = context.window;var location = context.location;var history = context.history;var document = context.document;with(window.__CONSOLE_OS_GLOBAL_VARS_) {
4
-
5
- (window["webpackJsonpconsole-fe-test-rc-search-doc"]=window["webpackJsonpconsole-fe-test-rc-search-doc"]||[]).push([[17],{689:function(e,t,n){"use strict";n.r(t),n.d(t,"typeInfo",(function(){return a}));var a={name:"IRcSearchProps",documentation:"",properties:[{name:"simple",typeText:" boolean",documentation:"是否是简单搜索, 不支持多 filter, 但是支持模糊",defaultValue:"false"},{name:"className",typeText:" string",documentation:"类名"},{name:"style",typeText:" any",documentation:"样式"},{name:"options",typeText:" IRcSearchOptionsProps[]",documentation:"对应不同场景值的类型数组,后面要详细展开列一下",defaultValue:"[]"},{name:"tags",typeText:" IRcSearchTagItemProps[]",documentation:"tags 传入的taglist, 用于, 同步"},{name:"defaultDataIndex",typeText:" string",documentation:'默认类别\n仅在mode是"single-multi" | "multi-multi"生效'},{name:"defaultPlaceholder",typeText:" string",documentation:'默认placeholder\n仅在mode是"single-multi" | "multi-multi"生效, 且, 未配置默认值时生效'},{name:"regionId",typeText:" string",documentation:"regionId"},{name:"resourceType",typeText:" string",documentation:"resourceType"},{name:"onSearch",typeText:" (allFields: any) => void",documentation:"搜索触发"},{name:"onSuggest",typeText:" (value: string, dataIndex: string) => void",documentation:"模糊搜索的回调函数(仅输入框返回),用于构建模糊搜索的联想列表"},{name:"onSuggestNoDataIndex",typeText:" (value: string) => Promise<any>",documentation:"模糊搜索的回调函数(仅输入框返回),当没设置defaultDataIndex,且有多个input类别时触发,\n可自定义二级返回List"},{name:"onSelect",typeText:" () => void",documentation:"提供单选和多选, 触发。"}]}}}]);
6
- }})
package/doc-dist/18.js DELETED
@@ -1,6 +0,0 @@
1
-
2
- if (!window.__CONSOLE_OS_GLOBAL_HOOK__){window.__CONSOLE_OS_GLOBAL_VARS_={};window.__CONSOLE_OS_GLOBAL_HOOK__ = function(id, resolver) {resolver(undefined, undefined, undefined, {window: window,location: location,history: history,document: document})};window.__CONSOLE_OS_GLOBAL_HOOK__.standalone = true}
3
- window.__CONSOLE_OS_GLOBAL_HOOK__("console-fe-test-rc-search-doc", function(require, module, exports, context){ var window = context.window;var location = context.location;var history = context.history;var document = context.document;with(window.__CONSOLE_OS_GLOBAL_VARS_) {
4
-
5
- (window["webpackJsonpconsole-fe-test-rc-search-doc"]=window["webpackJsonpconsole-fe-test-rc-search-doc"]||[]).push([[18],{690:function(e,t,n){"use strict";n.r(t),n.d(t,"typeInfo",(function(){return o}));var o={name:"IRcSearchTagItemProps",documentation:"这是IRcSearchTagItemProps的说明。breezr-docs支持从源码中提取接口信息并文档化,因此你可以使用接口来定义Props,从而能便捷地将Props的信息通过文档透出。\n\n下面列举的props其实是随便写的,仅仅用来说明breezr-docs的接口提取功能。",properties:[{name:"label",typeText:" string",documentation:"tag的类别展示名称"},{name:"dataIndex",typeText:" string",documentation:"tag的类别的key"},{name:"value",typeText:" any",documentation:"tag的类别的值"},{name:"valueShow",typeText:" string",documentation:"tag的类别的展示值"}]}}}]);
6
- }})
package/doc-dist/19.js DELETED
@@ -1,6 +0,0 @@
1
-
2
- if (!window.__CONSOLE_OS_GLOBAL_HOOK__){window.__CONSOLE_OS_GLOBAL_VARS_={};window.__CONSOLE_OS_GLOBAL_HOOK__ = function(id, resolver) {resolver(undefined, undefined, undefined, {window: window,location: location,history: history,document: document})};window.__CONSOLE_OS_GLOBAL_HOOK__.standalone = true}
3
- window.__CONSOLE_OS_GLOBAL_HOOK__("console-fe-test-rc-search-doc", function(require, module, exports, context){ var window = context.window;var location = context.location;var history = context.history;var document = context.document;with(window.__CONSOLE_OS_GLOBAL_VARS_) {
4
-
5
- (window["webpackJsonpconsole-fe-test-rc-search-doc"]=window["webpackJsonpconsole-fe-test-rc-search-doc"]||[]).push([[19],{691:function(e,t,n){"use strict";n.r(t),n.d(t,"typeInfo",(function(){return o}));var o={name:"IRcSearchTagListProps",documentation:"",properties:[{name:"className",typeText:" string",documentation:"类名"},{name:"style",typeText:" any",documentation:"样式"},{name:"tagList",typeText:" IRcSearchTagItemProps[]",documentation:"tags 传入的taglist, 用于, 同步"},{name:"regionId",typeText:" string",documentation:"regionId"},{name:"resourceType",typeText:" string",documentation:"resourceType"},{name:"onChange",typeText:" (newTags: any) => void",documentation:"当删减tag时, 返回新的taglist, 可直接赋值给rc-search组件"}]}}}]);
6
- }})
package/doc-dist/20.js DELETED
@@ -1,6 +0,0 @@
1
-
2
- if (!window.__CONSOLE_OS_GLOBAL_HOOK__){window.__CONSOLE_OS_GLOBAL_VARS_={};window.__CONSOLE_OS_GLOBAL_HOOK__ = function(id, resolver) {resolver(undefined, undefined, undefined, {window: window,location: location,history: history,document: document})};window.__CONSOLE_OS_GLOBAL_HOOK__.standalone = true}
3
- window.__CONSOLE_OS_GLOBAL_HOOK__("console-fe-test-rc-search-doc", function(require, module, exports, context){ var window = context.window;var location = context.location;var history = context.history;var document = context.document;with(window.__CONSOLE_OS_GLOBAL_VARS_) {
4
-
5
- (window["webpackJsonpconsole-fe-test-rc-search-doc"]=window["webpackJsonpconsole-fe-test-rc-search-doc"]||[]).push([[20],{676:function(e,t,n){"use strict";n.r(t);var r=n(3),l=n(2),a=n(0),c=n.n(a),o=n(130);function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach((function(t){Object(l.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var s={p:function(e){return c.a.createElement("p",Object(r.a)({style:i({margin:0},e.style)},e))},ul:function(e){return c.a.createElement("ul",e)},ol:function(e){return c.a.createElement("ol",e)},li:function(e){return c.a.createElement("li",e)}},m={width:"100%",overflowX:"auto"};t.default=function(e){var t=e.typeInfo;return c.a.createElement("div",{style:m},c.a.createElement(o.c.table,null,c.a.createElement("colgroup",null,c.a.createElement("col",{span:1,style:{width:"15%"}}),c.a.createElement("col",{span:1,style:{width:"15%"}}),c.a.createElement("col",{span:1,style:{width:"60%"}}),c.a.createElement("col",{span:1,style:{width:"10%"}})),c.a.createElement(o.c.thead,null,c.a.createElement("tr",null,c.a.createElement("th",null,"名称"),c.a.createElement("th",null,"类型"),c.a.createElement("th",null,"说明"),c.a.createElement("th",null,"默认值"))),c.a.createElement(o.c.tbody,null,t.properties.map((function(e,t){return c.a.createElement("tr",{key:t},c.a.createElement("td",null,e.name),c.a.createElement("td",null,c.a.createElement(o.c.inlinecode,null,e.typeText)),c.a.createElement("td",null,c.a.createElement(o.a,{source:e.documentation,components:s})),c.a.createElement("td",null,e.defaultValue&&c.a.createElement(o.c.inlinecode,null,e.defaultValue)))})))))}}}]);
6
- }})
@@ -1,21 +0,0 @@
1
- 基础搜索组件。
2
-
3
- # 三种场景
4
-
5
- 1. 场景一:单维度单类别
6
- 2. 场景二:单维度多类别
7
- 3. 场景三:多维度多类别
8
-
9
- ## 场景一
10
-
11
- 单维度单类别
12
-
13
- ## 场景二
14
-
15
- 单维度多类别
16
-
17
- ## 场景三
18
-
19
- 多维度多类别
20
-
21
-
package/docs/test.doc.md DELETED
@@ -1,8 +0,0 @@
1
- ## markdown fragment
2
-
3
- test **markdown** fragment.
4
-
5
-
6
- ### markdown fragment nested title
7
-
8
- content